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

How come this doesnt work?

Asked by 8 years ago

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

Log in to vote
0
Answered by 8 years ago

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.)

Ad
Log in to vote
0
Answered by
Andorks 23
8 years ago

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

Answer this question