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 please?

Previous Thread :: Next Thread 
jaxxcoolboy is not online. jaxxcoolboy
Joined: 26 Nov 2013
Total Posts: 192
31 Aug 2016 04:47 PM
Ok when I press a button, I want it to kick the player in the textbox's text. Here is the script.

plr = script.Parent.Parent.kickplrname.Text

script.Parent.MouseButton1Click:connect(function()
game.Players.plr:Kick()
end)
Report Abuse
iYzarky is not online. iYzarky
Joined: 01 Jun 2009
Total Posts: 1271
31 Aug 2016 04:51 PM
Wouldn't it be :Destroy()
not Kick()...


I don't even care hummie
Report Abuse
jaxxcoolboy is not online. jaxxcoolboy
Joined: 26 Nov 2013
Total Posts: 192
31 Aug 2016 04:58 PM
Idk.
Report Abuse
Real_Edgy is not online. Real_Edgy
Joined: 23 Oct 2013
Total Posts: 1212
31 Aug 2016 04:59 PM
game.Players[plr]:Kick()
Report Abuse
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
31 Aug 2016 05:00 PM
"Wouldn't it be :Destroy()
not Kick()..."

please only help if you know what you're on about.

Also;
http://wiki.roblox.com/index.php?title=API:Class/Player/Kick


All these questions have driven me into existential angst and I find myself beginning to question myself and my motives
Report Abuse
jaxxcoolboy is not online. jaxxcoolboy
Joined: 26 Nov 2013
Total Posts: 192
31 Aug 2016 05:01 PM
does not work
Report Abuse
iYzarky is not online. iYzarky
Joined: 01 Jun 2009
Total Posts: 1271
31 Aug 2016 05:03 PM
"please only help if you know what you're on about."

That's like saying leave a question blank on a test because you don't know the answer.

It doesn't work that way, you give it a guess even if you're uncertain, which is the reason I answered with a question because I was uncertain.


I don't even care hummie
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
31 Aug 2016 05:09 PM
plr = script.Parent.Parent.kickplrname.Text

script.Parent.MouseButton1Down:connect(function()
game.Players.plr:remove()
end)
Report Abuse
jaxxcoolboy is not online. jaxxcoolboy
Joined: 26 Nov 2013
Total Posts: 192
31 Aug 2016 05:11 PM
Doesn't work.
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
31 Aug 2016 05:13 PM
whats the name of the textbox?
Report Abuse
jaxxcoolboy is not online. jaxxcoolboy
Joined: 26 Nov 2013
Total Posts: 192
31 Aug 2016 05:15 PM
kickplrname
Report Abuse
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
31 Aug 2016 05:16 PM
Kick() can be used to remove players as well as Destroy()

but with Kick() you can also add a message that will be shown to the player

game.Players["Mister_Manakin"]:Kick("You are a noob.")
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
31 Aug 2016 05:20 PM
do u have a variable for "kickplrname"?

if not then
local kickplrname = script.Parent.Parent.kickplrname

then put in my script or yours
Report Abuse
jaxxcoolboy is not online. jaxxcoolboy
Joined: 26 Nov 2013
Total Posts: 192
31 Aug 2016 05:32 PM
eh ill fix it later
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