for some reason when I try to scale using coding, the Frame itself moves to where I want it to move on pc, but on mobile for some reason it doesn’t appear to be happening.
You’ve given a relative position but that button location looks like it should be in absolute pixels, since I think the default buttons there are a constant pixel size and position too.
Don’t set position and size from scale. Try to do it by offsets.
if I don’t do it by scale, then it won’t be in the exact spot on all devices.
Try to position it to: UDim2.new(0, 105, 0, 4)
and size to: UDim2.new(0, 32,0, 32)
just tested it on mobile emulation and pc
I just tried what you said, and now it is not moving at all for some reason
Just remove the curly brackets that i put in the script if you’ve copied with them. I just copied the value in properties and saw it after posting. If you didn’t just send the script.
– local frame = script.Parent-- Get the frame reference here
Move the frame by setting its position
frame.Position = UDim2.new(0, 105, 0, 30)
I tried that and it didn’t work
It looks okay there shouldn’t be any problem. Are you sure that there are no other scripts effecting position of the frame?
Here how it looks like on mine screen
I don’t know why it is not working, I will fix it later thank you for your help
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.