Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why isn't Vector3 a valid number?

Asked by 10 years ago

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

Log in to vote
1
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
10 years ago

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.

0
Thank you, and I do understand LUA, just newbie. Roboy5857 20 — 10y
0
It's Lua or lua. Don't spell it LUA, as it isn't an acronym. Thewsomeguy 448 — 10y
Ad

Answer this question