Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getgenv().hurtmessages = {
- "All that you got?",
- "are you slow?",
- "cmon now",
- "bros the reason shampoo bottles have instructions like damn",
- "gg",
- "Black pink in your area",
- "joker hits the griddy and dies",
- "oh my days mate GG my original gangsta 'h",
- "normal day in chicago",
- "london",
- "cancelled you just hit a woman",
- "waddahel"
- }
- local player = game.Players.LocalPlayer
- if player.Character then
- local humanoid = player.Character:WaitForChild("Humanoid")
- local previousHealth = humanoid.Health
- humanoid.Changed:Connect(function()
- if humanoid.Health < previousHealth then
- local randomIndex = math.random(1, #getgenv().hurtmessages)
- local message = getgenv().hurtmessages[randomIndex]
- game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(message, "All")
- end
- previousHealth = humanoid.Health
- end)
- end
- player.CharacterAdded:Connect(function(char)
- local humanoid = char:WaitForChild("Humanoid")
- local previousHealth = humanoid.Health
- humanoid.Changed:Connect(function()
- if humanoid.Health < previousHealth then
- local randomIndex = math.random(1, #getgenv().hurtmessages)
- local message = getgenv().hurtmessages[randomIndex]
- game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(message, "All")
- end
- previousHealth = humanoid.Health
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement