Text randomly going invisible after changing position

why is this line of code making my text invisible?!

script.Parent.Parent.TeamName.Position = UDim2.new(0.03,script.Parent.AbsolutePosition.X-(script.Parent.AbsoluteSize.X/2),0.08,0)

Before execution:

After execution:

Full Script:

script.Parent.Size = UDim2.new(0,script.Parent.AbsoluteSize.Y,1,0)

script.Parent.Parent.TeamName.Position = UDim2.new(0.03,script.Parent.AbsolutePosition.X-(script.Parent.AbsoluteSize.X/2),0.08,0)
script.Parent.Parent.TeamPlayers.Position = UDim2.new(0.03,-script.Parent.AbsoluteSize.X-(script.Parent.AbsolutePosition.X/2),0.369,0)

I have no other context for this as its simply unexplainable to me. The AbsolutePosition values appear fine also.

1 Like

Could it be that the parent of an item within RaiderTeamInfo is being changed? Check your ZIndex property of the frame going invisible and make sure it’s a higher number than the backdrop/background.