RXYSETTINGS

Jump Settings

Nov 11th, 2025
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.85 KB | Source Code | 0 0
  1. if getgenv().GlassJumpUI_Loaded then return end
  2. getgenv().GlassJumpUI_Loaded = true
  3.  
  4. local TweenService = game:GetService("TweenService")
  5. local Players = game:GetService("Players")
  6. local UIS = game:GetService("UserInputService")
  7. local player = Players.LocalPlayer
  8. local playerGui = player:WaitForChild("PlayerGui")
  9.  
  10. local screenParent = playerGui
  11. pcall(function() screenParent = game.CoreGui end)
  12.  
  13. getgenv().JumpUI_Settings = getgenv().JumpUI_Settings or {
  14.     Size = 120,
  15.     X = 0.1,
  16.     Y = 0.85
  17. }
  18.  
  19. local function applySaved()
  20.     return UDim2.new(0, JumpUI_Settings.Size, 0, JumpUI_Settings.Size),
  21.            UDim2.new(JumpUI_Settings.X, -60, JumpUI_Settings.Y, -120)
  22. end
  23.  
  24. local currentSize, currentPos = applySaved()
  25.  
  26. local jumpBtn
  27. task.spawn(function()
  28.     while wait(.2) do
  29.         for _,v in ipairs(playerGui:GetDescendants()) do
  30.             if v.Name=="JumpButton" and v:IsA("ImageButton") then
  31.                 jumpBtn = v
  32.             end
  33.         end
  34.         if jumpBtn then break end
  35.     end
  36. end)
  37.  
  38. local function updateJump()
  39.     if jumpBtn then
  40.         jumpBtn.Size = currentSize
  41.         jumpBtn.Position = currentPos
  42.     end
  43. end
  44.  
  45. local gui = Instance.new("ScreenGui", screenParent)
  46. gui.ResetOnSpawn = false
  47. gui.IgnoreGuiInset = true
  48.  
  49. -- DARK BACK + NEON STROKE
  50. local function neonStroke(obj)
  51.     local st = Instance.new("UIStroke", obj)
  52.     st.Thickness = 2
  53.     st.Color = Color3.fromRGB(0,255,255)
  54.     st.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  55.     st.Transparency = .15
  56. end
  57.  
  58. -- ✅ OPEN BUTTON DARK NEON
  59. local openBtn = Instance.new("TextButton", gui)
  60. openBtn.Size = UDim2.new(0,70,0,30)
  61. openBtn.Position = UDim2.new(0.03,0,0.16,0)
  62. openBtn.Text = "Kitoo"
  63. openBtn.TextScaled = true
  64. openBtn.Font = Enum.Font.GothamSemibold
  65. openBtn.TextColor3 = Color3.fromRGB(0,255,255)
  66.  
  67. openBtn.BackgroundColor3 = Color3.fromRGB(10,10,15)
  68. openBtn.BackgroundTransparency = .2
  69. openBtn.AutoButtonColor = false
  70.  
  71. Instance.new("UICorner", openBtn).CornerRadius = UDim.new(0,18)
  72. neonStroke(openBtn)
  73.  
  74. -- ✅ FRAME NEON
  75. local frame = Instance.new("Frame", gui)
  76. frame.Size = UDim2.new(0,270,0,320)
  77. frame.Position = UDim2.new(0.5,-135,0.5,-160)
  78. frame.BackgroundColor3 = Color3.fromRGB(5,5,12)
  79. frame.BackgroundTransparency = .25
  80. frame.Visible = false
  81. Instance.new("UICorner", frame).CornerRadius = UDim.new(0,18)
  82. neonStroke(frame)
  83.  
  84. local scroll = Instance.new("ScrollingFrame", frame)
  85. scroll.Size = UDim2.new(1,0,1,0)
  86. scroll.BackgroundTransparency = 1
  87. scroll.BorderSizePixel = 0
  88. scroll.ScrollBarThickness = 5
  89. scroll.AutomaticCanvasSize = Enum.AutomaticSize.Y
  90.  
  91. local layout = Instance.new("UIListLayout", scroll)
  92. layout.Padding = UDim.new(0,10)
  93. layout.SortOrder = Enum.SortOrder.LayoutOrder
  94.  
  95. local function title(text)
  96.     local t = Instance.new("TextLabel", scroll)
  97.     t.Size = UDim2.new(1,-8,0,30)
  98.     t.Text = text
  99.     t.Font = Enum.Font.GothamBlack
  100.     t.BackgroundTransparency = 1
  101.     t.TextScaled = true
  102.     t.TextColor3 = Color3.fromRGB(0,255,255)
  103. end
  104.  
  105. title("Jump Controller")
  106.  
  107. -- ✅ SLIDER DARK NEON + ANIMASI
  108. local function slider(name)
  109.     local h = Instance.new("Frame", scroll)
  110.     h.Size = UDim2.new(1,-10,0,55)
  111.     h.BackgroundTransparency =1
  112.  
  113.     local lab = Instance.new("TextLabel", h)
  114.     lab.Size = UDim2.new(1,0,0,20)
  115.     lab.Text = name
  116.     lab.BackgroundTransparency = 1
  117.     lab.TextColor3 = Color3.fromRGB(0,255,255)
  118.  
  119.     -- neon bar
  120.     local bar = Instance.new("Frame", h)
  121.     bar.Position = UDim2.new(0,0,0,28)
  122.     bar.Size = UDim2.new(1,0,0,12)
  123.     bar.BackgroundColor3 = Color3.fromRGB(15,15,25)
  124.     bar.BackgroundTransparency = 0.4
  125.     Instance.new("UICorner", bar).CornerRadius = UDim.new(0,8)
  126.  
  127.     neonStroke(bar)
  128.  
  129.     local fill = Instance.new("Frame", bar)
  130.     fill.Size = UDim2.new(0,0,1,0)
  131.     fill.BackgroundColor3 = Color3.fromRGB(0,255,255)
  132.     fill.BackgroundTransparency = .2
  133.     Instance.new("UICorner", fill).CornerRadius = UDim.new(0,8)
  134.  
  135.     local knob = Instance.new("Frame", bar)
  136.     knob.Size = UDim2.new(0,18,1,0)
  137.     knob.BackgroundColor3 = Color3.fromRGB(0,255,255)
  138.     Instance.new("UICorner", knob).CornerRadius = UDim.new(0,8)
  139.     neonStroke(knob)
  140.  
  141.     local dragging=false
  142.  
  143.     local function updateSlider(p)
  144.         -- knob tween
  145.         TweenService:Create(knob,TweenInfo.new(.15),{Position = UDim2.new(p,-9,0,0)}):Play()
  146.         TweenService:Create(fill,TweenInfo.new(.15),{Size=UDim2.new(p,0,1,0)}):Play()
  147.  
  148.         if name=="Size" then
  149.             JumpUI_Settings.Size = 100 + (200-100)*p
  150.             currentSize = UDim2.new(0,JumpUI_Settings.Size,0,JumpUI_Settings.Size)
  151.         elseif name=="Horizontal" then
  152.             JumpUI_Settings.X = p
  153.             currentPos = UDim2.new(p,-60,currentPos.Y.Scale,currentPos.Y.Offset)
  154.         elseif name=="Vertical" then
  155.             JumpUI_Settings.Y = p
  156.             currentPos = UDim2.new(currentPos.X.Scale,currentPos.X.Offset,p,-120)
  157.         end
  158.         updateJump()
  159.     end
  160.  
  161.     local function move(input)
  162.         local p = math.clamp((input.Position.X-bar.AbsolutePosition.X)/bar.AbsoluteSize.X,0,1)
  163.         updateSlider(p)
  164.     end
  165.  
  166.     bar.InputBegan:Connect(function(a)
  167.         if a.UserInputType==Enum.UserInputType.Touch or a.UserInputType==Enum.UserInputType.MouseButton1 then dragging=true end
  168.     end)
  169.  
  170.     UIS.InputEnded:Connect(function(a)
  171.         if a.UserInputType==Enum.UserInputType.Touch or a.UserInputType==Enum.UserInputType.MouseButton1 then dragging=false end
  172.     end)
  173.  
  174.     UIS.InputChanged:Connect(function(a)
  175.         if dragging and (a.UserInputType==Enum.UserInputType.Touch or a.UserInputType==Enum.UserInputType.MouseMovement) then move(a) end
  176.     end)
  177. end
  178.  
  179. slider("Size")
  180. slider("Horizontal")
  181. slider("Vertical")
  182.  
  183. -- ✅ RESET
  184. local resetBtn = Instance.new("TextButton", scroll)
  185. resetBtn.Size = UDim2.new(1,-10,0,38)
  186. resetBtn.Text = "RESET"
  187. resetBtn.Font = Enum.Font.GothamBold
  188. resetBtn.TextColor3 = Color3.fromRGB(0,255,255)
  189. resetBtn.BackgroundColor3 = Color3.fromRGB(10,10,18)
  190. resetBtn.BackgroundTransparency = .2
  191. Instance.new("UICorner", resetBtn)
  192. neonStroke(resetBtn)
  193.  
  194. resetBtn.MouseButton1Click:Connect(function()
  195.     JumpUI_Settings = {Size=120,X=0.1,Y=0.85}
  196.     currentSize,currentPos = applySaved()
  197.     updateJump()
  198. end)
  199.  
  200. -- ✅ CLOSE
  201. local closeBtn = Instance.new("TextButton", scroll)
  202. closeBtn.Size = UDim2.new(1,-10,0,38)
  203. closeBtn.Text = "CLOSE"
  204. closeBtn.TextColor3 = Color3.fromRGB(0,255,255)
  205. closeBtn.BackgroundColor3 = Color3.fromRGB(10,10,18)
  206. closeBtn.BackgroundTransparency = .2
  207. Instance.new("UICorner", closeBtn)
  208. neonStroke(closeBtn)
  209.  
  210. closeBtn.MouseButton1Click:Connect(function()
  211.     frame.Visible=false
  212.     openBtn.Visible=true
  213. end)
  214.  
  215. openBtn.MouseButton1Click:Connect(function()
  216.     openBtn.Visible=false
  217.     frame.Visible=true
  218. end)
  219.  
  220. -- ✅ Auto Hide open button saat bergerak
  221. task.spawn(function()
  222.     local hum = player.Character and player.Character:FindFirstChild("Humanoid")
  223.     player.CharacterAdded:Connect(function(c) hum = c:WaitForChild("Humanoid") end)
  224.  
  225.     local idleTime = 0
  226.     while task.wait(.2) do
  227.         if frame.Visible then idleTime = 0 continue end
  228.         if hum and hum.MoveDirection.Magnitude>0 then openBtn.Visible=false idleTime=0 else
  229.             idleTime+=.2
  230.             if idleTime>=5 then openBtn.Visible=true end
  231.         end
  232.     end
  233. end)
  234.  
  235. updateJump()
  236.  
Advertisement
Add Comment
Please, Sign In to add comment