Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
- ]]
- -- Insert a Script into StarterPlayer -> StarterPlayerScripts
- local player = game.Players.LocalPlayer
- local gui = player.PlayerGui
- -- Function to create a notification
- local function createNotification(message)
- local notification = Instance.new("ScreenGui")
- notification.Name = "Notification"
- notification.Parent = gui
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 200, 0, 50)
- frame.Position = UDim2.new(0.5, -100, 0, 10)
- frame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
- frame.BorderSizePixel = 2
- frame.Parent = notification
- local textLabel = Instance.new("TextLabel")
- textLabel.Text = message
- textLabel.Size = UDim2.new(1, 0, 1, 0)
- textLabel.TextScaled = true
- textLabel.Parent = frame
- wait(5) -- Display the notification for 5 seconds
- notification:Destroy()
- end
- -- GUI for speed and walk changer
- local speedWalkGui = Instance.new("ScreenGui")
- speedWalkGui.Parent = gui
- speedWalkGui.IgnoreGuiInset = true -- Ensure the GUI is not affected by mobile safe zones
- speedWalkGui.Enabled = true
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 200, 0, 140)
- frame.Position = UDim2.new(0.5, -100, 0, 10)
- frame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
- frame.BorderSizePixel = 2
- frame.Parent = speedWalkGui
- local walkSpeedTextBox = Instance.new("TextBox")
- walkSpeedTextBox.Position = UDim2.new(0, 10, 0, 10)
- walkSpeedTextBox.Size = UDim2.new(0, 80, 0, 20)
- walkSpeedTextBox.Parent = frame
- local jumpPowerTextBox = Instance.new("TextBox")
- jumpPowerTextBox.Position = UDim2.new(0, 120, 0, 10)
- jumpPowerTextBox.Size = UDim2.new(0, 80, 0, 20)
- jumpPowerTextBox.Parent = frame
- local applyButton = Instance.new("TextButton")
- applyButton.Text = "Apply Changes"
- applyButton.Position = UDim2.new(0.5, -80, 0, 40)
- applyButton.Size = UDim2.new(0, 160, 0, 20)
- applyButton.Parent = frame
- local resetButton = Instance.new("TextButton")
- resetButton.Text = "Reset Speed & Jump"
- resetButton.Position = UDim2.new(0.5, -80, 0, 70)
- resetButton.Size = UDim2.new(0, 160, 0, 20)
- resetButton.Parent = frame
- local toggleButton = Instance.new("TextButton")
- toggleButton.Text = "Close GUI"
- toggleButton.Position = UDim2.new(0.5, -80, 0, 110)
- toggleButton.Size = UDim2.new(0, 160, 0, 20)
- toggleButton.Parent = frame
- -- Function to handle button click
- applyButton.MouseButton1Click:Connect(function()
- local walkSpeed = tonumber(walkSpeedTextBox.Text) or 16
- local jumpPower = tonumber(jumpPowerTextBox.Text) or 50
- local character = player.Character
- if character and character:FindFirstChildOfClass("Humanoid") then
- character:FindFirstChildOfClass("Humanoid").WalkSpeed = walkSpeed
- character:FindFirstChildOfClass("Humanoid").JumpPower = jumpPower
- end
- createNotification("Changes applied!")
- end)
- -- Function to handle reset button click
- resetButton.MouseButton1Click:Connect(function()
- walkSpeedTextBox.Text = ""
- jumpPowerTextBox.Text = ""
- local character = player.Character
- if character and character:FindFirstChildOfClass("Humanoid") then
- character:FindFirstChildOfClass("Humanoid").WalkSpeed = 16
- character:FindFirstChildOfClass("Humanoid").JumpPower = 50
- end
- createNotification("Speed and Jump reset!")
- end)
- -- Function to handle toggle button click
- toggleButton.MouseButton1Click:Connect(function()
- speedWalkGui.Enabled = not speedWalkGui.Enabled
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement