
1.1k Views
824 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
lock walkspeed
-- LocalScript (StarterPlayerScripts)
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
-- Setup character/humanoid
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
-- Defaults
local desiredWalkSpeed = 32
local defaultWalkSpeed = humanoid.WalkSpeed
local walkSpeedLocked = true
local toggleKey = Enum.KeyCode.RightControl
local waitingForKeyInput = false
-- === GUI ===
local gui = Instance.new("ScreenGui")
gui.Name = "WalkSpeedGui"
gui.ResetOnSpawn = false
gui.Parent = player:WaitForChild("PlayerGui")
local frame = Instance.new("Frame")
frame.Size = UDim2.fromOffset(300, 150)
frame.Position = UDim2.new(0.5, -150, 0.5, -75)
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.BackgroundTransparency = 0.1
frame.BorderSizePixel = 0
frame.AnchorPoint = Vector2.new(0.5, 0.5)
frame.Active = true
frame.Draggable = true
frame.Parent = gui
local toggleButton = Instance.new("TextButton")
toggleButton.Size = UDim2.fromOffset(140, 40)
toggleButton.Position = UDim2.fromOffset(10, 10)
toggleButton.BackgroundColor3 = Color3.fromRGB(40, 90, 180)
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!