look:

script.Parent.Parent.XYZEnterButton.MouseButton1Click:Connect(function()
	game.Workspace.KristenMack4.HumanoidRootPart.CFrame = CFrame.new(script.Parent.Text)
end)

this is what i get: Players.KristenMack4.PlayerGui.ScreenGui.XYZLocationBox.LocalScript:3: invalid argument #1 to 'new' (Vector3 expected, got string)

can anyone help me????

2 comments

0

The issue is you cannot pass a string into a CFrame, which is what script.Parent.Text is. Can you specify what the text would be..?

0

as shawnyg saids,cframe.new cannot pass a string into it,maybe what you want is to teleport player to somewhere?then just use :MoveTo,and why are you expecting the player will teleport,to a frame or text button?we need you to explain things you wanna achive so everyone can help you better