generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Ban command is not working

Previous Thread :: Next Thread 
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
01 Apr 2014 04:37 PM
local yes = {
["Jonnyboy2999"] = true;
}
local nope = {
["aleksa12432"]= true;
["xRageBullx"] = true;
["madiik"] = true;
["WowARealScripter"] = true;
}
game.Players.PlayerAdded:connect(function(plr)
if nope[plr.Name]then
plr:kick()
elseif yes[plr.Name] then
plr.Chatted:connect(function(msg)
if msg:sub(1,2)=="b;"then
for i,vv in pairs(game.Players:GetPlayers())do
if vv.Name == msg:sub(3)then
for i, plrs in pairs(game.Players:GetPlayers())do
plrs:WaitForChild("PlayerGui")
local screen = Instance.new("ScreenGui",plrs.PlayerGui)
local frame = Instance.new("Frame",screen)
frame.Size = UDim2.new(0.300000012, 0, 0.699999988, 0)
frame.Position = UDim2.new(-1, 0, -1, 0)
frame.BackgroundColor3 = BrickColor.new("Really black").Color
local txtlbl = Instance.new("TextLabel",frame)
txtlbl.Size = UDim2.new(0.949999988, 0, 0.949999988, 0)
txtlbl.Position = UDim2.new(0, 5, 0, 5)
txtlbl.Text = plr.Name.." has banned "..vv.Name
txtlbl.TextScaled = true
txtlbl.Font = "SourceSansBold"
frame:TweenPosition(UDim2.new(0.35, 0, 0.35, 0), "Out", "Quad", 3, false)
wait(5)
frame:TweenPosition(UDim2.new(-1, 0, 0, 0), "Out", "Quad", 3, false)
wait(3)
frame:remove()
vv:Kick()
table.insert(nope, 1, vv.Name)
end
end
end
end
end)
end
end)

It lets them rejoin but doesn't kick them again.
Report Abuse
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
01 Apr 2014 04:52 PM
B1 (Btw Jonnyboy2999 is a alt I created this on.)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image