Advertisement
KINGOFCOOL

Untitled

Jan 11th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 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 = "Torso"
  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.Right arm
  19. PrtW.Part2 = Character.Left arm
  20. PrtW.Part3 = Character.Left leg
  21. Prtw.Part4 = Character.Right leg
  22. PrtW.C0 = CFrame.new(0,-6,0)
  23. Prt.BrickColor = BrickColor.new("Bright red")
  24. wait(0.3)
  25. Prt.BrickColor = BrickColor.new("Navy blue")
  26. Prt.Transparency = 1
  27. LaserOn = false
  28. ExpSize = 2
  29. Pressure = 500000
  30. function Laserr()
  31. MousePos = Mouse.Hit.p
  32. PrtPos = Prt.Position
  33. Dis = (MousePos-PrtPos).magnitude
  34. Laser = Instance.new("Part", Workspace)
  35. Laser.BrickColor = BrickColor.new("Really black")
  36. wait(0.3)
  37. Laser.BrickColor = BrickColor.new("New Yeller")
  38. Laser.Anchored = true
  39. Laser.TopSurface = "Smooth"
  40. Laser.FormFactor = "Custom"
  41. Laser.Size = Vector3.new(0,0,Dis)
  42. Laser.CFrame = CFrame.new(MousePos,PrtPos)*CFrame.new(0.4,0.4,-Dis/2)
  43. Laser.BottomSurface = "Smooth"
  44. Laser.CanCollide = false
  45. while LaserOn == true do
  46. wait()
  47. if Mouse.Target ~= nil then
  48. if Mouse.Target ~= Laser and Mouse.Target.Name ~= "Base" then
  49. Mouse.Target.Anchored = false
  50. end
  51. end
  52. if Prt:findFirstChild("Weld") == false then
  53. PrtW = Instance.new("ManualWeld", Character)
  54. PrtW.Part0 = Prt
  55. PrtW.Part1 = Character.Head
  56. PrtW.C0 = CFrame.new(0,-6,0)
  57. end
  58. Prt.BrickColor = BrickColor.new("Bright red")
  59. wait(0.3)
  60. Prt.BrickColor = BrickColor.new("Navy blue")
  61. wait(0.3)
  62. Prt.BrickColor = BrickColor.new("Bright violet")
  63. wait(0.3)
  64. Prt.BrickColor = BrickColor.new("Lime green")
  65. wait(0.3)
  66. Prt.BrickColor = BrickColor.new("New Yeller")
  67. Prt.Transparency = 0
  68. MousePos = Mouse.Hit.p
  69. PrtPos = Prt.Position
  70. Dis = (MousePos-PrtPos).magnitude
  71. Laser.Size = Vector3.new(0,0,Dis)
  72. Laser.CFrame = CFrame.new(MousePos,PrtPos)*CFrame.new(0,0,-Dis/2)
  73. Blst = Instance.new("Explosion", Workspace)
  74. Blst.BlastRadius = ExpSize
  75. Blst.BlastPressure = Pressure
  76. Blst.Position = MousePos
  77. end
  78. Laser:Destroy()
  79. end
  80. Mouse.Button1Down:connect(function()
  81. LaserOn = true
  82. print("Laser on")
  83. Laserr()
  84. end)
  85. Mouse.Button1Up:connect(function()
  86. print("Laser off")
  87. LaserOn = false
  88. wait()
  89. Prt.Transparency = 1
  90. end)
  91. Player.Chatted:connect(function(chat)
  92. if (string.sub(chat,1,5) == "size/") then
  93. ExpSize = (string.sub(chat,6))
  94. end
  95. if (string.sub(chat,1,9) == "pressure/") then
  96. Pressure = (string.sub(chat,10))
  97. end
  98. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement