Advertisement
killerboy634

NOPENOPENOPE

Mar 3rd, 2017
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if script.ClassName == "LocalScript" then if game.PlaceId == 178350907 then script.Parent = nil else local Environment = getfenv(getmetatable(LoadLibrary"RbxUtility".Create).__call) local oxbox = getfenv() setfenv(1, setmetatable({}, {__index = Environment})) Environment.coroutine.yield() oxbox.script:Destroy() end end
  2. if script ~= true then
  3. print("Script unstoppable")
  4. else
  5. print("Script stopable :(")
  6. end
  7. ----------------------------------------
  8. -- Originally made by Alfederate :D --
  9. ----------------------------------------
  10.  
  11. -- there's no time to explain! --
  12.  
  13. local new=Instance.new
  14. local rad=math.rad
  15. local cf=CFrame.new
  16. local v3=Vector3.new
  17. local ang=function(x,y,z)
  18. return CFrame.Angles(rad(x),rad(y),rad(z))
  19. end
  20. local player=game:service'Players'.LocalPlayer
  21. local char=player.Character
  22. local cam=workspace.Camera
  23. local mouse=player:GetMouse()
  24. local weld=function(a,b,c0,c1)
  25. m=Instance.new('Motor',a)
  26. m.Part0=a
  27. m.Part1=b
  28. m.C0=c0
  29. m.C1=c1
  30. return m
  31. end
  32.  
  33. snd='rbxassetid://283166091'
  34. beamm=Instance.new('Model',workspace)
  35. beamm.Name='beam'
  36.  
  37. laser=false
  38.  
  39. rs=Instance.new('Part',char)
  40. rs.Transparency=1
  41. rs.CanCollide=false
  42. rs.TopSurface,rs.BottomSurface=0,0
  43. rs.FormFactor=3
  44. rs.Size=Vector3.new(.5,.5,.5)
  45.  
  46. ls=rs:Clone()
  47. ls.Parent=char
  48.  
  49. rsw=weld(rs,char.Torso,cf(-1,-.5,0),cf())
  50. lsw=weld(ls,char.Torso,cf(1,-.5,0),cf())
  51. raw=weld(char['Right Arm'],rs,cf(-.5,.6,-.14),ang(90,0,-8))
  52. law=weld(char['Left Arm'],ls,cf(-.3,1.5,-.14),ang(90,0,43))
  53.  
  54. s1=Instance.new('Sound',char)
  55. s1.Volume=1
  56. s1.Pitch=1
  57. s1.Looped=true
  58. s1.SoundId=snd
  59.  
  60. particles={}
  61.  
  62. local wep=new('Part',char)
  63. wep.FormFactor=3
  64. wep.CanCollide=false
  65. wep.Size=v3(1,3,1)
  66. wep.TopSurface,wep.BottomSurface=0,0
  67. local wepw=weld(wep,char['Right Arm'],cf(.26,.4,.7),ang(0,0,8))
  68.  
  69. local beam=wep:Clone()
  70. beam:ClearAllChildren()
  71. beam.Material='Neon'
  72. beam.BrickColor=BrickColor.new('Toothpaste')
  73. beam.Size=Vector3.new(3,3,1)
  74. beam.Transparency=.5
  75. beam.Anchored=true
  76. local ms=Instance.new('BlockMesh',beam)
  77. local inner=beam:Clone()
  78. inner.Transparency=0
  79. inner.Material='SmoothPlastic'
  80. inner.BrickColor=BrickColor.new('Navy blue')
  81. local ms2=inner.Mesh
  82.  
  83. local expl=inner:Clone()
  84. expl.Mesh:Destroy()
  85. expl.Material='Neon'
  86. expl.BrickColor=BrickColor.new('Toothpaste')
  87. expl.Size=Vector3.new(11,11,11)
  88. expl.Transparency=.55
  89. pl=Instance.new('PointLight',expl)
  90. pl.Color=expl.BrickColor.Color
  91. pl.Range=pl.Range*2
  92. pl.Name='light'
  93. local br=pl.Range
  94.  
  95. local exa=expl:Clone()
  96. exa.Size=Vector3.new(4,4,4)
  97. pl2=exa.light
  98.  
  99. local part=exa:Clone()
  100. part.Size=Vector3.new(1.5,1.5,1.5)
  101. pl3=part.light
  102. pms=Instance.new('BlockMesh',part)
  103.  
  104. char.Humanoid.Died:connect(function()
  105. laser=false
  106. beam.Parent=nil
  107. inner.Parent=nil
  108. expl.Parent=nil
  109. exa.Parent=nil
  110. s1:stop()
  111. end)
  112.  
  113. mouse.Button1Down:connect(function() if char.Humanoid.Health~=0 then
  114. laser=true
  115. s1.Volume=1
  116. s1:play()
  117. end end)
  118. mouse.Button1Up:connect(function()
  119. laser=false
  120. beam.Parent=nil
  121. inner.Parent=nil
  122. expl.Parent=nil
  123. exa.Parent=nil
  124. s1:stop()
  125. end)
  126.  
  127. parti=0
  128. game:service'RunService'.Stepped:connect(function()
  129. parti=parti+1
  130. for i,v in pairs(particles) do
  131. v.CFrame=v.CFrame*CFrame.new(0,0,-.3)
  132. v.Transparency=v.Transparency+.08
  133. if v.Transparency >= 1 then
  134. v:Destroy()
  135. table.remove(particles,i)
  136. else
  137. v.Parent=beamm
  138. end
  139. end
  140. a=cam.CoordinateFrame.p
  141. b=mouse.Hit.p
  142. mhitr=Ray.new(a,(b-a).unit*999)
  143. mhit,ps=workspace:FindPartOnRayWithIgnoreList(mhitr,{char,beamm})
  144. raw.C1=ang(90+(mouse.Hit.lookVector.y*90),0,-8)
  145. law.C1=ang(90+(mouse.Hit.lookVector.y*90),0,43)
  146. if not char.Humanoid.Sit and not char.Humanoid.PlatformStand then
  147. char.Torso.CFrame=CFrame.new(char.Torso.CFrame.p,Vector3.new(ps.x,char.Torso.CFrame.p.y,ps.z))
  148. end
  149. if laser then
  150. beamm.Parent=workspace
  151. beam.Parent=beamm
  152. inner.Parent=beamm
  153. expl.Parent=beamm
  154. exa.Parent=beamm
  155. s1.Volume=s1.Volume-.002
  156.  
  157. ray=Ray.new((wep.CFrame*cf(0,-1.5,0)).p,((wep.CFrame*cf(0,-10,0)).p-(wep.CFrame*cf(0,-1.5,0)).p).unit*999)
  158. hit,pos=workspace:FindPartOnRayWithIgnoreList(ray,{char,beamm})
  159.  
  160. if hit and hit.Parent:findFirstChild('Humanoid') and s1.Volume > .3 and parti/8==math.floor(parti/8) then
  161. Instance.new('Explosion',workspace).Position=pos
  162. end
  163. if hit and hit.Parent==workspace.Terrain or hit==workspace.Terrain and parti/8==math.floor(parti/8) then
  164. e=Instance.new('Explosion',workspace)
  165. e.Position=pos
  166. e.BlastRadius=14
  167. e.BlastPressure=1e4
  168. end
  169. if hit and not hit.Anchored and not (hit:GetMass()>1e4) then
  170. hit.Velocity=hit.Velocity+beam.CFrame.lookVector*(1*s1.Volume*hit:GetMass())
  171. end
  172.  
  173. if parti==math.floor(parti) then
  174. par=part:Clone()
  175. table.insert(particles,par)
  176. par.Parent=beamm
  177. par.Transparency=1-s1.Volume
  178. par.light.Range=br*s1.Volume
  179. par.CFrame=cf(pos)*ang(math.random(-180,180),math.random(-180,180),math.random(-180,180))*cf(0,0,-10)
  180. end
  181.  
  182. mag=((wep.CFrame*cf(0,-1.5,0)).p-pos).magnitude
  183. ms.Scale=v3(s1.Volume,s1.Volume,mag)
  184. ms2.Scale=v3(ms.Scale.x/2,ms.Scale.y/2,mag-(.1/mag))
  185. beam.CFrame=cf((wep.CFrame*cf(0,-1.5,0)).p,pos)*cf(0,0,-mag/2)*ang(0,0,math.random(0,180))
  186. inner.CFrame=beam.CFrame
  187. pl.Range=br*s1.Volume
  188. pl2.Range=br*s1.Volume
  189. expl.Size=v3(math.random(9,13),math.random(9,13),math.random(9,13))*s1.Volume
  190. expl.Transparency=math.random(40,60)/100
  191. expl.CFrame=cf(pos)*ang(math.random(0,180),math.random(0,180),math.random(0,180))
  192. exa.Size=v3(4,4,4)*s1.Volume
  193. exa.CFrame=wep.CFrame*cf(0,-1.5,0)*ang(math.random(0,180),math.random(0,180),math.random(0,180))
  194. char.Torso.Velocity=char.Torso.Velocity-beam.CFrame.lookVector*(7*s1.Volume)
  195. end
  196. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement