So I created a camera script and it’s using the Roblox Attribute mechanism now. The only thing is, I can’t figure out how to use the TweenService to tween the actual attribute having to use the GetAttribute and SetAttribute. Anybody know how to do this?
1 Like
Depending on which data type it is, you could create a Value instance. For example, CFrameValue. Tween the value, and repeatedly SetAttribute of the actual value of the instance. If you’re using the server I recommend Heartbeat, and client Stepped. Good luck!
2 Likes
In this case I would listen for the .Changed event of the CFrameValue, and SetAttribute there.
1 Like
Worked like a charm. Thank you!