Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

12:21:44.588 - Workspace.Prism.Script:7: bad argument #2 to '?' (Vector3 expected, got number)?

local part = script.Parent
while true do
local Orotate = script.Parent.Orientation
wait(.8)

part.Orientation = Vector3.new(0,Orotate - 1, 0)
end`

1 comment

0

Orotate will be a vector3 value already

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.