✓ Accepted answer
In your snippet of code, you attempt to call LoadAnimation:Stopped(). There is no Stopped function in the Roblox API, which is why you receive the error.
Instead, it looks like you're looking for an RBXScriptSignal, also known as an event. These are objects that are fired whenever something takes place. When an event is fired, it calls any functions connected to it. You may have seen events before in situations such as this:
game:GetService("Players").PlayerAdded:Connect(function(player)
print(player.Name)
end)
In your case, you want something to happen when an animation stops. We can use the event AnimationTrack.Stopped, which you can learn more about here, for this. It would look something like this:
LoadAnimation.Stopped:Connect(function()
Char.Humanoid.JumpPower = 50
end)
4 comments
Should be a simple fix. Just change the 'LoadAnimation:Stopped()' to 'LoadAnimation:Stop()' It should fix the problem
But when I did that then the Animation doesn't play at all
https://www.robloxdev.com/api-reference/property/AnimationTrack/IsPlaying
Thank you all!