--made by hiloshax (PLZ DONT COPY MY SCRIPT) local player = game.Players.LocalPlayer local gui = Instance.new("ScreenGui") gui.Name = "GravityGui" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local blur = Instance.new("BlurEffect") blur.Size = 0 blur.Parent = game.Lighting local main = Instance.new("Frame") main.Size = UDim2.new(0, 300, 0, 140) main.Position = UDim2.new(0.5, -150, 0.5, -70) main.BackgroundColor3 = Color3.fromRGB(20, 20, 20) main.BorderSizePixel = 0 main.BackgroundTransparency = 0.1 main.ZIndex = 1 main.Parent = gui local uicorner = Instance.new("UICorner") uicorner.CornerRadius = UDim.new(0, 12) uicorner.Parent = main local uistroke = Instance.new("UIStroke") uistroke.Color = Color3.fromRGB(200, 0, 255) uistroke.Thickness = 2 uistroke.Parent = main local isLocked = false local dragging, dragInput, dragStart, startPos local function startDragging(input) if isLocked then return end if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position startPos = main.Position blur.Size = 24 end end local function endDragging(input) if isLocked then return end if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false blur.Size = 0 end end local function updateDragInput(input) if isLocked then return end if input.UserInputType == Enum.UserInputType.MouseMovement then dragInput = input end end main.InputBegan:Connect(startDragging) main.InputEnded:Connect(endDragging) main.InputChanged:Connect(updateDragInput) game:GetService("UserInputService").InputChanged:Connect(function(input) if isLocked or not dragging or input ~= dragInput then return end if input.UserInputType == Enum.UserInputType.MouseMovement then local delta = input.Position - dragStart main.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end) local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 20) title.Position = UDim2.new(0, 0, 0, 0) title.BackgroundTransparency = 1 title.Text = "Gravity Controller --Made By HilosHAX--" title.TextColor3 = Color3.fromRGB(255, 255, 255) title.Font = Enum.Font.GothamBold title.TextSize = 14 title.ZIndex = 2 title.Parent = main local gravityDisplay = Instance.new("TextLabel") gravityDisplay.Size = UDim2.new(1, 0, 0, 20) gravityDisplay.Position = UDim2.new(0, 0, 0, 20) gravityDisplay.BackgroundTransparency = 1 gravityDisplay.Text = "Gravity: 1" gravityDisplay.TextColor3 = Color3.fromRGB(255, 255, 255) gravityDisplay.Font = Enum.Font.GothamSemibold gravityDisplay.TextSize = 16 gravityDisplay.ZIndex = 2 gravityDisplay.Parent = main local slider = Instance.new("Frame") slider.Size = UDim2.new(0.8, 0, 0, 6) slider.Position = UDim2.new(0.1, 0, 0, 60) slider.BackgroundColor3 = Color3.fromRGB(90, 90, 90) slider.BorderSizePixel = 0 slider.ZIndex = 2 slider.Parent = main local knob = Instance.new("Frame") knob.Size = UDim2.new(0, 16, 0, 16) knob.Position = UDim2.new(0, 0, 0, -5) knob.BackgroundColor3 = Color3.fromRGB(255, 50, 255) knob.ZIndex = 3 knob.Parent = slider local knobCorner = Instance.new("UICorner") knobCorner.CornerRadius = UDim.new(1, 0) knobCorner.Parent = knob local draggingKnob = false knob.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then draggingKnob = true end end) knob.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then draggingKnob = false end end) game:GetService("UserInputService").InputChanged:Connect(function(input) if not draggingKnob or input.UserInputType ~= Enum.UserInputType.MouseMovement then return end local sliderAbsPos = slider.AbsolutePosition.X local sliderAbsSize = slider.AbsoluteSize.X local mousePos = input.Position.X local relativePos = math.clamp((mousePos - sliderAbsPos) / sliderAbsSize, 0, 1) knob.Position = UDim2.new(relativePos, -8, 0, -5) local gravity = math.floor(relativePos * 9000) gravityDisplay.Text = "Gravity: " .. tostring(gravity) game.Workspace.Gravity = gravity end) local resetButton = Instance.new("TextButton") resetButton.Size = UDim2.new(0.8, 0, 0, 24) resetButton.Position = UDim2.new(0.1, 0, 0, 85) resetButton.BackgroundColor3 = Color3.fromRGB(120, 0, 180) resetButton.Text = "Reset Gravity" resetButton.TextColor3 = Color3.fromRGB(255, 255, 255) resetButton.Font = Enum.Font.GothamBold resetButton.TextSize = 14 resetButton.ZIndex = 2 resetButton.Parent = main local buttonCorner = Instance.new("UICorner") buttonCorner.CornerRadius = UDim.new(0, 6) buttonCorner.Parent = resetButton local clickSound = Instance.new("Sound") clickSound.SoundId = "rbxassetid://18439146929" clickSound.Volume = 1 clickSound.Parent = resetButton resetButton.MouseButton1Click:Connect(function() if isLocked then return end game.Workspace.Gravity = 196 knob.Position = UDim2.new((196 / 9000), -8, 0, -5) gravityDisplay.Text = "Gravity: 196" clickSound:Play() end) local keybindLabel = Instance.new("TextLabel") keybindLabel.Size = UDim2.new(1, 0, 0, 20) keybindLabel.Position = UDim2.new(0, 0, 0, 115) keybindLabel.BackgroundTransparency = 1 keybindLabel.Text = "GUI Lock Keybind is RightShift" keybindLabel.TextColor3 = Color3.fromRGB(200, 200, 200) keybindLabel.Font = Enum.Font.Gotham keybindLabel.TextSize = 12 keybindLabel.ZIndex = 2 keybindLabel.Parent = main game:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessedEvent) if gameProcessedEvent then return end if input.KeyCode == Enum.KeyCode.RightShift then isLocked = not isLocked uistroke.Color = isLocked and Color3.fromRGB(100, 100, 100) or Color3.fromRGB(200, 0, 255) end end)