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: Why doesn't this small script work?

Previous Thread :: Next Thread 
Zarzac is not online. Zarzac
Joined: 26 Dec 2010
Total Posts: 15
01 Feb 2014 04:59 PM
Sorry for posting this twice, but I still don't know what to do! It's a GUI reset button that's supposed to only reset players in a specific group.

function Click(mouse)
if script.Parent.Parent.Parent.Parent.Parent:IsInGroup(18) then
script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0
end
end
Report Abuse
idyllically is not online. idyllically
Joined: 13 Mar 2010
Total Posts: 4622
01 Feb 2014 05:01 PM
script.Parent.MouseButton1Down:connect(function()
if script.Parent.Parent.Parent.Parent.Parent:IsInGroup(18) then
script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0
end
end

Outfoxing Foxes
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
01 Feb 2014 05:02 PM
You forgot to end the parenthesis on the last line ^

#nerdsunited
Report Abuse
Zarzac is not online. Zarzac
Joined: 26 Dec 2010
Total Posts: 15
01 Feb 2014 05:06 PM
Thank you so much, Idyllically and Verifiedname! That worked perfectly.
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