Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if getgenv().GlassJumpUI_Loaded then return end
- getgenv().GlassJumpUI_Loaded = true
- local TweenService = game:GetService("TweenService")
- local Players = game:GetService("Players")
- local UIS = game:GetService("UserInputService")
- local player = Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- local screenParent = playerGui
- pcall(function() screenParent = game.CoreGui end)
- getgenv().JumpUI_Settings = getgenv().JumpUI_Settings or {
- Size = 120,
- X = 0.1,
- Y = 0.85
- }
- local function applySaved()
- return UDim2.new(0, JumpUI_Settings.Size, 0, JumpUI_Settings.Size),
- UDim2.new(JumpUI_Settings.X, -60, JumpUI_Settings.Y, -120)
- end
- local currentSize, currentPos = applySaved()
- local jumpBtn
- task.spawn(function()
- while wait(.2) do
- for _,v in ipairs(playerGui:GetDescendants()) do
- if v.Name=="JumpButton" and v:IsA("ImageButton") then
- jumpBtn = v
- end
- end
- if jumpBtn then break end
- end
- end)
- local function updateJump()
- if jumpBtn then
- jumpBtn.Size = currentSize
- jumpBtn.Position = currentPos
- end
- end
- local gui = Instance.new("ScreenGui", screenParent)
- gui.ResetOnSpawn = false
- gui.IgnoreGuiInset = true
- -- DARK BACK + NEON STROKE
- local function neonStroke(obj)
- local st = Instance.new("UIStroke", obj)
- st.Thickness = 2
- st.Color = Color3.fromRGB(0,255,255)
- st.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
- st.Transparency = .15
- end
- -- ✅ OPEN BUTTON DARK NEON
- local openBtn = Instance.new("TextButton", gui)
- openBtn.Size = UDim2.new(0,70,0,30)
- openBtn.Position = UDim2.new(0.03,0,0.16,0)
- openBtn.Text = "Kitoo"
- openBtn.TextScaled = true
- openBtn.Font = Enum.Font.GothamSemibold
- openBtn.TextColor3 = Color3.fromRGB(0,255,255)
- openBtn.BackgroundColor3 = Color3.fromRGB(10,10,15)
- openBtn.BackgroundTransparency = .2
- openBtn.AutoButtonColor = false
- Instance.new("UICorner", openBtn).CornerRadius = UDim.new(0,18)
- neonStroke(openBtn)
- -- ✅ FRAME NEON
- local frame = Instance.new("Frame", gui)
- frame.Size = UDim2.new(0,270,0,320)
- frame.Position = UDim2.new(0.5,-135,0.5,-160)
- frame.BackgroundColor3 = Color3.fromRGB(5,5,12)
- frame.BackgroundTransparency = .25
- frame.Visible = false
- Instance.new("UICorner", frame).CornerRadius = UDim.new(0,18)
- neonStroke(frame)
- local scroll = Instance.new("ScrollingFrame", frame)
- scroll.Size = UDim2.new(1,0,1,0)
- scroll.BackgroundTransparency = 1
- scroll.BorderSizePixel = 0
- scroll.ScrollBarThickness = 5
- scroll.AutomaticCanvasSize = Enum.AutomaticSize.Y
- local layout = Instance.new("UIListLayout", scroll)
- layout.Padding = UDim.new(0,10)
- layout.SortOrder = Enum.SortOrder.LayoutOrder
- local function title(text)
- local t = Instance.new("TextLabel", scroll)
- t.Size = UDim2.new(1,-8,0,30)
- t.Text = text
- t.Font = Enum.Font.GothamBlack
- t.BackgroundTransparency = 1
- t.TextScaled = true
- t.TextColor3 = Color3.fromRGB(0,255,255)
- end
- title("Jump Controller")
- -- ✅ SLIDER DARK NEON + ANIMASI
- local function slider(name)
- local h = Instance.new("Frame", scroll)
- h.Size = UDim2.new(1,-10,0,55)
- h.BackgroundTransparency =1
- local lab = Instance.new("TextLabel", h)
- lab.Size = UDim2.new(1,0,0,20)
- lab.Text = name
- lab.BackgroundTransparency = 1
- lab.TextColor3 = Color3.fromRGB(0,255,255)
- -- neon bar
- local bar = Instance.new("Frame", h)
- bar.Position = UDim2.new(0,0,0,28)
- bar.Size = UDim2.new(1,0,0,12)
- bar.BackgroundColor3 = Color3.fromRGB(15,15,25)
- bar.BackgroundTransparency = 0.4
- Instance.new("UICorner", bar).CornerRadius = UDim.new(0,8)
- neonStroke(bar)
- local fill = Instance.new("Frame", bar)
- fill.Size = UDim2.new(0,0,1,0)
- fill.BackgroundColor3 = Color3.fromRGB(0,255,255)
- fill.BackgroundTransparency = .2
- Instance.new("UICorner", fill).CornerRadius = UDim.new(0,8)
- local knob = Instance.new("Frame", bar)
- knob.Size = UDim2.new(0,18,1,0)
- knob.BackgroundColor3 = Color3.fromRGB(0,255,255)
- Instance.new("UICorner", knob).CornerRadius = UDim.new(0,8)
- neonStroke(knob)
- local dragging=false
- local function updateSlider(p)
- -- knob tween
- TweenService:Create(knob,TweenInfo.new(.15),{Position = UDim2.new(p,-9,0,0)}):Play()
- TweenService:Create(fill,TweenInfo.new(.15),{Size=UDim2.new(p,0,1,0)}):Play()
- if name=="Size" then
- JumpUI_Settings.Size = 100 + (200-100)*p
- currentSize = UDim2.new(0,JumpUI_Settings.Size,0,JumpUI_Settings.Size)
- elseif name=="Horizontal" then
- JumpUI_Settings.X = p
- currentPos = UDim2.new(p,-60,currentPos.Y.Scale,currentPos.Y.Offset)
- elseif name=="Vertical" then
- JumpUI_Settings.Y = p
- currentPos = UDim2.new(currentPos.X.Scale,currentPos.X.Offset,p,-120)
- end
- updateJump()
- end
- local function move(input)
- local p = math.clamp((input.Position.X-bar.AbsolutePosition.X)/bar.AbsoluteSize.X,0,1)
- updateSlider(p)
- end
- bar.InputBegan:Connect(function(a)
- if a.UserInputType==Enum.UserInputType.Touch or a.UserInputType==Enum.UserInputType.MouseButton1 then dragging=true end
- end)
- UIS.InputEnded:Connect(function(a)
- if a.UserInputType==Enum.UserInputType.Touch or a.UserInputType==Enum.UserInputType.MouseButton1 then dragging=false end
- end)
- UIS.InputChanged:Connect(function(a)
- if dragging and (a.UserInputType==Enum.UserInputType.Touch or a.UserInputType==Enum.UserInputType.MouseMovement) then move(a) end
- end)
- end
- slider("Size")
- slider("Horizontal")
- slider("Vertical")
- -- ✅ RESET
- local resetBtn = Instance.new("TextButton", scroll)
- resetBtn.Size = UDim2.new(1,-10,0,38)
- resetBtn.Text = "RESET"
- resetBtn.Font = Enum.Font.GothamBold
- resetBtn.TextColor3 = Color3.fromRGB(0,255,255)
- resetBtn.BackgroundColor3 = Color3.fromRGB(10,10,18)
- resetBtn.BackgroundTransparency = .2
- Instance.new("UICorner", resetBtn)
- neonStroke(resetBtn)
- resetBtn.MouseButton1Click:Connect(function()
- JumpUI_Settings = {Size=120,X=0.1,Y=0.85}
- currentSize,currentPos = applySaved()
- updateJump()
- end)
- -- ✅ CLOSE
- local closeBtn = Instance.new("TextButton", scroll)
- closeBtn.Size = UDim2.new(1,-10,0,38)
- closeBtn.Text = "CLOSE"
- closeBtn.TextColor3 = Color3.fromRGB(0,255,255)
- closeBtn.BackgroundColor3 = Color3.fromRGB(10,10,18)
- closeBtn.BackgroundTransparency = .2
- Instance.new("UICorner", closeBtn)
- neonStroke(closeBtn)
- closeBtn.MouseButton1Click:Connect(function()
- frame.Visible=false
- openBtn.Visible=true
- end)
- openBtn.MouseButton1Click:Connect(function()
- openBtn.Visible=false
- frame.Visible=true
- end)
- -- ✅ Auto Hide open button saat bergerak
- task.spawn(function()
- local hum = player.Character and player.Character:FindFirstChild("Humanoid")
- player.CharacterAdded:Connect(function(c) hum = c:WaitForChild("Humanoid") end)
- local idleTime = 0
- while task.wait(.2) do
- if frame.Visible then idleTime = 0 continue end
- if hum and hum.MoveDirection.Magnitude>0 then openBtn.Visible=false idleTime=0 else
- idleTime+=.2
- if idleTime>=5 then openBtn.Visible=true end
- end
- end
- end)
- updateJump()
Advertisement
Add Comment
Please, Sign In to add comment