this is the script, you will know what i mean...
script.Parent.MouseButton1Down:Connect(function()
local TheName = script.Parent.Parent.TextBox.Text
game.Workspace.TheName.Humanoid.Health = -1
end)
basically “TheName” should = to textbox text, so it would be... [game.Workspace.(TextBoxText).Humanoid.Health = -1] and textbox text should be a player name e.g. BestCreativeBoy, GameStealerKid etc

2 comments
Please provide more details on what the script is supposed to work and what isyour issue
you're trying to reduce health from a text. you need the player's character , then the humanoid and then reduce it's health. the name you can get from the player or even the character