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

Spinning Object doesn't work?

So I have a alarm that spins. The output says Workspace.Alarm1.Script:6: bad argument #3 to 'Rotation' (Vector3 expected, got number). Why?

Alarm1 = game.Workspace.Alarm1
Rotation = Alarm1.Rotation
x = 0.05

while true do
	Alarm1.Rotation = 0, -0, 0
	wait(x)
	Alarm1.Rotation = 0, -15, 0
	wait(x)
	Alarm1.Rotation = 0, -30, 0
	wait(x)
	Alarm1.Rotation = 0, -45, 0
	wait(x)
	Alarm1.Rotation = 0, -60, 0
	wait(x)
	Alarm1.Rotation = 0, -75, 0
	wait(x)
	Alarm1.Rotation = 0, -89.952, 0
	wait(x)
	Alarm1.Rotation = 180, -75, -180
	wait(x)
	Alarm1.Rotation = -180, -60, -180
	wait(x)
	Alarm1.Rotation = -180, -45, -180
	wait(x)
	Alarm1.Rotaion = -180, -30, -180
	wait(x)
	Alarm1.Rotation = -180, -15, -180
	wait(x)
	Alarm1.Rotaion = -180, 0, -180
end

1 answer

✓ Accepted answer

It says it got a number because you didn't make the number a vector3 value, before the numbers put Vector3.new(numbers here).

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