Hello all!
I have an annoying GUI Problem.
I want an Image to move downwards, like it’s falling, on it’s own X Position (Scale).
I need this as the images are created and positioned randomly.
However, when I add this code for the falling part…
… I just get this Error; Players.AridOats.PlayerGui.ScreenGui.Frame.MainScript:52: invalid argument #2 (UDim expected, got number)
I’m not sure what this means, but I fiddled around a little, and removed the NewGraphicImageFrame.Position.Y-10, and replaced it with -10, in hope that it would go down.
Instead, it floated upwards, nesting on the top of the screen (Y = 0)!
Can anyone help me just make these images go down my screen?
Do you have code for where the Images are spawned or did you do it manually? From the looks of it, the ImageLabels are starting from the bottom. To reverse this, you’d simply have to reverse your calculation and account for the desired effect of having them start at the top. Instead of NewGraphicImageFrame.Position.Y - 10, try doing NewGraphicImageFrame.Position.Y + 10, and position the ImageLabels to start from the top.
As for them stopping at the top of the screen, I’m not 100% sure but it might have something to do with the layout of where the ImageLabels are. Are they in a frame of some sort? Don’t think that in particular would make a difference as assuming the position is being tweened it should go past the frame regardless. Could you also confirm the position value once they are tweened? Is it actually being set to y = 0?