1 | game.Players.PlayerAdded:Connect( function (Player) |
2 | Player.Chatted:Connect( function (Message) |
3 | 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 |
4 | -- I Don't know how to make this kill you |
5 | print ( "You have said bruh " ..Player.Name) |
6 | end |
7 | end ) |
8 | end ) |
I may be a little late but this works better than the other answer
01 | local Players = game:GetService( "Players" ) |
02 |
03 | Players.PlayerAdded:Connect( function (Player) |
04 | Player.Chatted:Connect( function (Message) |
05 | if string.find(string.lower(Message), "bruh" ) then |
06 | local Character = Player.Character or Player.CharacterAdded:Wait() |
07 | local Humanoid = Character:FindFirstChildWhichIsA( "Humanoid" ) |
08 | Humanoid.Health = 0 |
09 | print (Player.Name .. " said bruh" ) |
10 | end |
11 | end ) |
12 | end ) |
I believe this should work.
1 | game.Players.PlayerAdded:Connect( function (Player) |
2 | Player.Chatted:Connect( function (Message) |
3 | 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 |
4 | Player.Character.Humanoid.Health = 0 -- Sets the player's health to 0 which then kills them |
5 | print ( "You have said bruh " ..Player.Name) |
6 | end |
7 | end ) |
8 | end ) |