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: A GUI that only comes up for group members

Previous Thread :: Next Thread 
xBinaryBlack is not online. xBinaryBlack
Joined: 19 Mar 2014
Total Posts: 75
01 Oct 2015 03:56 PM
I need a Gui For a group called ROBLOX Moderation Safety like you click OwnerPannel And it comes up for the owner only! if you can help thanks!
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
01 Oct 2015 03:58 PM
alright here you go
http://wiki.roblox.com/index.php/Scripting_Book
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
01 Oct 2015 03:58 PM
1. http://wiki.roblox.com/index.php?title=API:Class/Players/PlayerAdded
2. http://wiki.roblox.com/index.php?title=API:Class/Player/IsInGroup
3. http://wiki.roblox.com/index.php?title=API:Class/Player/CharacterAdded
4. http://wiki.roblox.com/index.php?title=API:Class/GuiObject/Visible

-The [Guy]

Report Abuse
xBinaryBlack is not online. xBinaryBlack
Joined: 19 Mar 2014
Total Posts: 75
01 Oct 2015 04:01 PM
Thank's! But i got this bool IsInGroup (
int groupId
) Where do i add groupID?
Report Abuse
CaptainGector is not online. CaptainGector
Joined: 02 May 2014
Total Posts: 487
01 Oct 2015 04:02 PM
IsInGroup(Put the group id here)
I think... Never used group stuff before.
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
01 Oct 2015 04:03 PM
Your group ID is 2672039, found at the end of the URL when you visit your group page.

-The [Guy]
Report Abuse
CaptainGector is not online. CaptainGector
Joined: 02 May 2014
Total Posts: 487
01 Oct 2015 04:03 PM
Bool IsInGroup() just means it returns a true/false value,
int groupId just means that the group id is going to be an integer, a number.
Report Abuse
xBinaryBlack is not online. xBinaryBlack
Joined: 19 Mar 2014
Total Posts: 75
01 Oct 2015 04:06 PM
So like bool IsInGroup (2672039)
int groupId
Report Abuse
xBinaryBlack is not online. xBinaryBlack
Joined: 19 Mar 2014
Total Posts: 75
01 Oct 2015 04:07 PM
And How do i make it so only a HR can open it like the rank?
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
01 Oct 2015 04:09 PM
http://wiki.roblox.com/index.php?title=API:Class/Player/GetRankInGroup

-The [Guy]
Report Abuse
xBinaryBlack is not online. xBinaryBlack
Joined: 19 Mar 2014
Total Posts: 75
01 Oct 2015 04:15 PM
Thanks i need to know how to make commands too can you help?
Report Abuse
Lordlukervol is not online. Lordlukervol
Joined: 29 May 2012
Total Posts: 749
01 Oct 2015 04:17 PM
playerchatevent
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
01 Oct 2015 04:18 PM
Like admin commands?

1. http://wiki.roblox.com/index.php?title=API:Class/Player/Chatted
2. http://wiki.roblox.com/index.php?title=Function_dump/String_manipulation#string.sub
3. http://wiki.roblox.com/index.php/Chat_commands

-The [Guy]
Report Abuse
xBinaryBlack is not online. xBinaryBlack
Joined: 19 Mar 2014
Total Posts: 75
01 Oct 2015 04:22 PM
BusyCityGuy do you think you can help me make my group its a Protection group like RAE.
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
01 Oct 2015 04:23 PM
I can keep supplying the related wiki links if you like. :P

-The [Guy]
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
01 Oct 2015 04:33 PM
game.Players.PlayerAdded:connect(function(player)
player:IsInGroup(2672039) then
local groupGui = player.PlayerGui:FindFirstChild("GroupOnlyScreenGui"):wait()
groupGui.Frame.Visible = true
if player:GetRankInGroup(2672039) >= 7 then
groupGui.Frame.HRFrame.Visible = true
end
end
end)

Obviously adjust the paths to your GUIS to match your needs, but hopefully this can get you started.

-The [Guy]
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
01 Oct 2015 04:34 PM
game.Players.PlayerAdded:connect(function(player)
player:IsInGroup(2672039) then
player.CharacterAdded:connect(function()
local groupGui = player.PlayerGui:FindFirstChild("GroupOnlyScreenGui"):wait()
groupGui.Frame.Visible = true
if player:GetRankInGroup(2672039) >= 7 then
groupGui.Frame.HRFrame.Visible = true
end
end
end
end)

Sorry I forgot to do it when they spawn. Use this code instead.

-The [Guy]
Report Abuse
danielhall2009 is not online. danielhall2009
Joined: 30 Nov 2013
Total Posts: 2
01 Oct 2015 04:39 PM
Can you make 5 Group only commands for a rank -- a group

i need the prefix too be * and the cmds are

safe -- gives a forcefiled and god mode

kill -- Kills the person u wanna kill

Sm -- Puts a msg on the screen u can X out

Shutdown -- shutdown the server

kick -- kicks the person

Only them commands
Report Abuse
xBinaryBlack is not online. xBinaryBlack
Joined: 19 Mar 2014
Total Posts: 75
01 Oct 2015 04:42 PM
Hes me ;-;
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
01 Oct 2015 04:42 PM
I'd rather not.

-The [Guy]
Report Abuse
xBinaryBlack is not online. xBinaryBlack
Joined: 19 Mar 2014
Total Posts: 75
01 Oct 2015 04:43 PM
Also what do i put in GroupOnlyScreenGui hm?
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
01 Oct 2015 04:46 PM
> StarterGui (folder)
>> GroupOnlyScreenGui (ScreenGui)
>> Frame (Frame - the whole group sees this, outsiders dont)
>> HRFrame (Frame - only the HR's in the group see this)

Start with both frames invisible.
Put whatever you want in the frames for the groups to see.
-The [Guy]
Report Abuse
xBinaryBlack is not online. xBinaryBlack
Joined: 19 Mar 2014
Total Posts: 75
01 Oct 2015 04:51 PM
game.Players.PlayerAdded:connect(function(player)
player:IsInGroup(2672039) then
player.CharacterAdded:connect(function()
local groupGui = player.PlayerGui:FindFirstChild("GroupOnlyScreenGui"):wait() -- Change GroupOnlyScreenGui too ROBLOXModerationSafety right?
groupGui.Frame.Visible = true
if player:GetRankInGroup(2672039) >= 7 then
groupGui.Frame.Owner.Visible = true
end
end
end
end)
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
01 Oct 2015 04:53 PM
game.Players.PlayerAdded:connect(function(player)
if player:IsInGroup(2672039) then
player.CharacterAdded:connect(function()
local groupGui = player.PlayerGui:FindFirstChild("ROBLOXModerationSafety"):wait()
groupGui.Frame.Visible = true
if player:GetRankInGroup(2672039) >= 7 then
groupGui.Frame.Owner.Visible = true
end
end)
end
end)

So your setup looks like this?

>PlayerGui
>> ROBLOXModerationSafety (ScreenGui)
>>> Frame (Frame)
>>>> Owner (some kind of gui object)

-The [Guy]
Report Abuse
xBinaryBlack is not online. xBinaryBlack
Joined: 19 Mar 2014
Total Posts: 75
01 Oct 2015 04:54 PM
Yes But i have more GUIS in there
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