Two tables cant be both accessed at once?

In my script I have a zombies and allies table
But I have this problem, where every frame, the zombies table and the allies table keep ‘switching’ from empty to normal (so like, on first frame only the zombies table will be full even if there are allies, and on the second, the zombies table will be empty and the allies table filled, and it repeats so on)

image

Unfortunately sir, we cannot read minds, and are going to need the script.

1 Like

Are you leaving a function out? We need everything. Also, send the script(s) that handle the Zombie and Ally events.

1 Like

What about the other script(s) for the remote event?

nevermind… I fixed it by seperating it into another script

Well… first, why do you need to send 2 tables of “zombies” and “allies” on a Heatbeat basis?
Heartbeat “iterates” pretty fast, so you are probably “clogging” the remote with those very fast calling trying to send a table that could be huge.

1 Like

Cool!, still, weird approach and probably not suggested?

This entire thread is stupid…
The reason for this problem was because I was testing it using the Roblox Studio command bar, which for some reason re-runs the whole module.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.