Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago

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

Log in to vote
0
Answered by 6 years ago

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.

0
i dont get it. can you kind of write it out? xZAKATAKx -3 — 6y
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. steven73598233 75 — 6y
0
How do i find the animate script? i played and went to players.me(mycharachter) and didnt find a script called animate xZAKATAKx -3 — 6y
Ad

Answer this question