generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How do you repeat an animation?

Previous Thread :: Next Thread 
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
15 Jan 2015 09:31 PM
How do you repeat an animation endlessly?

Without a loop, is there a repeat function or something?
Report Abuse
Tokimonu is not online. Tokimonu
Joined: 18 Sep 2009
Total Posts: 643
15 Jan 2015 09:39 PM
just loop the function
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
15 Jan 2015 09:50 PM
"Without a loop"
Report Abuse
Tokimonu is not online. Tokimonu
Joined: 18 Sep 2009
Total Posts: 643
15 Jan 2015 09:55 PM
no, loop the function.
there's no other way that I'm aware of.
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
15 Jan 2015 10:05 PM
What do you mean loop the function?

I need a animation to keep replaying over and over without any pauses.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
15 Jan 2015 10:09 PM
When you create the animation, I think there is a way to set it to loop.
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
15 Jan 2015 10:26 PM
And where might this loop thing be?

I really need to figure this out. Right now I've got a while loop playing the animation every 1.8 seconds, but it looks choppy when it has to reset. And if the game has lag it will corrupt this.
Report Abuse
TheNextEvolution is not online. TheNextEvolution
Joined: 08 Apr 2010
Total Posts: 1624
15 Jan 2015 10:28 PM
I know how but i'm to lazy to help any one right now plus i'm not in a good mood since no one wants to help me.
Report Abuse
zetaflop is not online. zetaflop
Joined: 26 Dec 2014
Total Posts: 7
15 Jan 2015 10:41 PM
http://wiki.roblox.com/index.php?title=Animations#Looping

>petaflop
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
15 Jan 2015 11:16 PM
Okay so I'm using this code from the wiki. But how do you name a keyframe? Like the last fame of my animation for example?


-- Import animation
local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID=203946055"
-- code from the wiki modified for a character in my game. But how would I name --my last frame for example "Last Frame" like they did "ElectrocuteEnd"

-- Local variables
local animTrack = nil
local canPlay = true

function playShockAnim(Source)
if canPlay then
local player = script.Parent
canPlay = false
animTrack = player.Zombie:LoadAnimation(animation) -- Load animation into Humanoid
animTrack.KeyframeReached:connect(function(keyframeName) -- Bind function to KeyframeReached event
if keyframeName == "ElectrocuteEnd" then
canPlay = true
end
end)
animTrack:Play() -- Start the animation
end
end
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
15 Jan 2015 11:45 PM
Anyone? I set my animation to loop in the creator menu plugin. But I can't get this to loop endlessly I don't understand how the wiki put it.
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
16 Jan 2015 08:27 AM
.
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
18 Jan 2015 07:35 PM
Help.
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
19 Jan 2015 08:59 PM
Day 3...No sign of intelligent life.
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
20 Jan 2015 01:50 PM
O_O DOESN'T ANYONE KNOW ANYTHING ABOUT THIS!????????????????
Report Abuse
TheNextEvolution is not online. TheNextEvolution
Joined: 08 Apr 2010
Total Posts: 1624
20 Jan 2015 02:04 PM
I do
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
20 Jan 2015 02:06 PM
@TheNextEvolution why you do dis? What is no one helping you on?

Hey, check this place out! http://www.roblox.com/Maze-Escape-Deep-Alpha-place?id=194858740
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
20 Jan 2015 02:22 PM
Evolution then please share your vast knowledge of the subject.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image