Can’t explain that good since I’m not near my PC but if you want the buttons to appear randomly in the whole frame and not just a part of it do
local randomXOffset = math.random(0, 1)
local randomYOffset = math.random(0, 1)
CloneRummage.Position = UDim2.new(randomXOffset, 0, randomYOffset, 0)
Check out:
for a more detailed explanation, but the overall is:
First argument is X offset, which is the offset according to its parent with a minimum of 0 and maximum of 1, so is the third but for Y. The 2nd and 4th I dont really like using but it’s a value that’s not dependent on its parent. So if u put it big enough the button will go off the screen
Edit: Read the entire thing, first of all, you’re getting a value ranging from 1-500 to set the position, however you’re setting it on the scale, which literally means it’s getting positioned outside of the viewable screen.
Isn’t offset ranging from 0-1 and not scale? I’m pretty sure I did it correctly. And even so 500 might be too much even for scale. My suggestion was setting the offsets randomly from 0 to 1. The first thing is just an edit of OPs script