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
 

Re: Help

Previous Thread :: Next Thread 
WolfRBLX is not online. 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
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
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 is not online. 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 is not online. 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 is not online. 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 is not online. WolfRBLX
Joined: 27 Aug 2015
Total Posts: 326
24 Mar 2017 09:13 PM
Bump


Report Abuse
Soybeen is not online. 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
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