I want to make a chat command that opens a gui but I can't seem to figure out how to make the gui open and how to make it group rank based?

function onChatted(msg, speaker)
local source = string.lower(speaker.Name)
msg = string.lower(msg)
if msg == "/stafflock" then

3 comments

0

you would define player then write if the player is in the group.

0

and then what group rank number.

0

or just getservice players.