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

ChattedFunction Not Working?

Asked by
Bazux 0
10 years ago

I have trouble at the end of the script, I won't be providing it for various reasons, But it starts like this

game.Players.PlayerAdded:connect(function(player) if player.Name == "Bazux" then player.Chatted:connect(function(msg) if msg == "Boss" then

Then it goes through some functions; when it gets to the end, The "end)'s" always end up w/ an error on the last one.

1 answer

Log in to vote
0
Answered by
Aethex 256 Moderation Voter
10 years ago

Are you remembering to end your if statements?

game.Players.PlayerAdded:connect(function(player) 

    if player.Name == "Bazux" then

        player.Chatted:connect(function(msg)

            if msg == "Boss" then

            end

        end)

    end

end)
Ad

Answer this question