Hey gamers, I’m attempting to move a frame behind a button whenever the player moves their mouse over the button. I feel like there’s no reason why this shouldn’t work (I’ve rewritten it quite a few times) but I get this error that I don’t know how to solve; Scale cannot be assigned to is the entire error.
I get the error Players.Fox_2042.PlayerGui.Menu.Buttons.Play.LocalScript:2: attempt to index nil with 'fromScale'
Also, what’s Udim2? It’s viewed as an unknown global.
thanks, worked!
I’m encountering another problem though. The frame is always off to the left, and the position doesn’t change at all from changing 22 to some other number or removing it entirely. I’m not getting any errors this time though.
The offset is because of the +22 that you originally included in the code snippet, also you should play around with the values as they basically cancel each other out.