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
1 | game.ReplicatedStorage.SpamAEvent.OnServerEvent:Connect( function (player,animationID) |
2 | local animation = Instance.new( "Animation" ) |
3 | animation.AnimationId = "http://www.roblox.com/Assest?ID=" .. animationID |
4 |
5 | local loadedAnimation = game.Workspace [ player.name ] .Humaniod:LoadAnimation(animation) |
6 | loadedAnimation;Play() |
7 | end ) |
It says "loadedAnimation;Play()" is wrong../