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

How can I turn a vector3 into CFrame?

Asked by
Teeter11 281 Moderation Voter
9 years ago

So i have the Mouse.Hit.p but i get an error if its a CFrame

So how can i make Mouse.Hit.p be a CFrame?

Or change it to a CFrame



wait(1) Part = Instance.new("Part") Part.Parent = game.Workspace.CurrentCamera Part.FormFactor = "Custom" Part.Size = Vector3.new(.2,.2,.2) Part.Anchored = true game:GetService("RunService").RenderStepped:connect(function() Mouse = game.Players.LocalPlayer:GetMouse() Part.Position = (Mouse.Hit.p) end)

Answer this question