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: Is there a way to ban people from your game?

Previous Thread :: Next Thread 
Trfe2000 is not online. Trfe2000
Joined: 23 Apr 2016
Total Posts: 73
23 Aug 2017 11:26 AM
Is there a way to ban people from your game?
I couldn't really make much sense out of the wiki..
If there is a way then also how can you do it?
I would very much appreciate your help!!
Report Abuse
Camper0008 is not online. Camper0008
Joined: 07 Apr 2013
Total Posts: 2504
23 Aug 2017 11:28 AM
local banlist = {}


game.Players.PlayerAdded:Connect(function(plr)
for i = 1, #banlist do
if banlist[i] == plr.Name or plr.UserId then
plr:Kick("You have been banned.")
end
end
end)


╴ “I seem to get mentioned alot in videogames.. i wonder why..”
Report Abuse
SSSpencer413 is not online. SSSpencer413
Joined: 27 Jan 2016
Total Posts: 375
23 Aug 2017 11:29 AM
Yes, you can ban people from your game, but it's not the traditional style of banning as they can still technically join your game.

Basically, make a datastore and store a value that lets the game know if the player joining is banned or not. If they are, kick them!


#code error("Signature not found!")
Report Abuse
Trfe2000 is not online. Trfe2000
Joined: 23 Apr 2016
Total Posts: 73
23 Aug 2017 11:31 AM
Ah ok! I understand it now thanks a lot!
Report Abuse
RobuxLife is not online. RobuxLife
Joined: 19 Sep 2012
Total Posts: 13336
23 Aug 2017 11:34 AM
Use a DataStore. Reason why? It can be used across Universes in your game, and you won't have to re-add the list each time.


Report Abuse
DrellCCK is online. DrellCCK
Joined: 30 Jun 2017
Total Posts: 130
23 Aug 2017 11:36 AM
banlist.


hey buds
Report Abuse
Trfe2000 is not online. Trfe2000
Joined: 23 Apr 2016
Total Posts: 73
23 Aug 2017 11:38 AM
Yes I understand. Thx a lot!
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