Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Gui frame and button move around on different screens how to fix??

So basically i have a donate button on my game however it moves around on everyones screen they use just wonder how can i stop this its so annoying. I have autoscale lite plugin but still nothing works I have even set the anchor point to different number still breaks.

openbutton.MouseButton1Click:connect(function()
	Donate_Frame.Visible = true
	openbutton.Visible = false
end)

donate1.MouseButton1Click:connect(function()
	MarketplaceService:PromptProductPurchase(player, product1)
end)

donate2.MouseButton1Click:connect(function()
	MarketplaceService:PromptProductPurchase(player, product2)
end)

donate3.MouseButton1Click:connect(function()
	MarketplaceService:PromptProductPurchase(player, product3)
end)

donate4.MouseButton1Click:connect(function()
	MarketplaceService:PromptProductPurchase(player, product4)
end)

cancel.MouseButton1Click:connect(function()
	Donate_Frame.Visible = false
	openbutton.Visible = true
end)

2 comments

0

So, do you mean the gui is moving on the screen or not fitting properly on the screen?

0

What is the Size, Position, and AnchorPoint on the donate button

1 answer

If it's the issue of gui button not fitting properly on different resolutions, you can try using AutoScale Lite plugin. I personally use AutoScale Lite to scale them according to player's resolution.

Lemme show you the proper way of doing that (that I personally use), Just click on Unit Conversion and another Gui with Position and Size will come.

Just click on your GUI button, click on Scale in Position and Size in the Unit Conversion GUI.

Lemme know if it helps!

2 comments

0

I did all that and it still doesn't work

0

That's strange

This discussion is preserved as it was. New answers, comments, and votes are closed.