Setting jump button
Key RequiredUniversal

Setting jump button

Universal ScriptOnlyThePowerOnlyThePower 896 views 4.4K executesUpdated May 2, 2026
Unrated
00
Lua Script•196 lines (5024 chars)
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")

local player = Players.LocalPlayer

local gui = Instance.new("ScreenGui")
gui.Name = "JumpEditorCleanRGB"
gui.ResetOnSpawn = false
gui.Parent = player:WaitForChild("PlayerGui")

local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 240, 0, 170)
frame.Position = UDim2.new(0.5, -120, 0.6, 0)
frame.BackgroundColor3 = Color3.fromRGB(20,20,25)
frame.BorderSizePixel = 0
frame.Parent = gui

Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 12)

local stroke = Instance.new("UIStroke")
stroke.Thickness = 3
stroke.Parent = frame

task.spawn(function()
	while true do
		for i = 0,1,0.01 do
			stroke.Color = Color3.fromHSV(i,1,1)
			task.wait(0.02)
		end
	end
end)

local title = Instance.new("TextLabel")
title.Size = UDim2.new(1,0,0,22)
title.BackgroundTransparency = 1
title.Text = "Jump Editor Clean"
title.TextColor3 = Color3.fromRGB(255,255,255)
title.Font = Enum.Font.GothamBold
title.TextSize = 12
title.Parent = frame

local close = Instance.new("TextButton")
close.Size = UDim2.new(0,22,0,22)
close.Position = UDim2.new(1,-24,0,0)
close.Text = "X"
close.BackgroundTransparency = 1
close.TextColor3 = Color3.fromRGB(255,80,80)
close.Parent = frame

close.MouseButton1Click:Connect(function()
	local t = TweenService:Create(frame, TweenInfo.new(0.25), {
		Size = UDim2.new(0,0,0,0),
		BackgroundTransparency = 1
	})
	t:Play()
	t.Completed:Wait()
	gui:Destroy()
end)

local grid = Instance.new("Frame")
grid.Size = UDim2.new(1,0,1,0)
grid.BackgroundTransparency = 1
grid.Visible = false
grid.Parent = gui

for i = 1, 10 do
	local h = Instance.new("Frame")
	h.Size = UDim2.new(1,0,0,1)
	h.Position = UDim2.new(0,0,i/10,0)
	h.BackgroundColor3 = Color3.fromRGB(255,255,255)
	h.BackgroundTransparency = 0.95
	h.BorderSizePixel = 0
	h.Parent = grid

	local txt = Instance.new("TextLabel")
	txt.Size = UDim2.new(0,20,0,12)
	txt.Position = UDim2.new(0,2,i/10,-6)
	txt.Text = tostring(i)
	txt.TextSize = 9
	txt.TextColor3 = Color3.fromRGB(200,200,200)
	txt.BackgroundTransparency = 1
	txt.Parent = grid
end

for i = 1, 10 do
	local v = Instance.new("Frame")
	v.Size = UDim2.new(0,1,1,0)
	v.Position = UDim2.new(i/10,0,0,0)
	v.BackgroundColor3 = Color3.fromRGB(255,255,255)
	v.BackgroundTransparency = 0.95
	v.BorderSizePixel = 0
	v.Parent = grid
end

local jumpButton

local function getJump()
	local pg = player:WaitForChild("PlayerGui")
	local touchGui = pg:FindFirstChild("TouchGui")
	if not touchGui then return end

	local control = touchGui:FindFirstChild("TouchControlFrame")
	if not control then return end

	jumpButton = control:FindFirstChild("JumpButton")
end

task.spawn(function()
	repeat task.wait(1)
		getJump()
	until jumpButton
end)

local sizeBox = Instance.new("TextBox")
sizeBox.Size = UDim2.new(0,200,0,25)
sizeBox.Position = UDim2.new(0,20,0,28)
sizeBox.PlaceholderText = "Size (e.g. 80)"
sizeBox.BackgroundColor3 = Color3.fromRGB(40,40,50)
sizeBox.TextColor3 = Color3.fromRGB(255,255,255)
sizeBox.Parent = frame
Instance.new("UICorner", sizeBox)

sizeBox.FocusLost:Connect(function()
	local v = tonumber(sizeBox.Text)
	if v and jumpButton then
		jumpButton.Size = UDim2.new(0,v,0,v)
	end
end)

local dragMode = false

local dragBtn = Instance.new("TextButton")
dragBtn.Size = UDim2.new(0,200,0,25)
dragBtn.Position = UDim2.new(0,20,0,60)
dragBtn.Text = "Drag Jump: OFF"
dragBtn.BackgroundColor3 = Color3.fromRGB(40,40,50)
dragBtn.TextColor3 = Color3.fromRGB(255,255,255)
dragBtn.Parent = frame
Instance.new("UICorner", dragBtn)

dragBtn.MouseButton1Click:Connect(function()
	dragMode = not dragMode

	if dragMode then
		dragBtn.Text = "Drag Jump: ON"
		dragBtn.BackgroundColor3 = Color3.fromRGB(60,120,60)
		grid.Visible = true
	else
		dragBtn.Text = "Drag Jump: OFF"
		dragBtn.BackgroundColor3 = Color3.fromRGB(40,40,50)
		grid.Visible = false
	end
end)

UserInputService.InputChanged:Connect(function(input)
	if not dragMode or not jumpButton then return end

	if input.UserInputType == Enum.UserInputType.Touch then
		local p = input.Position
		jumpButton.Position = UDim2.new(0,p.X-60,0,p.Y-60)
	end
end)

local dragging, startPos, startInput

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

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

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

frame.Size = UDim2.new(0,0,0,0)
TweenService:Create(frame, TweenInfo.new(0.35, Enum.EasingStyle.Back), {
	Size = UDim2.new(0,240,0,170)
}):Play()

Features & Information

Lazy
#ui

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts