|
| 22 Jun 2013 08:47 PM |
Torso = player.torso
Workspace.Part.ClickDetector.MouseClick:connect(function(playerWhoClicked) print("Part was clicked by: " .. playerWhoClicked.Name) wait(4) Torso.CFrame = CFrame.new(Vector3.new(207.2, 729, 132.5)) end) |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2013 08:49 PM |
| I'm not sure if I defined the torso... |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Newtrat
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 196 |
|
|
| 22 Jun 2013 08:59 PM |
I'm not sure if this is what's causing your problem, but I believe that the player's torso is named "Torso," with a capital 'T.' So your first line might need to be
Torso = player.Torso
instead of
Torso = player.torso
If there's an error in the output, that might be why. |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2013 09:06 PM |
| I did its not working.*Sobs* |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
ColdSmoke
|
  |
| Joined: 02 Jan 2012 |
| Total Posts: 5784 |
|
| |
|
|
| 22 Jun 2013 10:05 PM |
| Who?Can someone please help me |
|
|
| Report Abuse |
|
|
Zkiller11
|
  |
| Joined: 25 Aug 2009 |
| Total Posts: 2914 |
|
| |
|
|
| 22 Jun 2013 10:09 PM |
you need to define player
something like
game.Players:FindFirstChild() |
|
|
| Report Abuse |
|
|
ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
|
| 22 Jun 2013 10:13 PM |
| Hmm make sure that there is only one thing in Workspace named Part, otherwise name it something else. And change the script. |
|
|
| Report Abuse |
|
|
RoAnt
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
|
| 22 Jun 2013 10:16 PM |
Workspace.Part.ClickDetector.MouseClick:connect(function(playerWhoClicked) print("Part was clicked by: " .. playerWhoClicked.Name) wait(4) local Torso = playerWhoClick.Character:FindFirstChild("Torso") if playerWhoClick.Character and Torso then Torso.CFrame = CFrame.new(Vector3.new(207.2, 729, 132.5)) end end)
Didn't feel like explaining every flaw... so here. |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2013 10:17 PM |
function onclicked(player) print("Part was clicked by: "..player.Name) wait(4) game.Workspace:findFirstChild(player.Name).Torso.CFrame = CFrame.new(Vector3.new(207.2, 729, 132.5)) end
WhereTheClickDetectorIs.MouseClick:connect(onclicked)
I can't check if it works now because im on a linux but if it dosen't work reply the output you get. |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2013 10:21 PM |
| Btw, if you use Vector3.new it will kill the player. |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2013 10:51 PM |
Torso = player.Character.Torso
you also need to name player |
|
|
| Report Abuse |
|
|