legstatus:GetPropertyChangedSignal("Value"):Connect(function()
pcall(function()
if legstatus.Value == 1 then
walk.AnimationId = legb2
idle.AnimationId = idleanim1
idle2.AnimationId = idleanim2
elseif legstatus.Value == 2 then
walk.AnimationId = legb3
idle.AnimationId = legb4
idle2.AnimationId = legb5
elseif legstatus.Value ~= 1 and legstatus.Value ~= 2 then
walk.AnimationId = walkanim
idle.AnimationId = idleanim1
idle2.AnimationId = idleanim2
end
end)
end)
This is my code. I have a system in place where if a player has a missing or broken leg it will change their idle / walking animation. However for some reason upon changing it the player will be stuck in the regular walking animation whenever they stand still. This only takes effect on other peoples clients (not their own) Why is this and how can I fix it?
(the code is run from a local script)