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
 

Anyone know how to help?

Previous Thread :: Next Thread 
DynamicalJoe is not online. DynamicalJoe
Joined: 09 Nov 2013
Total Posts: 192
25 Jun 2015 12:03 PM
So i created a GUI, and i wanted it so that the RANK INSIDE THE GROUP must be the same as a value to change teams.

function Click(mouse) -- leave this
if script.Parent.Parent.Parent.Parent.Parent:IsInGroup(2569837) then
script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("White")
script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0
end
end

script.Parent.MouseButton1Down:connect(Click)




I think its on the lines of "GetRankInGroup(ID)" but i don't know how to do that stuff
Report Abuse
CrimsonForce is not online. CrimsonForce
Joined: 11 Sep 2010
Total Posts: 35714
25 Jun 2015 12:23 PM
function Click(mouse)
if script.Parent.Parent.Parent.Parent.Parent:IsInGroup(2569837) and
script.Parent.Parent.Parent.Parent.Parent:GetRankInGroup(2569837) => 255 then -- change 255 to the rank number you want
script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("White")
script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0
else
end
end

script.Parent.MouseButton1Down:connect(Click)
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
25 Jun 2015 12:27 PM
that is just terrible. Let me help you out

local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:connect(function()
if player:IsInGroup(2569837) and player:GetRankInGroup(2569837) == 255 then
player.TeamColor = BrickColor.new("White")
player:LoadCharacter()
end
end)
Report Abuse
DynamicalJoe is not online. DynamicalJoe
Joined: 09 Nov 2013
Total Posts: 192
23 Jul 2015 12:13 PM
Thanks
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