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?
I haven't found any real errors within your code, but it may work if I fix it up a bit.
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) animateScript = character.Animate animateScript.run.RunAnim.AnimationId = "rbxassetid://333279377" end) end)
If it helped, accept!
~Chem