Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I stop my text from bunching up?

Asked by
orcazate 170
5 years ago
Edited by theking48989987 5 years ago

Local script:

game.Players.LocalPlayer.Chatted:Connect(function(msg)
    local message = msg
    game.ReplicatedStorage.RadioTest:FireServer(message)
end)

script.Parent.ChildAdded:Connect(function()
    script.Parent.message.Position = script.Parent.message.Position - UDim2.new(0,0,0, 20)
    wait()
end)

Server script:

game.ReplicatedStorage.RadioTest.OnServerEvent:Connect(function(player, message)
    for i,v in ipairs(game.Players:GetPlayers()) do
        local textbox = Instance.new("TextLabel")
        textbox.Name = "message"
        textbox.Size = UDim2.new(1,0,0,50)
        textbox.Parent = v.PlayerGui.RADIO.ScrollingFrame
        textbox.Position = UDim2.new(0, 0,0, 1100)
        textbox.BackgroundTransparency = 1
        textbox.TextColor3 = Color3.new(255,255,255)
        textbox.Text = player.Name..": "..message
        textbox.TextScaled = true
        --v.PlayerGui.RADIO.Frame1.TextLabel.Text = player.Name..": "..message
    end
end)

My text is bunching up at the bottom of my radio.

0
could you explain the problem more? fighterkirbyzx 102 — 5y

Answer this question