When the player types "/e dance3' I was expecting it to play one of my custom animations.
Heres the code
game.Players.PlayerAdded:connect(function(Plr)
Plr.Chatted:connect(functiom(msg)
if msg == "/e dance3" then
A = Instance.new("Animation", Plr.Character)
A.AnimationId = "www.roblox.com/Asset?ID=myidwillgohere"
track = Plr.Character.Humanoid:LoadAnimation(A)
track:Play()
end
end)
end)
Getting error from "if"
Also how do I get the asset ID from a custom animation? Do I just use the one available on my profile? I cant find the asset URL anywhere.
Thanks.

1 comment
Thanks but im still getting an error code on "if" -- Expected ')' (to close '(' at line 2), got 'if'