So basically I made a table to storage anims id and is it play.
And picture below is to check.
anim = anim name in table.
So basically I made a table to storage anims id and is it play.
And picture below is to check.
anim = anim name in table.
local myTable = {1, 2, 3, 4, 5}
for i, v in pairs(myTable) do
if i == 1 then
-- Code to execute on the first iteration
print("First iteration: " .. v)
end
-- Code to execute on every iteration
print("Iteration: " .. v)
end
This script iterates over each element in myTable, and if it’s the first iteration, it executes specific code. Otherwise, it executes code for every iteration. Replace the print statements with your desired function or logic.
I want to check if it all not playing by (play == false)
oh right so I need to using return?
You can add it in the script that when Recp
Maybe I’m thinking too much advance.
simple way is no need to using loop at all.
by make a boolean to check if anim is play basically (I will assign “play” is boolean).
play will be boolean for all anims
to check is -
if play == false then so it does check if it play any anims
I’m bad at explaining so you may look at this picture below.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.