I am more of a builder than a scripter within ROBLOX and I was wondering how I could make a GUI pop up for everybody when a chat command is ran? I’d like to add a time limit to each GUI aswell meaning like, every 20 seconds a different GUI pops up for everyone until it has finished presenting all of the GUIs. It sounds confusing but I quite need this feature for my game. Thanks.
local plr = game.Players.LocalPlayer -- player
plr.Chatted:Connect(function(msg) -- on a message sent by the player, run this function:
if msg:lower() == "!gui" then-- check if the message in lower case is !gui
plr.PlayerGui.gui.Frame.Visible = true -- set frame to visible
Wrote on mobile, formatting might not be the best.
if plr:GetRoleInGroup(123456689) and string.lower(msg) == "jump all" then
plr.PlayerGui.MyGui.MyFrame.Visible = true