Advertisement
Guest User

Script

a guest
Aug 20th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. wait()
  2.  
  3. local play = game.Players.LocalPlayer
  4. local mou = play:GetMouse()
  5. local char = play.Character or play.CharacterAdded:wait()
  6. local hum = char:WaitForChild("Humanoid")
  7. local Tool = script.Parent
  8. local a = hum:LoadAnimation(Tool.Soul1)
  9. local a3 = hum:LoadAnimation(Tool.Idle)
  10. local i = 0
  11. local enabled = false
  12. local enabled2 = false
  13. ParticleLeft = game.Workspace.Soul.ParticleEmitter:Clone()
  14. ParticleRight = game.Workspace.Soul.ParticleEmitter:Clone()
  15.  
  16. Tool.unequipped:connect(function(part)
  17. enabled = false
  18. enabled2 = false
  19. a3:Stop()
  20. a:Stop()
  21. ParticleLeft.Transparency = NumberSequence.new(1)
  22. ParticleRight.Transparency = NumberSequence.new(1)
  23. end)
  24.  
  25. Tool.Equipped:connect(function(part)
  26. enabled = true
  27. enabled2 = true
  28. a3:Play()
  29. ParticleRight.Parent = char["Right Arm"]
  30. ParticleLeft.Parent = char["Left Arm"]
  31. ParticleLeft.Transparency = NumberSequence.new(0)
  32. ParticleRight.Transparency = NumberSequence.new(0)
  33.  
  34. end)
  35.  
  36.  
  37.  
  38.  
  39. local LightAttack = Instance.new("Part")
  40. local connection
  41. connection = mou.Button1Up:connect(function()
  42. if enabled == false then return end
  43. enabled = true
  44. wait(.1)
  45. a:Stop()
  46.  
  47. i = 0
  48.  
  49. local LightAttack = Instance.new("Part")
  50. local Particle = game.Workspace.Soul.ParticleEmitter:Clone()
  51. Particle.Parent = LightAttack
  52. LightAttack.Name = "LightAttack"
  53. LightAttack.Shape = "Ball"
  54. LightAttack.Material = "Neon"
  55. LightAttack.BrickColor = BrickColor.new("Lily White")
  56. LightAttack.CanCollide = false
  57. LightAttack.Parent = char.Parent
  58. LightAttack.CFrame = char.Torso.CFrame*CFrame.new(0,0,-4.7)
  59. local BV = Instance.new("BodyVelocity")
  60. BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  61. BV.velocity = char.Torso.CFrame.lookVector*100
  62. BV.Parent = LightAttack
  63. local DMG = game.workspace.Script:clone()
  64. DMG.Parent = LightAttack
  65. wait(5)
  66.  
  67. LightAttack:Destroy()
  68.  
  69. end)
  70.  
  71.  
  72.  
  73. mou.Button1Down:connect(function()
  74. if enabled == false then return end
  75. if enabled2 == false then return end
  76. enabled = false
  77. enabled2 = false
  78. char.Torso.Anchored = true
  79. a:Play()
  80.  
  81. i = 0
  82.  
  83. enabled = true
  84. enabled2 = true
  85.  
  86. end)
  87.  
  88.  
  89.  
  90. mou.Button1Up:connect(function()
  91. a:Stop()
  92. wait(1.5)
  93. char.Torso.Anchored = false
  94.  
  95. end)
  96.  
  97. local con
  98. mou.Button1Down:connect(function()
  99. if enabled == false then return end
  100. char.Torso.CFrame = CFrame.new(char.Torso.Position, mou.hit.p)
  101. con = mou.Move:connect(function()
  102. char.Torso.CFrame = CFrame.new(char.Torso.Position, mou.hit.p)
  103. end)
  104. end)
  105.  
  106. mou.Button1Up:connect(function()
  107. if enabled == true then
  108. con:Disconnect()
  109.  
  110. end
  111. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement