|
| 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
|
  |
| 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 |
|
|
| |
|
Real_Edgy
|
  |
| Joined: 23 Oct 2013 |
| Total Posts: 1212 |
|
| |
|
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 |
|
|
| |
|
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 |
|
|
|
| 31 Aug 2016 05:09 PM |
plr = script.Parent.Parent.kickplrname.Text
script.Parent.MouseButton1Down:connect(function() game.Players.plr:remove() end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 31 Aug 2016 05:13 PM |
| whats the name of the textbox? |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|