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

How do I run this animation?

Asked by 9 years ago

I've made an Running Animation, now since this is a first, when I insert the animation it goes into the workspace, Is it supposed to go there? Or like inside a brick? Backpack? Or whatever, ok when/if I figure that out, I want the running animation to run (Obviously). Let's cut to the chase, When the player Holds SHIFT I want the animation to run, when they let go, I want it to just go back to the regular roblox walking anim. So could you help me? So I have to script it or... what? ( i do not know how to script) Please help?

1 answer

Log in to vote
0
Answered by
neoG457 315 Moderation Voter
9 years ago

He's new to scripting, give him a break.

This might help you.

local po = game.Players.LocalPlayer

local Discharge = Instance.new("Animation")
    Discharge.AnimationId = "http://www.roblox.com/Asset?ID=218063418"
local animTrack = po.Character.Humanoid:LoadAnimation(Discharge)
        animTrack:Play()

Change all Discharges to the name of your animation

Change the ID to your animation ID

0
Thanks. 789zaya 0 — 9y
0
Yeah, I understand animations now, but.. I don't know how to make it go if a player holds shift. 789zaya 0 — 9y
0
Yeah thats the same thing Im trying to learn I'll tell you if I get it! neoG457 315 — 9y
0
I just remembered to tell you that I found out. neoG457 315 — 9y
Ad

Answer this question