I was trying to get the middle of the GUI but I got an error saying:
Output:
Players.Player.PlayerGui.LocalScript:4: attempt to perform arithmetic on field 'Position' (a userdata value)
Why did I get this error and how do I fix it?
LocalScript:
Player = game.Players.LocalPlayer
ScreenGui = Player.PlayerGui:WaitForChild("ScreenGui")
Gui = ScreenGui.Frame
MiddleOfGui = math.floor(Gui.Position/2)
print(MiddleOfGui)

1 comment
Actually.... this wouldn't work. This is to get the edges of a GUI. To get the center just simply use it's position. (Gui.Position)