Error with printing a players lobby?
The goal is the give a player their own spawn box, and in the workspace there is Lobby1
through Lobby10
. But the issue is, the i try to get this lobby through a value with a number, 1 - 10,i get the error : attempt to concatenate local 'lobbys' (a userdata value)
1 | player = game.Players.LocalPlayer |
2 | local spawn = script.Parent.spawn |
3 | local lobbys = game.Workspace.Lobbys |
4 | local locallobby = lobbys..spawn.Value |
6 | spawn.Value = game.Workspace.Values.Numspawns.Value |
8 | player.Character:MoveTo(Vector 3. new( 0 , 0 , 0 )) |