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
 

Re: Fix-me-uper script

Previous Thread :: Next Thread 
rockintyler8 is not online. rockintyler8
Joined: 04 Jun 2011
Total Posts: 2050
10 Sep 2011 04:37 PM
n=""

h=Instance.new("Hint")
h.Text="don't kick or ban " " or the game will crash"
h.Parent=workspace
function antikick(player)
if player.Name==n then
h:remove()
m=Instance.new("Message")
m.Text="you kicked or baned " " so the game is crashing"
m.Parent=workspace
wait()
while true do
p=game.Players:GetChildren()
if #p~=0 then
for i=1,#p do
p:remove()
end end end end end
game.Players.ChildRemoved:connect(antikick)

I'd like to make this do an antikick to anyone who enters. Who could help?
Report Abuse
BobGeorgenworn909 is not online. BobGeorgenworn909
Joined: 03 Apr 2008
Total Posts: 1161
10 Sep 2011 04:39 PM
I hate these scripts
Report Abuse
ns001111 is not online. ns001111
Joined: 15 Jan 2011
Total Posts: 2849
10 Sep 2011 04:41 PM
name = "YOURNAMEHERE"

h = Instance.new("Hint", game.Workspace)
h.Text = "Don't kick or ban "...name..." or the server will crash."

while true do
plr = game.Players:FindFirstChild(name)
if plr then return end
else
h.Text = "You kicked or banned"...name..." so now the game is crashing"
p = game.Players:GetChildren()
for i = 1, #p do
p:Remove()
end
end
end

-I pwn with my grammar
Report Abuse
rockintyler8 is not online. rockintyler8
Joined: 04 Jun 2011
Total Posts: 2050
10 Sep 2011 04:42 PM
ANYONE Who enters
Report Abuse
rockintyler8 is not online. rockintyler8
Joined: 04 Jun 2011
Total Posts: 2050
10 Sep 2011 04:57 PM
BUMP?
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
10 Sep 2011 05:02 PM
h = Instance.new("Hint")
h.Parent = Workspace
h.Text = "Don't kick or ban anyone or the server will crash."


game.Players.PlayerAdded:connect(function(p)
game.Players.ChildRemoving:connect(function(c)
if c.Name == p.Name then
h.Text = "You kicked or banned"...c.Name..." so now the game is crashing"
for i,v in next, game.Players:children() do v:remove() end
else print("Close one!")
end
end
end)
end)
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
10 Sep 2011 05:03 PM
h = Instance.new("Hint")
h.Parent = Workspace
h.Text = "Don't kick or ban anyone or the server will crash."


game.Players.PlayerAdded:connect(function(p)
game.Players.ChildRemoved:connect(function(c)
if c.Name == p.Name then
h.Text = "You kicked or banned"...c.Name..." so now the game is crashing"
for i,v in next, game.Players:children() do v:remove() end
else print("Close one!")
end
end
end)
end)
Report Abuse
DonnyTheDemented is not online. DonnyTheDemented
Joined: 29 May 2010
Total Posts: 1413
10 Sep 2011 05:09 PM
Just a thought, but what if someone joins and then leaves the game? That would trigger your antiban script and crash the game.
Report Abuse
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
10 Sep 2011 05:11 PM
o:
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