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

Why Doesnt This Radio Script Work?

Asked by 10 years ago

Here you go, excerpt from local script:

game.Players.PlayerAdded:connect(function(player)
    player.Chatted:connect(function(msg)
        if player.Name == "vincius0000" then
            if script.Parent.Status.Value == true then
                if script.Parent.LineNum.Value == 1 then
                    local getPlrs = game.Players:GetChildren()
                    for i = 1, #getPlrs do
                        if getPlrs[i].PlayerGui:FindFirstChild("RadioGui") ~= nil then
                            getPlrs[i].PlayerGui.RadioGui.Frame.L1.Text = msg
                        end
                    end
                    script.Parent.LineNum.Value = script.Parent.LineNum.Value + 1
                end

It doesn't say anything in output window.

Answer this question