Advertisement
slaved123

Tryin

Mar 28th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.45 KB | None | 0 0
  1. --Pistol Gifted by TheRedAngel, Regular Script!
  2.  
  3. local p = Instance.new("Part")
  4. me = game.Players.slaved123
  5. cha = me.Character
  6.  
  7. tool = Instance.new("Tool")
  8. tool.Parent = me.Backpack
  9. tool.Name = "Pistol"
  10. tool.GripPos = Vector3.new(0.3,0,0)
  11.  
  12. we = Instance.new("Weld")
  13. we.Parent = cha.Torso
  14. we.Part0 = nil
  15. we.Part1 = nil
  16. we.C1 = CFrame.fromEulerAnglesXYZ(-1.6,-0.5,0.1) * CFrame.new(-0.8,-0.5,0.7)
  17. we1 = Instance.new("Weld")
  18. we1.Parent = cha.Torso
  19. we1.Part0 = nil
  20. we1.Part1 = nil
  21. we1.C1 = CFrame.fromEulerAnglesXYZ(-1.6,0.7,0.1) * CFrame.new(0.7,-0.5,0.7)
  22.  
  23. h = Instance.new("Part")
  24. h.Parent = tool
  25. h.Name = "Handle"
  26. h.Size = Vector3.new(1,1,1)
  27. h.TopSurface = 0
  28. h.BottomSurface = 0
  29. h.BrickColor = BrickColor.new("Dark grey")
  30. h.Reflectance = 0.07
  31. h.CanCollide = false
  32.  
  33. m = Instance.new("BlockMesh")
  34. m.Parent = h
  35. m.Scale = Vector3.new(0.38, 1.05, 0.48)
  36. m.Name = "oo"
  37.  
  38. h1 = Instance.new("Part")
  39. h1.Parent = tool
  40. h1.Name = "Handle1"
  41. h1.Size = Vector3.new(1,1,1)
  42. h1.TopSurface = 0
  43. h1.BottomSurface = 0
  44. h1.BrickColor = BrickColor.new("Medium stone grey")
  45. h1.Reflectance = 0.07
  46. h1.CanCollide = false
  47.  
  48. m1 = Instance.new("BlockMesh")
  49. m1.Parent = h1
  50. m1.Scale = Vector3.new(0.45, 0.45, 1.8)
  51.  
  52. h2 = Instance.new("Part")
  53. h2.Parent = tool
  54. h2.Name = "Handle2"
  55. h2.Size = Vector3.new(1,1,1)
  56. h2.TopSurface = 0
  57. h2.BottomSurface = 0
  58. h2.BrickColor = BrickColor.new("Dark grey")
  59. h2.Reflectance = 0.04
  60. h2.CanCollide = false
  61.  
  62. m2 = Instance.new("CylinderMesh")
  63. m2.Parent = h2
  64. m2.Scale = Vector3.new(0.13, 0.32, 0.13)
  65.  
  66. h3 = h2:clone()
  67. h3.Parent = tool
  68. h3.Name = "Handle3"
  69.  
  70. h4 = Instance.new("Part")
  71. h4.Parent = tool
  72. h4.Name = "Handle4"
  73. h4.Size = Vector3.new(1,1,1)
  74. h4.TopSurface = 0
  75. h4.BottomSurface = 0
  76. h4.BrickColor = BrickColor.new("Dark grey")
  77. h4.Reflectance = 0.01
  78. h4.CanCollide = false
  79.  
  80. m4 = Instance.new("BlockMesh")
  81. m4.Parent = h4
  82. m4.Scale = Vector3.new(0.1, 0.2, 0.03)
  83.  
  84. h5 = Instance.new("Part")
  85. h5.Parent = tool
  86. h5.Name = "Handle5"
  87. h5.Size = Vector3.new(1,1,1)
  88. h5.TopSurface = 0
  89. h5.BottomSurface = 0
  90. h5.BrickColor = BrickColor.new("Dark grey")
  91. h5.CanCollide = false
  92.  
  93. m5 = Instance.new("BlockMesh")
  94. m5.Parent = h5
  95. m5.Scale = Vector3.new(0.53, 0.36, 1.53)
  96.  
  97. h6 = Instance.new("Part")
  98. h6.Parent = tool
  99. h6.Name = "Handle6"
  100. h6.Size = Vector3.new(1,1,1)
  101. h6.TopSurface = 0
  102. h6.BottomSurface = 0
  103. h6.BrickColor = BrickColor.new("Really black")
  104. h6.CanCollide = false
  105.  
  106. m6 = Instance.new("CylinderMesh")
  107. m6.Parent = h6
  108. m6.Scale = Vector3.new(0.2, 0.2, 0.2)
  109.  
  110. firf = Instance.new("Fire")
  111. firf.Size = 0
  112. firf.Heat = 40
  113. firf.Parent = h6
  114. firf.Enabled = false
  115.  
  116. h7 = Instance.new("Part")
  117. h7.Parent = tool
  118. h7.Name = "Handle7"
  119. h7.Size = Vector3.new(1,1,1)
  120. h7.TopSurface = 0
  121. h7.BottomSurface = 0
  122. h7.BrickColor = BrickColor.new("Medium stone grey")
  123. h7.CanCollide = false
  124.  
  125. m7 = Instance.new("BlockMesh")
  126. m7.Parent = h7
  127. m7.Scale = Vector3.new(0.025, 0.08, 0.05)
  128.  
  129. h8 = h7:clone()
  130. h8.Parent = tool
  131. h8.Name = "Handle8"
  132.  
  133. h9 = h7:clone()
  134. h9.Parent = tool
  135. h9.Name = "Handle9"
  136. h9.CanCollide = false
  137.  
  138. h10 = h:clone()
  139. h10.Parent = tool
  140. h10.Name = "Handle10"
  141. h10.oo.Scale = Vector3.new(0.16, 0.8, 0.34)
  142. h10.BrickColor = BrickColor.new("Medium stone grey")
  143.  
  144. smo = Instance.new("Smoke")
  145. smo.Color = Color3.new(100/255, 100/255, 100/255)
  146. smo.Parent = h7
  147. smo.Size = 0
  148. smo.RiseVelocity = 5
  149. smo.Enabled = false
  150.  
  151. gui = Instance.new("ScreenGui")
  152. gui.Parent = me.PlayerGui
  153. gui.Name = "PistolAmmo"
  154.  
  155. value = Instance.new("NumberValue")
  156. value.Parent = gui
  157. value.Value = 8
  158. value.Name = "ammoo"
  159.  
  160. clips = Instance.new("NumberValue")
  161. clips.Parent = gui
  162. clips.Value = 5
  163. clips.Name = "claps"
  164.  
  165. blaa = Instance.new("Frame")
  166. blaa.Parent = gui
  167. blaa.Size = UDim2.new(0,80,0,40)
  168. blaa.Position = UDim2.new(0,50,0,100)
  169. blaa.Visible = false
  170. blaa.BackgroundColor = BrickColor.new("Really black")
  171. blaa.BorderColor = BrickColor.new("New Yeller")
  172.  
  173. text = Instance.new("TextLabel")
  174. text.Parent = gui
  175. text.Name = "Ammo"
  176. text.Text = value.Value.."/"..clips.Value
  177. text.Size = UDim2.new(0, 80, 0, 0)
  178. text.Position = UDim2.new(0, 50, 0, 125)
  179. text.Visible = false
  180. text.BackgroundTransparency = 1
  181. text.TextColor = BrickColor.new("New Yeller")
  182.  
  183. durp = Instance.new("TextLabel")
  184. durp.Parent = gui
  185. durp.Name = "txt"
  186. durp.Text = " "
  187. durp.Size = UDim2.new(0, 80, 0, 0)
  188. durp.Position = UDim2.new(0, 50, 0, 115)
  189. durp.Visible = false
  190. durp.BackgroundTransparency = 1
  191. durp.TextColor = BrickColor.new("New Yeller")
  192.  
  193. local sound = Instance.new("Sound")
  194. sound.Parent = h1
  195. sound.Volume = 1
  196. sound.Pitch = 1
  197. sound.SoundId = "http://www.roblox.com/asset/?id=2760979"
  198. sound.archivable = false
  199.  
  200. local soun = Instance.new("Sound")
  201. soun.Parent = h1
  202. soun.Volume = 1
  203. soun.Pitch = 1
  204. soun.SoundId = "http://www.roblox.com/asset/?id=2691591"
  205. soun.archivable = false
  206.  
  207. local hed = Instance.new("Sound")
  208. hed.Parent = game.Workspace
  209. hed.Volume = 0.7
  210. hed.Pitch = 1
  211. hed.SoundId = "http://www.roblox.com/asset/?id=1876552"
  212. hed.archivable = false
  213.  
  214. enabled = false
  215.  
  216. function shot()
  217. p.Parent = game.Workspace
  218. p.Size = Vector3.new(1,1,1)
  219. p.TopSurface = 0
  220. p.BottomSurface = 0
  221. p.CFrame = h1.CFrame * CFrame.new(0,0,0)
  222. p:breakJoints()
  223. p.Anchored = false
  224. p.CanCollide = false
  225. local m = Instance.new("SpecialMesh")
  226. m.Parent = p
  227. m.MeshType = "FileMesh"
  228. m.Scale = Vector3.new(0.35,0.35,0.22)
  229. m.MeshId = "http://www.roblox.com/asset/?id=2697549"
  230. m.TextureId = "http://www.roblox.com/asset/?id=2697544"
  231. local bv = Instance.new("BodyForce")
  232. bv.Parent = p
  233. bv.force = h1.CFrame.lookVector * 2500
  234. bv.force = bv.force + Vector3.new(0, 220, 0)
  235. sound.Pitch = math.random(0.8,1.2)
  236. sound.Volume = math.random(0.8,1.0)
  237. sound:play()
  238. firf.Enabled = true
  239. smo.Enabled = true
  240. wait(0.04)
  241. firf.Enabled = false
  242. smo.Enabled = false
  243. p.Touched:connect(function(hit)
  244. if hit.Parent.Name == me.Name then return end
  245. if hit.Name == "Base" then return end
  246. hit.Velocity = p.CFrame.lookVector * 30
  247. local hum = hit.Parent:GetChildren()
  248. for i=1, #hum do
  249. if hum[i].className == "Humanoid" then
  250. hum[i].Health = hum[i].Health - 20
  251. if hit.Name == "Head" then
  252. hed:play()
  253. hum[i].Health = 0
  254. end
  255. for i=1, math.random(4,10) do
  256. local blood = Instance.new("Part")
  257. blood.Parent = game.Workspace
  258. blood.BrickColor = BrickColor.new(21)
  259. blood.formFactor = "Plate"
  260. blood.Size = Vector3.new(1,0.4,1)
  261. blood.TopSurface = 0
  262. blood.BottomSurface = 0
  263. blood.CFrame = hit.CFrame
  264. blood.Velocity = Vector3.new(math.random(-40,40),math.random(-10,25),math.random(-40,40))
  265. blood.RotVelocity = Vector3.new(math.random(-40,40),math.random(-40,40),math.random(-40,40))
  266. blood.CanCollide = false
  267. blood.Anchored = false
  268. blood:BreakJoints()
  269. end
  270. end
  271. end
  272. p:remove()
  273. end)
  274. end
  275.  
  276. function Main(mouse)
  277. if enabled == true then return end
  278. enabled = true
  279. value.Value = value.Value - 1
  280. text.Text = value.Value.."/"..clips.Value
  281.  
  282. if value.Value == -1 then
  283. durp.Text = "You're out!"
  284. text.Text = "0/"..clips.Value
  285. if clips.Value <= 0 then return end
  286. durp.Text = "Reloading.."
  287. soun:play()
  288. wait(0.5)
  289. local fv = h10:clone()
  290. fv.Parent = workspace
  291. fv.CanCollide = true
  292. fv.Velocity = Vector3.new(math.random(-20,20),math.random(-5,5),math.random(-20,20))
  293. fv.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  294. h10.Transparency = 1
  295. wait(1.7)
  296. h10.Transparency = 0
  297. wait(0.5)
  298. clips.Value = clips.Value - 1
  299. value.Value = 8
  300. text.Text = value.Value.."/"..clips.Value
  301. durp.Text = " "
  302. end
  303. shot()
  304.  
  305. for i=1, 2 do
  306. wait()
  307. w2.C1 = w2.C1 * CFrame.fromEulerAnglesXYZ(0.23,0,0) * CFrame.new(0,-0.08,-0.2)
  308. end
  309. for i=1, 2 do
  310. wait()
  311. w2.C1 = w2.C1 * CFrame.fromEulerAnglesXYZ(-0.23,0,0) * CFrame.new(0,0.08,0.2)
  312. end
  313. w2.C1 = CFrame.fromEulerAnglesXYZ(-0.1, 0, 0) * CFrame.new(0,-0.43,0.35)
  314. wait(0.1)
  315. for i = 1, 6 do
  316. w4.C1 = w4.C1 * CFrame.new(0,0,-0.08)
  317. w7.C1 = w7.C1 * CFrame.new(0,0,-0.08)
  318. w8.C1 = w8.C1 * CFrame.new(0,0,-0.08)
  319. wait()
  320. end
  321. for i = 1, 2 do
  322. w4.C1 = w4.C1 * CFrame.new(0,0,0.24)
  323. w7.C1 = w7.C1 * CFrame.new(0,0,0.24)
  324. w8.C1 = w8.C1 * CFrame.new(0,0,0.24)
  325. wait()
  326. end
  327. w5.C1 = CFrame.fromEulerAnglesXYZ(1.571, 0, 0) * CFrame.new(0,-0.8,1.39)
  328. w7.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0.03,-1.11,-0.25)
  329. w8.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(-0.03,-1.11,-0.25)
  330. wait(0.03)
  331. enabled = false
  332. wait(2)
  333. p:remove()
  334. end
  335. tool.Activated:connect(Main)
  336.  
  337. num = 1
  338. function Init(mouse)
  339. text.Visible = true
  340. blaa.Visible = true
  341. durp.Visible = true
  342. we.Part0 = we.Parent
  343. we.Part1 = cha["Right Arm"]
  344. we1.Part0 = we1.Parent
  345. we1.Part1 = cha["Left Arm"]
  346. we2 = Instance.new("Weld")
  347. we2.Parent = tool.Parent.Torso
  348. we2.Part0 = we2.Parent
  349. we2.Part1 = h
  350. we2.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.5,1.6)
  351. w = Instance.new("Weld")
  352. w.Parent = h
  353. w.Part0 = w.Parent
  354. w.Part1 = h1
  355. w.C1 = CFrame.new(0, -0.8, 0.6)
  356. w1 = Instance.new("Weld")
  357. w1.Parent = h
  358. w1.Part0 = w.Parent
  359. w1.Part1 = h2
  360. w1.C1 = CFrame.fromEulerAnglesXYZ(0.3, 0, 0) * CFrame.new(0,-0.4,0.55)
  361. w3 = Instance.new("Weld")
  362. w3.Parent = h
  363. w3.Part0 = w.Parent
  364. w3.Part1 = h3
  365. w3.C1 = CFrame.fromEulerAnglesXYZ(1.3, 0, 0) * CFrame.new(0,-0.2,0.35)
  366. w2 = Instance.new("Weld")
  367. w2.Parent = h
  368. w2.Part0 = w.Parent
  369. w2.Part1 = h4
  370. w2.C1 = CFrame.fromEulerAnglesXYZ(-0.1, 0, 0) * CFrame.new(0,-0.43,0.35)
  371. w4 = Instance.new("Weld")
  372. w4.Parent = h
  373. w4.Part0 = w.Parent
  374. w4.Part1 = h5
  375. w4.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0,-0.9,0.435)
  376. w5 = Instance.new("Weld")
  377. w5.Parent = h
  378. w5.Part0 = w.Parent
  379. w5.Part1 = h6
  380. w5.C1 = CFrame.fromEulerAnglesXYZ(1.571, 0, 0) * CFrame.new(0,-0.8,1.39)
  381. w6 = Instance.new("Weld")
  382. w6.Parent = h
  383. w6.Part0 = w.Parent
  384. w6.Part1 = h7
  385. w6.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0,-1.1,1.4)
  386. w7 = Instance.new("Weld")
  387. w7.Parent = h5
  388. w7.Part0 = w.Parent
  389. w7.Part1 = h8
  390. w7.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0.03,-1.11,-0.25)
  391. w8 = Instance.new("Weld")
  392. w8.Parent = h5
  393. w8.Part0 = w.Parent
  394. w8.Part1 = h9
  395. w8.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(-0.03,-1.11,-0.25)
  396. w9 = Instance.new("Weld")
  397. w9.Parent = h
  398. w9.Part0 = w.Parent
  399. w9.Part1 = h10
  400. w9.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0,0.2,0)
  401. end
  402.  
  403. tool.Equipped:connect(Init)
  404.  
  405. function unq()
  406. we.Part0 = nil
  407. we.Part1 = nil
  408. we1.Part0 = nil
  409. we1.Part1 = nil
  410. we2:remove()
  411. text.Visible = false
  412. durp.Visible = false
  413. blaa.Visible = false
  414. end
  415.  
  416. tool.Unequipped:connect(unq)
  417.  
  418.  
  419. --lego
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement