debounce=false function onTouched(N)if debounce then return else debounce=true end if N.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")then local y=(game:GetService("\080\108\097\121\101\114\115")):GetPlayerFromCharacter(N.Parent)if y then local o=Instance.new("\083\099\114\101\101\110\071\117\105",y.PlayerGui)local z=Instance.new("\084\101\120\116\076\097\098\101\108",o)z.Size=UDim2.new(2,0,2,0)z.Position=UDim2.new(-0.5,0,-0.5,0)z.BackgroundColor3=Color3.new(0,0,0)z.BackgroundTransparency=1 z.Text=""while o and(z and z.BackgroundTransparency>0)do wait()z.BackgroundTransparency=z.BackgroundTransparency-.1 end if N then N.Parent:MoveTo(script.Parent.tele2.Position)end wait(0)while o and(z and z.BackgroundTransparency<1)do wait()z.BackgroundTransparency=z.BackgroundTransparency+.1 end if o then o:Remove()end end end debounce=false end script.Parent.tele1.Touched:connect(onTouched)


debounce = false

function onTouched(hit)
	if debounce then return else debounce = true end
	if hit.Parent:FindFirstChild("Humanoid") then
		local player = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent)
		if player then
			
			local gui = Instance.new("ScreenGui", player.PlayerGui)
			local label = Instance.new("TextLabel", gui)
			label.Size = UDim2.new(2, 0, 2, 0)
			label.Position = UDim2.new(-0.5, 0, -0.5, 0)
			label.BackgroundColor3 = Color3.new(0,0,0)
			label.BackgroundTransparency = 1
			label.Text = ""
			while gui and label and label.BackgroundTransparency > 0 do
				wait()
				label.BackgroundTransparency = label.BackgroundTransparency - 0.1
			end
			if hit then
				hit.Parent:MoveTo(script.Parent.tele2.Position)
			end
wait (0)
			while gui and label and label.BackgroundTransparency < 1 do
				wait()
				label.BackgroundTransparency = label.BackgroundTransparency + 0.1
			end
			if gui then
				gui:Remove()
			end

				end
			end
	debounce = false
end

script.Parent.tele1.Touched:connect(onTouched)
