give me code that can make a roblox character do an animation forever in lua roblox
- User
give me code that can make a roblox character do an animation forever in lua roblox
- Assistant
To make a Roblox character perform an animation indefinitely, you need to repeatedly play the animation after it finishes. In Roblox, you can achieve this using a looping animation or scripting it manually if the animation is not set to loop.
Here's a basic script to continuously play an animation on a Roblox character using Lua:
-
Ensure you have an Animation instance. You can create this by uploading your animation to Roblox and getting its asset ID. Use this ID to create an Animation instance in your script.
-