Hi, Today I just made this script but whenever I try to test it playing the game it won't work, am I doing something wrong?
--[Variables]--
GroupId = 1009344
RankId = 255
Maps = game.ServerStorage.Maps
--[Debounces]--
Intermission = false
SimulationStarted = false
Locked = false
--[functions/System code]--
function HighRank(Player)
if Player:GetRankInGroup(GroupId) == RankId then
function Commands(message)
if message == "Oblithian:Start:Sim" and SimulationStarted == false then
SimulationStared = true
Player:Destroy()
end
end
Player.Chatted:connect(Commands)
end
end
game.Players.PlayerAdded:connect(HighRank)
It's in a Script(Not Local) by the way.

2 comments
Please don't title a question "what's wrong with this script?"
I don't see anything wrong. c: That's my question is grammatically correct, if you are going to down-vote it for that, get a valid reason.