Advertisement
Guest User

Untitled

a guest
Sep 26th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. de=1
  2. eye=Eye:children()[1]
  3. eye=Eye:children()[2]
  4. function BLAG(mouse)
  5. if de==1 then
  6. de=2
  7. BodyGyro=Instance.new("BodyGyro")
  8. BodyGyro.maxTorque=Vector3.new(math.huge,math.huge,math.huge)
  9. BodyGyro.Parent=eye
  10. local Laz=Instance.new("Part")
  11. Laz.Anchored=true
  12. Laz.BrickColor=BrickColor:Red()
  13. Laz.Reflectance=0
  14. Laz.TopSurface="Smooth"
  15. Laz.BottomSurface="Smooth"
  16. Laz.CanCollide=false
  17. Laz.CFrame=CFrame.new((eye.Position+mouse.Hit.p)/2,mouse.Hit.p)
  18. Laz.Parent=eye
  19. Laz.Size=Vector3.new(1,1,2)
  20. Laz.Transparency=0
  21. local Me=Instance.new("BlockMesh")
  22. Me.Parent=Laz
  23. for i=1,15 do
  24. Me.Scale = Vector3.new(i/65,i/65,(eye.Position - mouse.Hit.p).magnitude/2)
  25. Laz.CFrame=CFrame.new((eye.Position+mouse.Hit.p)/2,mouse.Hit.p)
  26. BodyGyro.cframe=CFrame.new(eye.Position,mouse.Hit.p)
  27. wait()
  28. end
  29. ex=Instance.new("Explosion")
  30. ex.Position=mouse.Hit.p
  31. ex.BlastPressure=200000
  32. ex.BlastRadius=5
  33. ex.Parent=char
  34. wait()
  35. for i=1,3 do
  36. wait(0.15)
  37. Laz.Transparency=Laz.Transparency+0.3
  38. end
  39. Laz:remove()
  40. BodyGyro:remove()
  41. wait(0.2)
  42. de=1
  43. end
  44. end
  45.  
  46. function BOOM(mouse)
  47. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  48. mouse.Button1Down:connect(function() BLAG(mouse) end)
  49. end
  50.  
  51. LA.Selected:connect(BOOM)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement