|
I have been trying to work on eh new via script. here is what I have got so far:
--Enter the ID of the Place here.
------------------------------------
GameID=http://www.roblox.com/Place.aspx?id=193526
------------------------------------
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 Game!")
end
end
end
end
end
script.Parent.Touched:connect(onTouched)
If anyone could help me with this script, I will be premeim happy! |
|
|
Thats is Falleneagles GameID above, thats just some advice |
|
|
local teleportto=script.Parent.Parent:findFirstChild(modelname)
local teleportto=script.Parent.Parent:findFirstChild("Part name")
Replace Part name with the name of the teleportto thing. |
|
burglyTop 100 PosterJoin Date: 2006-08-20 Post Count: 2843 |
Uhhhhh,
wouldn't you need to have an object you are telporting to at the new place? |
|
burglyTop 100 PosterJoin Date: 2006-08-20 Post Count: 2843 |
Sorry For Double Post,
But I forgot this: The script is set to teleport to another place, but, there is no set point of where you land in the place, messing up the script. |
|
WaffleBoyJoin Date: 2007-03-21 Post Count: 1377 |
This is impossible, sorry to say. Someday, the devs might implement map-transfer via portal. |
|
|
rlack98Join Date: 2009-05-19 Post Count: 1995 |
It needs a few tweaks.
You must know a part of the place.
IE: Only Copy-locked.
BUT, dont most places have a base?
Right to the base... |
|