Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- made By ChatGPT
- -- Create a ScreenGui to hold the GUI elements
- local gui = Instance.new("ScreenGui")
- gui.Parent = game.CoreGui
- gui.Name = "WalkJumpChanger"
- -- Create a Frame to contain the GUI elements
- local frame = Instance.new("Frame")
- frame.Parent = gui
- frame.BackgroundColor3 = Color3.new(0, 0, 0)
- frame.BackgroundTransparency = 0.5
- frame.Position = UDim2.new(0.5, -100, 0.5, -75)
- frame.Size = UDim2.new(0, 200, 0, 150)
- frame.Active = true
- frame.Draggable = true
- -- Create a TextLabel for walkspeed instructions
- local walkspeedLabel = Instance.new("TextLabel")
- walkspeedLabel.Parent = frame
- walkspeedLabel.Size = UDim2.new(1, 0, 0.25, 0)
- walkspeedLabel.BackgroundTransparency = 1
- walkspeedLabel.Text = "Enter Walkspeed:"
- walkspeedLabel.TextScaled = true
- -- Create a TextBox for walkspeed input
- local walkspeedTextBox = Instance.new("TextBox")
- walkspeedTextBox.Parent = frame
- walkspeedTextBox.Size = UDim2.new(0.8, 0, 0.15, 0)
- walkspeedTextBox.Position = UDim2.new(0.1, 0, 0.25, 0)
- walkspeedTextBox.TextScaled = true
- walkspeedTextBox.PlaceholderText = "Enter Walkspeed..."
- walkspeedTextBox.ClearTextOnFocus = true
- -- Create a TextButton to apply walkspeed
- local applyWalkspeedButton = Instance.new("TextButton")
- applyWalkspeedButton.Parent = frame
- applyWalkspeedButton.Size = UDim2.new(0.6, 0, 0.1, 0)
- applyWalkspeedButton.Position = UDim2.new(0.2, 0, 0.4, 0)
- applyWalkspeedButton.BackgroundColor3 = Color3.new(0, 1, 0)
- applyWalkspeedButton.Text = "Apply Walkspeed"
- applyWalkspeedButton.TextScaled = true
- -- Create a TextLabel for jump power instructions
- local jumpPowerLabel = Instance.new("TextLabel")
- jumpPowerLabel.Parent = frame
- jumpPowerLabel.Size = UDim2.new(1, 0, 0.25, 0)
- jumpPowerLabel.Position = UDim2.new(0, 0, 0.55, 0)
- jumpPowerLabel.BackgroundTransparency = 1
- jumpPowerLabel.Text = "Enter Jump Power:"
- jumpPowerLabel.TextScaled = true
- -- Create a TextBox for jump power input
- local jumpPowerTextBox = Instance.new("TextBox")
- jumpPowerTextBox.Parent = frame
- jumpPowerTextBox.Size = UDim2.new(0.8, 0, 0.15, 0)
- jumpPowerTextBox.Position = UDim2.new(0.1, 0, 0.7, 0)
- jumpPowerTextBox.TextScaled = true
- jumpPowerTextBox.PlaceholderText = "Enter Jump Power..."
- jumpPowerTextBox.ClearTextOnFocus = true
- -- Create a TextButton to apply jump power
- local applyJumpPowerButton = Instance.new("TextButton")
- applyJumpPowerButton.Parent = frame
- applyJumpPowerButton.Size = UDim2.new(0.6, 0, 0.1, 0)
- applyJumpPowerButton.Position = UDim2.new(0.2, 0, 0.85, 0)
- applyJumpPowerButton.BackgroundColor3 = Color3.new(0, 1, 0)
- applyJumpPowerButton.Text = "Apply Jump Power"
- applyJumpPowerButton.TextScaled = true
- -- Function to change the walkspeed when the button is clicked
- applyWalkspeedButton.MouseButton1Click:Connect(function()
- local walkspeed = tonumber(walkspeedTextBox.Text)
- if walkspeed then
- for _, player in ipairs(game.Players:GetPlayers()) do
- player.Character.Humanoid.WalkSpeed = walkspeed
- end
- else
- print("Invalid walkspeed entered.")
- end
- end)
- -- Function to change the jump power when the button is clicked
- applyJumpPowerButton.MouseButton1Click:Connect(function()
- local jumpPower = tonumber(jumpPowerTextBox.Text)
- if jumpPower then
- for _, player in ipairs(game.Players:GetPlayers()) do
- player.Character.Humanoid.JumpPower = jumpPower
- end
- else
- print("Invalid jump power entered.")
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement