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

A Message that causes something to happen?

I was trying to make something happen when a player says something in chat, for example when the player says, "1972" in my game I want a part to delete itself.

If you could also tell me where to put the script (Workspace, PlayerScripts etc.) If you could also tell me what type of script to use (LocalScript etc.)

(Sorry I'm just horrible with scripting.)

-Thanks!

1 answer

✓ Accepted answer

This isn't a request site but as i was on the topic of making something like it here

game.Players.PlayerAdded:Connect(function(Player) -- Detects Player
	Player.Chatted:Connect(function(Msg) -- Locates Message
		if Msg == "1972" then -- if 1972 then
			game.Workspace.Part:Destroy() -- Destroys Part
		end
	end)
end)

and put it in ServerScriptService as a normal script

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