Advertisement
IHATEMICROWAVEOVEN

thats the ripple axel

Jul 31st, 2023
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. -- EASE OF ACCESS SETTINGS
  2. local inColor = Color3.new(0.45, 0.65, 0.9)
  3. local outColor = Color3.new(0.75, 1, 1)
  4. local inTrans = 0.3
  5. local outTrans = 0.5
  6. local inSize = Vector3.new(4, 4, 4)
  7. local outSize = Vector3.new(7, 7, 7)
  8. local inMaterial = "Ice"
  9. local outMaterial = "Ice"
  10.  
  11. local baseDamage = 20
  12. local lifetime = 2
  13.  
  14. local foo = task
  15.  
  16. --[[
  17.  
  18. Below is the attack function.
  19.  
  20. DESC: Kicks 3 times. First kick: 20 DMG melee for 2s. Second kick: only happens if first kick landed, SSneak speed 40 DMG melee for 1s. Third
  21. kick: only happens if second kick landed, SSneak speed 60 DMG melee for 1s. If you hit, next kick starts in 0.3s; if you miss, you're made to sit.
  22.  
  23. --]]
  24.  
  25. local function Use(...)
  26. local args = {...}
  27. local char = args[1].Character
  28. local torso = char.Torso
  29. local hum = char.Humanoid
  30.  
  31. local Stats = require(game:GetService("ServerScriptService").Stats)
  32. local DamageMod = require(game:GetService("ServerScriptService").Libraries.DamageService)
  33.  
  34. local myLevel = Stats.GetStat(args[1], char.BaseStat.Value)
  35. local mySpeed = char.BaseSpeed
  36.  
  37.  
  38.  
  39. for i = 1, 3 do
  40. local damage = math.random(1, 20) == 1 and baseDamage*2 or baseDamage -- reduced crit (the move is already kinda toxic)
  41. damage*=i
  42.  
  43. -- Part creation and some variables
  44. local inner = Instance.new("Part")
  45. inner.Color, inner.Size, inner.Transparency, inner.Material, inner.Massless, inner.CanCollide, inner.CFrame =
  46. inColor, inSize, inTrans, inMaterial, true, false, torso.CFrame
  47. inner.Parent = workspace
  48. local outer = Instance.new("Part")
  49. outer.Color, outer.Size, outer.Transparency, outer.Material, outer.Massless, outer.CanCollide, outer.CFrame =
  50. outColor, outSize, outTrans, outMaterial, true, false, torso.CFrame
  51. outer.Parent = workspace
  52.  
  53. local oplib = require(game.ServerScriptService.Libraries.Optimalization)
  54. oplib(outer)
  55.  
  56. local weld = Instance.new("Weld")
  57. weld.Part0, weld.Part1 =
  58. torso, inner
  59. weld.Parent = inner
  60. weld = Instance.new("Weld")
  61. weld.Part0, weld.Part1 =
  62. torso, outer
  63. weld.Parent = outer
  64.  
  65. local speedMulti = 0
  66. local lifeTemp = 0
  67. if i == 1 then
  68. speedMulti = 2 * (myLevel*0.0025 + 0.25)
  69. lifeTemp = lifetime
  70. else
  71. speedMulti = 2 * (myLevel*0.0035 + 0.25)
  72. lifeTemp = lifetime/2
  73. end
  74.  
  75.  
  76. -- Speed and DMG
  77. local finish = tick() + lifeTemp
  78. local hit = false
  79. DamageMod:RegisterWeaponPart(args[1], {inner, outer}, damage, function() hit = true end)
  80. repeat
  81. hum.WalkSpeed = mySpeed.Value*speedMulti
  82. foo.wait(0.05)
  83. until hit or tick()>=finish
  84. if hit then
  85. local finish2 = tick() + 0.3
  86. repeat
  87. hum.WalkSpeed = mySpeed.Value*speedMulti
  88. foo.wait(0.05)
  89. until tick()>=finish or tick()>=finish2
  90. end
  91. inner:Destroy()
  92. outer:Destroy()
  93. hum.WalkSpeed = mySpeed.Value*speedMulti/2
  94. foo.wait(0.1)
  95. if not hit then hum.Sit = true break end
  96. end
  97. end
  98.  
  99. return Use
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement