I want to call an asynchronous function multiple times.

I want to be able to call spawn{Game(Players)} multiple times. When I tried using Subscribe, I couldn’t call it because it’s not of type agent?. I’ve included the relevant part of the code, so please let me know how to fix it. I tried using loop:, but the function was called redundantly for each player on the map.

Make another function for the trigger that would then trigger the Game Function

OnTriggered(MaybeAgent:?agent):void=
       spawn{Game(GetPlayspace().GetPlayers())}
1 Like

Thank you very much!

I was able to successfully trigger it multiple times.

1 Like