Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago
Edited 4 years ago

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

0
yeah idk its for our game bubbyjo 0 — 4y
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" Slatryte 104 — 4y
0
id recommend Adonis mistercandle 0 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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

0
ill try it bubbyjo 0 — 4y
0
does not work bubbyjo 0 — 4y
Ad

Answer this question