I am haveing a hard time doing a textboxgui I'm working on a admin gui And it has a kick function How would I link it togher with a Textbox So it would be like if a hacker ect was in the server and I open the admin I write the players name and it would kick them How would I do this?
local textBoxWithPlayerName = script.Parent.TextBox local buttonToKick = script.Parent.TextButton buttonToKick.MouseButton1Down:connect(function() local player = game.Players:FindFirstChild(textBoxWithPlayerName.Text) if player ~= nil then player:kick("Don't exploit, skrub.") else print("Player not found.") end)
Closed as Not Constructive by Perci1, docrobloxman52, and User#5978
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?