Advertisement
VuaxExploits

Untitled

Dec 31st, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.16 KB | None | 0 0
  1.  
  2. ------ Programmed by BuildIntoGames and scripting by bertan9994; Removing this line will kill 5 children
  3.  
  4. ---- Change these settings to change stuff (keep the commas, lua doesn't understand n00b syntax)
  5.  
  6. local settings = {
  7. splatters_per_health_inc = 1, ---- The amount of blood splatters made when you lose (damage_inc) of health
  8. damage_inc = 2, ---- The increment of damage that must be done at a time to trigger blood splatters
  9. remove_time = 65, ---- The time (in seconds) until a blood splatter is removed after it is created
  10. min_splatter_time = 0, ---- The delay time (minimum) until another blood splatter is made
  11. max_splatter_time = 0.05, ---- The delay time (maximum) until another blood splatter is made
  12. min_transparency = 0.2, ---- The (minimum) transparency of a blood splatter
  13. max_transparency = 0, ---- The (maximum) transparency of a blood splatter
  14. min_size_x = 3, ---- The (minimum) size of a blood splatter on the X axis
  15. max_size_x = 8, ---- The (maximum) size of a blood splatter on the X axis
  16. min_size_z = 3, ---- The (minimum) size of a blood splatter on the Z axis
  17. max_size_z = 8, ---- The (maximum) size of a blood splatter on the Z axis
  18. tran_tw_time_min = 0.1, ---- The (minimum) time to tween the size of a blood splatter
  19. tran_tw_time_max = 0.5, ---- The (maximum) time to tween the size of a blood splatter
  20. size_tw_time_min = 0.1, ---- The (minimum) time to tween the transparency of a blood splatter
  21. size_tw_time_max = 0.6 ---- The (maximum) time to tween the transparency of a blood splatter
  22. }
  23.  
  24. --- These are the IDs of possible blood textures, I already set 3 up for u k
  25.  
  26. local blood_textures = {
  27. 176678030,
  28. 176678048,
  29. 176678086
  30. }
  31.  
  32.  
  33. -------------- I'm not responsible for any PAIN if you edit past this (pun intended)
  34.  
  35. local blood_folder = Instance.new("Folder",game.Workspace)
  36. blood_folder.Name = "Blood.Splatter.Particles"
  37.  
  38.  
  39.  
  40. function create_blood_splatter(player_class)
  41. local blood_parts = {"LeftFoot", "LeftLowerLeg", "LeftUpperLeg","RightFoot", "RightLowerLeg", "RightUpperLeg","LowerTorso", "UpperTorso","RightHand", "RightLowerArm", "RightUpperArm","LeftHand", "LeftLowerArm", "LeftUpperArm","Head"}
  42. local chosen_part
  43. if(player_class.humanoid.Health <= 0) then
  44. repeat wait() chosen_part = blood_parts[math.random(1,#blood_parts)] until player_class.character:FindFirstChild(chosen_part)
  45. chosen_part = player_class.character[chosen_part]
  46. local blood_emmiter = script.Blood:Clone()
  47. blood_emmiter.Parent = chosen_part
  48. blood_emmiter.Enabled = true
  49. else
  50. chosen_part = player_class.torso
  51. end
  52. local ray = Ray.new(chosen_part.Position, Vector3.new(0,-100,0))
  53. local hit, position = game.Workspace:FindPartOnRayWithIgnoreList(ray, {blood_folder , unpack(player_class.character:GetChildren())} , true)
  54. if(hit) then
  55. local blood = Instance.new("Part",blood_folder)
  56. blood.Anchored = true
  57. blood.CanCollide = false
  58. blood.Transparency = 1
  59. blood.Name = "Particle_Blood"
  60. blood.FormFactor = Enum.FormFactor.Custom
  61. blood.Size = Vector3.new(0.01 , 0.1 , 0.01)
  62. blood.CFrame = CFrame.new(position)
  63. local blood_decal = Instance.new("Decal",blood)
  64. blood_decal.Transparency = 1
  65. blood_decal.Texture = "http://www.roblox.com/asset/?id=" .. blood_textures[math.random(1,#blood_textures)]
  66. blood_decal.Face = "Top"
  67. game.Debris:AddItem(blood,settings.remove_time+20)
  68. local edit_blood = coroutine.wrap(function()
  69. local original_size = blood.Size
  70. local original_transparency = blood_decal.Transparency
  71. local new_transparency = math.random(settings.max_transparency*100,settings.min_transparency*100)/100
  72. local new_size = Vector3.new(math.random(settings.min_size_x*100,settings.max_size_x*100)/100 , blood.Size.Y , math.random(settings.min_size_z*100,settings.max_size_z*100)/100)
  73. local tran_tw_time = math.random(settings.tran_tw_time_min*100,settings.tran_tw_time_max*100)/100
  74. local size_tw_time = math.random(settings.size_tw_time_min*100,settings.size_tw_time_max*100)/100
  75. for i = 1,10*tran_tw_time do
  76. wait()
  77. local perc = i/(10*tran_tw_time)
  78. blood_decal.Transparency = original_transparency - (perc*new_transparency)
  79. end
  80. for i = 1,10*size_tw_time do
  81. wait()
  82. local perc = i/(10*size_tw_time)
  83. blood.Size = Vector3.new(original_size.X+(perc*new_size.X) , original_size.Y , original_size.Z+(perc*new_size.Z))
  84. end
  85. wait(settings.remove_time)
  86. blood:Destroy()
  87. end)
  88. edit_blood()
  89. end
  90. end
  91.  
  92.  
  93.  
  94.  
  95.  
  96. function monitor_character(player_class)
  97. local last_health = player_class.humanoid.Health
  98. player_class.humanoid.HealthChanged:connect(function()
  99. if(player_class.humanoid.Health < last_health) then
  100. if(last_health - player_class.humanoid.Health >= settings.damage_inc) then
  101. for i = 1,settings.splatters_per_health_inc*((last_health - player_class.humanoid.Health)/settings.damage_inc) do
  102. create_blood_splatter(player_class)
  103. if(settings.max_splatter_time > 0) then
  104. wait(math.random(settings.min_splatter_time*100,settings.max_splatter_time*100)/100)
  105. end
  106. end
  107. end
  108. end
  109. last_health = player_class.humanoid.Health
  110. end)
  111. end
  112.  
  113.  
  114.  
  115.  
  116.  
  117. function monitor_player(player)
  118. repeat wait() until player.Character ~= nil
  119. player.CharacterAdded:connect(function()
  120. local player_class = {
  121. player = player,
  122. character = player.Character,
  123. uppertorso = player.Character:WaitForChild("UpperTorso"),
  124. head = player.Character:WaitForChild("Head"),
  125. humanoid = player.Character:WaitForChild("Humanoid"),
  126. }
  127. monitor_character(player_class)
  128. end)
  129. local player_class = {
  130. player = player,
  131. character = player.Character,
  132. uppertorso = player.Character:WaitForChild("UpperTorso"),
  133. head = player.Character:WaitForChild("Head"),
  134. humanoid = player.Character:WaitForChild("Humanoid"),
  135. }
  136. monitor_character(player_class)
  137. end
  138.  
  139.  
  140.  
  141.  
  142. game.Players.PlayerAdded:connect(function(player)
  143. monitor_player(player)
  144. end)
  145.  
  146.  
  147. for i,v in ipairs(game.Players:GetChildren()) do
  148. if(v.ClassName == "Player") then
  149. monitor_player(v)
  150. end
  151. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement