hi i have been trying to drop a line and i don’t want my text all squished but i don’t know how to change it in this script
please help me and thank u for reading
hi i have been trying to drop a line and i don’t want my text all squished but i don’t know how to change it in this script
please help me and thank u for reading
I went about this by having a folder called “Notifications” inside of my StarterGui
local function newNotification(Message, Color)
local copy = script.Default:Clone()
local scale = copy.Size.Y.Scale
local length = #mainUI.Notifications:GetChildren()
copy.Text = Message
copy.TextColor3 = Color
copy.Parent = mainUI.Notifications
copy:TweenPosition(UDim2.new(0.5, 0, 0.01 + (length * scale), 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quint, .5)
delay(1, function()
copy:TweenPosition(UDim2.new(0.5, 0, (-scale * 2), 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quint, .5)
game.Debris:AddItem(copy, .75)
end)
end
In your case you can make a folder inside of workspace for all notifications
usage of the functions is for you would be:
newNotification(say[s], Color3.fromRGB(255, 183, 0))
Also, in your code you should’ve yielded the tweens between UDim2.fromScale(-1,0) to UDim2.new()
i dont think thats what i need i just need to drop a line with out breaking the script
I’ll still test it tho
You mean you just want to move down onto the next line in the same text label? If so, you can just use “\n”
For example:
Label.Text = "Foo, \n bar"
yes i just want to move down a line in the code so it apeares the same in the text lable