hello,
I saw somebody with basic admin question that here, but I don’t have basic admin so yeah, I want to make that also with my group ranks and not with names.
local PlayerService = game:GetService("Players")
local Prefix = "!"
PlayerService.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
if string.find(msg, Prefix.."kick") then
local SplitMessage = msg.split(msg, " ")
local playerToKick = SplitMessage[2]
local Reason = SplitMessage[3]
local ModName = plr.Name
if not Reason then
PlayerService:WaitForChild(playerToKick):Kick("You have been kicked from Utopia Hotels Moderator: "..ModName.." Reason: Not Given")
end
PlayerService:WaitForChild(playerToKick):Kick("You have been kicked from Utopia Hotels Moderator: "..ModName.." Reason: "..Reason)
end
end)
end)