|
| 12 Feb 2015 05:17 PM |
I want a button that only clickable (or viewable) if you're in my group "The Greenwood Kings". Can someone please edit my current script to make people only able to switch to it if they're in "The Greenwood Kings" Group. If you help me I'll be thankful. :3
GUI Script:
function Click(mouse) if script.Parent.Parent.Parent.Parent.Parent:IsInGroup(1111297) then script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Bright green") end end
script.Parent.MouseButton1Click:connect(Click)
|
|
|
| Report Abuse |
|
|
|
| 12 Feb 2015 05:21 PM |
local player = game.Players.LocalPlayer local GROUP_ID = 0000 script.Parent.MouseButton1Click:connect(function() if player:IsInGroup(GROUP_ID) then player.TeamColor = BrickColor.new("blah") player:LoadCharacter() end end) |
|
|
| Report Abuse |
|
|
|
| 12 Feb 2015 05:22 PM |
| Do I add that to the script (If so the top or bottom) or do I just change the script to that completley? |
|
|
| Report Abuse |
|
|
|
| 12 Feb 2015 05:35 PM |
| Aha, got it to work. Thanks mate, you're freaking awesome! |
|
|
| Report Abuse |
|
|
|
| 12 Feb 2015 05:53 PM |
| LocalScript in the GUI element |
|
|
| Report Abuse |
|
|