I tried to make a game like "Camping" by SamsonXVI. But the teleport doesn't work. Please help.
My current script:
01 | script.Parent.Touched:Connect( function (Hit) |
02 | local Player = game.Players:GetPlayerFromCharacter(Hit.Parent) |
03 | if Player ~ = nil then |
04 | if ono = = true then |
05 | ono = false |
06 | Code = Service:ReserveServer(Place) |
07 | wait( 20 ) |
08 | ono = true |
09 | end |
10 | Service:TeleportToPrivateServer(Place, Code, Player) |
11 | end |
12 | end ) |
Yeah, It's all a mess.