Title explains it, I've tried everything. I know i can do IngoreGuiInSet, but i can't just figure out how to do get the center.
Set your anchor point to 0.5, 0.5.
https://developer.roblox.com/en-us/api-reference/property/GuiObject/AnchorPoint
If you're using ScreenGuis, use UDim2
.
Assuming that a LocalScript is inside your GUI:
local centerScreen = UDim2.new(0, 0, 0, 0) local gui = script.Parent gui.Position = centerScreen
If you don't know what UDim2 is, here are the roles of the numbers in it:
UDim2.new(x scale, x offset, y scale, y offset)
I suggest editing the scales, because the offset's size doesn't change according to the device's size.