• Hey! Register here to create your account, engage with the community, and talk about what is new!

Server Sided Functions

ChocoPlays

Well-known member
Joined
Mar 6, 2021
Messages
60
Reaction score
3
i wanted to make a kind of minigame style game but if i use a Join >> Function the function will stop whenever that player leaves is there any way to fix this?
 
Solution
Try using a Process and changing the tag in the Start Process block to No Targets
1655960444515.png
To clarify:
Processes act asynchronously to the code line. Basically meaning that they will be ran and treated as if it were a new line of code and won't cause any delays in the codeline it was called from. However they are by default ran with a target (In this case the player who joined.) Meaning if they were to leave the process would be stopped. To change that you can run it with no targets causing it to run forever assuming your looping it with repeat forever or overloading the function.

1655960855842.png

CNK_

New member
Overlord
Joined
Oct 3, 2021
Messages
14
Reaction score
10
Try using a Process and changing the tag in the Start Process block to No Targets
1655960444515.png
To clarify:
Processes act asynchronously to the code line. Basically meaning that they will be ran and treated as if it were a new line of code and won't cause any delays in the codeline it was called from. However they are by default ran with a target (In this case the player who joined.) Meaning if they were to leave the process would be stopped. To change that you can run it with no targets causing it to run forever assuming your looping it with repeat forever or overloading the function.

1655960855842.png
 
Solution
Top Bottom