Sets the permission level for a given userId in Adminsįunction Permission:SetUserPermission(userId, permission) If tonumber(isAdmin) then return true end - True: user found in Admin table and is a numericalranking ? False: user not found in Admin table or found and not a numberĮrror("Stored permission level is an invalid type") If not tonumber(userId) then error(string.format("Incorrect value: given '%s' when expecting '%s'.", typeof(userId), "number")) end Returns whether or not a given userId exists in Admins :GetUserGroupRankPermission(number userId) :GetGroupRankPermission(number groupId, number rankId) :SetGroupRankPermission(number groupId, number rankId, number permission) :ContainsGroupRank(number groupId, number rankId) -> bool ![]() :GetUserPermission(number userId) -> number :SetUserPermission(number userId, number permission) -> bool Original Module Script: local Permission = I will provide the original Permissions Module and the edits I’ve tried so far: I’ve tried to edit the scripts a few times but the end result is always “ValiantWind is not an admin” when I try to play test in Studio. They weren’t very clear on the tutorial on how to specifically set group ranks for the commands, so I need help on how to. There aren’t any errors in the output either. ![]() They also provided a Permissions Module where I could restrict the Admin Commands to certain players or certain ranks in a group, but I’m having trouble figuring out how to set the admin commands for certain ranks in my group only. I was toying around with the Quick-Admin Command Script I found in The Roblox Developer Hub.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |