Hi, attempting to create an admin GUI.

I have a textbox on my GUI under the name of "playerbox". I was wondering how I can replace a certain part of code with that value every time a button is pressed.

My button code follows:

function leftClick()
	local playerbox = script.Parent.Parent.Parent.TextBox.Text
	game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = 	game.Workspace.Characters.PLAYERBOX.Head.CFrame
end
 
script.Parent.MouseButton1Click:Connect(leftClick)

Thanks for your help