|
All the other ones teleport everyone to the other side. I want one that only teleports the clicker to the other side. If you can make one, thanks. |
|
|
Or some help with changing a script to accomplish this task. |
|
Raven5887Join Date: 2008-12-08 Post Count: 3184 |
You do know clicked event doesn't pass any arguments right? |
|
|
|
function onClicked()
brick = [--The brick to teleport to here!--]
print("Clicked!")
h = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid")
if h ~= nil then
h.Parent:MoveTo(brick.Position + Vector3.new(0,10,0))
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked) |
|
|
"Requesting a click teleporter." is not a valid member of "scripting helpers" --> output... WHY CANT PEOPLE GET IT?!? NO REQUESTS HERE!!! |
|
CombradJoin Date: 2009-07-18 Post Count: 11025 |
Impossible. Clickdetectors cannot detect the clicker. So no.... |
|
|
@Combrad
Did you see my script? It works. |
|
CombradJoin Date: 2009-07-18 Post Count: 11025 |
I'll test it. If it works I will be amazed. (I could make click VIP doors) |
|
OBFJoin Date: 2009-09-29 Post Count: 10709 |
Yeah, I think looking in the LocalPlayer may work. It's amazing no-one thought of that. ._. |
|
CombradJoin Date: 2009-07-18 Post Count: 11025 |
Just tested in a localscript....Nothing. Maybe a normal script might do something. |
|
Lucas_LuaJoin Date: 2008-06-18 Post Count: 7521 |
Yeah I never remember to look at LocalPlayer. =\ |
|
CombradJoin Date: 2009-07-18 Post Count: 11025 |
Yep a normal script works. VIP door here I come. |
|
mityguyJoin Date: 2008-06-07 Post Count: 5483 |
Can't grasp who clicks sometihng with the current systym. |
|
CombradJoin Date: 2009-07-18 Post Count: 11025 |
You can mity....I just did.... |
|
CombradJoin Date: 2009-07-18 Post Count: 11025 |
The script only works in edit/studio. |
|