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

What's the problem in this line? CFrame is userdata?!

Asked by
Link43758 175
9 years ago

oorb.CFrame = oorb.CFrame * (game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 2) This is the line I use to rotate a brick. The error is seen here: linkyyy

1 answer

Log in to vote
2
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
9 years ago

What a userdata is -- CFrame is a ROBLOX type, so it is userdata.

So are Vector3s, which is the cause of the error and the difficulty with diagnosing type problems with them.

You cannot multiply a CFrame and a Vector3, but that is what you are doing here (lookVector is a Vector3 and not a CFrame).

Ad

Answer this question