local part = script.Parent
while true do
local Orotate = script.Parent.Orientation
wait(.8)
part.Orientation = Vector3.new(0,Orotate - 1, 0)
end`
✓ ANSWER ACCEPTED
12:21:44.588 - Workspace.Prism.Script:7: bad argument #2 to '?' (Vector3 expected, got number)?
2 answers
✓ Accepted answer
Assuming the ` after your end is just a typo in your pasting code, here's what I assume.
local part = script.Parent
while true do
wait(.8)
part.Orientation = Vector3.new(part.Orientation.X,part.Orientation.Y - 1, part.Orientation.Z)
end
That code will move it to the current orientation minus the Y orientation.
local Orotate = script.Parent.Orientation.Y maybe
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Orotate will be a vector3 value already