So, I'm working on a game and I'm trying to get down all the animations first. So, I whipped up a running animation in Animation Editor and then made a script to put it in the game, but it won't work. Here is what I made:
game.Players.PlayerAdded:connect(function(player)
while not player.Character do wait() end
local character = player.Character
local animateScript = character.Animate
animateScript.run.RunAnim.AnimationId = 'http://www.roblox.com/asset/?id=333279377'
end)
I've been tweaking it up and changing what I thought was the source of the problem, but to no avail, It doesn't work.
Anyone know a simple remedy to my problem?

3 comments
Sorry, my code didn't come out the way I had hoped to, but it's still readable, I guess.
Try editing the question to where the first set of ~~~~ are on a new line.
Thanks.