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 run this animation?

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

✓ Accepted answer

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

4 comments

0

Thanks.

0

Yeah, I understand animations now, but.. I don't know how to make it go if a player holds shift.

0

Yeah thats the same thing Im trying to learn I'll tell you if I get it!

0

I just remembered to tell you that I found out.

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