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

ChattedFunction Not Working?

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

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)

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