dwustpan
(uhDustinn)
August 19, 2022, 7:33pm
#21
I used the example he gave, not a WHOLE new script.
ayoub50
(Ayoub)
August 19, 2022, 7:36pm
#22
you still need to change elseif to if, youāre assigning an elseif statement when there isnāt an if statement connected to it.
elseif Command:lower():find(CommandPrefix.."kick") then
dwustpan
(uhDustinn)
August 19, 2022, 7:37pm
#23
Did you not read what I said? He probably has other commands above and removed them.
Im not here to fight, but the code works fine, I used the snippet it gave to use.
ayoub50
(Ayoub)
August 19, 2022, 7:39pm
#24
yes i did read what you said,
he already said thats how his script looks like.
DeveloperCoolBoi:
local Players = game.Players
local CommandPrefix = ":"
local Admins = {
["DeveloperCoolBoi"] = "Admin"
}
Players.PlayerAdded:Connect(function(Admin)
if Admins[Admin.Name] then
Admin.Chatted:Connect(function(Command)
--Kick Command
elseif Command:sub(1, 6) == CommandPrefix.."Kick" or Command:sub(1, 6) == CommandPrefix.."kick" then
local TargetedPlayer = Players:FindFirstChild(Command:sub(7))
TargetedPlayer:Kick("You have been kicked by a moderator Blossom County Moderator")
--Kick Command
Hereās how my script looks like (most of it)
ayoub50
(Ayoub)
August 20, 2022, 10:08pm
#25
did this get solved yet? @DeveloperCoolBoi
I honestly donāt know. I fixed some of it, the rest that yall suggested didnāt worked. I made a new post for all of my admin questions instead of making 50 new posts.
Iāve never thought I would use the dev forum this much in a day lol