WolfRBLX
|
  |
| Joined: 27 Aug 2015 |
| Total Posts: 326 |
|
|
| 24 Mar 2017 07:42 PM |
Please fix any bit of the script.
game.Players.PlayerAdded:connect(function(player) for i,v in pairs(script:GetChildren()) do if v == player.UserId then player:Kick('You are banned from the game. | Reason : ' ..script[v].Value.. '') end end end)
|
|
|
| Report Abuse |
|
|
|
| 24 Mar 2017 07:48 PM |
if v.Value == player.UserId then player:Kick('You are banned from the game. | Reason : ' ..v.Value.. '') end |
|
|
| Report Abuse |
|
|
WolfRBLX
|
  |
| Joined: 27 Aug 2015 |
| Total Posts: 326 |
|
|
| 24 Mar 2017 07:56 PM |
if v.Name == etc..**
Also does not work still.
|
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 24 Mar 2017 07:59 PM |
BannedIDs = {1234,4321,0000}
game.Players.PlayerAdded:connect(function(player) for _,v in next,BannedIDs do if player.UserId == v then player:Kick("You are banned from this game. | Reason: "..v) end end end)
|
|
|
| Report Abuse |
|
|
WolfRBLX
|
  |
| Joined: 27 Aug 2015 |
| Total Posts: 326 |
|
|
| 24 Mar 2017 08:09 PM |
Anyway I can include the reasons with the script instead of having all the stringvalues inside the script as children
|
|
|
| Report Abuse |
|
|
WolfRBLX
|
  |
| Joined: 27 Aug 2015 |
| Total Posts: 326 |
|
| |
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 25 Mar 2017 05:03 AM |
restate your question because I'm 99% sure what I gave you is what you want
|
|
|
| Report Abuse |
|
|