|
| 17 May 2014 08:03 PM |
| Can someone help me script something that makes it so when you click on a certain brick it teleports you to a certain location? |
|
|
| Report Abuse |
|
|
|
| 17 May 2014 08:06 PM |
Teleport to a place? OR Teleport to a position in game?
nawm'sayin |
|
|
| Report Abuse |
|
|
| |
|
opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
|
| 18 May 2014 05:33 AM |
TeleP = (0,0,0) --Fill this in. function ClickyWicky(player) char = player.Character char:MoveTo(TeleP) end
script.Parent.MouseClick:connect(ClickWicky) |
|
|
| Report Abuse |
|
|
|
| 18 May 2014 05:51 AM |
| I'm not a good scripture but I'm pretty sure that won't work... |
|
|
| Report Abuse |
|
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
| |
|
|
| 18 May 2014 05:53 AM |
I found a chatted teleport script I just need to convert it onClicked. How would I do that?
game.Players.PlayerAdded:connect(function(player) if player.Name == "rowerowe71" then player.Chatted:connect(function(msg) if msg == "end/Sim" then target = CFrame.new(-2, 3, -16.2) for i, player in ipairs(game.Players:GetChildren()) do player.Character.Torso.CFrame = target + Vector3.new(0, i * 1, 0) end
end end) end end)
|
|
|
| Report Abuse |
|
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
|
| 18 May 2014 05:54 AM |
location = game.Workspace.Part.Position
function click(player) player.Character:MoveTo(location + Vector3.new(0,2,0) end
script.Parent.ClickDetector.MouseClick:connect(click) |
|
|
| Report Abuse |
|
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
|
| 18 May 2014 05:59 AM |
Oops wait
location = game.Workspace.Part.Position
function click(player) player.Character:MoveTo(location + Vector3.new(0,2,0)) end
script.Parent.ClickDetector.MouseClick:connect(click) |
|
|
| Report Abuse |
|
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 18 May 2014 10:44 AM |
| Yes what uyoy put seems like it should work fine |
|
|
| Report Abuse |
|
|