Universal Script – MR DEFT - Verified script for Universal Roblox
Key RequiredUniversal

Universal Script – MR DEFT

Universal ScriptMrdeftMrdeft 645 views 1.6K executesUpdated Oct 24, 2026
Unrated
00
Lua Script•280 lines (6245 chars)
--// MR.DEFT HUB
--// Roblox Studio - LocalScript
--// Put inside StarterPlayer > StarterPlayerScripts

local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")

local Player = Players.LocalPlayer

local function getCharacter()
	return Player.Character or Player.CharacterAdded:Wait()
end

local Character = getCharacter()
local Humanoid = Character:WaitForChild("Humanoid")
local Root = Character:WaitForChild("HumanoidRootPart")

Player.CharacterAdded:Connect(function(char)
	Character = char
	Humanoid = char:WaitForChild("Humanoid")
	Root = char:WaitForChild("HumanoidRootPart")
end)

--// SETTINGS
local WalkSpeed = 16
local FlySpeed = 55
local JumpPower = 50
local Flying = false
local Vertical = 0

--// GUI
local Gui = Instance.new("ScreenGui")
Gui.Name = "MR_DEFT_Hub"
Gui.ResetOnSpawn = false
Gui.Parent = Player:WaitForChild("PlayerGui")

--// Open Button
local Open = Instance.new("TextButton")
Open.Size = UDim2.new(0, 55, 0, 55)
Open.Position = UDim2.new(0, 15, 0.5, -25)
Open.BackgroundColor3 = Color3.fromRGB(20,20,20)
Open.Text = "D"
Open.TextColor3 = Color3.fromRGB(255,0,0)
Open.TextSize = 25
Open.Font = Enum.Font.GothamBold
Open.Parent = Gui

local OpenCorner = Instance.new("UICorner")
OpenCorner.CornerRadius = UDim.new(1,0)
OpenCorner.Parent = Open

--// Main
local Main = Instance.new("Frame")
Main.Size = UDim2.new(0, 300, 0, 360)
Main.Position = UDim2.new(0.5, -150, 0.5, -180)
Main.BackgroundColor3 = Color3.fromRGB(15,15,18)
Main.BorderSizePixel = 0
Main.Parent = Gui

local Corner = Instance.new("UICorner")
Corner.CornerRadius = UDim.new(0,14)
Corner.Parent = Main

--// Title
local Title = Instance.new("TextLabel")
Title.Size = UDim2.new(1,0,0,55)
Title.BackgroundTransparency = 1
Title.Text = "MR.DEFT  HUB"
Title.TextColor3 = Color3.fromRGB(255,40,40)
Title.TextSize = 23
Title.Font = Enum.Font.GothamBold
Title.Parent = Main

--// Close
local Close = Instance.new("TextButton")
Close.Size = UDim2.new(0,40,0,40)
Close.Position = UDim2.new(1,-45,0,8)
Close.BackgroundColor3 = Color3.fromRGB(35,35,40)
Close.Text = "×"
Close.TextColor3 = Color3.new(1,1,1)
Close.TextSize = 25
Close.Font = Enum.Font.GothamBold
Close.Parent = Main

Instance.new("UICorner",Close).CornerRadius = UDim.new(0,10)

--// Container
local Container = Instance.new("Frame")
Container.Size = UDim2.new(1,-20,1,-70)
Container.Position = UDim2.new(0,10,0,60)
Container.BackgroundTransparency = 1
Container.Parent = Main

local Layout = Instance.new("UIListLayout")
Layout.Padding = UDim.new(0,8)
Layout.HorizontalAlignment = Enum.HorizontalAlignment.Center
Layout.Parent = Container

--// Button creator
local function Button(text)
	local B = Instance.new("TextButton")
	B.Size = UDim2.new(1,0,0,45)
	B.BackgroundColor3 = Color3.fromRGB(30,30,35)
	B.Text = text
	B.TextColor3 = Color3.new(1,1,1)
	B.TextSize = 16
	B.Font = Enum.Font.GothamMedium
	B.AutoButtonColor = true
	B.Parent = Container

	local C = Instance.new("UICorner")
	C.CornerRadius = UDim.new(0,10)
	C.Parent = B

	return B
end

--// Fly
local FlyButton = Button("✈  FLY : OFF")

local function SetFly(state)
	Flying = state

	if Flying then
		FlyButton.Text = "✈  FLY : ON"
		FlyButton.TextColor3 = Color3.fromRGB(0,255,150)
	else
		FlyButton.Text = "✈  FLY : OFF"
		FlyButton.TextColor3 = Color3.new(1,1,1)
		Vertical = 0
	end
end

FlyButton.MouseButton1Click:Connect(function()
	SetFly(not Flying)
end)

--// Speed
local SpeedButton = Button("⚡ SPEED : 16")

SpeedButton.MouseButton1Click:Connect(function()
	WalkSpeed += 4

	if WalkSpeed > 40 then
		WalkSpeed = 16
	end

	SpeedButton.Text = "⚡ SPEED : "..WalkSpeed
	Humanoid.WalkSpeed = WalkSpeed
end)

--// Jump
local JumpButton = Button("⬆ JUMP : 50")

JumpButton.MouseButton1Click:Connect(function()
	JumpPower += 10

	if JumpPower > 100 then
		JumpPower = 50
	end

	JumpButton.Text = "⬆ JUMP : "..JumpPower
	Humanoid.JumpPower = JumpPower
end)

--// UP
local Up = Button("▲  FLY UP")

Up.MouseButton1Down:Connect(function()
	Vertical = 1
end)

Up.MouseButton1Up:Connect(function()
	Vertical = 0
end)

--// DOWN
local Down = Button("▼  FLY DOWN")

Down.MouseButton1Down:Connect(function()
	Vertical = -1
end)

Down.MouseButton1Up:Connect(function()
	Vertical = 0
end)

--// Reset
local Reset = Button("↻  RESET")

Reset.MouseButton1Click:Connect(function()
	SetFly(false)
	WalkSpeed = 16
	JumpPower = 50

	Humanoid.WalkSpeed = 16
	Humanoid.JumpPower = 50

	SpeedButton.Text = "⚡ SPEED : 16"
	JumpButton.Text = "⬆ JUMP : 50"
end)

--// Fly movement
RunService.RenderStepped:Connect(function()
	if not Flying then
		return
	end

	if not Character or not Root or not Humanoid then
		return
	end

	local Camera = workspace.CurrentCamera

	-- Horizontal movement follows the Roblox joystick
	local Move = Humanoid.MoveDirection

	-- Vertical movement
	local UpVector = Vector3.new(0, Vertical, 0)

	local Direction = Move + UpVector

	if Direction.Magnitude > 0 then
		Root.AssemblyLinearVelocity = Direction.Unit * FlySpeed
	else
		Root.AssemblyLinearVelocity = Vector3.zero
	end
end)

--// Open / Close
Open.MouseButton1Click:Connect(function()
	Main.Visible = not Main.Visible
end)

Close.MouseButton1Click:Connect(function()
	Main.Visible = false
end)

--// Drag system
local Dragging = false
local DragStart
local StartPosition

Title.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1
	or input.UserInputType == Enum.UserInputType.Touch then

		Dragging = true
		DragStart = input.Position
		StartPosition = Main.Position
	end
end)

UserInputService.InputChanged:Connect(function(input)
	if not Dragging then return end

	if input.UserInputType == Enum.UserInputType.MouseMovement
	or input.UserInputType == Enum.UserInputType.Touch then

		local Delta = input.Position - DragStart

		Main.Position = UDim2.new(
			StartPosition.X.Scale,
			StartPosition.X.Offset + Delta.X,
			StartPosition.Y.Scale,
			StartPosition.Y.Offset + Delta.Y
		)
	end
end)

UserInputService.InputEnded:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1
	or input.UserInputType == Enum.UserInputType.Touch then

		Dragging = false
	end
end)

print("MR.DEFT HUB Loaded")

How to Execute Universal Script – MR DEFT

Step 1: Copy Code: Click the Copy Code button in the viewer above to grab the clean Lua loadstring.

Step 2: Launch Executor: Open a compatible, unpatched executor. If you need one, check our Roblox Executors Directory.

Step 3: Join Experience: Launch Roblox and join Universal Script.

Step 4: Attach & Run: Attach/inject your executor into the Roblox process, paste the code into the script tab, and press Execute.

Created By

Mrdeft
Mrdeft
Script Creator
View Author Profile

Features & Information

Execute Universal Script – MR DEFT. Key system required, created by Mrdeft, updated Oct 24, 2026. Tested and working on supported executors.

Script Changelog (1)

@MrdeftOct 24, 2026

Create script

Community Comments (0)

No comments yet for this script.

Frequently Asked Questions

How do I execute Universal Script – MR DEFT in Roblox?

To run Universal Script – MR DEFT, copy the Lua loadstring from the code viewer above, launch Roblox and join Universal Script, attach a working executor (such as Potassium, Solara, or Delta from our Executors directory), paste the code into your executor console, and click Execute.

Is Universal Script – MR DEFT keyless or does it require an access key?

Universal Script – MR DEFT requires an access key. You can retrieve the official key directly using the Get Script Key link provided above.

Is Universal Script – MR DEFT currently safe and working?

This script is active and operational. Always test scripts using a secondary (alt) Roblox account to safeguard your main profile against anti-cheat bans.