Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Animating Issues, animation works in studio but not in the real game?

Asked by 3 years ago
Edited 3 years ago

For my cafe I have made a drink animation and a script that plays the animation. The animation works perfectly fine in studio but not in the actual game. Does anyone know why it will only work in studio not the real game?

This is my code for the animation to play.

local Tool = script.Parent
local EatAnimation = Tool.EatAnimation

Tool.Equipped:Connect(function(Mouse)
    Tool.Activated:Connect(function()
        local Character = Tool.Parent
        local AnimationTrack = Character.Humanoid:LoadAnimation(EatAnimation)
        AnimationTrack:Play()
    end)
end)

I was thinking it would be something about the client of the player? My scripter couldn't even fix it and was very confused.

Answer this question