I had changed the script the one I posted about is the newest one I tried making. But the old one used to Say Instance does not exist when I said the specific word in the chat. But for the new script, it says nothing in Output.
I don’t know if you knew but ; isn’t used in lua and you forgot to set the explosions position
local PlayersService = game:GetService(“Players”)
local StringToDetect = “lol”
PlayersService.PlayerAdded:Connect(function(Player)
Player.Chatted:Connect(function(Message)
if string.find(string.lower(Message), string.lower(StringToDetect)) then
if Player.Character then
local explosion = Instance.new(“Explosion”)
explosion.BlastRadius = 60
explosion.ExplosionType = Enum.ExplosionType.Craters – damages terrain
explosion.Parent = game.Workspace
exploision.Position = player.Character.Head.Position
end
end
end)
end)