of     2   
chevron_rightchevron_rightchevron_right

nate890
#16388809Saturday, November 07, 2009 4:55 PM GMT

function Click(mouse) local find = script.Parent.Parent.TextBox.Text.Players:findFirstChild if find ~= nil then find:remove() end end script.Parent.MouseButton1Down:connect(Click)
riseofdiablo
#16388957Saturday, November 07, 2009 4:58 PM GMT

local find = script.Parent.Parent.TextBox.Text.Players:findFirstChild Messed up there. Try this local find = script.Parent.Parent.TextBox.Text.Players:findFirstChild("Objectname")
nate890
#16389089Saturday, November 07, 2009 5:02 PM GMT

Didnt work Players.Player.PlayerGui.GuiMain.TextButton.Script:2: attempt to index field 'Players' (a nil value)
nate890
#16389128Saturday, November 07, 2009 5:03 PM GMT

Would this work on solo, if I were to type my own name "player"?
nate890
#16390868Saturday, November 07, 2009 5:41 PM GMT

Bump function Click(mouse) local find = script.Parent.Parent.TextBox.Text.Players if find ~= nil then find:remove() end end script.Parent.MouseButton1Down:connect(Click)
nate890
#16391291Saturday, November 07, 2009 5:50 PM GMT

bump
masterstar
#16445323Sunday, November 08, 2009 6:54 PM GMT

What do you want the script to do? That is what you should have told from the start.
masterstar
#16445854Sunday, November 08, 2009 7:05 PM GMT

Is it an admin ability that you can use to kick people from the game?
nate890
#16445875Sunday, November 08, 2009 7:05 PM GMT

Its a text box, you type in a players name in the text box, then you click the button (the textbox doesnt include the script) the textbutton does, afdter you press the button it finds the players name thst you typed in then kickes him
drummerp
#16446068Sunday, November 08, 2009 7:09 PM GMT

Not sure you can use the remove function on a Player object, but try this: function Click(mouse) local playername = script.Parent.Parent.TextBox.Text local player = game.Player:findFirstChild(playername) if player ~= nil then player:remove() end end script.Parent.MouseButton1Down:connect(Click)
FoodTests
#16446181Sunday, November 08, 2009 7:12 PM GMT

On line 3 it is game.Players(with an S).
RightLegRed
#16446193Sunday, November 08, 2009 7:12 PM GMT

function OnButtonDown() e = script.Parent.Parent.TextBox.Text g = game.Players:GetChildren() for i = 1, #g do if string.lower(g[i].Name) == e then g[i]:Remove() end end end script.Parent.MouseButton1Click:connect(OnButtonDown)
RightLegRed
#16446217Sunday, November 08, 2009 7:12 PM GMT

TextBox GUIs don't have Capitals. Names do. Just so you know.
nate890
#16446333Sunday, November 08, 2009 7:14 PM GMT

Do you think it would work in solo? and it didnt work... output: Sun Nov 08 02:14:25 2009 - Player is not a valid member of DataModel Sun Nov 08 02:14:25 2009 - Players.Player.PlayerGui.GuiMain.TextButton.Script, line 3 stack end
blocco
#16446369Sunday, November 08, 2009 7:15 PM GMT

It's game.Players
RightLegRed
#16446370Sunday, November 08, 2009 7:15 PM GMT

Mine works. I copied it outof my Admin controls.
nate890
#16446377Sunday, November 08, 2009 7:15 PM GMT

I dont think caps matter
RightLegRed
#16446405Sunday, November 08, 2009 7:16 PM GMT

Fine then, you think that. Have fun~
blocco
#16446406Sunday, November 08, 2009 7:16 PM GMT

@nate: LISTEN TO MY POST... I POSTED IT FOR A REASON. caps... :P
nate890
#16446411Sunday, November 08, 2009 7:16 PM GMT

It works rlr thx, caps dont matter
drummerp
#16446437Sunday, November 08, 2009 7:17 PM GMT

I just accidentally misspelled "Players" (forgot the s). Try this: function Click(mouse) local playername = script.Parent.Parent.TextBox.Text local player = game.Players:findFirstChild(playername) if player ~= nil then player:remove() end end script.Parent.MouseButton1Down:connect(Click)
nate890
#16446517Sunday, November 08, 2009 7:19 PM GMT

rpr's works, that one doesnt
RightLegRed
#16446558Sunday, November 08, 2009 7:20 PM GMT

@Nate, If my name is RightLegRed, and I tried to kick rightlegred it wouldn't work. CAPS DO MATTER.
drummerp
#16446566Sunday, November 08, 2009 7:20 PM GMT

What's the output on mine?
RightLegRed
#16446587Sunday, November 08, 2009 7:21 PM GMT

@Drummer, why are you still trying if he already has a fixed one?

    of     2   
chevron_rightchevron_rightchevron_right