generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

[ Content Deleted ]

Previous Thread :: Next Thread 
WAATERMELON is not online. WAATERMELON
Joined: 03 Jul 2014
Total Posts: 921
18 Dec 2014 05:38 PM
[ Content Deleted ]
Report Abuse
ExosXguy is not online. 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 is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
18 Dec 2014 05:40 PM
local torso = player.Character.Torso
Report Abuse
Goulstem is not online. 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
WAATERMELON is not online. WAATERMELON
Joined: 03 Jul 2014
Total Posts: 921
18 Dec 2014 05:41 PM
[ Content Deleted ]
Report Abuse
laurence122 is not online. laurence122
Joined: 17 Sep 2011
Total Posts: 135
18 Dec 2014 05:42 PM
Did he really try using the method WaitForChild on a table? Wow.
Report Abuse
WAATERMELON is not online. WAATERMELON
Joined: 03 Jul 2014
Total Posts: 921
18 Dec 2014 05:42 PM
[ Content Deleted ]
Report Abuse
WAATERMELON is not online. WAATERMELON
Joined: 03 Jul 2014
Total Posts: 921
18 Dec 2014 05:43 PM
[ Content Deleted ]
Report Abuse
ExosXguy is not online. 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
WAATERMELON is not online. WAATERMELON
Joined: 03 Jul 2014
Total Posts: 921
18 Dec 2014 05:44 PM
[ Content Deleted ]
Report Abuse
ExosXguy is not online. 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
WAATERMELON is not online. WAATERMELON
Joined: 03 Jul 2014
Total Posts: 921
18 Dec 2014 05:48 PM
[ Content Deleted ]
Report Abuse
ExosXguy is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image