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

What is wrong with this?

Asked by 8 years ago

Im pretty sure the chat commands right but not the Id and stuff?

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

game.Players.PlayerAdded:connect(function(plr) -- When a player joins

for i,v in pairs(Permitted) do

    if v:lower() == plr.Name:lower() then -- Check if they're on the list

        plr.Chatted:connect(function(msg) -- When they chat. Msg is what they say

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

ALogo.Image = "http://www.roblox.com/asset?id=341508104"

            end

        end)

    end

end

end)

Answer this question