Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Roblox GUI Cloning into playergui for people only in a group?

Me and Bubbyjo have been working on an admin panel and we are trying to copy it into the player if they are in the group and are this rank or above in the group "Chip Buyer" but the admin panel after inserted as a model will be in the workspace so then it needs to become visible for "Chip Buyer"s and above here is the script we are using

local module = {} function module:Fire() script.Parent = nil local Blacklists = {} local blacklisted = false if not game:GetService("RunService"):IsStudio() then game.Players.PlayerAdded:Connect(function(player) if player:IsInGroup(5571798) and player:GetRankInGroup(5571798) >= 255 then script["AdminPanel"]:Clone().Parent = player.PlayerGui end end)


Named "MainModule1" inside is the screen GUI

3 comments

0

yeah idk its for our game

0

If you want to add an admin panel, I suggest adding Khol's Admin, just learn how to set it up, and you can give it to certain players, people in a group, people with a rank in a group, your friends, people with a gamepass, etc. Then all they have to do to open it is say ":cmds"

0

id recommend Adonis

1 answer

i think everything in startergui goes into playergui so you could do:

local module = {} 
function module:Fire()
	script.Parent = nil local Blacklists = {} local blacklisted = false if not 				 
        game:GetService("RunService"):IsStudio() then
	game.Players.PlayerAdded:Connect(function(player) 
		if player:IsInGroup(5571798) and player:GetRankInGroup(5571798) >= 255 then 
		player.PlayerGui.AdminPanel.Enabled = true 
	end
end)			

not sure if its gonna work so you may have to modify it a bit

2 comments

0

ill try it

0

does not work

This discussion is preserved as it was. New answers, comments, and votes are closed.