Im kinda new to scripting and idk why this isnt working also i have my title as that bc this website is so trash and thinks ever title ever is spam
This is the script uh yea
local function kickSpecific() local player = game.Players:FindFirstChildWhichIsA("Player") if player.Name == script.Parent.Parent.TextBox.Text then player:Kick("You Have Been Kickeed By A Dev") print("Works yey") script.Parent.Parent.TextLabel.Text = "Player Has Been Kicked!" wait(2) script.Parent.Parent.TextLabel.Text = "..." else print("No") script.Parent.Parent.TextLabel.Text = "Invalid Player" wait(2) script.Parent.Parent.TextLabel.Text = "..." end end script.Parent.MouseButton1Click:Connect(kickSpecific)
I've made this mistake before.
The value inside TextBox is local. You will need to write a local script firing a remote event, carrying the player's name so you can change their gui and the text of the textbox so you can check if its a player, like you did
If you don't know what RemoteEvents are, I understand as you mentioned you are new to scripting, and I recommend you to learn RemoteEvents next.
:)