Advertisement
KINGOFCOOL

Untitled

Jan 11th, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. -- Localscript, JUST RUN IT
  2. -- Say size/NUMBERHERE to change the size of the fire
  3. -- Say pressure/NUMBERHERE to change the power of the explosion, default is 5,000,000 pressure
  4.  
  5. Player = game.Players.LocalPlayer
  6. Mouse = Player:GetMouse()
  7. Character = Player.Character
  8. Prt = Instance.new("Part", Character)
  9. Prt.FormFactor = "Custom"
  10. Prt.Size = Vector3.new(2,2,2)
  11. PrtM = Instance.new("SpecialMesh", Prt)
  12. PrtM.MeshType = "Cylinder"
  13. Prt.TopSurface = "Smooth"
  14. Prt.BottomSurface = "Smooth"
  15. Prt:breakJoints()
  16. PrtW = Instance.new("ManualWeld", Character)
  17. PrtW.Part0 = Prt
  18. PrtW.Part1 = Character.Head
  19. PrtW.C0 = CFrame.new(0,-6,0)
  20. Prt.BrickColor = BrickColor.new("Bright red")
  21. wait(0.3)
  22. Prt.BrickColor = BrickColor.new("Navy blue")
  23. Prt.Transparency = 1
  24. LaserOn = false
  25. ExpSize = 2
  26. Pressure = 500000
  27. function Laserr()
  28. MousePos = Mouse.Hit.p
  29. PrtPos = Prt.Position
  30. Dis = (MousePos-PrtPos).magnitude
  31. Laser = Instance.new("Part", Workspace)
  32. Laser.BrickColor = BrickColor.new("Really black")
  33. wait(0.3)
  34. Laser.BrickColor = BrickColor.new("Lime")
  35. Laser.Anchored = true
  36. Laser.TopSurface = "Smooth"
  37. Laser.FormFactor = "Custom"
  38. Laser.Size = Vector3.new(0,0,Dis)
  39. Laser.CFrame = CFrame.new(MousePos,PrtPos)*CFrame.new(0.4,0.4,-Dis/2)
  40. Laser.BottomSurface = "Smooth"
  41. Laser.CanCollide = false
  42. while LaserOn == true do
  43. wait()
  44. if Mouse.Target ~= nil then
  45. if Mouse.Target ~= Laser and Mouse.Target.Name ~= "Base" then
  46. Mouse.Target.Anchored = false
  47. end
  48. end
  49. if Prt:findFirstChild("Weld") == false then
  50. PrtW = Instance.new("ManualWeld", Character)
  51. PrtW.Part0 = Prt
  52. PrtW.Part1 = Character.Head
  53. PrtW.C0 = CFrame.new(0,-6,0)
  54. end
  55. Prt.BrickColor = BrickColor.new("Bright red")
  56. wait(0.3)
  57. Prt.BrickColor = BrickColor.new("Navy blue")
  58. Prt.Transparency = 0
  59. MousePos = Mouse.Hit.p
  60. PrtPos = Prt.Position
  61. Dis = (MousePos-PrtPos).magnitude
  62. Laser.Size = Vector3.new(0,0,Dis)
  63. Laser.CFrame = CFrame.new(MousePos,PrtPos)*CFrame.new(0,0,-Dis/2)
  64. Blst = Instance.new("Explosion", Workspace)
  65. Blst.BlastRadius = ExpSize
  66. Blst.BlastPressure = Pressure
  67. Blst.Position = MousePos
  68. end
  69. Laser:Destroy()
  70. end
  71. Mouse.Button1Down:connect(function()
  72. LaserOn = true
  73. print("Laser on")
  74. Laserr()
  75. end)
  76. Mouse.Button1Up:connect(function()
  77. print("Laser off")
  78. LaserOn = false
  79. wait()
  80. Prt.Transparency = 1
  81. end)
  82. Player.Chatted:connect(function(chat)
  83. if (string.sub(chat,1,5) == "size/") then
  84. ExpSize = (string.sub(chat,6))
  85. end
  86. if (string.sub(chat,1,9) == "pressure/") then
  87. Pressure = (string.sub(chat,10))
  88. end
  89. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement