Good evening,
I am currently creating an admin system, and I would like some guidance on where to go from if msg:lower() == Prefix.."kick "
. Specifically, I would like to know how to make the kick command work on other players.
1 | if p.AdminLevel.AdminValue.Value = = "Moderator" or p.Admin.AdminValue.Value = = "Administrator" or p.Admin.AdminValue.Value = = "Super Administrator" or p.Admin.AdminValue.Value = = "Owner" or p.Admin.AdminValue.Value = = "Game Creator" then |
2 | p.Chatted:Connect( function (msg) |
3 | if msg:lower() = = Prefix.. "kick " |
4 | end ) |
5 | end |
6 | end ) |
Finally, I found it! This website here should help you do it.
It says "onOwnerChatted" as a function, but you just have to change that to all players and add "if" so only Mods, Admins, Super Admins, Owner, and Game Creator can kick.
Something like:
1 | if message:sub( 1 , kickCommand:len()):lower() = = kickCommand:lower() and p.AdminLevel.AdminValue.Value = = "Moderator" or .... |
If you want more help let me know, but it seems like you are a pretty good scripter and know what your doing.