I don’t know what to do about the space. I tried putting it in quotations but it’s still invalid.
npc.Origin Orientation = (0, -90, 0)
I don’t know what to do about the space. I tried putting it in quotations but it’s still invalid.
npc.Origin Orientation = (0, -90, 0)
Do you want to rotate a model?
yeah I do want to rotate a model
You have to express it as Vector3: npc.Origin Orientation = Vector3.new(0, -90, 0)
Origin Orientation
cannot be accessed by any Lua code.
Use CFrames to rotate your model. Make sure it has a PrimaryPart
.
script.Parent:SetPrimaryPartCFrame(script.Parent:GetPrimaryPartCFrame()*CFrame.Angles(math.rad(90),0,0))
You can use PVInstance | Roblox Creator Documentation to rotate the model:
npc:PivotTo(npc:GetPivot() * CFrame.Angles(0,math.rad(-90),0))