Can anyone explain to me why this only run once? It supposed to fire every time the attribute changes, correct? The attribute is given by the server when you join, and I’ve made sure the name is correct. It does print the “newSpeed” when you join but when it changes again it just stops. Adding a loop doesn’t work.
local plr = game.Players.LocalPlayer
local Character = plr.Character or plr.CharacterAdded:Wait()
local newSpeed = Character:GetAttribute("RunSpeed")
print(Character)
if Character:GetAttributeChangedSignal("RunSpeed") then
newSpeed = Character:GetAttribute("RunSpeed")
print(newSpeed)
end