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: Error

Previous Thread :: Next Thread 
Bomatic is not online. Bomatic
Joined: 01 Jan 2012
Total Posts: 20931
12 Apr 2012 04:36 AM
Output:Players.Player.PlayerGui.GuiMain.Script:10: attempt to index a nil value

Line 10: if plyr:findFirstChild("Shirt Graphic").Graphic == "http://www.roblox.com/asset/?id=77215906" then

Basicly checks if wearing that t-shirt, whats the error?
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
12 Apr 2012 04:37 AM
Is plyr the character? Show the whole script please.
Report Abuse
Bomatic is not online. Bomatic
Joined: 01 Jan 2012
Total Posts: 20931
12 Apr 2012 07:31 AM
Can't show the whole thing, The plyr is the character as it works when I do plyr.Name.
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
12 Apr 2012 07:33 AM
Well it's your problem if you can't show the whole thing (however). Than we can't help you.
Report Abuse
Techwiz19 is not online. Techwiz19
Joined: 30 Jan 2011
Total Posts: 462
12 Apr 2012 07:35 AM
the characters name and the players name are the same...

is it a .PlayerAdded function? Because then it would probably make plyr the player, not character
Report Abuse
Bomatic is not online. Bomatic
Joined: 01 Jan 2012
Total Posts: 20931
12 Apr 2012 07:38 AM
Here is from Line 1 to Line 11 which is the bit that broke

wait(2)
plyr = script.Parent.Parent.Parent
gui = script.Parent.Real

gui.PInfo.Play.Text = plyr.Name..", you are recognized as:"

if plyr:IsInGroup(6157) and plyr:findFirstChild("Shirt Graphic").Graphic == "http://www.roblox.com/asset/?id=77215906" then
gui.PInfo.Group.Text = "Elite Forces (General)"
Report Abuse
Bomatic is not online. Bomatic
Joined: 01 Jan 2012
Total Posts: 20931
12 Apr 2012 07:38 AM
Its within a GUI.
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
12 Apr 2012 07:40 AM
Why are you declining than?


wait(2)
plyr = script.Parent.Parent.Parent
gui = script.Parent.Real

gui.PInfo.Play.Text = plyr.Name..", you are recognized as:"

if plyr:IsInGroup(6157) and plyr.Character:findFirstChild("Shirt Graphic").Graphic == "http://www.roblox.com/asset/?id=77215906" then
gui.PInfo.Group.Text = "Elite Forces (General)"
Report Abuse
Bomatic is not online. Bomatic
Joined: 01 Jan 2012
Total Posts: 20931
12 Apr 2012 07:43 AM
Thanks for the fix.
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