I tried to make a game like "Camping" by SamsonXVI. But the teleport doesn't work. Please help.

My current script:

script.Parent.Touched:Connect(function(Hit)
	local Player = game.Players:GetPlayerFromCharacter(Hit.Parent)
	if Player ~= nil then
		if ono == true then
			ono = false
			Code = Service:ReserveServer(Place)
			wait(20)
			ono = true
		end
		Service:TeleportToPrivateServer(Place, Code, Player)
	end
end)

Yeah, It's all a mess.

2 comments

0

Any error?

0

Uhh, Everything?