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

Why doesnt this gui chat command work?

Asked by 8 years ago

heres what I have so far?

local Permitted = {"iSidersz", "Player"};

local ALogo = game.PlayerGui.Scoreboard.Frame.AwayLogo;

local HLogo = game.PlayerGui.Scoreboard.Frame.HomeLogo;



game.Players.PlayerAdded:connect(function(plr)

    for i = 1, #Permitted do

        if plr.Name:lower() == Permitted[i]:lower() then

            plr.Chatted:connect(function(msg)

                if msg:lower() == "away/orl" then

            for a,b in pairs(game.Players:GetChildren()) do

                b.PlayerGui.Scoreboard.Frame.AwayLogo.Image = script.Parent.orli.ID;

            end;

                end;

            end);
        end;

    end;

end);
0
Is FilteringEnabled enabled? Is ID a string value? Can you provide use any more information about what your script is doing? M39a9am3R 3210 — 8y
0
Ok so I have a scoreboard and when I say 'away/orl' I want the logo of the orlando otters to show up as the away team logo, filteringenabled is off, and its value not ID thx iSidersz 70 — 8y
0
why the ; all the time. iNicklas 215 — 8y

Answer this question