when you enter a name in the textbox it will get what it says and try to find it in the workspace I have defined it by "plrName" but it searches for the actual name not from the variable any help
local remote = game.ReplicatedStorage.Admin.killplr
remote.OnServerEvent:Connect(function(player)
local plrName = player.PlayerGui.zxcxzx.Trolling_UI.PlrName.Text
workspace[plrName].Head:Destroy()
end)
yes I have another script but it's not inportant
