walkspeed and jump power gui
Key RequiredUniversal

walkspeed and jump power gui

Universal ScriptHi_aHi_a 3.1K views 263 executesUpdated Apr 4, 2025
5.0/ 5(2 votes)
20100% Positive
Lua Script•165 lines (4870 chars)
local player = game.Players.LocalPlayer
local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
gui.Name = "SpeedJumpGUI"
gui.ResetOnSpawn = false

-- Main Frame
local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0, 200, 0, 220)
frame.Position = UDim2.new(0, 20, 0, 100)
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.BorderSizePixel = 0
frame.Name = "MainFrame"

-- Top Drag Bar
local dragBar = Instance.new("TextButton", frame)
dragBar.Size = UDim2.new(1, 0, 0, 20)
dragBar.Position = UDim2.new(0, 0, 0, 0)
dragBar.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
dragBar.Text = ""
dragBar.AutoButtonColor = false

-- Minimize Button
local minimizeButton = Instance.new("TextButton", dragBar)
minimizeButton.Size = UDim2.new(0, 20, 1, 0)
minimizeButton.Position = UDim2.new(1, -22, 0, 0)
minimizeButton.Text = "-"
minimizeButton.TextColor3 = Color3.new(1, 1, 1)
minimizeButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
minimizeButton.BorderSizePixel = 0

-- Title
local titleLabel = Instance.new("TextLabel", dragBar)
titleLabel.Size = UDim2.new(1, -24, 1, 0)
titleLabel.Position = UDim2.new(0, 4, 0, 0)
titleLabel.BackgroundTransparency = 1
titleLabel.Text = "Speed & Jump GUI"
titleLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
titleLabel.TextXAlignment = Enum.TextXAlignment.Left
titleLabel.Font = Enum.Font.SourceSans
titleLabel.TextSize = 14

-- Drag logic
local dragging = false
local dragInput, dragStart, startPos

dragBar.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
		dragging = true
		dragStart = input.Position
		startPos = frame.Position

		input.Changed:Connect(function()
			if input.UserInputState == Enum.UserInputState.End then
				dragging = false
			end
		end)
	end
end)

dragBar.InputChanged:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
		dragInput = input
	end
end)

game:GetService("UserInputService").InputChanged:Connect(function(input)
	if input == dragInput and dragging then
		local delta = input.Position - dragStart
		frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
	end
end)

-- GUI Components
local function createBox(placeholder, y)
	local box = Instance.new("TextBox", frame)
	box.PlaceholderText = placeholder
	box.Size = UDim2.new(1, -20, 0, 30)
	box.Position = UDim2.new(0, 10, 0, y)
	box.Text = ""
	box.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
	box.TextColor3 = Color3.new(1, 1, 1)
	box.ClearTextOnFocus = false
	return box
end

local function createButton(text, y)
	local btn = Instance.new("TextButton", frame)
	btn.Text = text
	btn.Size = UDim2.new(1, -20, 0, 30)
	btn.Position = UDim2.new(0, 10, 0, y)
	btn.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
	btn.TextColor3 = Color3.new(1, 1, 1)
	return btn
end

-- Create elements
local speedBox = createBox("WalkSpeed", 30)
local jumpBox = createBox("JumpPower", 70)
local setSpeedButton = createButton("Set Speed", 110)
local setJumpButton = createButton("Set Jump", 150)
local autoButton = createButton("Auto: OFF", 190)

-- Minimize Logic
local minimized = false
local contentElements = {speedBox, jumpBox, setSpeedButton, setJumpButton, autoButton}

minimizeButton.MouseButton1Click:Connect(function()
	minimized = not minimized
	minimizeButton.Text = minimized and "+" or "-"
	for _, el in ipairs(contentElements) do
		el.Visible = not minimized
	end
	frame.Size = minimized and UDim2.new(0, 200, 0, 20) or UDim2.new(0, 200, 0, 220)
end)

-- Logic
local savedSpeed = 16
local savedJump = 50
local autoEnabled = false

local function applyStats(humanoid)
	humanoid.WalkSpeed = savedSpeed
	humanoid.JumpPower = savedJump
end

local function setupCharacter(char)
	local humanoid = char:WaitForChild("Humanoid")
	if autoEnabled then
		applyStats(humanoid)
	end
end

setSpeedButton.MouseButton1Click:Connect(function()
	local val = tonumber(speedBox.Text)
	if val then
		savedSpeed = val
		local hum = player.Character and player.Character:FindFirstChild("Humanoid")
		if hum then hum.WalkSpeed = val end
	end
end)

setJumpButton.MouseButton1Click:Connect(function()
	local val = tonumber(jumpBox.Text)
	if val then
		savedJump = val
		local hum = player.Character and player.Character:FindFirstChild("Humanoid")
		if hum then hum.JumpPower = val end
	end
end)

autoButton.MouseButton1Click:Connect(function()
	autoEnabled = not autoEnabled
	autoButton.Text = autoEnabled and "Auto: ON" or "Auto: OFF"

	if autoEnabled and player.Character then
		local hum = player.Character:FindFirstChild("Humanoid")
		if hum then applyStats(hum) end
	end
end)

player.CharacterAdded:Connect(setupCharacter)

if player.Character then
	setupCharacter(player.Character)
end

Features & Information

set your speed and jump power auto button to stop being slow after reset

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts