Here is the Portion of the script I dont know will work, Because I dont know how to make it to where if someone is in a table kick them on join.
if msg:sub(1,4) == "ban " then
vic = msg:sub(1,9)
m = Instance.new("Message")
m.Parent = game.Workspace
m.Text = (vic.Name.."Has Been Banned")
wait(BanTime)
m:Destroy()
table.insert(vic, bans)
game.Players.PlayerAdded:connect(function(vic)
if vic.Humanoid.Health == 100 then
vic:Kick()
end
end)
end
full script
admins = {"amegaman"}
bans = {""}
Time = 15
BanTime = 15
for i,v in pairs(IsAdmin) do
return wait(Time)
end
if msg:sub(1,4) == "msg " then
m = Instance.new("Message")
m.Parent = game.Workspace
m.Text = (Player.Name.."Says"..Player.Chatted)
wait(Time)
m:Destroy()
end
if msg:sub(1,4) == "ban " then
vic = msg:sub(1,9)
m = Instance.new("Message")
m.Parent = game.Workspace
m.Text = (vic.Name.."Has Been Banned")
wait(BanTime)
m:Destroy()
table.insert(vic, bans)
game.Players.PlayerAdded:connect(function(vic)
if vic.Humanoid.Health == 100 then
vic:Kick()
end
end)
end

1 comment
No, But I have a Very good feeling it will kick everyone who has a health percentage of 100...