TheUnknownDiscord

blaster

Oct 25th, 2021 (edited)
115
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local debris = game:GetService("Debris")
  2. NLS([[
  3. mouse = owner:GetMouse()
  4.  
  5. local E = owner.Character:WaitForChild("The")
  6. mouse.Button1Down:Connect(function()
  7. E:FireServer(mouse.Hit.Position)
  8. end)
  9. ]], owner.Character)
  10. function isplatformstand(PC)
  11. coroutine.wrap(function()
  12. PC.Character.Humanoid.PlatformStand = true
  13. wait(3)
  14. for i,v in pairs(PC.Character:GetDescendants()) do
  15. if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then
  16. v.Enabled = true
  17. end
  18. end
  19. PC.Character.Humanoid.PlatformStand = false
  20. end)()
  21. end
  22. function killfunction(part)
  23. local Model = part:FindFirstAncestorOfClass("Model")
  24. if Model then
  25. local PC = game:GetService("Players"):GetPlayerFromCharacter(Model)
  26. if PC then
  27. if PC ~= owner then
  28. local limbcollider = Instance.new("Part", PC.Character:findFirstChild("Right Arm"))
  29. limbcollider.Size = Vector3.new(1.4,1,1)
  30. limbcollider.Shape = "Cylinder"
  31. limbcollider.Transparency = 1
  32. limbcollider.Name = "LimbCollider"
  33. local limbcolliderweld = Instance.new("Weld", limbcollider)
  34. limbcolliderweld.Part0 = PC.Character:findFirstChild("Right Arm")
  35. limbcolliderweld.Part1 = limbcollider
  36. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  37. local limbcollider2 = Instance.new("Part", PC.Character:findFirstChild("Left Arm"))
  38. limbcollider2.Size = Vector3.new(1.4,1,1)
  39. limbcollider2.Shape = "Cylinder"
  40. limbcollider2.Transparency = 1
  41. limbcollider2.Name = "LimbCollider"
  42. local limbcolliderweld2 = Instance.new("Weld", limbcollider)
  43. limbcolliderweld2.Part0 = PC.Character:findFirstChild("Left Arm")
  44. limbcolliderweld2.Part1 = limbcollider2
  45. limbcolliderweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  46. local limbcollider3 = Instance.new("Part", PC.Character:findFirstChild("Right Leg"))
  47. limbcollider3.Size = Vector3.new(1.3,1,1)
  48. limbcollider3.Shape = "Cylinder"
  49. limbcollider3.Transparency = 1
  50. limbcollider3.Name = "LimbCollider"
  51. local limbcolliderweld3 = Instance.new("Weld", limbcollider)
  52. limbcolliderweld3.Part0 = PC.Character:findFirstChild("Right Leg")
  53. limbcolliderweld3.Part1 = limbcollider3
  54. limbcolliderweld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  55. local limbcollider4 = Instance.new("Part", PC.Character:findFirstChild("Left Leg"))
  56. limbcollider4.Size = Vector3.new(1.3,1,1)
  57. limbcollider4.Shape = "Cylinder"
  58. limbcollider4.Transparency = 1
  59. limbcollider4.Name = "LimbCollider"
  60. local limbcolliderweld4 = Instance.new("Weld", limbcollider)
  61. limbcolliderweld4.Part0 = PC.Character:findFirstChild("Left Leg")
  62. limbcolliderweld4.Part1 = limbcollider4
  63. limbcolliderweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  64. debris:AddItem(limbcollider, 3)
  65. debris:AddItem(limbcollider2, 3)
  66. debris:AddItem(limbcollider3, 3)
  67. debris:AddItem(limbcollider4, 3)
  68. isplatformstand(PC)
  69. for i,v in pairs(PC.Character:GetDescendants()) do
  70. if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then
  71. local Socket = Instance.new("BallSocketConstraint")
  72. local a1 = Instance.new("Attachment")
  73. local a2 = Instance.new("Attachment")
  74. a1.Parent = v.Part0
  75. a2.Parent = v.Part1
  76. Socket.Parent = v.Parent
  77. Socket.Attachment0 = a1
  78. Socket.Attachment1 = a2
  79. a1.CFrame = v.C0
  80. a2.CFrame = v.C1
  81. Socket.LimitsEnabled = true
  82. Socket.TwistLimitsEnabled = true
  83. v.Enabled = false
  84. debris:AddItem(a1, 3)
  85. debris:AddItem(a2, 3)
  86. debris:AddItem(Socket, 3)
  87. end
  88. end
  89. end
  90. end
  91. end
  92. end
  93. out = false
  94. Bullet = Instance.new("Part", owner.Character)
  95. Bullet.Position = Vector3.new(1000000,1000000,1000000)
  96. Bullet.Anchored = true
  97. Bullet.CanCollide = false
  98. Bullet2 = Instance.new("Part", owner.Character)
  99. Bullet2.Position = Vector3.new(1000000,1000000,1000000)
  100. Bullet2.Anchored = true
  101. Bullet2.CanCollide = false
  102. Bullet2.Shape = Enum.PartType.Ball
  103. Tool = Instance.new("Tool")
  104. Part = Instance.new("Part")
  105. Part.Name = "Handle"
  106. Part.Parent = Tool
  107. Part.Size = Vector3.new(1,1,3.75)
  108. Part.Color = Color3.fromRGB(25, 25, 25)
  109. Part.Massless = true
  110. Part2 = Instance.new("Part")
  111. Part2.Parent = Part
  112. Part2.Size = Vector3.new(0.85,0.85,0.85)
  113. Part2.Color = Color3.fromRGB(91, 91, 91)
  114. Part2.Massless = true
  115. Part2.CanCollide = false
  116. Tool.GripPos = Vector3.new(0,-1,0.8125)
  117. Tool.Parent = owner.Character
  118. local E = Instance.new("RemoteEvent", owner.Character)
  119. E.Name = "The"
  120. Bullet.Color = Color3.fromRGB(184, 65, 65)
  121. Bullet.Material = Enum.Material.Neon
  122. Bullet2.Color = Color3.fromRGB(184, 65, 65)
  123. Bullet2.Material = Enum.Material.Neon
  124. ShootWeld = Instance.new("Weld", Part)
  125. ShootWeld.Part0 = Part2
  126. ShootWeld.Part1 = Part
  127. ShootWeld.C0 = CFrame.new(0,0,1.475)
  128. Part.Material = Enum.Material.SmoothPlastic
  129. Part2.Material = Enum.Material.SmoothPlastic
  130. local Pow = Instance.new("Sound", owner.Character.Head)
  131. Pow.SoundId = "rbxassetid://130113322"
  132. Pow.Volume = 1
  133. Pow.PlaybackSpeed = 0.85
  134. local fade = Instance.new("Sound", owner.Character.Head)
  135. fade.SoundId = "rbxassetid://130113370"
  136. fade.Volume = 1
  137. fade.PlaybackSpeed = 0.85
  138. Tool.Equipped:Connect(function()
  139. out = true
  140. end)
  141. Tool.Unequipped:Connect(function()
  142. out = false
  143. end)
  144. E.OnServerEvent:Connect(function(plr, position)
  145. if out then
  146. Pow:Play()
  147. local origin = Part2.Position
  148. local direction = (position - origin).Unit*300
  149. local params = RaycastParams.new()
  150. params.FilterDescendantsInstances = {owner.Character}
  151. params.FilterType = Enum.RaycastFilterType.Blacklist
  152. local result = game.Workspace:Raycast(origin, direction, params)
  153.  
  154. local intersection = result and result.Position or origin + direction
  155. local distance = (origin - intersection).Magnitude
  156. local bullet_clone = Bullet:Clone()
  157. bullet_clone.Size = Vector3.new(0.75, 0.75, distance * 0.95)
  158. bullet_clone.CFrame = CFrame.new(origin, intersection)*CFrame.new(0, 0, -distance/2 * 0.95)
  159. bullet_clone.Parent = owner.Character
  160. local bullet_clone2 = Bullet2:Clone()
  161. bullet_clone2.Size = Vector3.new(2.75, 2.75, 2.75)
  162. bullet_clone2.CFrame = CFrame.new(origin, intersection)*CFrame.new(0, 0, -distance)
  163. bullet_clone2.Parent = owner.Character
  164.  
  165. if result then
  166. local part = result.Instance
  167. wait(0.1)
  168. killfunction(part)
  169. local velocity = Instance.new("BodyVelocity", part)
  170. velocity.Velocity = bullet_clone.CFrame.lookVector * 50
  171. velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  172. debris:AddItem(velocity,0.125)
  173. local humanoid = part.Parent:FindFirstChild("Humanoid") or part.Parent.Parent:FindFirstChild("Humanoid")
  174.  
  175. if humanoid then
  176. if humanoid ~= owner.Character.Humanoid then
  177. wait(0.1)
  178. humanoid.Health = humanoid.Health - 45
  179. end
  180. end
  181. end
  182. wait(0.25)
  183. local tweenService = game:GetService("TweenService")
  184. local timeToFade = 0.25
  185. local object = bullet_clone
  186. local tweenInfo = TweenInfo.new(timeToFade)
  187. local goal = {}
  188. goal.Transparency = 1
  189.  
  190. local tween = tweenService:Create(object, tweenInfo, goal)
  191. local object2 = bullet_clone2
  192. local tween2 = tweenService:Create(object2, tweenInfo, goal)
  193.  
  194. local timeToFade2 = 0.25
  195. local object3 = bullet_clone
  196. local tweenInfo2 = TweenInfo.new(timeToFade2)
  197. local goal2 = {}
  198. goal2.Size = Vector3.new(1,1,1)
  199.  
  200. local tween3 = tweenService:Create(object3, tweenInfo2, goal2)
  201. local object4 = bullet_clone2
  202. local goal3 = {}
  203. goal3.Size = Vector3.new(3.5,3.5,3.5)
  204. local tween4 = tweenService:Create(object4, tweenInfo2, goal3)
  205. tween:Play()
  206. tween2:Play()
  207. tween3:Play()
  208. tween4:Play()
  209. fade:Play()
  210. wait(0.25)
  211. bullet_clone:Destroy()
  212. bullet_clone2:Destroy()
  213. tween:Destroy()
  214. tween2:Destroy()
  215. tween3:Destroy()
  216. tween4:Destroy()
  217. end
  218. end)
  219. warn([["''Why do you need lasers that shoot out of your eyes,
  220. When you can have a laser gun?''"]])
RAW Paste Data