Laith8888

Roblox Vaporizer script

Feb 8th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.72 KB | None | 0 0
  1. me = game.Players.LocalPlayer
  2. walkspeed = 35
  3. walkspeed2 = 16
  4. WaitTime = 0.01
  5. WaitTime2 = 0.41
  6. WaitTime3 = 3
  7. god = false
  8. fakeff = false -- don't enable if god is enabled. it won't break, they both basically god you, but fakeff has a cooler effect.
  9. h = Instance.new("HopperBin")
  10. h.Parent = me.Backpack
  11. h.Name = "VaporGun v3"
  12. sp = game.Players.LocalPlayer.Backpack["VaporGun v3"]
  13. rightarm = me.Character["Right Arm"]
  14. leftarm = me.Character["Left Arm"]
  15. hold = false
  16. using = false
  17. holdkey = false
  18. right = Instance.new("Weld")
  19. right.Parent = me.Character.Torso
  20. right.Part0 = nil
  21. right.Part1 = nil
  22. right.C1 = CFrame.fromEulerAnglesXYZ(-1.57,-0.4,0) * CFrame.new(-1,-0.5,0.1)
  23. left = Instance.new("Weld")
  24. left.Parent = me.Character.Torso
  25. left.Part0 = nil
  26. left.Part1 = nil
  27. left.C1 = CFrame.fromEulerAnglesXYZ(-1.4,0.5,0) * CFrame.new(0.55,-0.4,1.3)
  28. bulletcolors = {"Hot pink", "Really red", "Really blue", "New Yeller", "Lime green", "Neon orange"}
  29. gun = Instance.new("Model")
  30. gun.Parent = game.Lighting
  31. gun.Name = "Gun"
  32. handle = Instance.new("Part")
  33. handle.Parent = gun
  34. handle.formFactor = 0
  35. handle.Size = Vector3.new(1,1,1)
  36. handle.BrickColor = BrickColor.random()
  37. mesh = Instance.new("SpecialMesh")
  38. mesh.Parent = handle
  39. mesh.MeshType = "Brick"
  40. mesh.Scale = Vector3.new(0.5,0.75,1.6)
  41. handle2 = Instance.new("Part")
  42. handle2.Parent = gun
  43. handle2.formFactor = 0
  44. handle2.Size = Vector3.new(1,1,1)
  45. handle2.BrickColor = BrickColor.random()
  46. mesh2 = mesh:clone()
  47. mesh2.Parent = handle2
  48. mesh2.Scale = Vector3.new(0.6,3.6,0.75)
  49. handle3 = Instance.new("Part")
  50. handle3.Parent = gun
  51. handle3.formFactor = 0
  52. handle3.Size = Vector3.new(1,1,1)
  53. handle3.BrickColor = BrickColor.random()
  54. mesh3 = mesh:clone()
  55. mesh3.Parent = handle3
  56. mesh3.Scale = Vector3.new(.45,.11,2)
  57. handle4 = Instance.new("Part")
  58. handle4.Parent = gun
  59. handle4.formFactor = 0
  60. handle4.Size = Vector3.new(.1,.1,.1)
  61. handle4.BrickColor = BrickColor.random()
  62. mesh4 = Instance.new("CylinderMesh")
  63. mesh4.Parent = handle4
  64. mesh4.Scale = Vector3.new(.4,4,.3)
  65. hold = false
  66. if god == true then
  67. me.Character.Humanoid.MaxHealth = math.huge
  68. end
  69. if fakeff == true then
  70. select=Instance.new("SelectionBox",me.Character.Head)
  71. select1=Instance.new("SelectionBox",me.Character.Torso)
  72. select2=Instance.new("SelectionBox",me.Character["Right Arm"])
  73. select3=Instance.new("SelectionBox",me.Character["Left Arm"])
  74. select4=Instance.new("SelectionBox",me.Character["Left Leg"])
  75. select5=Instance.new("SelectionBox",me.Character["Right Leg"])
  76. select.Adornee=me.Character.Head
  77. select1.Adornee=me.Character.Torso
  78. select2.Adornee=me.Character["Right Arm"]
  79. select3.Adornee=me.Character["Left Arm"]
  80. select4.Adornee=me.Character["Left Leg"]
  81. select5.Adornee=me.Character["Right Leg"]
  82. me.Character.Humanoid.MaxHealth=math.huge
  83. end
  84. function selected(mouse, key)
  85. right.Part0 = right.Parent
  86. right.Part1 = rightarm
  87. left.Part0 = left.Parent
  88. left.Part1 = leftarm
  89. left.C1 = CFrame.fromEulerAnglesXYZ(-1.4,0.5,0) * CFrame.new(0.55,-0.4,1.3)
  90. right.C1 = CFrame.fromEulerAnglesXYZ(-1.57,-0.4,0) * CFrame.new(-1,-0.5,0.1)
  91. left.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  92. right.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  93. gun.Parent = me.Character
  94. gunweld1 = Instance.new("Weld")
  95. gunweld1.Parent = rightarm
  96. gunweld1.Part0 = gunweld1.Parent
  97. gunweld1.Part1 = handle
  98. gunweld1.C1 = CFrame.fromEulerAnglesXYZ(0.4,0,0) * CFrame.new(0,1,0)
  99. gunweld2 = Instance.new("Weld")
  100. gunweld2.Parent = handle
  101. gunweld2.Part0 = gunweld2.Parent
  102. gunweld2.Part1 = handle2
  103. gunweld2.C1 = CFrame.fromEulerAnglesXYZ(-0.4,0,0) * CFrame.new(0,1,1.2)
  104. gunweld3 = Instance.new("Weld")
  105. gunweld3.Parent = handle2
  106. gunweld3.Part0 = gunweld3.Parent
  107. gunweld3.Part1 = handle3
  108. gunweld3.C1 = CFrame.fromEulerAnglesXYZ(-0.3,0,0) * CFrame.new(0,0.3,-0.9)
  109. gunweld4 = Instance.new("Weld")
  110. gunweld4.Parent = handle2
  111. gunweld4.Part0 = gunweld3.Parent
  112. gunweld4.Part1 = handle4
  113. gunweld4.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.751,0)
  114. mouse.Button1Down:connect(function()
  115. zmeme = Instance.new("Sound",handle4)
  116. zmeme.SoundId = "rbxassetid://479049474"
  117. zmeme.Volume = 100
  118. zmeme.Looped = true
  119. zmeme:Play()
  120. hold = true
  121. while hold == true do
  122. wait(0.04)
  123. local color = math.random(1, #bulletcolors)
  124. local wkspd = walkspeed
  125. local pos = mouse.Hit.p + Vector3.new(math.random(-2,2),0,math.random(-2,2))
  126. local BamOne = Instance.new("Sound",handle4)
  127. BamOne.Pitch,BamOne.Volume,BamOne.SoundId = 1.4,100,"rbxassetid://2920959"
  128. local BamTwo = Instance.new("Sound",handle4)
  129. BamTwo.Pitch,BamTwo.Volume,BamTwo.SoundId = 1.4,100,"rbxassetid://2920959"
  130. local bullet = Instance.new("Part")
  131. bullet.Parent = workspace
  132. bullet.formFactor = 0
  133. bullet.Size = Vector3.new(1,1,1)
  134. bullet.BrickColor = BrickColor.new(bulletcolors[color])
  135. bullet.CanCollide = false
  136. bullet.Anchored = true
  137. bullet.CFrame = CFrame.new((handle4.Position + pos)/2, pos)
  138. local distance = (handle4.Position - pos).magnitude
  139. local bulletmesh = Instance.new("SpecialMesh")
  140. bulletmesh.Parent = bullet
  141. bulletmesh.MeshType = "Brick"
  142. bulletmesh.Scale = Vector3.new(0.2,0.2,distance)
  143. if mouse.Target ~= nil then
  144. local hu = mouse.Target.Parent:findFirstChild("Humanoid")
  145. if hu ~= nil then
  146. hu.Health = hu.Health - 10
  147. if hu.Health == 0 then
  148. vape = Instance.new("Sound",hu.Parent.Head)
  149. vape.SoundId = "rbxassetid://479081073"
  150. vape.Volume = 100
  151. vape:Play()
  152. wait(2.28)
  153. vape:Destroy()
  154. end
  155. end
  156. end
  157. coroutine.resume(coroutine.create(function()
  158. left.C0 = left.C0 * CFrame.fromEulerAnglesXYZ(0.12,0,0)
  159. right.C0 = right.C0 * CFrame.fromEulerAnglesXYZ(0.12,0,0)
  160. wait()
  161. left.C0 = left.C0 * CFrame.fromEulerAnglesXYZ(-0.12,0,0)
  162. right.C0 = right.C0 * CFrame.fromEulerAnglesXYZ(-0.12,0,0)
  163. wait(0.03)
  164. bullet:remove()
  165. end))
  166. end
  167. end)
  168. mouse.Button1Up:connect(function()
  169. zmeme:Pause()
  170. zmeme:Destroy()
  171. hold = false
  172. end)
  173. local Gui = Instance.new("ScreenGui",me.PlayerGui)
  174. Gui.Name = "Ammo"
  175. local Frame = Instance.new("Frame",Gui)
  176. Frame.Name = "MainFrame"
  177. Frame.Size = UDim2.new(.15,0,.1,0)
  178. Frame.Position = UDim2.new(0.4,0,0.4,0)
  179. Frame.BackgroundTransparency = 0.99
  180. Frame.BackgroundColor = BrickColor.new("Really black")
  181. Frame.Active = true
  182. local Exit = Instance.new("TextButton",Gui)
  183. Exit.Name = "Exit"
  184. Exit.Size = UDim2.new(.15,0,.1,0)
  185. Exit.Position = UDim2.new(0.4,0,0.4,0)
  186. Exit.BackgroundTransparency = 1
  187. Exit.Text = ""
  188. Exit.BackgroundColor = BrickColor.new("Really black")
  189. Exit.Active = true
  190. Exit.Draggable = false
  191. Exit.MouseButton1Down:connect(function()
  192. me.PlayerGui["Ammo"]:remove()
  193. end)
  194. local msg1 = "Made by colin, Editted by OpTic Wisdom"
  195. local msg2 = "VaporGun v3"
  196. local msg3 = "Click to exit"
  197. local Cred = Instance.new("TextLabel",Frame)
  198. Cred.Name = "Credz"
  199. Cred.Font = "ArialBold"
  200. Cred.FontSize = "Size12"
  201. Cred.Position = UDim2.new(0.5,0,0.05,0)
  202. for i = 1,#msg1 do
  203. Cred.Text = (string.sub(msg1, 1,i))
  204. wait(WaitTime)
  205. end
  206. Cred.TextColor3 = BrickColor.new("Hot pink").Color
  207. wait(WaitTime2)
  208. local Dis = Instance.new("TextLabel",Frame)
  209. Dis.Name = "Real Numbers"
  210. Dis.Font = "ArialBold"
  211. Dis.FontSize = "Size18"
  212. Dis.Position = UDim2.new(0.5,0,0.5,0)
  213. Dis.TextColor3 = BrickColor.new("Hot pink").Color
  214. for i = 1,#msg2 do
  215. Dis.Text = (string.sub(msg2, 1,i))
  216. wait(WaitTime)
  217. end
  218. me.Character.Humanoid.WalkSpeed = walkspeed
  219. wait(WaitTime3)
  220. for i = 1,#msg2 do
  221. Dis.Text = string.sub(msg2, i,#msg2)
  222. wait(WiatTime)
  223. end
  224. for i = 1,#msg3 do
  225. Dis.Text = (string.sub(msg3, 1,i))
  226. wait(WaitTime)
  227. end
  228. end
  229. function deselect()
  230. left.C0 = CFrame.new(0,0,0)
  231. right.C0 = CFrame.new(0,0,0)
  232. me.Character:makeJoints()
  233. wait()
  234. right.Part0 = nil
  235. right.Part1 = nil
  236. left.Part0 = nil
  237. left.Part1 = nil
  238. gun.Parent = game.Lighting
  239. me.Character:makeJoints()
  240. me.PlayerGui["Ammo"]:Remove()
  241. me.Character.Humanoid.WalkSpeed = walkspeed2
  242. end
  243. sp.Selected:connect(selected)
  244. sp.Deselected:connect(deselect)
Add Comment
Please, Sign In to add comment