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

How come this doesnt work?

I think its the asset and not thecommands?

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)

2 answers

✓ Accepted answer

You're modifying the StarterGui, whereas you should actually be modifying the player's specific gui. (Modifying the StarterGui would make sense if you wanted all people who spawned/respawned to see the change.)

Can you edit your message and put everything in the lua code block so it is easier for me to read, please?

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