: For more advanced GUI design, including animations and layouts, check out the Intro to GUI tutorial on YouTube .
local button = script.Parent local player = game.Players.LocalPlayer local sprinting = false button.MouseButton1Click:Connect(function() sprinting = not sprinting local character = player.Character if character and character:FindFirstChild("Humanoid") then if sprinting then character.Humanoid.WalkSpeed = 32 -- Faster speed button.Text = "Sprint: ON" button.BackgroundColor3 = Color3.fromRGB(0, 255, 0) else character.Humanoid.WalkSpeed = 16 -- Default speed button.Text = "Sprint: OFF" button.BackgroundColor3 = Color3.fromRGB(255, 0, 0) end end end) Use code with caution. Copied to clipboard Key Considerations Untitled Tag Game Script GUI
: Right-click the new ScreenGui > Insert Object > Frame . This acts as your menu background. : For more advanced GUI design, including animations
To create a functional interface in Roblox Studio, you must use a ScreenGui located in the folder. This acts as your menu background
: For more advanced GUI design, including animations and layouts, check out the Intro to GUI tutorial on YouTube .
local button = script.Parent local player = game.Players.LocalPlayer local sprinting = false button.MouseButton1Click:Connect(function() sprinting = not sprinting local character = player.Character if character and character:FindFirstChild("Humanoid") then if sprinting then character.Humanoid.WalkSpeed = 32 -- Faster speed button.Text = "Sprint: ON" button.BackgroundColor3 = Color3.fromRGB(0, 255, 0) else character.Humanoid.WalkSpeed = 16 -- Default speed button.Text = "Sprint: OFF" button.BackgroundColor3 = Color3.fromRGB(255, 0, 0) end end end) Use code with caution. Copied to clipboard Key Considerations
: Right-click the new ScreenGui > Insert Object > Frame . This acts as your menu background.
To create a functional interface in Roblox Studio, you must use a ScreenGui located in the folder.