Тёмный

How to make an Active Looping Animation in Roblox Studio 

Подписаться
Просмотров 2,5 тыс.
% 45

Hi guys! thanks for watching the video. Have fun!
-{[(Script)]}-
-- LoopAnimationWithDelayScript
-- This script is designed to loop an animation with a 0.5 second delay after each loop.
-- It should be attached to an Animator instance within a Humanoid or AnimationController.
local animator = script.Parent -- Assuming this script is parented to an Animator instance
-- Function to play the animation
local function playAnimation(animationId)
local animation = Instance.new("Animation")
animation.AnimationId = animationId
local animationTrack = animator:LoadAnimation(animation)
animationTrack:Play()
animationTrack.Stopped:Wait() -- Wait for the animation to stop
task.wait(0.5) -- Wait for 0.5 seconds before the next loop
animationTrack:Destroy() -- Clean up
end
-- Example animation ID, replace with your actual animation ID
local animationId = "rbxassetid://17242301318"
-- Loop the animation with a delay
while true do
playAnimation(animationId)
end
Discord:
https: //discord.gg/ 5XBeYTuska
remove the spaces

Игры

Опубликовано:

 

21 апр 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@E-kn4uk
@E-kn4uk 10 дней назад
if you guys are using the while loop and its crashing your studio then just do while task.wait() do playAnimation(animationId) end
@Mico..
@Mico.. 7 дней назад
THANK YOU!!!!
@A_Normal_Male_Human
@A_Normal_Male_Human 4 месяца назад
Hello there, my animation isn't playing on game! D: (when i publish it) Please tell me what to do because I can only see the animation playing on roblox studio.
@DarkShadowYT823
@DarkShadowYT823 4 месяца назад
did you forgot to publish the game or save the game?
@Litnis
@Litnis 2 месяца назад
Is it in a group game? If it's in a group game you need it to be published as your group.
@DarkShadowYT823
@DarkShadowYT823 5 месяцев назад
if this video gets 100 views imma make another tutorial
@DarkShadowYT823
@DarkShadowYT823 4 месяца назад
Aightt bettttt..
@0256_Ray
@0256_Ray 4 месяца назад
@@DarkShadowYT823 187 views!
@Arcomuc
@Arcomuc 4 месяца назад
TYSM It finally worked! :D
@DarkShadowYT823
@DarkShadowYT823 10 дней назад
You're welcome!
@DarkShadowYT823
@DarkShadowYT823 5 месяцев назад
Forgot to mention. Replace the animation ID to your own Animation ID, the ID on the script right now is the animation i made [sword anim [bad] ] Please Sub!
@PickleROBLOXshorts
@PickleROBLOXshorts 2 месяца назад
I SUBED
@s4nzsidhu289
@s4nzsidhu289 Месяц назад
Bro the animation only works in studio so idk what I’m doing wrong
@PickleROBLOXshorts
@PickleROBLOXshorts 2 месяца назад
TYSM this is so good for my game all the tutorials are bad and yuo just saved my life TY TYT YTYTYTYTY TYYTYTYT YTYYT YTY TYYT Y TY
@DarkShadowYT823
@DarkShadowYT823 15 дней назад
Tysm, thanks for the love :3
@DarkShadowYT823
@DarkShadowYT823 3 месяца назад
353 Views😱😱 111 Subscribers 😱😱
@eithanlevi5236
@eithanlevi5236 5 месяцев назад
Hey i know this might be a big request for you but can you make a combat scripting guide thanks even if you dont make 1
@DarkShadowYT823
@DarkShadowYT823 5 месяцев назад
I can make a Building Tutorial! But i think combat is too hard for me. I'm sorry.
@Shrimpstetics
@Shrimpstetics Месяц назад
@@DarkShadowYT823 can you make a school building tutorial
@Morgandoge
@Morgandoge Месяц назад
can u please send me the finished script im very lazy. i need it for an aura showcase for a game im helping
@Morgandoge
@Morgandoge Месяц назад
wait i didnt see the bio
@Morgandoge
@Morgandoge Месяц назад
its not working
@Morgandoge
@Morgandoge Месяц назад
YAY ITS WORKING
@Morgandoge
@Morgandoge Месяц назад
i made the anim and out it in the script but it does not look at all like what i made
@rossangelomacayran4995
@rossangelomacayran4995 Месяц назад
it doesnt work for me :(
@toastytoastman
@toastytoastman 4 дня назад
dud where is the script
@Dariuss87YT
@Dariuss87YT 2 месяца назад
my animation doesn't play and it doesn't move anywhere
@saint-sh1wo
@saint-sh1wo Месяц назад
I can help with that
@0256_Ray
@0256_Ray 4 месяца назад
wow server are u an expert lol
@dxufdufx6851
@dxufdufx6851 5 месяцев назад
Hello there :)
@DarkShadowYT823
@DarkShadowYT823 5 месяцев назад
eyo first comment in 3 years
Далее
How to Cook Juicy Steaks? Chef Kanan Recipe 🔥
00:59
Просмотров 591 тыс.
380ММ БЕЗУМИЯ Sturmtiger в War Thunder
1:7:59