Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Does a wait() in a function that is connected to an event yields the entire thread?

Asked by 3 years ago
Edited 3 years ago

Greetings! The title of this topic is self-explanatory.

Does a function in a connection below yield the entire thread?

Example:

game.Players.PlayerAdded:Connect(function(player)
 wait(3)
 print("player.Name")
end)

Sorry if the code is not formatted!!! I'm new to this website!

1
yes JesseSong 3916 — 3y
0
pretty sure it does. also use task.wait(), its an improved version of wait(). NGC4637 602 — 3y

Answer this question