Advertisement
Josemmoya

Untitled

Mar 9th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.80 KB | None | 0 0
  1. if input == Enum.KeyCode.C then
  2. attack = true
  3. rooted = true
  4. local sound = Instance.new("Sound")
  5. sound.SoundId = "rbxassetid://2545011398"
  6. sound.Volume = 10
  7. sound.Parent = head
  8. sound:Play()
  9. repeat
  10. game:GetService("RunService").Stepped:Wait()
  11. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
  12. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
  13. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  14. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  15. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.1)
  16. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  17. until sound.Playing == false
  18. rooted = false
  19. hum.WalkSpeed = 20
  20. hum.JumpPower = 50
  21. local model = Instance.new("Model")
  22. model.Name = "Devs"
  23. model.Parent = char
  24. local mainpart = Instance.new("Part")
  25. mainpart.Transparency = 1
  26. mainpart.CanCollide = false
  27. mainpart.Anchored = true
  28. mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
  29. mainpart.Parent = model
  30. model.PrimaryPart = mainpart
  31. local devs = {}
  32. local devsine = 0
  33. for i = 1, 4 do
  34. local dev = Instance.new("Part")
  35. dev.Name = "Devilsknife"
  36. dev.Transparency = 1
  37. dev.Anchored = true
  38. dev.CanCollide = false
  39. dev.Size = Vector3.new(4, 0.05, 4.6)
  40. dev.Parent = model
  41. local decal1 = Instance.new("Decal")
  42. decal1.Texture = "rbxassetid://2704176861"
  43. decal1.Face = Enum.NormalId.Top
  44. decal1.Transparency = 1
  45. decal1.Parent = dev
  46. local decal2 = Instance.new("Decal")
  47. decal2.Texture = "rbxassetid://2704176861"
  48. decal2.Face = Enum.NormalId.Bottom
  49. decal2.Transparency = 1
  50. decal2.Parent = dev
  51. dev.Touched:Connect(function(hit)
  52. end)
  53. table.insert(devs, dev)
  54. end
  55. local spin = 0
  56. for i = 1, 15 do
  57. game:GetService("RunService").Stepped:Wait()
  58. spin = spin + 12
  59. devsine = devsine + 1
  60. mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
  61. for i = 1, #devs do
  62. for i,v in pairs(devs[i]:GetChildren()) do
  63. if v:IsA("Decal") then
  64. v.Transparency = v.Transparency - 1 / 15
  65. end
  66. end
  67. if i == 1 then
  68. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(math.sin(sine / 40) * 4, 0, math.sin(sine / 40) * 10)
  69. elseif i == 2 then
  70. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(-math.sin(sine / 40) * 4, 0, -math.sin(sine / 40) * 10)
  71. elseif i == 3 then
  72. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(math.sin(sine / 40) * 4, 0, -math.sin(sine / 40) * 10)
  73. elseif i == 4 then
  74. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(-math.sin(sine / 40) * 4, 0, math.sin(sine / 40) * 10)
  75. end
  76. end
  77. end
  78. local debounce = {}
  79. for i = 1, #devs do
  80. debounce[i] = false
  81. end
  82. for i = 1, 500 do
  83. game:GetService("RunService").Stepped:Wait()
  84. spin = spin + 12
  85. devsine = devsine + 1
  86. mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
  87. for i = 1, #devs do
  88. for i,v in pairs(devs[i]:GetTouchingParts()) do
  89. if not v:IsDescendantOf(char) and debounce[i] == false then
  90. if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
  91. debounce[i] = true
  92. v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 5
  93. coroutine.resume(coroutine.create(function()
  94. wait(0.4)
  95. debounce[i] = false
  96. end))
  97. end
  98. end
  99. end
  100. end
  101. for i = 1, #devs do
  102. if i == 1 then
  103. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(math.sin(sine / 40) * 4, 0, math.sin(sine / 40) * 10)
  104. elseif i == 2 then
  105. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(-math.sin(sine / 40) * 4, 0, -math.sin(sine / 40) * 10)
  106. elseif i == 3 then
  107. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(math.sin(sine / 40) * 4, 0, -math.sin(sine / 40) * 10)
  108. elseif i == 4 then
  109. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(-math.sin(sine / 40) * 4, 0, math.sin(sine / 40) * 10)
  110. end
  111. end
  112. end
  113. for i = 1, 15 do
  114. game:GetService("RunService").Stepped:Wait()
  115. for i = 1, #devs do
  116. for i,v in pairs(devs[i]:GetChildren()) do
  117. if v:IsA("Decal") then
  118. v.Transparency = v.Transparency + 1 / 15
  119. end
  120. end
  121. if i == 1 then
  122. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(math.sin(sine / 40) * 4, 0, math.sin(sine / 40) * 10)
  123. elseif i == 2 then
  124. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(-math.sin(sine / 40) * 4, 0, -math.sin(sine / 40) * 10)
  125. elseif i == 3 then
  126. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(math.sin(sine / 40) * 4, 0, -math.sin(sine / 40) * 10)
  127. elseif i == 4 then
  128. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(-math.sin(sine / 40) * 4, 0, math.sin(sine / 40) * 10)
  129. end
  130. end
  131. end
  132. model:Destroy()
  133. attack = false
  134. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement