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

Why isn't Vector3 a valid number?

Output: Vector3 is not a valid member

Script:

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

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

The script is suppose to make a object spin. But it's not working. Why?

1 answer

Valid member, not valid number.

Rotation is a Vector3. Vector3's do not have a Vector3 property.

Alarm1.Rotation = Vector3.new(x,y,z);

I worry that you aren't really understanding the Lua that you're typing since you were able to write this. You should know the concepts before you go ahead and start making things.

In addition, this should definitely be managed by a loop.

2 comments

0

Thank you, and I do understand LUA, just newbie.

0

It's Lua or lua. Don't spell it LUA, as it isn't an acronym.

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