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 » Scripting Helpers
Home Search
 

Kick script?

Previous Thread :: Next Thread 
BoringBen939 is not online. BoringBen939
Joined: 27 Mar 2012
Total Posts: 323
17 Jan 2014 04:18 PM
It's something like

Game.workspace.player.remove

Anyone, help?
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
17 Jan 2014 04:20 PM
Game.Workspace.player:Destroy ()
or
Game.Players.player:Destroy ()
dont use remove ()
Report Abuse
Christbru01 is not online. Christbru01
Joined: 03 Apr 2010
Total Posts: 649
17 Jan 2014 04:23 PM
Better function:

game.Players.PlayerName:Kick()

Actually disconnects them from the game..
Report Abuse
Mooskateer is not online. Mooskateer
Joined: 06 Dec 2011
Total Posts: 108
17 Jan 2014 04:27 PM
if game.Players.PlayerName = true then
game.Players.PlayerName:Kick()
end
Report Abuse
GetRoleInGroup is not online. GetRoleInGroup
Joined: 08 Jul 2013
Total Posts: 26
17 Jan 2014 04:32 PM
Ya, :kick() is what's up.
Report Abuse
barhan12 is not online. barhan12
Joined: 05 Jul 2012
Total Posts: 3
09 Sep 2014 05:13 AM
game.Players.-enter a name-:Destroy()
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
09 Sep 2014 10:56 AM
Using ":Destroy()" on a Player is stupid. >_>

They can still see the game, and have the ability to free-cam.
Report Abuse
murcury57 is not online. murcury57
Joined: 30 Jun 2010
Total Posts: 90299
09 Sep 2014 11:13 AM
[ Content Deleted ]
Report Abuse
SLY3 is not online. SLY3
Joined: 10 Jul 2008
Total Posts: 1700
09 Sep 2014 01:13 PM
KICK player:
--
Player = "PlayerNameHere"

game.Players[Player]:remove()
--

BAN player:
--
Player = "PlayerNameHere"

game.Players[Player]:remove()

game.Players.ChildAdded:connect(function(p)
if p.Name == Player then
wait(0.2)
p:remove()
end
end)
--


Report Abuse
SLY3 is not online. SLY3
Joined: 10 Jul 2008
Total Posts: 1700
09 Sep 2014 01:14 PM
Or instead of using :remove(), use :Kick()
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
09 Sep 2014 01:32 PM
':remove()' is deprecated anyways, a.k.a. the Wiki doesn't recommend it's use.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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