VeulixJoin Date: 2011-12-24 Post Count: 202 |
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(); |
|
|
That is really simple fix, as the workspace destroy would destroy their character, but removing their player causes them to be "kicked" |
|
|
Player:Kick()
#Code print("Narwhals are our future") |
|
VeulixJoin Date: 2011-12-24 Post Count: 202 |
@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. |
|
|
he calls it simple
because..
it is simple
|
|
G0odby3Join Date: 2016-01-26 Post Count: 5587 |
Not in the mood to laugh at a troll ;/
|
|
|
|
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) |
|
G0odby3Join Date: 2016-01-26 Post Count: 5587 |
@128
Stop, you're so bad at coding. So many bad practices in that...
|
|
VeulixJoin Date: 2011-12-24 Post Count: 202 |
In case you all don't get it, you're all sh#t coders. |
|
|
VeulixJoin Date: 2011-12-24 Post Count: 202 |
Bro im not dumb thats a script that bans me -_- |
|
|
VeulixJoin Date: 2011-12-24 Post Count: 202 |
I still would be able to tell, dumbass. |
|
|
Point out one part of my script thats bad practice. |
|
G0odby3Join Date: 2016-01-26 Post Count: 5587 |
All of it... e.e
|
|
|
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. |
|
|
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 |
|
|
not sure if it errors or not, but its the most useless and inefficient script here
https://www.youtube.com/watch?v=onhFH7jpq2c |
|
|
|
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 |
|