local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") -- ===================== -- BUAT GUI -- ===================== local screenGui = Instance.new("ScreenGui") screenGui.Name = "JumpGui" screenGui.ResetOnSpawn = false screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling screenGui.Parent = playerGui -- Frame utama local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 200, 0, 220) frame.Position = UDim2.new(0, 20, 0.3, 0) frame.BackgroundColor3 = Color3.fromRGB(20, 20, 20) frame.BorderSizePixel = 0 frame.Active = true frame.Parent = screenGui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 12) corner.Parent = frame -- Stroke/Border local stroke = Instance.new("UIStroke") stroke.Color = Color3.fromRGB(0, 170, 255) stroke.Thickness = 2 stroke.Parent = frame -- Title Bar (buat drag area) local titleBar = Instance.new("Frame") titleBar.Size = UDim2.new(1, 0, 0, 40) titleBar.Position = UDim2.new(0, 0, 0, 0) titleBar.BackgroundColor3 = Color3.fromRGB(0, 120, 200) titleBar.BorderSizePixel = 0 titleBar.Active = true titleBar.Parent = frame local titleCorner = Instance.new("UICorner") titleCorner.CornerRadius = UDim.new(0, 12) titleCorner.Parent = titleBar -- Fix sudut bawah title bar local titleFix = Instance.new("Frame") titleFix.Size = UDim2.new(1, 0, 0.5, 0) titleFix.Position = UDim2.new(0, 0, 0.5, 0) titleFix.BackgroundColor3 = Color3.fromRGB(0, 120, 200) titleFix.BorderSizePixel = 0 titleFix.Parent = titleBar local titleLabel = Instance.new("TextLabel") titleLabel.Size = UDim2.new(1, 0, 1, 0) titleLabel.BackgroundTransparency = 1 titleLabel.Text = "⬆ JUMP POWER" titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) titleLabel.TextScaled = true titleLabel.Font = Enum.Font.GothamBold titleLabel.Parent = titleBar -- Label nilai jump local jumpValueLabel = Instance.new("TextLabel") jumpValueLabel.Size = UDim2.new(1, 0, 0, 35) jumpValueLabel.Position = UDim2.new(0, 0, 0, 48) jumpValueLabel.BackgroundTransparency = 1 jumpValueLabel.Text = "Jump: 50" jumpValueLabel.TextColor3 = Color3.fromRGB(0, 200, 255) jumpValueLabel.TextScaled = true jumpValueLabel.Font = Enum.Font.GothamBold jumpValueLabel.Parent = frame -- Slider background local sliderBg = Instance.new("Frame") sliderBg.Size = UDim2.new(0.85, 0, 0, 12) sliderBg.Position = UDim2.new(0.075, 0, 0, 95) sliderBg.BackgroundColor3 = Color3.fromRGB(50, 50, 50) sliderBg.BorderSizePixel = 0 sliderBg.Parent = frame local sliderBgCorner = Instance.new("UICorner") sliderBgCorner.CornerRadius = UDim.new(1, 0) sliderBgCorner.Parent = sliderBg -- Slider fill local sliderFill = Instance.new("Frame") sliderFill.Size = UDim2.new(0.5, 0, 1, 0) sliderFill.BackgroundColor3 = Color3.fromRGB(0, 170, 255) sliderFill.BorderSizePixel = 0 sliderFill.Parent = sliderBg local sliderFillCorner = Instance.new("UICorner") sliderFillCorner.CornerRadius = UDim.new(1, 0) sliderFillCorner.Parent = sliderFill -- Slider knob local knob = Instance.new("Frame") knob.Size = UDim2.new(0, 22, 0, 22) knob.Position = UDim2.new(0.5, -11, 0.5, -11) knob.BackgroundColor3 = Color3.fromRGB(255, 255, 255) knob.BorderSizePixel = 0 knob.ZIndex = 2 knob.Parent = sliderBg local knobCorner = Instance.new("UICorner") knobCorner.CornerRadius = UDim.new(1, 0) knobCorner.Parent = knob -- Tombol +/- local function makeButton(text, posX) local btn = Instance.new("TextButton") btn.Size = UDim2.new(0, 50, 0, 40) btn.Position = UDim2.new(0, posX, 0, 120) btn.BackgroundColor3 = Color3.fromRGB(0, 120, 200) btn.Text = text btn.TextColor3 = Color3.fromRGB(255, 255, 255) btn.TextScaled = true btn.Font = Enum.Font.GothamBold btn.BorderSizePixel = 0 btn.Parent = frame local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 8) c.Parent = btn return btn end local btnMinus = makeButton("-", 18) local btnPlus = makeButton("+", 132) -- Input box manual local inputBox = Instance.new("TextBox") inputBox.Size = UDim2.new(0, 65, 0, 40) inputBox.Position = UDim2.new(0.5, -32, 0, 120) inputBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40) inputBox.Text = "50" inputBox.TextColor3 = Color3.fromRGB(255, 255, 255) inputBox.TextScaled = true inputBox.Font = Enum.Font.Gotham inputBox.BorderSizePixel = 0 inputBox.ClearTextOnFocus = false inputBox.Parent = frame local inputCorner = Instance.new("UICorner") inputCorner.CornerRadius = UDim.new(0, 8) inputCorner.Parent = inputBox -- Tombol Reset local resetBtn = Instance.new("TextButton") resetBtn.Size = UDim2.new(0.85, 0, 0, 35) resetBtn.Position = UDim2.new(0.075, 0, 0, 172) resetBtn.BackgroundColor3 = Color3.fromRGB(180, 40, 40) resetBtn.Text = "RESET DEFAULT" resetBtn.TextColor3 = Color3.fromRGB(255, 255, 255) resetBtn.TextScaled = true resetBtn.Font = Enum.Font.GothamBold resetBtn.BorderSizePixel = 0 resetBtn.Parent = frame local resetCorner = Instance.new("UICorner") resetCorner.CornerRadius = UDim.new(0, 8) resetCorner.Parent = resetBtn -- ===================== -- JUMP LOGIC -- ===================== local jumpPower = 50 local minJump = 0 local maxJump = 500 local function applyJump(value) jumpPower = math.clamp(value, minJump, maxJump) local character = player.Character if character then local humanoid = character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.JumpPower = jumpPower end end -- Update UI local ratio = (jumpPower - minJump) / (maxJump - minJump) sliderFill.Size = UDim2.new(ratio, 0, 1, 0) knob.Position = UDim2.new(ratio, -11, 0.5, -11) jumpValueLabel.Text = "Jump: " .. math.floor(jumpPower) inputBox.Text = tostring(math.floor(jumpPower)) end -- Apply saat spawn/respawn player.CharacterAdded:Connect(function(character) local humanoid = character:WaitForChild("Humanoid") humanoid.JumpPower = jumpPower end) if player.Character then local humanoid = player.Character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.JumpPower = jumpPower end end -- Tombol + dan - btnPlus.MouseButton1Click:Connect(function() applyJump(jumpPower + 10) end) btnMinus.MouseButton1Click:Connect(function() applyJump(jumpPower - 10) end) -- Reset resetBtn.MouseButton1Click:Connect(function() applyJump(50) end) -- Input manual inputBox.FocusLost:Connect(function() local val = tonumber(inputBox.Text) if val then applyJump(val) else inputBox.Text = tostring(math.floor(jumpPower)) end end) -- ===================== -- SLIDER LOGIC -- ===================== local slidingSlider = false knob.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then slidingSlider = true end end) sliderBg.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then slidingSlider = true end end) UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then slidingSlider = false end end) UserInputService.InputChanged:Connect(function(input) if slidingSlider then if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then local sliderPos = sliderBg.AbsolutePosition.X local sliderSize = sliderBg.AbsoluteSize.X local mouseX = input.Position.X local ratio = math.clamp((mouseX - sliderPos) / sliderSize, 0, 1) applyJump(minJump + (maxJump - minJump) * ratio) end end end) -- ===================== -- DRAG SYSTEM -- ===================== local dragging = false local dragStart, startPos titleBar.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 end end) titleBar.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = false end end) UserInputService.InputChanged:Connect(function(input) if dragging then if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch 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 end) -- Init applyJump(50)