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 » Scripting Helpers
Home Search
 

Re: game.Workspace:findFirstChild("")

Previous Thread :: Next Thread 
BuildIntoGames is not online. BuildIntoGames
Joined: 02 Sep 2011
Total Posts: 6634
10 Jun 2014 04:38 PM
Why is this giving me errors? It gives me the error in output:

findfirstChild is not a valid member of Workspace

wtf?
Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
10 Jun 2014 04:39 PM
FindFirstChild

Not

findfirstChild
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Jun 2014 04:39 PM
It's not, you're doing something wrong
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Jun 2014 04:40 PM
findFirstChild also works, though it's deprecated
Report Abuse
BuildIntoGames is not online. BuildIntoGames
Joined: 02 Sep 2011
Total Posts: 6634
10 Jun 2014 04:40 PM
I'm doing FindFirstChild. I still get the error.
Report Abuse
BuildIntoGames is not online. BuildIntoGames
Joined: 02 Sep 2011
Total Posts: 6634
10 Jun 2014 04:41 PM
here's the line of code:

checkexist = game.Workspace:FindFirstChild("" .. script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Name .. "'s Pet")
Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
10 Jun 2014 04:43 PM
Not sure if that's how it works..
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Jun 2014 04:44 PM
Why do people do that...
Make sure your amount of parents are correct, I'm pretty sure the script is not that deep in.
Report Abuse
BuildIntoGames is not online. BuildIntoGames
Joined: 02 Sep 2011
Total Posts: 6634
10 Jun 2014 04:44 PM
I've been doing it like that my whole life.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Jun 2014 04:45 PM
No, why do people do this:
"" .. whatever

When whatever is a string or number, Lua already handles it for you so it just makes you look dumb.
Report Abuse
BuildIntoGames is not online. BuildIntoGames
Joined: 02 Sep 2011
Total Posts: 6634
10 Jun 2014 04:45 PM
Parents are correct.
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
10 Jun 2014 04:48 PM
He is talking about the unnecessary string concatenation with the "" .. "Other string"
Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
10 Jun 2014 04:52 PM
Don't know what you mean completely.


local dare="dsds"

print("hi"dare)--Error
print("hi"..dare)--NoError


Report Abuse
BuildIntoGames is not online. BuildIntoGames
Joined: 02 Sep 2011
Total Posts: 6634
10 Jun 2014 04:53 PM
Oops, sorry. It's fixed now.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Jun 2014 05:02 PM
LM, that's not what I am talking about.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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