Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getgenv().hurtmessages = {
- "underrated_skid hit the ground too hard",
- "underrated_skid tried to swim in lava",
- "underrated_skid fell from a high place",
- "(death.fell.accident.water) -.. HOW ",
- "underrated_skid experienced kinetic energy whilst trying to escape Cod",
- "underrated_skid was poked to death by a sweet berry bush whilst trying to escape Donkey ",
- "underrated_skid was blown up by Bee",
- "underrated_skid didn't want to live in the same world as Chicken",
- "underrated_skid reverb sharded and had a brain anurysm",
- "underrated_skid was struck by lightning whilst fighting Trader Llama",
- "underrated_skid said an unpopular opinion and got cancelled by Person who looks like an Ogre",
- "Obama's last name is-"
- }
- 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