So I'm trying to make some type of Admin Panel, and in it a teleport to player button.
When I press it, I want my character to be teleported to a player using a TextBox, it doesn't work, but instead this happens:
"Argument 1 missing or nil". Also, it doesn't teleport. I don't know why it does so.
Script (Line 3 is long, so use View Source if needed):
script.Parent.MouseButton1Click:Connect(function()
game.Players.LocalPlayer.Character:PivotTo(game.Workspace:FindFirstChild(game.StarterGui.ScreenGui.Frame.usrtlt.Text))
end)
Any answers appreciated!
