How's it going, when ever I swap from edit to play the text shifts to the left constantly. I tried to mess with the anchor position and still is constantly moving.Some times when I press play it also doesn't shift at all.
Not sure if this is something with the scaling in the script or elsewhere
if guiObject:IsA("TextLabel") or guiObject:IsA("TextButton") then
local parentGui = guiObject.Parent
local xPixels = guiObject.AbsoluteSize.X
local yPixels = guiObject.AbsoluteSize.Y
local parentXPixels = parentGui.AbsoluteSize.X
local parentYPixels = parentGui.AbsoluteSize.Y
-- Scale the element size
guiObject.Size = UDim2.new((xPixels / parentXPixels), 0, (yPixels / parentYPixels), 0)