What does :wait mean instead of wait()?
To me, I think it ':wait()'s until something loaded, or waits until going on, I have seen this tested before with the CharacterAdded event, and it waited a few before going on, here is an example (Randomly made, sorry if example didn't help);
1 | game.Players.PlayerAdded:connect( function (plr) --Wheres our wait? |
2 | plr.CharacterAdded:wait() --Heres our wait! |
3 | print (plr.Character) --Prints the Player's Name |
4 | end ) --The end for the PlayerAdded event |
And as you'll see, it'll wait then print the Player's Character. Hope this helped!
Here are some examples of using :wait() just so you get the idea.
1 | game.Players.Player.CharacterAdded:wait() |
1 | repeat until script.Parent.ChildAdded:wait().Name = = "Child" |
1 | repeat until game.Players.Player.Changed:wait() = = "TeamColor" |