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

Chat service wont work, playerchatted isn't a functioning "Member" of player?

-- Need help using chat service
local Hint = "/Hint"
game.Players.PlayerAdded:Connect(function(plr)
plr.PlayerChatted:Connect(function(msg)
if msg == Hint then
plr.PlayerGui.Hints.Enabled = true

1 answer

✓ Accepted answer

You put "PlayerChatted" instead of "Chatted"

local Hint = "/Hint"

game.Players.PlayerAdded:Connect(function(plr)
	plr.Chatted:Connect(function(msg)
		if msg == Hint then
			print("Player typed ".. Hint)
			plr.PlayerGui.Hints.Enabled = true
		else
			print("Player didn't type " .. Hint)
		end
	end)
end)

11 comments

0

Thanks VitGamer! You are awsome

0

No problem! Make sure to press Accept answer so we both get reputation.

0

You can update now!

0

Hey vit, it wont work ;(

0

Can you send the output error?

0

no output error

0

can you send the code?

0

its the code you just put in

0

check the code i sent you, you might want to check the output and edit it a little. Also make it a script if it isn't.

0

it was i made it module aswell

0

I fixed it

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