| |
|
ExosXguy
|
  |
| Joined: 10 Oct 2010 |
| Total Posts: 2239 |
|
|
| 18 Dec 2014 05:39 PM |
if you're using a localscript:
torso = game.Players.LocalPlayer.Character.Torso
|
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 18 Dec 2014 05:40 PM |
| local torso = player.Character.Torso |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 18 Dec 2014 05:40 PM |
You can't get the torso of a table m8
You can in fact, get the torso of a character, of a player.
local player = game.Players.LocalPlayer local torso = player.Character:FindFirstChild("Torso") |
|
|
| Report Abuse |
|
|
| |
|
|
| 18 Dec 2014 05:42 PM |
| Did he really try using the method WaitForChild on a table? Wow. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
ExosXguy
|
  |
| Joined: 10 Oct 2010 |
| Total Posts: 2239 |
|
|
| 18 Dec 2014 05:43 PM |
'local C1 = game.Workspace:WaitForChild("START") local C2 = game.Workspace:WaitForChild("END")'
think you mean
local C1 = game.Workspace:FindFirstChild("START") local C2 = game.Workspace:FindFirstChild("END")
? |
|
|
| Report Abuse |
|
|
| |
|
ExosXguy
|
  |
| Joined: 10 Oct 2010 |
| Total Posts: 2239 |
|
|
| 18 Dec 2014 05:46 PM |
Wait for child tells the script to wait for that item to be found before it proceeds. It doesn't define it.
Also, localplayer doesn't work in normal scripts. |
|
|
| Report Abuse |
|
|
| |
|
ExosXguy
|
  |
| Joined: 10 Oct 2010 |
| Total Posts: 2239 |
|
|
| 18 Dec 2014 05:50 PM |
| You could move the code into a localscript and put it into the player via his PlayerGui, Backpack, Character etc. If you want players to spawn with this script you could just pop it into StarterGui. |
|
|
| Report Abuse |
|
|