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 |
|
|
|
| 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 |
|
|
|
| 15 Feb 2016 02:10 PM |
Player:Kick()
#Code print("Narwhals are our future") |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 15 Feb 2016 02:14 PM |
he calls it simple because..
it is simple
|
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 24 Dec 2011 |
| Total Posts: 202 |
|
|
| 15 Feb 2016 02:57 PM |
| I still would be able to tell, dumbass. |
|
|
| Report Abuse |
|
|
|
| 15 Feb 2016 03:02 PM |
| Point out one part of my script thats bad practice. |
|
|
| Report Abuse |
|
|
G0odby3
|
  |
| Joined: 26 Jan 2016 |
| Total Posts: 5587 |
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|