When I try this code, it allows players to get the Gui even though there is a group id. I'm not sure what is wrong?
if player:IsInGroup(1023003) then script.Parent:Destroy() end