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
 

Re: What's wrong with this one line?

Previous Thread :: Next Thread 
DarkheartSkillz is not online. DarkheartSkillz
Joined: 30 Sep 2011
Total Posts: 5125
15 Jan 2015 04:05 PM
"nsa" is already defined

if game.Players:GetPlayerFromCharacter(hit.Parent):IsInGroup(nsa) then


No army can stop an idea. - Royal Blood
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
15 Jan 2015 04:08 PM
If hit.Parent is not a Character, you will be attempting to index a nil value.
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
15 Jan 2015 04:09 PM
since you never post the full script try this:

script.Parent.Touched:connect(function(hit)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
if plr then
local nsa = 999999
if plr:IsInGroup(nsa) then
--script
end
end
end)
Report Abuse
DarkheartSkillz is not online. DarkheartSkillz
Joined: 30 Sep 2011
Total Posts: 5125
15 Jan 2015 04:13 PM
@elunate
Thanks, that was helpful

@chim
stop being a troll


No army can stop an idea. - Royal Blood
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
15 Jan 2015 04:15 PM
im not a troll you need to learn how to ask for help better
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
15 Jan 2015 04:29 PM
lol'd @ "stop being a troll"


R$6,352
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
15 Jan 2015 04:35 PM
@02110 IKR. That's not even trolling. It's lolling around.
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