I’m trying to make a vibe game and I’m searching the loop option on avatar editor, but I can’t find it. Could you tell it me where it is now? Maybe I’m blind… or I need a script for it…
AnimationTrack
s have a Looped
property. Also when creating the animation there is a setting to loop it.
1 Like
Oh, could you take a picture and show it me? I can’t find it.
Yes I mean this right here, thank you so much!
1 Like
@incapaxx about AnimationTracks, where is it?
besides that, AnimationTracks have a property named Looped
just like @incapaxx said above, you could just do:
local player = game:GetService("Players").LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local animation = script.Animation
local AnimationTrack = humanoid:LoadAnimation(animation)
if AnimationTrack.Looped == false then
AnimationTrack.Looped = true
AnimationTrack:Play()
end
you can also do:
local player = game:GetService("Players").LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local animation = script.Animation
local AnimationTrack = humanoid:LoadAnimation(animation)
repeat
AnimationTrack:Play()
wait()
until condition
or that same thing with the while loop, or do like @ScytheSlayin said above which is probably just the easiest way when publishing the animation
EDIT: oops, I meant to reply to @JUST1N2007, my bad, sorry!
1 Like