Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make a script for an Animation like falling,walking,etc?

My Script Is..

game.Players.PlayerAdded:connect(function(player)
	while not player.Character do wait() end
	local character = player.Character
	local animateScript = character.Animate
	animateScript.fall.Animation1.AnimationId = 'http://www.roblox.com/asset/?id=1635415594'
end)

that's all. i didnt add anything is there a string value i have to add please be explicit (specific as much as you can) thank you!

1 answer

✓ Accepted answer

First of all, your animation script won't work after the player respawns. Connect it to a CharacterAdded event to fix that.

Basically, Roblox's animate script can't be changed manually with scripts, or at least not easily. There is an easier alternative which is just to copy and paste the animate script into StarterCharacterScripts and modify the animations inside of it.

3 comments

0

i dont get it. can you kind of write it out?

0

You don't have to write a script. Just copy and paste the Animate script under the player's character into game.StarterPlayer.StarterCharacterScripts and under the Animate script change any animation id to whatever you want.

0

How do i find the animate script? i played and went to players.me(mycharachter) and didnt find a script called animate

This discussion is preserved as it was. New answers, comments, and votes are closed.