For some reason the image location fits to screen but the trigger .OnClick does not.
I have no idea how to make the x,y location of img sync with trigger on the button
EDIT:
1
2
3
4
5
6
7
2
3
4
5
6
7
local bid = #gui.imageButton + 1 local newresx = player(id,"screenw") / 1600 local newresy = player(id,"screenh") / 900 b.x = x * newresx b.y = y * newresy ... b.img = image(path, b.x, b.y, 2, id)
This made it fit better but its still not perfect. Any suggestions?
edited 1×, last 05.12.17 08:13:15 am