Advertisement
BobMe

NewUnnamedLaser

Mar 26th, 2018
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ----------------------------------------
  2. -- Originally made by Alfederate :D --
  3. -- And Edited By Memo1332 So Fucks Given--
  4. ----------------------------------------
  5.  
  6. -- there's no time to explain! --
  7.  
  8. --- Filter is no longer need in Voidacity
  9.  
  10. local Mouse = game.Players.LocalPlayer:GetMouse()
  11. local Plr = game.Players.LocalPlayer
  12. local plr = game.Players.LocalPlayer
  13. local s = Instance.new("Sound")
  14.  
  15. base = Instance.new("ScreenGui",plr.PlayerGui)
  16. bbg = Instance.new("BillboardGui",plr.Character.Head)
  17. bbg.Size = UDim2.new(0,200,0,50)
  18. bbg.StudsOffset = Vector3.new(0,3,0)
  19. bbgTl = Instance.new("TextLabel",bbg)
  20. bbgTl.BackgroundTransparency = 1
  21. bbgTl.Size = UDim2.new(10,0,1,0)
  22. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  23. bbgTl.Font = "Code"
  24. bbgTl.Text = " "
  25. bbgTl.TextSize = 25
  26. bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
  27. bbgTl.TextColor3 = Color3.new(0.99,0,0.95)
  28. bbgTl.TextStrokeTransparency = 0
  29. bbgTl.TextWrapped = true
  30. plr.Chatted:connect(function(msg)
  31. bbgTl.Text = msg
  32. wait(5)
  33. if bbgTl.Text == msg then
  34. bbgTl.Text = " "
  35. end
  36. end)
  37.  
  38. Mouse.KeyDown:connect(function(KeyDown)
  39. if KeyDown == "0" then
  40. s.Name = "Sound"
  41. s.SoundId = "rbxassetid://189195901"
  42. s.Volume = 8
  43. s.Looped = true
  44. s.Archivable = false
  45. s.Looped = true
  46. s.Parent = game.Players.LocalPlayer.Character.Head
  47. s.TimePosition = 79.4
  48. s.Pitch = 1.08
  49. s:Play()
  50. Plr.Character.Humanoid.WalkSpeed = 135
  51. end
  52. end)
  53.  
  54. Mouse.KeyUp:connect(function(KeyUp)
  55. if KeyUp == "0" then
  56. Plr.Character.Humanoid.WalkSpeed = 16
  57. s:Stop()
  58. end
  59. end)
  60.  
  61. local new=Instance.new
  62. local rad=math.rad
  63. local cf=CFrame.new
  64. local v3=Vector3.new
  65. local ang=function(x,y,z)
  66. return CFrame.Angles(rad(x),rad(y),rad(z))
  67. end
  68. local player=game:service'Players'.LocalPlayer
  69. local char=player.Character
  70. local cam=workspace.Camera
  71. local mouse=player:GetMouse()
  72. local weld=function(a,b,c0,c1)
  73. m=Instance.new('Motor',a)
  74. m.Part0=a
  75. m.Part1=b
  76. m.C0=c0
  77. m.C1=c1
  78. return m
  79. end
  80.  
  81. snd='rbxassetid://189195901'
  82. beamm=Instance.new('Model',workspace)
  83. beamm.Name='beam'
  84.  
  85. laser=false
  86.  
  87. rs=Instance.new('Part',char)
  88. rs.Transparency=1
  89. rs.CanCollide=false
  90. rs.BrickColor=BrickColor.new('White')
  91. rs.TopSurface,rs.BottomSurface=0,0
  92. rs.FormFactor=3
  93. rs.Size=Vector3.new(.5,.5,2)
  94.  
  95. ls=rs:Clone()
  96. ls.Parent=char
  97.  
  98. rsw=weld(rs,char.Torso,cf(-1,-.5,0),cf())
  99. lsw=weld(ls,char.Torso,cf(1,-.5,0),cf())
  100. raw=weld(char['Right Arm'],rs,cf(-.5,.6,-.14),ang(90,0,-8))
  101. law=weld(char['Left Arm'],ls,cf(-.3,1.5,-.14),ang(90,0,43))
  102.  
  103. s12=Instance.new('Sound',char.Head)
  104. s12.Volume=10
  105. s12.Pitch=1
  106. s12.Looped=true
  107. s12.SoundId=snd
  108.  
  109. particles={}
  110.  
  111. local wep=new('Part',char)
  112. wep.FormFactor=3
  113. wep.CanCollide=false
  114. wep.Size=v3(1.3,6,1.3)
  115. wep.BrickColor=BrickColor.new('White')
  116. wep.Material='Neon'
  117. wep.TopSurface,wep.BottomSurface=0,0
  118. local wepw=weld(wep,char['Right Arm'],cf(.26,.4,.7),ang(0,0,8))
  119.  
  120. local beam=wep:Clone()
  121. beam:ClearAllChildren()
  122. beam.Material='Neon'
  123. beam.BrickColor=BrickColor.new('White')
  124. beam.Size=Vector3.new(3,3,1)
  125. beam.Transparency=.5
  126. beam.Anchored=true
  127. local ms=Instance.new('BlockMesh',beam)
  128. local inner=beam:Clone()
  129. inner.Transparency=0
  130. inner.Material='SmoothPlastic'
  131. inner.BrickColor=BrickColor.new('White')
  132. local ms2=inner.Mesh
  133.  
  134. local expl=inner:Clone()
  135. expl.Mesh:Destroy()
  136. expl.Material='Neon'
  137. expl.BrickColor=BrickColor.new('White')
  138. expl.Size=Vector3.new(11,11,11)
  139. expl.Transparency=.55
  140. pl=Instance.new('PointLight',expl)
  141. pl.Color=expl.BrickColor.Color
  142. pl.Range=pl.Range*2
  143. pl.Name='light'
  144. local br=pl.Range
  145.  
  146. local exa=expl:Clone()
  147. exa.Size=Vector3.new(4,4,4)
  148. pl2=exa.light
  149.  
  150. local part=exa:Clone()
  151. part.Size=Vector3.new(1.5,1.5,1.5)
  152. pl3=part.light
  153. pms=Instance.new('BlockMesh',part)
  154.  
  155. char.Humanoid.Died:connect(function()
  156. laser=false
  157. beam.Parent=nil
  158. inner.Parent=nil
  159. expl.Parent=nil
  160. exa.Parent=nil
  161. s12:stop()
  162. end)
  163.  
  164. mouse.Button1Down:connect(function() if char.Humanoid.Health~=0 then
  165. laser=true
  166. Volume=1.3
  167. s12.TimePosition = 43.6
  168. s12:play()
  169. end end)
  170. mouse.Button1Up:connect(function()
  171. laser=false
  172. beam.Parent=nil
  173. inner.Parent=nil
  174. expl.Parent=nil
  175. exa.Parent=nil
  176. s12:stop()
  177. end)
  178.  
  179. parti=0
  180. game:service'RunService'.Stepped:connect(function()
  181. parti=parti+1
  182. for i,v in pairs(particles) do
  183. v.CFrame=v.CFrame*CFrame.new(0,0,-.3)
  184. v.Transparency=v.Transparency+.08
  185. if v.Transparency >= 1 then
  186. v:Destroy()
  187. table.remove(particles,i)
  188. else
  189. v.Parent=beamm
  190. end
  191. end
  192. a=cam.CoordinateFrame.p
  193. b=mouse.Hit.p
  194. mhitr=Ray.new(a,(b-a).unit*999)
  195. mhit,ps=workspace:FindPartOnRayWithIgnoreList(mhitr,{char,beamm})
  196. raw.C1=ang(90+(mouse.Hit.lookVector.y*90),0,-8)
  197. law.C1=ang(90+(mouse.Hit.lookVector.y*90),0,43)
  198. if not char.Humanoid.Sit and not char.Humanoid.PlatformStand then
  199. char.Torso.CFrame=CFrame.new(char.Torso.CFrame.p,Vector3.new(ps.x,char.Torso.CFrame.p.y,ps.z))
  200. end
  201. if laser then
  202. beamm.Parent=workspace
  203. beam.Parent=beamm
  204. inner.Parent=beamm
  205. expl.Parent=beamm
  206. exa.Parent=beamm
  207. Volume=Volume-0.0001
  208.  
  209. 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)
  210. hit,pos=workspace:FindPartOnRayWithIgnoreList(ray,{char,beamm})
  211.  
  212. if hit and hit.Parent:findFirstChild('Humanoid') and Volume > .3 and parti/8==math.floor(parti/8) then
  213. Instance.new('Explosion',workspace).Position=pos
  214. end
  215. if hit and hit.Parent==workspace.Terrain or hit==workspace.Terrain and parti/8==math.floor(parti/8) then
  216. e=Instance.new('Explosion',workspace)
  217. e.Position=pos
  218. e.BlastRadius=14
  219. e.BlastPressure=1e4
  220. end
  221. if hit and not hit.Anchored and not (hit:GetMass()>1e4) then
  222. hit.Velocity=hit.Velocity+beam.CFrame.lookVector*(1*Volume*hit:GetMass())
  223. end
  224.  
  225. if parti==math.floor(parti) then
  226. par=part:Clone()
  227. table.insert(particles,par)
  228. par.Parent=beamm
  229. par.Transparency=1-Volume
  230. par.light.Range=br*Volume
  231. par.CFrame=cf(pos)*ang(math.random(-180,180),math.random(-180,180),math.random(-180,180))*cf(0,0,-10)
  232. end
  233.  
  234. mag=((wep.CFrame*cf(0,-1.5,0)).p-pos).magnitude
  235. ms.Scale=v3(Volume,Volume,mag)
  236. ms2.Scale=v3(ms.Scale.x/2,ms.Scale.y/2,mag-(.1/mag))
  237. beam.CFrame=cf((wep.CFrame*cf(0,-1.5,0)).p,pos)*cf(0,0,-mag/2)*ang(0,0,math.random(0,180))
  238. inner.CFrame=beam.CFrame
  239. pl.Range=br*Volume
  240. pl2.Range=br*Volume
  241. expl.Size=v3(math.random(9,13),math.random(9,13),math.random(9,13))*Volume
  242. expl.Transparency=math.random(40,60)/100
  243. expl.CFrame=cf(pos)*ang(math.random(0,180),math.random(0,180),math.random(0,180))
  244. exa.Size=v3(4,4,4)*Volume
  245. exa.CFrame=wep.CFrame*cf(0,-1.5,0)*ang(math.random(0,180),math.random(0,180),math.random(0,180))
  246. char.Torso.Velocity=char.Torso.Velocity-beam.CFrame.lookVector*(7*Volume)
  247. end
  248. end)
  249.  
  250. local UserInputService = game:GetService("UserInputService")
  251. local localPlayer = game.Players.LocalPlayer
  252. local character
  253. local humanoid
  254.  
  255. local canDoubleJump = false
  256. local hasDoubleJumped = false
  257. local oldPower
  258. local TIME_BETWEEN_JUMPS = 0.2
  259. local DOUBLE_JUMP_POWER_MULTIPLIER = 2
  260. local s = Instance.new("Sound",script.Parent)
  261. function onJumpRequest()
  262. if not character or not humanoid or not character:IsDescendantOf(workspace) or
  263. humanoid:GetState() == Enum.HumanoidStateType.Dead then
  264. return
  265. end
  266.  
  267. if canDoubleJump and not hasDoubleJumped then
  268. hasDoubleJumped = true
  269. humanoid.JumpPower = oldPower * DOUBLE_JUMP_POWER_MULTIPLIER
  270. humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  271. s.Name = "Sound"
  272. s.SoundId = "rbxassetid://192604675"
  273. s.Volume = 50
  274. s.Looped = false
  275. s.Pitch = 1.1+math.random()*.3
  276. s.archivable = false
  277. wait()
  278. s:Play()
  279. end
  280. end
  281.  
  282. local function characterAdded(newCharacter)
  283. character = newCharacter
  284. humanoid = newCharacter:WaitForChild("Humanoid")
  285. hasDoubleJumped = false
  286. canDoubleJump = false
  287. oldPower = humanoid.JumpPower
  288.  
  289. humanoid.StateChanged:connect(function(old, new)
  290. if new == Enum.HumanoidStateType.Landed then
  291. canDoubleJump = false
  292. hasDoubleJumped = false
  293. humanoid.JumpPower = oldPower
  294. elseif new == Enum.HumanoidStateType.Freefall then
  295. wait(TIME_BETWEEN_JUMPS)
  296. canDoubleJump = true
  297. end
  298. end)
  299. end
  300.  
  301. if localPlayer.Character then
  302. characterAdded(localPlayer.Character)
  303. end
  304.  
  305. heya = true
  306.  
  307. localPlayer.CharacterAdded:connect(characterAdded)
  308. UserInputService.JumpRequest:connect(onJumpRequest)
  309.  
  310. bbgTl.Text = "Highscore Edit By The Pink Addict Memo1332"
  311. wait(4)
  312. bbgTl.Text = " "
  313.  
  314. while heya do
  315. for i = 0,256,16 do
  316. wep.Color = Color3.new(1,i/256,1)
  317. beam.Color = Color3.new(1,i/256,1)
  318. inner.Color = Color3.new(1,i/256,1)
  319. expl.Color = Color3.new(1,i/256,1)
  320. exa.Color = Color3.new(1,i/256,1)
  321. bbgTl.TextStrokeColor3 = Color3.new(1,i/256,1)
  322. bbgTl.TextColor3 = Color3.new(1,i/256,1)
  323. wait()
  324. end
  325. for i = 0,256,16 do
  326. wep.Color = Color3.new(1,1-i/256,1)
  327. beam.Color = Color3.new(1,1-i/256,1)
  328. inner.Color = Color3.new(1,1-i/256,1)
  329. expl.Color = Color3.new(1,1-i/256,1)
  330. exa.Color = Color3.new(1,1-i/256,1)
  331. bbgTl.TextStrokeColor3 = Color3.new(1,1-i/256,1)
  332. bbgTl.TextColor3 = Color3.new(1,1-i/256,1)
  333. wait()
  334. end
  335. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement