Advertisement
ViggoCS

Illuminati Laser

Aug 22nd, 2017
1,141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.12 KB | None | 0 0
  1. ---CREATED BY SoIHeardYouLikeMemes/Kidd_Anonymouse/Teen_Anonymouse/Adult_Anonymouse/FetusAnonymouse---
  2. ---those are all my alts btw.---
  3. local you = game.Players.LocalPlayer
  4. local char = you.Character
  5. local mouse = you:GetMouse()
  6. local firing = false
  7.  
  8. local m = Instance.new("Model",char)
  9. local illum = Instance.new("Part",m)
  10. illum.CanCollide = false
  11. illum.BottomSurface = "Smooth"
  12. illum.TopSurface = "Smooth"
  13. illum.Size = Vector3.new(0.2, 0.2, 0.2)
  14. illum.Anchored = true
  15.  
  16. local s = Instance.new("Sound",m)
  17. s.SoundId = "rbxassetid://185492305"
  18. s.Volume = 0.8
  19. s.Looped = true
  20. s:Play()
  21. local SP = Instance.new("SpecialMesh",illum)
  22. SP.MeshId = "rbxassetid://438530093"
  23. SP.TextureId = "rbxassetid://438530120"
  24. SP.Scale = Vector3.new(0.2, 0.2, 0.2)
  25. SP.Offset = Vector3.new(0.5, 8, 0.03)
  26.  
  27.  
  28. local MousePart = Instance.new("Part",m)
  29. MousePart.CanCollide = false
  30. MousePart.BottomSurface = "Smooth"
  31. MousePart.TopSurface = "Smooth"
  32. MousePart.Size = Vector3.new(0.2, 0.2, 0.2)
  33. MousePart.Anchored = true
  34.  
  35.  
  36. local TipPart = Instance.new("Part",m)
  37. TipPart.CanCollide = false
  38. TipPart.BottomSurface = "Smooth"
  39. TipPart.TopSurface = "Smooth"
  40. TipPart.BrickColor = BrickColor.new("Lime green")
  41. TipPart.Material = "Neon"
  42. TipPart.FormFactor = "Custom"
  43. TipPart.Shape = "Ball"
  44. TipPart.Size = Vector3.new(2, 2, 2)
  45. TipPart.Anchored = true
  46. TipPart.Locked = true
  47. TipPart.CanCollide = false
  48. TipPart.Transparency = 0.5
  49.  
  50. local PE1 = Instance.new("ParticleEmitter",TipPart) -- dorritoes
  51. PE1.Texture = "rbxassetid://686815657"
  52. PE1.LightEmission = 0.3
  53. PE1.Acceleration = Vector3.new(0,-2,0)
  54. PE1.Lifetime = NumberRange.new(5,7)
  55. PE1.Speed = NumberRange.new(3,5)
  56. PE1.Rate = 30
  57. PE1.VelocitySpread = 50
  58.  
  59. local PE2 = Instance.new("ParticleEmitter",TipPart) --illuminati
  60. PE2.Texture = "rbxassetid://686815657"
  61. PE2.LightEmission = 1
  62. PE2.Acceleration = Vector3.new(0,-2,0)
  63. PE2.Lifetime = NumberRange.new(5,7)
  64. PE2.Speed = NumberRange.new(3,5)
  65. PE2.Rate = 10
  66. PE2.VelocitySpread = 50
  67.  
  68. local PE3 = Instance.new("ParticleEmitter",TipPart) --HitMarkers
  69. PE3.Texture = "rbxassetid://686815657"
  70. PE3.LightEmission = 1
  71. PE3.Acceleration = Vector3.new(0,-2,0)
  72. PE3.Lifetime = NumberRange.new(5,7)
  73. PE3.Speed = NumberRange.new(3,5)
  74. PE3.Rate = 10
  75. PE3.VelocitySpread = 50
  76.  
  77. local PE4 = Instance.new("ParticleEmitter",MousePart) -- dorritoes
  78. PE4.Texture = "rbxassetid://484383135"
  79. PE4.Acceleration = Vector3.new(0,-10,0)
  80. PE4.Lifetime = NumberRange.new(2,4)
  81. PE4.Speed = NumberRange.new(8,10)
  82. PE4.Rate = 100
  83. PE4.VelocitySpread = 50
  84.  
  85. local PE5 = Instance.new("ParticleEmitter",MousePart) --illuminati
  86. PE5.Texture = "rbxassetid://686815657"
  87. PE5.Acceleration = Vector3.new(0,-10,0)
  88. PE5.Lifetime = NumberRange.new(2,4)
  89. PE5.Speed = NumberRange.new(8,10)
  90. PE5.Rate = 100
  91. PE5.VelocitySpread = 50
  92.  
  93. local PE6 = Instance.new("ParticleEmitter",MousePart) --HitMarkers
  94. PE6.Texture = "rbxassetid://644165701"
  95. PE6.Acceleration = Vector3.new(0,-10,0)
  96. PE6.Lifetime = NumberRange.new(2,4)
  97. PE6.Speed = NumberRange.new(8,10)
  98. PE6.Rate = 100
  99. PE6.VelocitySpread = 50
  100.  
  101. PE1.Enabled = false
  102. PE2.Enabled = false
  103. PE3.Enabled = false
  104. PE4.Enabled = false
  105. PE5.Enabled = false
  106. PE6.Enabled = false
  107.  
  108. function drawlazer(p1,p2)
  109. part = Instance.new("Part", m)
  110. part.Name = "Location"
  111. part.BottomSurface = 0
  112. part.TopSurface = 0
  113. part.BrickColor = BrickColor.new("Lime green")
  114. part.Material = "Neon"
  115. part.FormFactor = "Custom"
  116. part.Shape = "Ball"
  117. part.Size = Vector3.new(4, 4, 4)
  118. part.Anchored = true
  119. part.Locked = true
  120. part.CanCollide = false
  121. part.Transparency = 0.5
  122. part.CFrame = CFrame.new(p1.Position.x,p1.Position.y,p1.Position.z)
  123.  
  124. obj = part
  125. local lastPos = obj.CFrame.p
  126. objC = obj:Clone()
  127. objC.Name = "Line"
  128. objC.Parent = m
  129. objC.Shape = "Ball"
  130. objC.Anchored = true
  131. local distance = (p2.Position- obj.CFrame.p).magnitude
  132. objC.Size = Vector3.new(10,10,distance)
  133. objC.CFrame = CFrame.new(p2.Position,obj.Position)*CFrame.new(0,0,-distance/2)
  134. lastPos = obj.CFrame.p
  135. objCC1 = objC:Clone()
  136. objCC1.Parent = objC
  137. objCC1.CFrame = CFrame.new(p2.Position,obj.Position)*CFrame.new(0,0,-distance/2.5)
  138. objCC1.Size = Vector3.new(4,4,distance/2)
  139. objCC1.Name = "LineC1"
  140.  
  141. objCC2 = objC:Clone()
  142. objCC2.Parent = objC
  143. objCC2.CFrame = CFrame.new(p2.Position,obj.Position)*CFrame.new(0,0,-distance/1.5)
  144. objCC2.Size = Vector3.new(4,4,distance/2)
  145. objCC2.Name = "LineC2"
  146. objCC2:ClearAllChildren()
  147.  
  148. end
  149.  
  150. function drawlazer2(p1,p2)
  151. part = m:FindFirstChild("Location")
  152. part.CFrame = CFrame.new(p1.Position.x,p1.Position.y,p1.Position.z)
  153. obj = part
  154. local distance = (p2.Position- obj.CFrame.p).magnitude
  155. objC = m.Line:Clone()
  156. objC.Name = "Line2"
  157. objC.Parent = m
  158. objC.Size = Vector3.new(4,4,distance)
  159. objC.CFrame = CFrame.new(p2.Position,obj.Position)*CFrame.new(0,0,-distance/2)
  160.  
  161. objCC1 = objC.LineC1
  162.  
  163. objCC1.CFrame = CFrame.new(p2.Position,obj.Position)*CFrame.new(0,0,-distance/2.5)
  164. objCC1.Size = Vector3.new(4,4,distance/2)
  165.  
  166.  
  167. objCC2 = objC.LineC2
  168.  
  169. objCC2.CFrame = CFrame.new(p2.Position,obj.Position)*CFrame.new(0,0,-distance/1.5)
  170. objCC2.Size = Vector3.new(4,4,distance/2)
  171.  
  172.  
  173. m.Line:remove()
  174.  
  175. objC.Name = "Line"
  176. for _,v in pairs(game.Players:GetPlayers()) do
  177.  
  178. if v ~= you then
  179. local d = (part.Position- v.Character:WaitForChild("Torso").CFrame.p).magnitude
  180. if d <= 5 then
  181. v.Character:FindFirstChildOfClass("Humanoid"):TakeDamage(5)
  182. end
  183. end
  184. --wait()
  185. end
  186.  
  187. end
  188.  
  189.  
  190. function despawn1(part1,part2,length)
  191.  
  192. for i = 10,1,-1 do
  193.  
  194. part1.Transparency = part1.Transparency + 0.1
  195. part1.Size = part1.Size + Vector3.new(0.2,0.2,length)
  196. part1.Size = Vector3.new(part1.Size.X,part1.Size.Y,length)
  197.  
  198. wait(0.01)
  199. end
  200. part1:remove()
  201.  
  202. for i = 10,1,-1 do
  203.  
  204. part2.Transparency = part2.Transparency + 0.1
  205.  
  206. wait(0.01)
  207. end
  208. part2:remove()
  209.  
  210. end
  211.  
  212. function despawn2(part1,length)
  213.  
  214. for i = 10,1,-1 do
  215.  
  216. part1.Transparency = part1.Transparency + 0.1
  217. part1.Size = part1.Size + Vector3.new(0.2,0,length)
  218. part1.Size = Vector3.new(part1.Size.X,part1.Size.Y,length)
  219.  
  220. wait(0.01)
  221. end
  222. part1:remove()
  223. end
  224.  
  225.  
  226.  
  227. function snipe(T)
  228.  
  229. part = Instance.new("Part", m)
  230. part.Name = "Sniper"
  231. part.BottomSurface = 0
  232. part.TopSurface = 0
  233. part.BrickColor = BrickColor.new("Really black")
  234. part.Material = "Neon"
  235. part.FormFactor = "Custom"
  236. part.Size = Vector3.new(1, 1, 3)
  237. part.Anchored = true
  238. part.Locked = true
  239. part.CanCollide = false
  240. part.Transparency = 0
  241.  
  242. local SP = Instance.new("SpecialMesh",part)
  243. SP.MeshId = "rbxassetid://685827900"
  244. SP.Scale = Vector3.new(0.05, 0.05, 0.05)
  245. SP.Offset = Vector3.new(0, -0.3, 3.05)
  246.  
  247. local S=part
  248.  
  249. part.Position = char.Torso.Position + Vector3.new(math.random(-5,5),math.random(3,8),math.random(-5,5))
  250. part.CFrame = CFrame.new(part.Position,T.Position)
  251.  
  252.  
  253. obj = part
  254. local lastPos = obj.CFrame.p
  255. objC = obj:Clone()
  256. objC.Mesh:remove()
  257. wait(0.05)
  258. objC.Parent = part
  259. objC.Shape = "Ball"
  260. objC.FormFactor = "Custom"
  261. objC.Anchored = true
  262. objC.BrickColor = BrickColor.new("New Yeller")
  263. local distance = (T.Position- obj.CFrame.p).magnitude
  264. objC.Size = Vector3.new(0.2,0.2,distance)
  265. objC.CFrame = CFrame.new(T.Position,obj.Position)*CFrame.new(0,0,-distance/2)
  266. local s = Instance.new("Sound",part)
  267. s.SoundId = "rbxassetid://680140087"
  268. s.Volume = 1
  269. s.PlayOnRemove = true
  270. s:remove()
  271. despawn1(objC,part,distance)
  272. if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  273. mouse.Target.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(20)
  274. local PETemp = Instance.new("ParticleEmitter",mouse.Target) --HitMarkers
  275. PETemp.Texture = "rbxassetid://644165701"
  276. PETemp.Acceleration = Vector3.new(0,-10,0)
  277. PETemp.Lifetime = NumberRange.new(2,4)
  278. PETemp.Speed = NumberRange.new(8,10)
  279. PETemp.Rate = 100
  280. PETemp.VelocitySpread = 50
  281. PETemp.Enabled = true
  282. wait(0.1)
  283. PETemp.Enabled = false
  284. end
  285. end
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292. function ThrowDorito(a,b)
  293. if m:FindFirstChild("Throw") == nil then
  294. local animation=Instance.new("Animation",char:FindFirstChildOfClass("Humanoid"))
  295. animation.Name="Throw"
  296. animation.AnimationId="http://www.roblox.com/asset/?id=207107855"
  297. anim=char:FindFirstChildOfClass("Humanoid"):LoadAnimation(animation)
  298. anim:Play()
  299. else
  300. local animation=char:FindFirstChildOfClass("Humanoid").Throw
  301. anim=char:FindFirstChildOfClass("Humanoid"):LoadAnimation(animation)
  302. anim:Play()
  303. end
  304.  
  305. part = Instance.new("Part", m)
  306. part.Name = "Dorito"
  307. part.BottomSurface = 0
  308. part.TopSurface = 0
  309. part.BrickColor = BrickColor.new("Neon orange")
  310. part.Material = "Neon"
  311. part.FormFactor = "Custom"
  312. part.Shape = "Ball"
  313. part.Size = Vector3.new(1,0.2,1)
  314. part.Anchored = true
  315. part.Locked = true
  316. part.CanCollide = false
  317. part.Transparency = 0
  318. part.CFrame = CFrame.new(a.Position.x,a.Position.y,a.Position.z)
  319. local SP = Instance.new("SpecialMesh",part)
  320. SP.MeshId = "rbxassetid://627995517"
  321. SP.Scale = Vector3.new(1, 1, 1)
  322.  
  323.  
  324. obj = part
  325. local lastPos = obj.CFrame.p
  326. objC = obj:Clone()
  327. objC.Name = "DoritoTrail"
  328. objC.Mesh:remove()
  329. objC.Parent = m
  330. objC.FormFactor = "Custom"
  331. objC.Anchored = true
  332. objC.Transparency = 0.5
  333. objC.BrickColor = BrickColor.new("CGA brown")
  334.  
  335. local distance = (b.Position- obj.CFrame.p).magnitude
  336. objC.Size = Vector3.new(1,0.2,distance)
  337. objC.CFrame = CFrame.new(b.Position,obj.Position)*CFrame.new(0,0,-distance/2)
  338. lastPos = obj.CFrame.p
  339. obj.CFrame = CFrame.new(b.Position,obj.Position)*CFrame.new(0,0,-distance)
  340. obj.CFrame = obj.CFrame * CFrame.fromEulerAnglesXYZ(0,math.random(1,99),0)
  341. objC.Size = Vector3.new(1,0.2,distance)
  342. print(distance)
  343. local target = mouse.Target
  344. local weld = Instance.new("ManualWeld")
  345. weld.Part0 = part
  346. weld.Part1 = target
  347. weld.C0 = CFrame.new()
  348. weld.C1 = target.CFrame:inverse() * part.CFrame
  349. weld.Parent = part
  350. part.Anchored = false
  351. if target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  352. target.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(5)
  353. end
  354. despawn2(objC,distance)
  355. end
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365. function shoot()
  366. print("FIRE!")
  367. TipPart.Transparency = 0.5
  368. if m:FindFirstChild("Line") == nil then
  369.  
  370. drawlazer(MousePart,TipPart)
  371. else
  372. drawlazer2(MousePart,TipPart)
  373. end
  374. local s = Instance.new("Sound",TipPart)
  375. s.SoundId = "rbxassetid://705502934"
  376. s.Volume = 2.5
  377. s.PlayOnRemove = true
  378. s:remove()
  379. wait()
  380. end
  381.  
  382. --.KEYS....KEYS....KEYSKEYSKEYS....KEYS....KEYS....KEYSKEYSKEYS......--
  383. --.KEYS....KEYS....KEYSKEYSKEYS....KEYS....KEYS..KEYSKEYS..KEYSKEYS..--
  384. --.KEYS..KEYS......KEYS..............KEYSKEYS...KEYS...........KEYS..--
  385. --.KEYS..KEYS......KEYS..............KEYSKEYS...KEYSKEYS.............--
  386. --.KEYSKEYS........KEYSKEYS............KEYS........KEYSKEYS..........--
  387. --.KEYSKEYS........KEYSKEYS............KEYS............KEYSKEYS......--
  388. --.KEYS..KEYS......KEYS..............KEYS..................KEYSKEYS..--
  389. --.KEYS..KEYS......KEYS..............KEYS.......KEYS...........KEYS..--
  390. --.KEYS....KEYS....KEYSKEYSKEYS....KEYS.........KEYSKEYS..KEYSKEYS...--
  391. --.KEYS....KEYS....KEYSKEYSKEYS....KEYS............KEYSKEYSKEYS......--
  392. mouse.Button1Up:connect(function()
  393. firing = false
  394. print("Stop")
  395. PE1.Enabled = false
  396. PE2.Enabled = false
  397. PE3.Enabled = false
  398. PE4.Enabled = false
  399. PE5.Enabled = false
  400. PE6.Enabled = false
  401. if m:FindFirstChild("Line") ~= nil then
  402. m.Line:remove()
  403. m.Location:remove()
  404. end
  405. TipPart.Transparency = 1
  406. repeat illum.CFrame = illum.CFrame * CFrame.fromEulerAnglesXYZ(0,0.05,0) illum.Position = char.Torso.Position + Vector3.new(0,.01,0) if m:FindFirstChild("Line") ~= nil then m:FindFirstChild("Line"):remove() end if m:FindFirstChild("Location") ~= nil then m:FindFirstChild("Location"):remove() end wait()
  407. until firing == true
  408. end)
  409.  
  410. mouse.Button1Down:connect(function()
  411. firing = true
  412. PE1.Enabled = true
  413. --PE2.Enabled = true
  414. --PE3.Enabled = true
  415. PE4.Enabled = true
  416. PE5.Enabled = true
  417. PE6.Enabled = true
  418. repeat MousePart.CFrame = CFrame.new(mouse.Hit.p) TipPart.Position = char.Head.Position + Vector3.new(0,9,0) illum.CFrame = illum.CFrame * CFrame.fromEulerAnglesXYZ(0,0.05,0) illum.Position = char.Torso.Position + Vector3.new(0,.01,0) shoot() wait()
  419. until firing == false
  420.  
  421. end)
  422.  
  423. mouse.KeyDown:connect(function(key)
  424. if key == "q" and firing == false then
  425. MousePart.CFrame = CFrame.new(mouse.Hit.p)
  426. snipe(MousePart)
  427. print("Snipe")
  428. elseif key == "e" and firing == false then
  429. MousePart.CFrame = CFrame.new(mouse.Hit.p)
  430. ThrowDorito(MousePart,char:FindFirstChild("Right Arm"))
  431. print("Dorito")
  432. end
  433.  
  434. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement