Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What wrong with this?

I think its the asset

local Permitted = {"iSidersz", "Player"}
local ALogo = game.StarterGui.Scoreboard.Frame.AwayLogo
local HLogo = game.StarterGui.Scoreboard.Frame.HomeLogo

game.Players.PlayerAdded:connect(function(plr)
    for i,v in pairs(Permitted) do

        if v:lower() == plr.Name:lower() then

            plr.Chatted:connect(function(msg)

                if msg:lower() == "away/ORL" then
 ALogo.Image = "http://www.roblox.com/asset?id=341508104"


                    
                end

            end)

        end

    end
end)

1 comment

0

Still doesnt change the picture however thanks for finding that error :P

1 answer

✓ Accepted answer

On line 12, you called :lower(), however you're comparing it to a string that has multiple capital letters in it. Change the comparison to:

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

This discussion is preserved as it was. New answers, comments, and votes are closed.