Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Create a UI for the script
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local LowGravityButton = Instance.new("TextButton")
- local CreditsLabel = Instance.new("TextLabel")
- ScreenGui.Name = "LowGravityUI"
- ScreenGui.Parent = game.CoreGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
- Frame.Position = UDim2.new(0.3, 0, 0.3, 0)
- Frame.Size = UDim2.new(0.4, 0, 0.4, 0)
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
- TextLabel.Size = UDim2.new(1, 0, 0.2, 0)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "Low Gravity Script"
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextScaled = true
- LowGravityButton.Parent = Frame
- LowGravityButton.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3)
- LowGravityButton.Position = UDim2.new(0.25, 0, 0.4, 0)
- LowGravityButton.Size = UDim2.new(0.5, 0, 0.2, 0)
- LowGravityButton.Font = Enum.Font.SourceSans
- LowGravityButton.Text = "Enable Low Gravity"
- LowGravityButton.TextColor3 = Color3.new(1, 1, 1)
- LowGravityButton.TextScaled = true
- CreditsLabel.Parent = Frame
- CreditsLabel.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
- CreditsLabel.Position = UDim2.new(0, 0, 0.8, 0)
- CreditsLabel.Size = UDim2.new(1, 0, 0.2, 0)
- CreditsLabel.Font = Enum.Font.SourceSans
- CreditsLabel.Text = "Credits to ChatGPT"
- CreditsLabel.TextColor3 = Color3.new(1, 1, 1)
- CreditsLabel.TextScaled = true
- -- Function to enable low gravity
- LowGravityButton.MouseButton1Click:Connect(function()
- game.Workspace.Gravity = 50
- local Players = game:GetService("Players")
- for _, player in pairs(Players:GetPlayers()) do
- player:SendNotification({
- Title = "Low Gravity Activated",
- Text = "Credits to ChatGPT",
- Duration = 5
- })
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement