![]() |
I need a teleporter set please Dx - Printable Version +- 2DWorlds Forums (http://2dworlds.buildism.net/forum) +-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4) +--- Forum: 2DWorlds Discussion (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=10) +--- Thread: I need a teleporter set please Dx (/showthread.php?tid=5776) |
I need a teleporter set please Dx - McNoobster - 06-13-2011 I'm working on a awesome new game and I really need them. RE: I need a teleporter set please Dx - Blandflakes - 06-13-2011 I can make some... Well I can try ![]() RE: I need a teleporter set please Dx - McNoobster - 06-13-2011 (06-13-2011, 10:32 PM)BlandFlakes Wrote: I can make some... Please if you can :] RE: I need a teleporter set please Dx - broloxer - 06-14-2011 [lua]link(script.Parent.Collided, function(hit) if hit.Name == "Body" then hit.Position = Vec2D(467.8, 53.18) end end) [/lua][/quote] Put that script in a Box. RE: I need a teleporter set please Dx - Blandflakes - 06-14-2011 It won't let me save them as a model so I will post the code. Alright make a box and name it tele1 and put a script in it. Here's the code. [lua] _G.test = "yes" function OnCollided(hit) if hit.Parent.Type == "Character" then if _G.test == "yes" then hit.Position = game.World.tele2.Position _G.test = "no" sleep(4) _G.test = "yes" end end end link(script.Parent.Collided, OnCollided)[/lua] Now make another box called tele2 and put this in it. [lua]function OnCollided(hit) if hit.Parent.Type == "Character" then if _G.test == "yes" then hit.Position = game.World.tele1.Position _G.test = "no" sleep(4) _G.test = "yes" end end end link(script.Parent.Collided, OnCollided)[/lua] Also you might want to leave room for the player to teleport. If you stick the teleporter on the ground then it will make the player stuck in the ground. RE: I need a teleporter set please Dx - McNoobster - 06-14-2011 Brandflakes +9001 respect again bro. I knew the glome from tPN was in there somewere :] |