So what I'm needing is, When someone says a word, something happens. Its hard to explain, here is my script at the moment.
Players.PlayerAdded:connect(function(Player)
Player.Chatted:connect(function(Message)
if Message == ("Lumos") then
script.Parent.Handle.ParticlePart.Lumos.Enabled = true
end
end)
end)
I've tested with other things but I'm just not able to make this work.
(The script is in a Gear, the gear has a handle and in the is the mesh and particlepart, inside particlepart is a particle emitter. The gear is also in starter pack)

1 comment
You may prefer to use Lua string patterns instead. Instead of Message == ("Lumos") you could try Message:match(".Lumos.") so that the player can say Lumos wherever in the sentence.