local player = game:GetService("Players").LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local walkSpeed = 0 -- variable to hold the player's walkspeed
local function UpdateWalkspeed() -- function to update the "walkSpeed" variable
walkSpeed = humanoid.WalkSpeed
script.Parent.Text = walkSpeed
end
UpdateWalkspeed() -- set the variable the player's walkspeed
humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(UpdateWalkspeed) -- gets the player's walkspeed when it changes
local player = game:GetService("Players").LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local h = char:WaitForChild("Humanoid")
script.Parent.Text = h.WalkSpeed
local player = game:GetService("Players").LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local h = char:WaitForChild("Humanoid")
script.Parent.Text = tostring(h.WalkSpeed)