Advertisement
CaioRoblox1

vhtest

Jul 23rd, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.11 KB | None | 0 0
  1. --By Rufus14
  2. --ears: 391268255
  3. --bamalam: 720451528
  4. --columb: 1202637744
  5.  
  6. --[[music = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  7. music.Volume = 10
  8. music.SoundId = "rbxassetid://1202637744"
  9. music.Looped = true
  10. music:Play()]]
  11. mouse = game.Players.LocalPlayer:GetMouse()
  12. gun = Instance.new("Part", game.Players.LocalPlayer.Character)
  13. gun:BreakJoints()
  14. gun.CanCollide = false
  15. gun.Name = "Ak-47"
  16. gun.Orientation = Vector3.new(0,0,0)
  17. mesh = Instance.new("SpecialMesh", gun)
  18. mesh.MeshId = "rbxassetid://576933386"
  19. mesh.TextureId = "rbxassetid://..id"
  20. mesh.Scale = Vector3.new(0.04,0.04,0.04)
  21. weld = Instance.new("Weld", gun)
  22. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  23. weld.Part1 = gun
  24. weld.C0 = weld.C0 * CFrame.Angles(-1.5,0,0) * CFrame.new(0,0,-2.5)
  25. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  26. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  27. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  28. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  29. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  30. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  31. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  32. lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  33. shot = Instance.new("Sound", gun)
  34. shot.Volume = 10
  35. shot.SoundId = "rbxassetid://866648249"
  36. pump = Instance.new("Sound", gun)
  37. pump.Volume = 10
  38. pump.SoundId = "rbxassetid://255061173"
  39. pump.PlaybackSpeed = 0.7
  40. --[[function owtheedge()
  41. workspace.CurrentCamera.FieldOfView = 70 + music.PlaybackLoudness / 80
  42. end
  43. game:GetService("RunService").RenderStepped:connect(owtheedge)]]
  44. for i = 0,0.7 , 0.01 do
  45. weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
  46. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.399175882, -0.578536987, 0.978147507, 0.204753578, -0.0361040607, -0.0289359875, -0.0378959738, -0.998862624, -0.205888897, 0.978079677, -0.0311431047),i)
  47. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.472423553, 0.409558296, -1.4746933, 0.939692736, -0.342019886, -2.0985492e-06, 0.0238559935, 0.0655499771, -0.997564137, 0.341186911, 0.937403619, 0.0697560608),i)
  48. game:GetService("RunService").RenderStepped:wait()
  49. end
  50. using = false
  51. rapid = true
  52. debounce = false
  53. ammo = 30
  54.  
  55. function plai(key)
  56. key = key:lower()
  57. --[[ if key == "e" then
  58. if moosic then
  59. runkids.SoundId = "rbxassetid://665751753"
  60. runkids.Volume = 8
  61. runkids:Play()
  62. runkids.Looped = true
  63. runkids.TimePosition = 13
  64. end
  65. if not moosic then
  66. runkids:Stop()
  67. end
  68. end]]
  69. end
  70.  
  71. mouse.KeyDown:connect(plai)
  72. function rapid()
  73. rapid = true
  74. end
  75. mouse.Button1Down:connect(rapid)
  76. function notrapid()
  77. rapid = false
  78. end
  79. mouse.Button1Up:connect(notrapid)
  80.  
  81. function shoot()
  82.  
  83. if not rapid then
  84. rapid = true
  85. end
  86.  
  87. while rapid and debounce == false do
  88. shot:Play()
  89. rapid = true
  90. debounce = true
  91. for i = 1,1 do
  92. local missle = Instance.new("Part", workspace)
  93. missle:BreakJoints()
  94. missle.Name = "bullet"
  95. missle.BrickColor = BrickColor.Yellow()
  96. missle.CanCollide = false
  97. missle.Material = "Neon"
  98. missle.Size = Vector3.new(0.1,0.1,0.1)
  99. missle.CFrame = gun.CFrame * CFrame.new(0,0,2)
  100. missle.Transparency = 0
  101. local vel = Instance.new("BodyVelocity", missle)
  102. vel.Velocity = mouse.Hit.lookVector * math.random(500,500) + Vector3.new(math.random(-10,10),math.random(-10,10),0)
  103. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  104. local function hit(part)
  105. local hitval = math.random(40,65)
  106. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  107. if humanoid then
  108. if humanoid.Health == math.huge or humanoid.Health >= 600 then
  109. humanoid.Health = 100
  110. end
  111. if humanoid.MaxHealth == math.huge or humanoid.MaxHealth >= 600 then
  112. humanoid.MaxHealth = 100
  113. end
  114. if humanoid.Parent.Name == game.Players.LocalPlayer.Name then
  115.  
  116. else
  117. if humanoid.Health < hitval then
  118. humanoid.Health = 1
  119. humanoid.JumpPower = 0
  120. humanoid.PlatformStand = true
  121. humanoid.WalkSpeed = 0
  122. local findlefthip = humanoid.Parent.Torso:findFirstChild("Left Hip")
  123. if findlefthip then
  124. findlefthip:Remove()
  125. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  126. glue.Part0 = humanoid.Parent.Torso
  127. glue.Part1 = humanoid.Parent["Left Leg"]
  128. glue.Name = "Left leg"
  129. local collider = Instance.new("Part", humanoid.Parent["Left Leg"])
  130. collider.Position = Vector3.new(0,999,0)
  131. collider.Size = Vector3.new(1.5, 1, 1)
  132. collider.Shape = "Cylinder"
  133. local weld = Instance.new("Weld", collider)
  134. weld.Part0 = humanoid.Parent["Left Leg"]
  135. weld.Part1 = collider
  136. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  137. collider.TopSurface = "Smooth"
  138. collider.BottomSurface = "Smooth"
  139. collider.formFactor = "Symmetric"
  140. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  141. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  142. collider.Transparency = 1
  143. end
  144. --
  145. local findrighthip = humanoid.Parent.Torso:findFirstChild("Right Hip")
  146. if findrighthip then
  147. findrighthip:Remove()
  148. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  149. glue.Part0 = humanoid.Parent.Torso
  150. glue.Part1 = humanoid.Parent["Right Leg"]
  151. glue.Name = "Right leg"
  152. local collider = Instance.new("Part", humanoid.Parent["Right Leg"])
  153. collider.Position = Vector3.new(0,999,0)
  154. collider.Size = Vector3.new(1.5, 1, 1)
  155. collider.Shape = "Cylinder"
  156. local weld = Instance.new("Weld", collider)
  157. weld.Part0 = humanoid.Parent["Right Leg"]
  158. weld.Part1 = collider
  159. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  160. collider.TopSurface = "Smooth"
  161. collider.BottomSurface = "Smooth"
  162. collider.formFactor = "Symmetric"
  163. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  164. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  165. collider.Transparency = 1
  166. end
  167. --
  168. local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
  169. if findrightshoulder then
  170. findrightshoulder:Remove()
  171. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  172. glue.Part0 = humanoid.Parent.Torso
  173. glue.Part1 = humanoid.Parent["Right Arm"]
  174. glue.Name = "Right arm"
  175. local collider = Instance.new("Part", humanoid.Parent["Right Arm"])
  176. collider.Position = Vector3.new(0,999,0)
  177. collider.Size = Vector3.new(1.5, 1, 1)
  178. collider.Shape = "Cylinder"
  179. local weld = Instance.new("Weld", collider)
  180. weld.Part0 = humanoid.Parent["Right Arm"]
  181. weld.Part1 = collider
  182. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  183. collider.TopSurface = "Smooth"
  184. collider.BottomSurface = "Smooth"
  185. collider.formFactor = "Symmetric"
  186. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  187. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  188. collider.Transparency = 1
  189. end
  190. --
  191. local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
  192. if findleftshoulder then
  193. findleftshoulder:Remove()
  194. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  195. glue.Part0 = humanoid.Parent.Torso
  196. glue.Part1 = humanoid.Parent["Left Arm"]
  197. glue.Name = "Left arm"
  198. local collider = Instance.new("Part", humanoid.Parent["Left Arm"])
  199. collider.Position = Vector3.new(0,999,0)
  200. collider.Size = Vector3.new(1.5, 1, 1)
  201. collider.Shape = "Cylinder"
  202. local weld = Instance.new("Weld", collider)
  203. weld.Part0 = humanoid.Parent["Left Arm"]
  204. weld.Part1 = collider
  205. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  206. collider.TopSurface = "Smooth"
  207. collider.BottomSurface = "Smooth"
  208. collider.formFactor = "Symmetric"
  209. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  210. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  211. collider.Transparency = 1
  212. end
  213. local findhead = humanoid.Parent:findFirstChild("Head")
  214. if findhead then
  215. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  216. attachment.Position = Vector3.new(0, -0.5, 0)
  217. attachment.Name = "lol"
  218. attachment.Visible = false
  219. humanoid.Parent.Torso.NeckAttachment.Visible = false
  220. humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  221. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  222. ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  223. ball.Attachment1 = attachment
  224. ball.LimitsEnabled = true
  225. ball.TwistLimitsEnabled = true
  226. ball.UpperAngle = 90
  227. ball.Restitution = 0.5
  228. ball.TwistUpperAngle = 90
  229. ball.TwistLowerAngle = -90
  230. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  231. collidepartofleftleg.Name = "Bone"
  232. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  233. collidepartofleftleg.Transparency = 1
  234. collidepartofleftleg:BreakJoints()
  235. local weeld = Instance.new("Weld", collidepartofleftleg)
  236. weeld.Part0 = collidepartofleftleg
  237. weeld.Part1 = humanoid.Parent["Head"]
  238. if humanoid.Parent.Torso:findFirstChild("Neck") then
  239. humanoid.Parent.Torso.Neck:destroy()
  240. end
  241. end
  242.  
  243. wait(10)
  244. humanoid.Health = 0
  245. else
  246. humanoid.Health = humanoid.Health - hitval
  247. end
  248. end
  249. else
  250. if part.Name == "Shotgun" or "bullet" then
  251.  
  252. else
  253. missle:destroy()
  254. end
  255. end
  256. end
  257. missle.Touched:connect(hit)
  258. end
  259. for i = 0,1 , 0.5 do
  260. weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
  261. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.491810799, -0.168943405, 0.978147507, 0.204753578, -0.0361040607, 0.0289353225, -0.306021929, -0.951584637, -0.205889001, 0.929745436, -0.305259228),i)
  262. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.472423553, 0.748803854, -1.02752113, 0.939693093, -0.342019022, -2.66768012e-07, -0.0711100101, -0.195373133, -0.978147566, 0.334545016, 0.919158578, -0.207911715),i)
  263. game:GetService("RunService").RenderStepped:wait()
  264. end
  265. --[[for i = 0,1 , 0.05 do
  266. weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
  267. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.491810799, -0.168943405, 0.978147507, 0.204753578, -0.0361040607, 0.0289353225, -0.306021929, -0.951584637, -0.205889001, 0.929745436, -0.305259228),i)
  268. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.201648712, 0.903478384, -1.75520706, 0.939693093, -0.342019022, -2.66768012e-07, -0.0711100101, -0.195373133, -0.978147566, 0.334545016, 0.919158578, -0.207911715),i)
  269. game:GetService("RunService").RenderStepped:wait()
  270. end
  271. pump:Play()
  272. for i = 0,1 , 0.05 do
  273. weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
  274. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.491810799, -0.168943405, 0.978147507, 0.204753578, -0.0361040607, 0.0289353225, -0.306021929, -0.951584637, -0.205889001, 0.929745436, -0.305259228),i)
  275. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.44393158, 0.765078783, -1.10408783, 0.939693093, -0.342019022, -2.66768012e-07, -0.0711100101, -0.195373133, -0.978147566, 0.334545016, 0.919158578, -0.207911715),i)
  276. game:GetService("RunService").RenderStepped:wait()
  277. end
  278. for i = 0,1 , 0.05 do
  279. weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
  280. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.491810799, -0.168943405, 0.978147507, 0.204753578, -0.0361040607, 0.0289353225, -0.306021929, -0.951584637, -0.205889001, 0.929745436, -0.305259228),i)
  281. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.201648712, 0.903478384, -1.75520706, 0.939693093, -0.342019022, -2.66768012e-07, -0.0711100101, -0.195373133, -0.978147566, 0.334545016, 0.919158578, -0.207911715),i)
  282. game:GetService("RunService").RenderStepped:wait()
  283. end]]
  284. for i = 0,0.7 , 0.5 do
  285. weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
  286. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.399175882, -0.578536987, 0.978147507, 0.204753578, -0.0361040607, -0.0289359875, -0.0378959738, -0.998862624, -0.205888897, 0.978079677, -0.0311431047),i)
  287. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.472423553, 0.409558296, -1.4746933, 0.939692736, -0.342019886, -2.0985492e-06, 0.0238559935, 0.0655499771, -0.997564137, 0.341186911, 0.937403619, 0.0697560608),i)
  288. game:GetService("RunService").RenderStepped:wait()
  289. end
  290. using = false
  291. wait(0.125)
  292. debounce = false
  293. end
  294. end
  295. mouse.Button1Down:connect(shoot)
  296. --lotushomerun was here
  297. --Do not leak
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement