How would we make teleporters?
#1
Is there a script to it?
Reply
#2
I've done it already.

[lua]
link(script.Parent.Collided, function(hit)
if hit.Name == "Body" then
hit.Position = Vec2D(#,#)
end
end)
[/lua]

I didn't test that script so there may be one or two errors in it, but I made a script just about like that which worked.
[Image: rogershanksluffy_display.gif]
Reply
#3
(04-03-2011, 11:46 PM)Scripter Wrote: I've done it already.

[lua]
link(script.Parent.Collided, function(hit)
if hit.Name == "Body" then
Body.Position = Vec2D(#,#)
end
end)
[/lua]

I didn't test that script so there may be one or two errors in it, but I made a script just about like that which worked.

How would you make it change the place it went to?
Reply
#4
Changing the # signs. They are the positions.
[Image: rogershanksluffy_display.gif]
Reply
#5
Thanks! Big Grin
Reply
#6
Thanks! Big Grin
Reply
#7
(04-04-2011, 12:18 AM)broloxer Wrote: Thanks! Big Grin

No problems. Giving a thanks would be appreciated ;p
[Image: rogershanksluffy_display.gif]
Reply
#8
Somebody should make a cooler one that makes you fade out and in.
Reply
#9
(04-04-2011, 10:36 PM)Blizzard Wrote: Somebody should make a cooler one that makes you fade out and in.

That should be easy enough, made this script just now without testing:

[lua]
link(script.Parent.Collided, function(hit)
if hit.Name == "Body" then
for i = 10, 1, -1 do
hit.Transparency = i
end
hit.Position = Vec2D(#,#)
for i = 1, 10 do
hit.Transparency = i
end
end
end)[/lua]
[Image: rogershanksluffy_display.gif]
Reply
#10
Yeah, I was careless and mistyped something. I fixed it though, it should work now.
[Image: rogershanksluffy_display.gif]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)