--
bin = script.Parent
beach = game.Workspace:findFirstChild("Lv1")
one = bin.Warp1
two = bin.Warp2
--
--
bb = beach:clone()
--
--
--beach.Parent = nil
--
--
function reset(place,clone)
if place~=nil then
wait(1) return
else
copy = clone:clone()
copy.Parent = game.Workspace
copy:MakeJoints()
end
end
--
--
function warp(part,a,b)
part.Parent.Torso.CFrame = CFrame.new(Vector3.new(b.Position.x, b.Position.y + 5, b.Position.z))
wait(3)
db = false
end
--
--
gdb = false
function goto(poke)
local h = poke.Parent:findFirstChild("Humanoid")
if h~=nil and gdb == false then
gdb = true
local c = script.Parent.Warp1
local d = script.Parent.Warp2
reset(beach,bb)
warp(poke, c, d)
wait(2)
gdb = false
end
end
--
--
function come(poke)
local h = poke.Parent:findFirstChild("Humanoid")
if h~=nil and gdb == false then
gdb = true
local c = script.Parent.Warp1
local d = script.Parent.Warp2
warp(poke, d, c)
wait(2)
gdb = false
end
end
--
--
one.Touched:connect(goto)
two.Touched:connect(come)
--