How do I stop my text from bunching up?
Local script:
1 | game.Players.LocalPlayer.Chatted:Connect( function (msg) |
3 | game.ReplicatedStorage.RadioTest:FireServer(message) |
6 | script.Parent.ChildAdded:Connect( function () |
7 | script.Parent.message.Position = script.Parent.message.Position - UDim 2. new( 0 , 0 , 0 , 20 ) |
Server script:
01 | game.ReplicatedStorage.RadioTest.OnServerEvent:Connect( function (player, message) |
02 | for i,v in ipairs (game.Players:GetPlayers()) do |
03 | local textbox = Instance.new( "TextLabel" ) |
04 | textbox.Name = "message" |
05 | textbox.Size = UDim 2. new( 1 , 0 , 0 , 50 ) |
06 | textbox.Parent = v.PlayerGui.RADIO.ScrollingFrame |
07 | textbox.Position = UDim 2. new( 0 , 0 , 0 , 1100 ) |
08 | textbox.BackgroundTransparency = 1 |
09 | textbox.TextColor 3 = Color 3. new( 255 , 255 , 255 ) |
10 | textbox.Text = player.Name.. ": " ..message |
11 | textbox.TextScaled = true |
My text is bunching up at the bottom of my radio.