Animation Working in Studio but not the Application


script.Parent.Activated:Connect(function()

Script:
script.Parent.Activated:Connect(function()
local animation = script:WaitForChild(“Animation”)
local playerCharacter = script.Parent.Parent
local humanoid = playerCharacter.Humanoid
local animationTrack = humanoid:LoadAnimation(animation)
animationTrack:Play()
animationTrack.Stopped:Wait()
end)

Theres no errors either and when do a print(“playing”) it prints playing but still does not add an animation

If your game is owned by a group, make sure the animation is uploaded in the group. Otherwise, it would only work in Roblox Studio. Let me know if that’s not what your issue is about.

1 Like

its works now, thank you.

With this i have to add more then just thank you to send it…

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.