I've created a slide GUI and I'm unsure of how to make it show on everybodys screen resolution?

local frame = script.Parent
local animType = "Sine"
local animDirection = "InOut"
frame.Position = UDim2.new(0,1580,0,225)

frame.MouseEnter:connect(function()
	frame:TweenPosition(UDim2.new(0,1175,0,225), animDirection, animType, 0.6, true)
end)

frame.MouseLeave:connect(function()
	frame:TweenPosition(UDim2.new(0,1580,0,225), animDirection, animType, 0.6, true)
end)

5 comments

1

Try using Scale instead

0

that wont work because i want it to move, not scale.

1

Scaling is just a more relative way to size or position things. Offset is based on pixel amount so someone with a larger monitor could have a super small UI, someone with a small monitor a super big UI. Best to use scale so that it's relative to all users.

0

You would need to use a remote event.

0

I would suggest learning about GUI replication.