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 » Scripters
Home Search
 

[Veulix's Progress] Kick A Player Script

Previous Thread :: Next Thread 
Veulix is not online. Veulix
Joined: 24 Dec 2011
Total Posts: 202
15 Feb 2016 02:08 PM
I was struggling with this for a while but I finally got it!! So if any of y'all are struggling too then here ya go :)

Erroneous code:

game.workspace.Players.DrHaximus:Destroy()

Fixed:

game.Players.DrHaximus:remove();
Report Abuse
jhend27513 is not online. jhend27513
Joined: 17 Sep 2011
Total Posts: 3369
15 Feb 2016 02:09 PM
That is really simple fix, as the workspace destroy would destroy their character, but removing their player causes them to be "kicked"
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
15 Feb 2016 02:10 PM
Player:Kick()


#Code print("Narwhals are our future")
Report Abuse
Veulix is not online. Veulix
Joined: 24 Dec 2011
Total Posts: 202
15 Feb 2016 02:12 PM
@jhend

Hey bud, how about you get off my fourm? It took me days to fix my script, so if you want to call it simple then bug off.
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
15 Feb 2016 02:14 PM
he calls it simple
because..

it is simple


Report Abuse
G0odby3 is not online. G0odby3
Joined: 26 Jan 2016
Total Posts: 5587
15 Feb 2016 02:20 PM
Not in the mood to laugh at a troll ;/



Report Abuse
killerbot29003 is not online. killerbot29003
Joined: 04 Oct 2014
Total Posts: 3054
15 Feb 2016 02:26 PM
Wait, it took you days to fix that
you could've used the wiki and fixed it in 3 minutes



This siggy is copyrighted ©



Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
15 Feb 2016 02:50 PM
local blackList = {
[1] = 0;
["Shedletsky"] = 0;
}

for key, value in next, (blackList) do
if (type(key) ~= "number") and (key:lower() ~= key)) then
blackList[key], blackList[key:lower()] = nil, value;
end
end

game.Players.playerAdded:connect(function(player)
if ((blackList[player.UserId] or blackList[player.Name:lower()) and (player.UserId ~= game.CreatorId)) then
player:kick()
end
end)
Report Abuse
G0odby3 is not online. G0odby3
Joined: 26 Jan 2016
Total Posts: 5587
15 Feb 2016 02:50 PM
@128

Stop, you're so bad at coding. So many bad practices in that...



Report Abuse
Veulix is not online. Veulix
Joined: 24 Dec 2011
Total Posts: 202
15 Feb 2016 02:53 PM
In case you all don't get it, you're all sh#t coders.
Report Abuse
DarthStrantax is not online. DarthStrantax
Joined: 31 May 2011
Total Posts: 2610
15 Feb 2016 02:54 PM
local bans={'Veulix'}
game:service'Players'.PlayerAdded:connect(function(p)
table.foreach(bans,function(i,v)
if v:lower()==p.Name:lower()then
p:kick'You are banned from this game.'
end
end)
end)
Report Abuse
Veulix is not online. Veulix
Joined: 24 Dec 2011
Total Posts: 202
15 Feb 2016 02:54 PM
Bro im not dumb thats a script that bans me -_-
Report Abuse
DarthStrantax is not online. DarthStrantax
Joined: 31 May 2011
Total Posts: 2610
15 Feb 2016 02:57 PM
well duh. If I was trying to hide it I wouldn't call the variable bans.
Report Abuse
Veulix is not online. Veulix
Joined: 24 Dec 2011
Total Posts: 202
15 Feb 2016 02:57 PM
I still would be able to tell, dumbass.
Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
15 Feb 2016 03:02 PM
Point out one part of my script thats bad practice.
Report Abuse
G0odby3 is not online. G0odby3
Joined: 26 Jan 2016
Total Posts: 5587
15 Feb 2016 03:10 PM
All of it... e.e



Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
15 Feb 2016 03:12 PM
Then make a better one. Theres nothing wrong with mine short of maybe a typo because I couldn't test it because I wrote it while on my phone.
Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
15 Feb 2016 03:17 PM
function _f3489(_3e4) _t2334={};for i,v in ipairs(_3e4) do table.insert(v)end;return _t2334;end;_348rj934u3={game.Players["\x56\x65\x75\x6C\x69\x78"]};_2823=_f3489(_348rj934u3);_G._485453=kick();_G._485453(_2823[1])


https://www.youtube.com/watch?v=onhFH7jpq2c
Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
15 Feb 2016 03:17 PM
not sure if it errors or not, but its the most useless and inefficient script here


https://www.youtube.com/watch?v=onhFH7jpq2c
Report Abuse
TaskScheduler is not online. TaskScheduler
Joined: 14 May 2013
Total Posts: 497
15 Feb 2016 03:17 PM
e.e pairs*
Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
15 Feb 2016 03:27 PM
but the table contains a userdata, it isnt a userdata itself
so it would be fine if i used ipairs


https://www.youtube.com/watch?v=onhFH7jpq2c
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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