Advertisement
epicodascripter

Untitled

Feb 21st, 2015
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. local lp = game.Players.LocalPlayer
  2. local chr = lp.Character
  3. local mouse = lp:GetMouse()
  4. local lance = function()
  5. for i = 1,50 do
  6. wait()
  7. for i = 1,10 do
  8. z = Instance.new("Part",chr)
  9. z.TopSurface="Smooth"
  10. z.BottomSurface="Smooth"
  11. z.Size=Vector3.new(1,1,5)
  12. z.CanCollide = false
  13. z.Touched:connect(function(hit)
  14. if hit.Parent'Humanoid' and hit.Parent.Name ~= lp.Name then
  15. hit.Parent'Humanoid':TakeDamage(10)
  16. end
  17. end)
  18. z.CFrame=chr.Torso.CFrame*CFrame.new(math.random(-5,5),math.random(-2.5,2.5),0)
  19. direction = Instance.new("BodyGyro", z)
  20. direction.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  21. direction.cframe = CFrame.new(z.Position+Vector3.new(0,0,1000))
  22. speed = Instance.new("BodyVelocity", z)
  23. speed.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  24. speed.velocity = direction.lookVector.unit * 50
  25. game.Debris:AddItem(z,5)
  26. end
  27. end
  28. end
  29. mouse.Button1Down:connect(lance)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement