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
 

Team change button scripty not working!

Previous Thread :: Next Thread 
CraftioLo is not online. CraftioLo
Joined: 09 Sep 2014
Total Posts: 1937
29 Oct 2015 04:18 AM
Yeah its not working! I dont know the problem so i am asking you!

#Code
function Click(mouse)

script.Parent.Parent.Parent.Parent.Parent.Character.Health=0
if script.Parent.Parent.Parent.Parent.Parent:IsInGroup(268422)
print("IS IN A GROUP!")
if player:GetRankInGroup(268422) ~= 1 then
script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Bright blue")
end --
end

end

script.Parent.MouseButton1Down:connect(Click)


For beter roblox!
Report Abuse
Ben1925 is not online. Ben1925
Joined: 07 Apr 2011
Total Posts: 741
29 Oct 2015 04:31 AM
There's no "then" in line two
Report Abuse
minigiper is not online. minigiper
Joined: 29 Apr 2013
Total Posts: 47
29 Oct 2015 04:50 AM
line 3 script.Parent.Parent.Parent.Parent.Parent.Character u have no humanoid here and u just write Health = 0 but u need Character.Humanoid.Health = 0
Report Abuse
CraftioLo is not online. CraftioLo
Joined: 09 Sep 2014
Total Posts: 1937
29 Oct 2015 05:32 AM
@mini yeah i did that already before but it doesnt work still.


For beter roblox!
Report Abuse
CraftioLo is not online. CraftioLo
Joined: 09 Sep 2014
Total Posts: 1937
29 Oct 2015 05:38 AM
jeez im the stupidest person ever. i completlly forgot that it had to be a local script because its an GUI!


For beter roblox!
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