Could anyone help me fix my Rotation script? Or at least tell the what is wrong with it.
lever = script.Parent lever.Touched:connect(function(hit) while true do lever.Rotation = Vector3.new(-17.373, 0.59, 8.72) + 2 end end) lever.Touched:connect()
I suppose you want to add the 2 to the first coordinate (x). Use this:
lever = script.Parent lever.Touched:connect(function(hit) while true do lever.Rotation = Vector3.new(-17-373, 0.59, 8.72) + Vector3.new(2, 0, 0) end end)
You can't tell the script to add 2 to the Vector3 as it doesn't know which coordinate it should add to.