Hello Developers!. For my Wac-A-Mole minigame I have encountered an issue, Basically I need a few tweens to play at once so the game isnt super easy. I decided to use the spawn () function on Roblox however it created a weird issue.The second tween that brings the models back up just does not happen. Adding a wait (1) helps but then using spawn is useless
GIF Without Spawn: https://gyazo.com/2fca5c28004b3c73c2c0b0f45d79ae8a
GIF With https://gyazo.com/0b7268cde0a02ceb2ca43d7eed844d53
--Small Portion of function
local Tween1 = TweenService:Create(mainpart,tInfo,goals)
local Tween2 = TweenService:Create(mainpart,tInfo,Goals2)
--print(X)
Tween1:Play ()
Tween1.Completed:Wait ()
Tween2:Play ()
Tween2.Completed:Wait ()
--Loop
local Tweens = workspace.Tweens:GetChildren()
local amountOfTweens = #Tweens
for i = 1,180 do
local Randomizer = math.random(1,amountOfTweens)
local RandomDiglett = Tweens [Randomizer]
--wait(1)
spawn (function() DiglettTween(RandomDiglett) end)
--wait(1)
end