Skip to content

Instantly share code, notes, and snippets.

@jaipack17
jaipack17 / Pivot.lua
Last active June 6, 2022 13:24
Rotation Pivots for Guis on Roblox
-- Pivot.lua by jaipack17
-- Last updated: 02/04/2022
-- License: MIT
-- Easily create rotation pivots for GuiObjects on Roblox.
-- The API is similar to the Pivot API available for BaseParts.
-- Pivot.SetAngleMode(angleMode: string) -> Set angle mode for the pivot. Either DEGREES or RADIANS. By default set to DEGREES.
-- Pivot.ApplyIgnoreGuiInsetOffset(apply: boolean) -> Apply Offset of Vector2.new(0, 36) to the center position of the GuiObject.
-- Set this to true if your ScreenGui is ignoring GuiInset.