I have been trying to make so that only the Y value of a part's orientation would change, can someone please help me out?
Hello Zeppelin0330,
I got my answer from this page: https://developer.roblox.com/en-us/api-reference/property/BasePart/Orientation
01 | local part = script.Parent |
02 |
03 | local incr = 360 / 20 |
04 |
05 | -- Rotate the part continually |
06 | while true do |
07 | for deg = 0 , 360 , incr do |
08 | -- Set only the Y axis rotation |
09 | part.Rotation = Vector 3. new( 0 , deg, 0 ) |
10 | -- A better way to do this would be setting CFrame |
11 | --part.CFrame = CFrame.new(part.Position) * CFrame.Angles(0, math.rad(deg), 0) |
12 | wait() |
13 | end |
14 | end |
Hope I helped!