I was wondering how to create an event (not FireAllClients(), it needs to be server sided) that will happen at the same time for each player. I tried to use for , in pairs, but the loop includes a task.wait that messes up the timing
2 Likes
so use coroutines
, It should help you multi task while the loop fires
for i,v in t do
coroutine.wrap(function() -- prevents yielding
-- code
end)()
end
1 Like
Use object value inside of a player acript and connect it to the bindable event, wherever it is
(That’s how i do it. )
[If i solved your problem please mark this as solution!]
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.