Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Changed event on Player's WalkSpeed? (EASY)

Asked by 5 years ago

I need help D: it isntt working

    Char:WaitForChild("Humanoid").WalkSpeed.Changed:Connect(function()
        WalkSpeed.Value = Char:WaitForChild("Humanoid").WalkSpeed
    end)
end)

1 answer

Log in to vote
0
Answered by 5 years ago

Numbers don't have changed events. Objects do!

Char.Humanoid.Changed:Connect(function(prop)
    if prop == "WalkSpeed" then
        -- code 
    end
end)
Ad

Answer this question