--> FUNCTIONS

script.Parent.Touched:Connect(function(Hit)
	if not Touched then
		if Hit.Parent:FindFirstChildOfClass("Humanoid") then
			Player = game:GetService("Players")[Hit.Parent.Name]
		elseif Hit.Parent.Parent:FindFirstChildOfClass("Humanoid") then
			Player = game:GetService("Players")[Hit.Parent.Parent.Name]
		end
		if Player ~= nil then
			Touched = true
			game:GetService("TeleportService"):TeleportAsync(script.Parent.Parent.GameID.Value, {Player})
			Player = nil
			wait(.2)
			Touched = false
		end
	end
end)
