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

is anyone willing to help me fix this script?

Asked by 9 years ago

K i'm trying to make it when a player enters it will appear if their name is in the list

--Name announcer
winner = {"Player's name"}
function OnPlayerEntered(player)
    if player.name == access then -- is this correct?
        local msg = Instance.new("Message")
        msg.Parent = game.Workspace
        msg.Text = winner "is the winner"
        wait(2) 
        msg:remove()
    end
end

game.Players.ChildAdded:connect(OnPlayerEntered)

0
hi\ zachhg03 35 — 9y

Answer this question