I wanna figure out how to set off a animation that is on a model.
Main Idea:
Ok, a model is a group of parts, when those parts are grouped together it makes a model. Although you cannot and will not be able to animate a model unless it's a rig.
How to add an animation to a rig:
Now it should be very easy to go to the plugins tab, and open the rig builder up. (Roblox Pre-Installed Plugin, so you should have it). Now what you can do to make the rig more realistic is add clothes to your specifications, but that isn't what I'm teaching you. So now insert an object into the rig, and click animation
. change theanimationId
to "rbxassetid://Id
" now insert a
script
into the rig and type this
script.Parent.HumanoidRootPart.Transparency = 1 wait(3) local hum = script.Parent.Humanoid local anim = hum:LoadAnimation(script.Parent.Animation)
Other Possibilities
Now if you want the animation to repeat forever, you could two things.
1You can edit the animation, and set looping to true
in the edit tab.
2You can do what is called a while true do
loop. A while true do loop makes the script repeat itself until told other wise. So now type this. (If you want it repeating.)
while true do script.Parent.HumanoidRootPart.Transparency = 1 wait(3) local hum = script.Parent.Humanoid local anim = hum:LoadAnimation(script.Parent.Animation) end