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

How would you give a walk animation a loop through the script animation adder?

How would you give a walk animation a loop, is a simple enough title i just had to put the extra for the site to think its givin more info.

Since the normal roblox walk script has a loop i thought this would put a loop on it but it dident. so can someone tell me how to add a loop to an animation?

game.Players.PlayerAdded:connect(function(player)
		player.CharacterAdded:connect(function(character)
player.Character.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=2652684706"
end)
end)


3 comments

0

There is a toggable setting in the animation editor called "Loop" and if you set it to true the animation will loop. Just stop or play the track depending on if they stopped or started walking.

0
0

ive tried both of those although i was able to make the animation 5 seconds long and use it insdie of roblox's walk animation

2 answers

You realize you can either use this method or just Use an AnimationTrack, then setting it to Looped?;) I just remembered that, (Also you can't create an animation track through instance.new)

game.Players.PlayerAdded:Connect(function(Player) --// Player Joined
   
   local animation = Player.Character.Animate.walk.WalkAnim.Animation --// Get Animation Object
   local animationid = "http://www.roblox.com/asset/?id=2652684706" --// Get Animation ID

   animation.AnimationId = animationid --// Set Animation Object's ID

   local humanoid = Player.Character:WaitForChild("Humanoid") --// Get Humanoid

   humanoid:LoadAnimation(animation) --// Load The Animation To Humanoid

   humanoid.Running:Connect(function() --// Check If Humanoid Is Walking
      while true do --// Loop Play Animation
         animation:Play()
         wait(.5)
      end
   end)
end)

his could end up in something very weird by try it. Hope this works for you as an alternative.

38 comments

0

I did although it still dident loop it.

0

Hm, try recreating the animation again, check it again too, then upload once more

0

No, did not work.

0

try this then....

0

Not a complete answer, and should have been a comment

0

Eat shi* incap, go get your girlfriend back and stop sobbing

0

i like how incapaxian said that to you but not TheFuzi

0

dont insult me, and you are doing this to yourself

0

Hold on Limited, I'm rewriting my answer

0

both are incomplete

0

This is your fault, I did nothing wrong, it doesn't matter if it was a comment or not, do you care Limited?

0

HAHA, lol, in what world are they "incomplete" ANSWER me that? it's a literal senatance, now let me write my Script for Limited

0

i dont really care. as long as im getting and awnser or help. :\

0

can you just not....... just stop.

0

incap, you're so ignorant it's making my eyesight even worse.

0

as log as someone is helping, it's a good answer, get that in your head

0

so um is umm... its been like 10 minutes (not rushing but just saying)

0

nvm dident see edit. Thanks!

0

I updated my question with a Script that should loop play your animation

0

"as log as someone is helping, it's a good answer" incorrect

0

That's what it is in the eyes of those asking, now stop being a nuance, get off your PC, and look in the mirror while asking yourself "Where did I go wrong having to irrelevantly and completely stupidly teel kids they're bad at posting answers that get aprroved more than I post answers, while telling them they suck

0

on a ROBLOX website?

0

hmm... 4/24 and 14/21, 16% and 66%

0

Ask yourself mk?, no leave and let us actually help people here

0

also Scripting Helpers isn't hosted by roblox or anything,  and i am referring to your accepted/given ratio and mine, not to show off or anything, but to disprove your point

0

it's literally a community for Lua C (I.e a site for ROBLOX API Scripting assistance, full of tied ROBLOX accounts, used by "Robloxians".)

0

but it's not hosted by roblox and you said it's a roblox website when they don't own it. It might be about roblox, but that's about it

0

Yeah, but look at my join date, and how fast I've raised. From the looks of it you stopped answering. I've also Tried to help 3 more people than you

0

It's 100% Connected to ROBLOX, it's run by a ROBLOX user, this webside was designed for ROBLOX, you see the Logo the first thing you type scriptinghelpers.org

0

i joined roblox in early 2014, but join date is irrelevant to this

0

Just saw your edit, but Roblox staff don't own the site, and they only have permission to even use their logo

0

God, just stop making this a problem and eho tf cares about answer formatting, as long as it works. PERIOD, nobody cares how fancy it looks. You're forcing people to write stupidly because they're afraid to loose reputation, you. Are. A. Jerk. I just log a lot from you, and boom, I'm back up to 73, just stop bickering and let us do us k?

0

If you read the terms of service you'll see the notice that they use roblox assets "with permission" meaning roblox staff doesn't own SH https://scriptinghelpers.org/legal

0

Also "as long as it works" is a bad argument, not all code that works is good code, in your script you use a bad example

0

dident work ;|

0

Look at the top

Okay, go to the animation editor and import your animation then just turn on loop. After that export your animation.

2 comments

0

That's what I said

0

I was writing it at the same time but it took me longer.

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