You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? I would like my animation to stop when it is over
-
What is the issue? The player will see themselves getting up after a heal so will the other players, the server will not, the server will see the player getting up over and over again, this is the exact opposite if it were to be a local script, server would see them get up (once) client would see them get up infinitely
-
What solutions have you tried so far? I have looked for solutions on the dev hub, none help, weight changing does not fix it nor does trying to change the humanoid state type.
repeat wait() until script.Parent.Parent.Name ~= "ParenterTagOWHF8I"
local hum = script.Parent.Parent:WaitForChild("Humanoid")
local Revive = hum:LoadAnimation(script.Revive)
local res2 = workspace.TeranceBot735.Humanoid:LoadAnimation(script.Revive)
Revive.Looped = false
script.Parent:GetPropertyChangedSignal("Value"):Connect(function()
if script.Parent.Value == false then
Revive:Play()
Revive:AdjustSpeed(2)
wait(Revive.Length)
for i,v in pairs(hum:GetPlayingAnimationTracks()) do
v:Stop()
end
end
end)