This line:
You should do this instead:
(Note that I don't do Lua at all so the code may be syntactically wrong)
Explanation: Player may be a member of multiple groups; Player:GetGroups() returns all the groups, so you need to search the returned list of groups for yourparticular group name.
Code:
if (Player:GetGroups() == "Admins") then
You should do this instead:
Code:
for Key, Group in pairs(Player:GetGroups()) do
if (Group:GetName() == "Admins") then
return true
end
end
(Note that I don't do Lua at all so the code may be syntactically wrong)
Explanation: Player may be a member of multiple groups; Player:GetGroups() returns all the groups, so you need to search the returned list of groups for yourparticular group name.