I get unable to cast to Dictionary in output for line 20. What this part of the script has to do is to tween the surfacelight’s angle. I tried to fix it myself for 50 minutes but furthest point I could get to didn’t get me this fixed, so I am asking for help here now.
I used to try to type local angletw = tw:Create(angle, twi, {angle = anglevalue}) and local angletw = tw:Create(angle, twi, {Angle = anglevalue}), but it gives me the same error which is Unable to cast value to Object.