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

A Message that causes something to happen?

Asked by 4 years ago
Edited 4 years ago

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

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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

Ad

Answer this question