Advertisement
idkwhatiam

smash bros damage

Apr 10th, 2019
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. plr = owner
  2. char = plr.Character
  3. mouse = plr:GetMouse()
  4. hum = char.Humanoid
  5. --Smash bros damage--
  6.  
  7. --by youngmacka123--
  8.  
  9. --damage values--
  10. dmgpercent = Instance.new("NumberValue") --detecting the damage
  11. lp = dmgpercent.Value --the value is what decides how far you launch (launch power)
  12.  
  13. --setting up values of damage--
  14. dmgpercent.Parent = char
  15. dmgpercent.Name = "Damage"
  16. lp = 0
  17.  
  18. --take damage--
  19. char.Torso.Touched:Connect(function()
  20. lp = lp + 1
  21. char.Torso.CFrame = CFrame.new(lp, lp, 0)
  22. char.Humanoid.Sit = false
  23. sound = Instance.new("Sound")
  24. sound.Parent = char.Head
  25. sound.Playing = true
  26. sound.SoundId = "rbxassetid://604650009"
  27. wait(2)
  28. sound:Destroy()
  29. end)
  30.  
  31. --show damage--
  32. local sur = Instance.new("BillboardGui", char.Head)
  33. sur.Name = "Billboard"
  34. sur.Adornee = char.Head
  35. sur.Size = UDim2.new(10, 0, 5, 0)
  36. sur.StudsOffset = Vector3.new(0, 5, 0)
  37. local text = Instance.new("TextLabel", sur)
  38. text.Text = lp .."%"
  39. text.Size = UDim2.new(1, 0, 1, 0)
  40. text.TextScaled = true
  41. text.BackgroundTransparency = 1
  42. text.Font = Enum.Font.SourceSansLight
  43. text.TextColor3 = Color3.new(1, 1, 1)
  44. text.TextStrokeTransparency = 0
  45.  
  46. --death box--
  47. death = Instance.new("Part")
  48. death.Parent = workspace
  49. death.Anchored = true
  50. death.CanCollide = false
  51. death.Transparency = 1
  52. death.Position = Vector3.new(-70, 70, -86.5)
  53. death.Size = Vector3.new(650, 1, 793)
  54. death.Touched:Connect(function()
  55. explode = Instance.new("Explosion")
  56. explode.Parent = char
  57. explode.Position = char.Torso.Position
  58. explode.Visible = false
  59. wait(0.12)
  60. explode:Destroy()
  61. --dead gui--
  62. local KO = Instance.new("ScreenGui")
  63. local KilledText = Instance.new("TextLabel")
  64.  
  65. KO.Name = "KO"
  66. KO.Parent = plr.PlayerGui
  67. KO.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  68.  
  69. KilledText.Name = "KilledText"
  70. KilledText.Parent = KO
  71. KilledText.BackgroundColor3 = Color3.new(0, 0, 0)
  72. KilledText.BackgroundTransparency = 0.30000001192093
  73. KilledText.BorderColor3 = Color3.new(1, 1, 1)
  74. KilledText.BorderSizePixel = 3
  75. KilledText.Position = UDim2.new(0, 0, 0.785984874, 0)
  76. KilledText.Size = UDim2.new(0, 1365, 0, 153)
  77. KilledText.Font = Enum.Font.Fantasy
  78. KilledText.TextColor3 = Color3.new(1, 0, 0)
  79. KilledText.TextScaled = true
  80. KilledText.TextSize = 14
  81. KilledText.TextStrokeTransparency = 0
  82. KilledText.TextWrapped = true
  83. KilledText.Text = "K.O!"
  84. wait(5)
  85. KO:Destroy()
  86. end)
  87.  
  88. --damage changed--
  89. while true do
  90. text.Text = lp
  91. wait(0.12)
  92. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement