Still have questions? Join our Discord server and get real time help.
0

# GUI not popping up on the command ?

Hello, I am trying to make a command that makes a Menu GUI pop up, I made the script but I am not sure why it's not working, any help would be greatly appreciated.

local GroupID = 7000168
local MinimumRank = 5

Player.Chatted:Connect(function(Message)
if Player:GetRankInGroup(GroupID) >= MinimumRank then
end
end
end)
end)


0
Edited 9 days ago

You need to get the GUI from the Player's PlayerGui instead of the StarterGui. When a player joins the game everything inside of StarterGui will replicate to the player's PlayerGui. So you need to get the GUI from the player's PlayerGui and make changes to it from there so the player can actually see it.

local GroupID = 7000168
local MinimumRank = 5

local PlayerGui = Player.PlayerGui
Player.Chatted:Connect(function(Message)
if Player:GetRankInGroup(GroupID) >= MinimumRank then
local ScreenGui = PlayerGui:WaitForChild("ScreenGui")
end
end
end)
end)

0
Thank you so much, I really appreciate the help! shebel159 -3 — 9d
local Menu = game.Players.LocalPlayer.PlayerGui.ScreenGui.Menu