im having a hard time with my teleportation system because i need to use :sub() for it to work but idk how :sub() works, can someone pls explain here is a line of a script to better explain
if game.Players:FindFirstChild(msg:sub(6)) then
how does the :sub() work?

3 comments
What do you mean by sub()? Is it string.sub() or something else? Also if you have a code, please put it on your question.
here is code
What it does is if msg == "Hi there people", msg:sub() would return "ere people", because like RobloxWhiz said, it returns a substring from the start number (6 in your case)to the end number, (end of string in your case, because you din't assign one)