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

(?) I need help with player.Chatted

if message == prefix and "test" then
						print("gi")
					end

I tried making a script where typing the prefix ';' and 'test; to join together as ';test', it should print "gi". I tried using the code above this text and simply got no errors, no warnings, but nothing happened, can you help with this script?

PS. This if then statement is inside a Player.Chatted function.

1 answer

✓ Accepted answer

You almost had it, here you go:

if Message:lower() == prefix..'test' then
	print('gi')
end

4 comments

0

is there a difference between using ' ' and " " for strings?

0

There is no difference CrazyCreator

0

Wait, I had to unaccept the answer because the script wasn't working, can you provide a fix?

0

no actually it works, ty

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