game.Players.PlayerAdded:Connect(function(Player) Player.Chatted:Connect(function(Message) if Message == "BRUH" or "BRUh" or "BRuh" or "Bruh" or "bruh" or "bRuh" or "brUh" or "bruH" or "bRuH" or "brUH" or "BruH" or "BrUh" or "bRUh" then -- I Don't know how to make this kill you print("You have said bruh " ..Player.Name) end end) end)
I may be a little late but this works better than the other answer
local Players = game:GetService("Players") Players.PlayerAdded:Connect(function(Player) Player.Chatted:Connect(function(Message) if string.find(string.lower(Message), "bruh") then local Character = Player.Character or Player.CharacterAdded:Wait() local Humanoid = Character:FindFirstChildWhichIsA("Humanoid") Humanoid.Health = 0 print(Player.Name .. " said bruh") end end) end)
I believe this should work.
game.Players.PlayerAdded:Connect(function(Player) Player.Chatted:Connect(function(Message) if Message == "BRUH" or "BRUh" or "BRuh" or "Bruh" or "bruh" or "bRuh" or "brUh" or "bruH" or "bRuH" or "brUH" or "BruH" or "BrUh" or "bRUh" then Player.Character.Humanoid.Health = 0 -- Sets the player's health to 0 which then kills them print("You have said bruh " ..Player.Name) end end) end)