Hi guys! I’m fairly new to coding and have come up with a visual issue with my gui text.
The text kinda squeezes in on itself when the gui is opening, the thing is, it only happens after opening the gui for the first time. Any time I open the gui after that, it acts normally.
I want to the text to move without squeezing in on itself, moving smoothly while also increasing size.
I’ve provided the code for the credits button, all other buttons have the same script.
I’ve also provided a video to show the glitch.
(If it’s any helpful, the text has TextScaled turned on)
local credits = script.Parent.Parent.Parent.CreditsScreen
script.Parent.MouseButton1Up:Connect(function()
credits.Visible = true
credits.UrDog.Visible = true
credits.BuildToDream.Visible = true
credits.Close.Visible = true
credits:TweenSize(UDim2.new(0.55, 0, 0.55, 0),"Out", "Sine", .75)
credits:TweenPosition(UDim2.new(0.223, 0, 0.224, 0),"Out", "Sine", .75)
credits.Title:TweenSizeAndPosition(UDim2.new(.293, 0, .128, 0), UDim2.new(.355, 0, 0, 0),"Out", "Sine", .65)
task.wait(.45)
credits.Line.Visible = true
credits.Line:TweenSizeAndPosition(UDim2.new(.75, 0, .01, 0), UDim2.new(.124, 0, .125, 0),"InOut", "Sine", .6)
end)