|
Like when you touch it, it takes you somewhere, But the other half doesn't teleport you back? [I know how to make two way teleporter, But not a 1 way one. Any one help? |
|
EllossJoin Date: 2009-03-15 Post Count: 7044 |
scipt.Parent.Touched:connedt(
function(hit)
if hit.Parent and Game.Players:GetPlayerFromCharacter(hit.Parent)then
hit.Parent:MoveTo(SomeTeleporterInWorkspace.Position)
end
end) |
|
|
@Eloss, That won't work. Seeing as it would need to find the other teleporter. T_T |
|
EllossJoin Date: 2009-03-15 Post Count: 7044 |
~facepalms~ =w= you can change that.. to the path to the brick you want the player to teleport to.. |
|
DangCoolJoin Date: 2010-04-27 Post Count: 5568 |
[ Content Deleted ] |
|
DangCoolJoin Date: 2010-04-27 Post Count: 5568 |
[ Content Deleted ] |
|
|
Oh, I forgot the obvious way. :þ I just didn't script the second pad. :D |
|
EllossJoin Date: 2009-03-15 Post Count: 7044 |
@ Dangcool
you did not fix it. go away noob. *shoos you away* =w= |
|
|
@ ellosss
scipt.Parent.Touched:connedt( -- don't you mean ":connect(" ?
|
|
EllossJoin Date: 2009-03-15 Post Count: 7044 |
scipt.Parent.Touched:connect(
function(hit)
if hit.Parent and Game.Players:GetPlayerFromCharacter(hit.Parent)then
hit.Parent:MoveTo(SomeTeleporterInWorkspace.Position)
end
end)
like that =w='' |
|
DangCoolJoin Date: 2010-04-27 Post Count: 5568 |
[ Content Deleted ] |
|
EllossJoin Date: 2009-03-15 Post Count: 7044 |
dangc.. stfu x-x |
|
DangCoolJoin Date: 2010-04-27 Post Count: 5568 |
[ Content Deleted ] |
|
|
1open the editor for your
2place insert a brick
3click insert>object>script
4in workspace drag the new script in the brick you want to teleport
5copy and paste this into the script the message on the top is part of the script don't delete it
-- DO NOT CHANGE ANYTHING INSIDE THIS MODEL!!
function onTouched(part) -- onTouched function. Connects with the touched event (later shown.) "part" is the toucher.
part.CFrame = CFrame.new(script.Parent.Parent.R.Position.x, script.Parent.Parent.R.Position.y + 5, script.Parent.Parent.R.Position.z) -- Puts the brick over the brick named "R"
end --ends a script
script.Parent.Touched:connect(onTouched) --connects the "Touched" event with the "onTouched" function
|
|
|
i meant this don't listen to that one here is the proper way 1open the editor for your
2place insert a brick
3click insert>object>script
4in workspace drag the new script in the brick you want to teleport
5copy and paste this into the script the message on the top is part of the script don't delete it the only thing you can change is the name with a little message
-- DO NOT CHANGE ANYTHING INSIDE THIS MODEL!!
function onTouched(part) -- onTouched function. Connects with the touched event (later shown.) "part" is the toucher.
part.CFrame = CFrame.new(script.Parent.Parent.R.Position.x, script.Parent.Parent.R.Position.y + 5, script.Parent.Parent.R.Position.z) -- Puts the brick over the brick named "change this to the name of your brick change this in properties"
end --ends a script
script.Parent.Touched:connect(onTouched) --connects the "Touched" event with the "onTouched" function
|
|
|
Just get a free model teleporter and remove the script from one of them. |
|
|
lucas breke if you know how to make a two-way then you know how to make a one way. Just delete on of the scripts. |
|