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

What is wrong with the launcher on my animation?

Asked by 4 years ago

So basically i'm making a game for fun and I hit a problem, See I'm trying to code a launcher when the button is clicked and it would play a animation

game.ReplicatedStorage.SpamAEvent.OnServerEvent:Connect(function(player,animationID)
    local animation = Instance.new("Animation")
    animation.AnimationId = "http://www.roblox.com/Assest?ID=".. animationID

    local loadedAnimation = game.Workspace[player.name].Humaniod:LoadAnimation(animation)
    loadedAnimation;Play()
end)

It says "loadedAnimation;Play()" is wrong../

0
Methods of an Instance are invoked through a : not a semicolon. Ziffixture 6913 — 4y

Answer this question