Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

vector3 expected on a humanoidrootpart cframe?

Asked by 2 years ago

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????

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..? Shawnyg 4330 — 2y
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 lamgogo 56 — 2y

Answer this question