null
nil
-
0
0
0
1
0
0
0
1
0
0
0
1
Ungroup this
[null]
true
-
true
-0.5
0.5
0
0
-0.5
0.5
2
0
23
-17
54.6000061
-246
0
0
-1
0
1
-0
1
0
-0
true
false
0.5
1
0.300000012
-0.5
0.5
0
0
-0.5
0.5
0
0
false
256
teleporter1b
0
-0.5
0.5
0
0
0
0
0
-0.5
0.5
0
0
0.699999988
0
0
0
true
1
4
1.20000005
4
-
false
Script
--[[
INSTRUCTIONS: Place both teleporter1a and teleporter1b in the same directory
(e.g. both in workspace directly, or both directly in the same group or model)
Otherwise it wont work. Once youve done that, jump on the teleporter to teleport to the other.
If you want more than one set of teleporters I will be adding more types in the future.
Send me requests and ideas - miked.
--]]
--Enter the name of the model you want to go to here.
------------------------------------
modelname="teleporter1a"
------------------------------------
function onTouched(part)
if part.Parent ~= nil then
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
local teleportfrom=script.Parent.Enabled.Value
if teleportfrom~=0 then
if h==humanoid then
return
end
local teleportto=script.Parent.Parent:findFirstChild(modelname)
if teleportto~=nil then
local torso = h.Parent.Torso
local location = {teleportto.Position}
local i = 1
local x = location[i].x
local y = location[i].y
local z = location[i].z
x = x + math.random(-1, 1)
z = z + math.random(-1, 1)
y = y + math.random(2, 3)
local cf = torso.CFrame
local lx = 0
local ly = y
local lz = 0
script.Parent.Enabled.Value=0
teleportto.Enabled.Value=0
torso.CFrame = CFrame.new(Vector3.new(x,y,z), Vector3.new(lx,ly,lz))
wait(3)
script.Parent.Enabled.Value=1
teleportto.Enabled.Value=1
else
print("Could not find teleporter!")
end
end
end
end
end
script.Parent.Touched:connect(onTouched)
true
-
Enabled
1
true
-
0
Decal
20
0
http://www.roblox.com/asset/?id=27700129
true
-
2
Decal
20
0
http://www.roblox.com/asset/?id=27700129
true
-
3
Decal
20
0
http://www.roblox.com/asset/?id=27700129
true
-
5
Decal
20
0
http://www.roblox.com/asset/?id=27700129
true
-
1
Decal
20
0
http://www.roblox.com/asset/?id=29684316
true
-
true
-0.5
0.5
0
0
-0.5
0.5
2
0
23
-23.0748291
54.4999847
-245.92572
1
0
0
0
0
1
0
-1
0
true
false
0.5
1
0.300000012
-0.5
0.5
0
0
-0.5
0.5
0
0
false
256
teleporter1a
0
-0.5
0.5
0
0
0
0
0
-0.5
0.5
0
0
0.699999988
0
0
0
true
1
4
4.80000019
1
-
false
Script
--[[
INSTRUCTIONS: Place both teleporter1a and teleporter1b in the same directory
(e.g. both in workspace directly, or both directly in the same group or model)
Otherwise it wont work. Once youve done that, jump on the teleporter to teleport to the other.
If you want more than one set of teleporters I will be adding more types in the future.
Send me requests and ideas - miked.
--]]
--Enter the name of the model you want to go to here.
------------------------------------
modelname="teleporter1b"
------------------------------------
function onTouched(part)
if part.Parent ~= nil then
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
local teleportfrom=script.Parent.Enabled.Value
if teleportfrom~=0 then
if h==humanoid then
return
end
local teleportto=script.Parent.Parent:findFirstChild(modelname)
if teleportto~=nil then
local torso = h.Parent.Torso
local location = {teleportto.Position}
local i = 1
local x = location[i].x
local y = location[i].y
local z = location[i].z
x = x + math.random(-1, 1)
z = z + math.random(-1, 1)
y = y + math.random(2, 3)
local cf = torso.CFrame
local lx = 0
local ly = y
local lz = 0
script.Parent.Enabled.Value=0
teleportto.Enabled.Value=0
torso.CFrame = CFrame.new(Vector3.new(x,y,z), Vector3.new(lx,ly,lz))
wait(3)
script.Parent.Enabled.Value=1
teleportto.Enabled.Value=1
else
print("Could not find teleporter!")
end
end
end
end
end
script.Parent.Touched:connect(onTouched)
true
-
Enabled
1
true
-
4
Decal
20
0
http://www.roblox.com/asset/?id=32470468
true
-
1
Decal
20
0
http://www.roblox.com/asset/?id=32470468
true