Advertisement
lundofett

Untitled

Nov 29th, 2019
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.30 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. Part1 = Instance.new("Part")
  21. SpecialMesh2 = Instance.new("SpecialMesh")
  22. Sound3 = Instance.new("Sound")
  23. Sound4 = Instance.new("Sound")
  24. Sound5 = Instance.new("Sound")
  25. Sound6 = Instance.new("Sound")
  26. Sound7 = Instance.new("Sound")
  27. Sound8 = Instance.new("Sound")
  28. Sound9 = Instance.new("Sound")
  29. Sound10 = Instance.new("Sound")
  30. PointLight11 = Instance.new("PointLight")
  31. Sound12 = Instance.new("Sound")
  32. RemoteEvent13 = Instance.new("RemoteEvent")
  33. LocalScript14 = Instance.new("LocalScript")
  34. Script15 = Instance.new("Script")
  35. Camera16 = Instance.new("Camera")
  36. Script17 = Instance.new("Script")
  37. LocalScript18 = Instance.new("LocalScript")
  38. Script19 = Instance.new("Script")
  39. Script20 = Instance.new("Script")
  40. Tool0.Name = "Colt M1911"
  41. Tool0.Parent = mas
  42. Tool0.TextureId = "rbxassetid://168510890"
  43. Tool0.Grip = CFrame.new(-0.0662693828, -0.275076389, -0.4518933, -0.998969376, 0, 0.0453881398, 0, 1, 0, -0.0453881398, 0, -0.998969376)
  44. Tool0.GripForward = Vector3.new(-0.0453881398, -0, 0.998969376)
  45. Tool0.GripPos = Vector3.new(-0.0662693828, -0.275076389, -0.4518933)
  46. Tool0.GripRight = Vector3.new(-0.998969376, 0, -0.0453881398)
  47. Tool0.ToolTip = "Gun to kill skids."
  48. Part1.Name = "Handle"
  49. Part1.Parent = Tool0
  50. Part1.CFrame = CFrame.new(82.8850021, 0.0249999836, 21.8549995, 1, 0, 0, 0, 1, 1.1920929e-07, 0, -1.1920929e-07, 1)
  51. Part1.Position = Vector3.new(82.8850021, 0.0249999836, 21.8549995)
  52. Part1.Size = Vector3.new(0.230000198, 0.0500000007, 0.290000528)
  53. Part1.BottomSurface = Enum.SurfaceType.Smooth
  54. Part1.TopSurface = Enum.SurfaceType.Smooth
  55. SpecialMesh2.Parent = Part1
  56. SpecialMesh2.MeshId = "rbxassetid://436697873"
  57. SpecialMesh2.Scale = Vector3.new(0.0299999993, 0.0299999993, 0.0299999993)
  58. SpecialMesh2.VertexColor = Vector3.new(2, 2, 2)
  59. SpecialMesh2.TextureId = "rbxassetid://436697889"
  60. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  61. Sound3.Name = "shatter"
  62. Sound3.Parent = Part1
  63. Sound3.Pitch = 2
  64. Sound3.PlaybackSpeed = 2
  65. Sound3.SoundId = "rbxassetid://2596202821"
  66. Sound4.Name = "empty"
  67. Sound4.Parent = Part1
  68. Sound4.SoundId = "rbxassetid://769464514"
  69. Sound5.Name = "unequip"
  70. Sound5.Parent = Part1
  71. Sound5.SoundId = "rbxassetid://402318477"
  72. Sound6.Name = "supersonic bullet crack"
  73. Sound6.Parent = Part1
  74. Sound6.EmitterSize = 1
  75. Sound6.MinDistance = 1
  76. Sound6.Pitch = 1.5
  77. Sound6.PlaybackSpeed = 1.5
  78. Sound6.SoundId = "rbxassetid://259586543"
  79. Sound6.Volume = 3
  80. Sound7.Name = "bullethitflesh"
  81. Sound7.Parent = Part1
  82. Sound7.SoundId = "rbxassetid://1565725028"
  83. Sound7.Volume = 0.20000000298023
  84. Sound8.Name = "bullethit"
  85. Sound8.Parent = Part1
  86. Sound8.SoundId = "rbxassetid://151130059"
  87. Sound9.Name = "equip"
  88. Sound9.Parent = Part1
  89. Sound9.SoundId = "rbxassetid://240784215"
  90. Sound10.Name = "shell"
  91. Sound10.Parent = Part1
  92. Sound10.SoundId = "rbxassetid://325025387"
  93. Sound10.Volume = 0.10000000149012
  94. PointLight11.Name = "FlashFX"
  95. PointLight11.Parent = Part1
  96. PointLight11.Color = Color3.new(1, 1, 0.498039)
  97. PointLight11.Enabled = false
  98. PointLight11.Range = 6
  99. PointLight11.Brightness = 10
  100. PointLight11.Shadows = true
  101. Sound12.Name = "gunshot"
  102. Sound12.Parent = Part1
  103. Sound12.Pitch = 1.5499999523163
  104. Sound12.PlaybackSpeed = 1.5499999523163
  105. Sound12.SoundId = "rbxassetid://1265552868"
  106. Sound12.Volume = 5
  107. RemoteEvent13.Name = "GunEvent"
  108. RemoteEvent13.Parent = Tool0
  109. LocalScript14.Name = "ShootLocal"
  110. LocalScript14.Parent = Tool0
  111. table.insert(cors,sandbox(LocalScript14,function()
  112. --By Rufus14 [Edit By Rratewerani, Lundo_Fett didnt re-edit anything here bec its confusing as crap]
  113.  
  114. tool = script.Parent
  115. playermouse = game:GetService("Players").LocalPlayer:GetMouse()
  116. runservice = game:GetService("RunService").RenderStepped
  117. gunevent = tool.GunEvent
  118. function onpress()
  119. gunevent:FireServer("shoot", playermouse.Hit.p, playermouse.Origin.p)
  120. end
  121. tool.Activated:connect(onpress)
  122. function removearms()
  123. if game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("RightArmWeld") then
  124. game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("RightArmWeld"):destroy()
  125. end
  126. if game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("HeadWeld") then
  127. game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("HeadWeld"):destroy()
  128. end
  129. if game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("LeftArmWeld") then
  130. game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("LeftArmWeld"):destroy()
  131. end
  132. if game:GetService("Players").LocalPlayer.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld") then
  133. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld"):destroy()
  134. end
  135. end
  136. tool.Unequipped:connect(removearms)
  137. while runservice:wait() do
  138. if tool.Parent == game:GetService("Players").LocalPlayer.Character then
  139. if (workspace.CurrentCamera.CFrame.p - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude < 1.3 then
  140. if game:GetService("Players").LocalPlayer.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld") then
  141. gunevent:FireServer("point", playermouse.Hit.p, playermouse.Origin.p)
  142. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.HumanoidRootPartWeld.C0 = CFrame.fromEulerAnglesXYZ(0,math.pi/3,0)
  143. else
  144. local humanoidrootpart = Instance.new("Weld", game:GetService("Players").LocalPlayer.Character.HumanoidRootPart)
  145. humanoidrootpart.Part0 = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
  146. humanoidrootpart.Part1 = game:GetService("Players").LocalPlayer.Character.Torso
  147. humanoidrootpart.Name = "HumanoidRootPartWeld"
  148. end
  149. else
  150. if game:GetService("Players").LocalPlayer.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld") then
  151. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld"):destroy()
  152. end
  153. gunevent:FireServer("point", playermouse.Hit.p, playermouse.Origin.p)
  154. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,Vector3.new(playermouse.Hit.p.x,game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.y,playermouse.Hit.p.z)) * CFrame.fromEulerAnglesXYZ(0,math.pi/3,0)
  155. end
  156. end
  157. end
  158. end))
  159. Script15.Name = "ShootScript"
  160. Script15.Parent = Tool0
  161. table.insert(cors,sandbox(Script15,function()
  162. --By Rufus14 [Edit By Rratewerani and Lundo_Fett]
  163. canuse = true
  164. heartbeat = game:GetService("RunService").Heartbeat
  165. tool = script.Parent
  166. handle = tool.Handle
  167. shoot = handle.gunshot
  168. shattersound = handle.shatter
  169. empty = handle.empty
  170. shootevent = tool.GunEvent
  171. equip = handle.equip
  172. unequip = handle.unequip
  173. bullethitflesh = handle.bullethitflesh
  174. bullethit = handle.bullethit
  175. bulletcrack = handle["supersonic bullet crack"]
  176. function positiongun()
  177. equip:Play()
  178. end
  179. function resetgun()
  180. unequip:Play()
  181. end
  182.  
  183. tool.Unequipped:connect(resetgun)
  184. tool.Equipped:connect(positiongun)
  185. function dosomething(plr, whataction, pos, origin)
  186. if whataction == "shoot" then
  187. if canuse then
  188. canuse = false
  189. shoot:Play()
  190. for i = 1,10 do
  191. plr.Character.Torso:findFirstChild("RightArmWeld").C1 = plr.Character.Torso:findFirstChild("RightArmWeld").C1 * CFrame.fromEulerAnglesXYZ(-0.055,0,0)
  192. end
  193. local light = Instance.new("PointLight", handle)
  194. light.Brightness = 10
  195. local ray = Ray.new(handle.Position, (pos - handle.Position).unit * 400)
  196. local hit, position = workspace:FindPartOnRayWithIgnoreList(ray, {handle, tool.Parent["Right Arm"]})
  197. local part = Instance.new("Part", handle)
  198. part.Anchored = true
  199. part.CanCollide = false
  200. part.Material = "Neon"
  201. part.Size = Vector3.new(0,0,(handle.Position - position).magnitude/4)
  202. part.CFrame = CFrame.new(handle.Position, position) * CFrame.new(0,0,-(handle.Position - position).magnitude/2)
  203. local function hide()
  204. bulletcrack.Parent = part
  205. bulletcrack:Play()
  206. bulletcrack.MaxDistance = part.Size.z
  207. wait(0.01)
  208. part.Transparency = 1
  209. wait(bulletcrack.TimeLength - 0.01)
  210. bulletcrack.Parent = handle
  211. part:destroy()
  212. end
  213. spawn(hide)
  214. game.Debris:AddItem(light, 0.04)
  215. local function makewound(hitt)
  216. local ball = Instance.new("Part", hitt.Parent)
  217. ball.Shape = "Ball"
  218. ball.Name = "ouchwound"
  219. ball.Transparency = hitt.Transparency
  220. ball.CanCollide = false
  221. ball.Size = Vector3.new(0.25,0.25,0.25)
  222. ball.CFrame = CFrame.new(position.x,position.y,position.z)
  223. local hitweld = Instance.new("Weld", hitt)
  224. ball.CFrame = CFrame.new(ball.Position, handle.Position)
  225. hitweld.C0 = hitt.CFrame:toObjectSpace(ball.CFrame)
  226. hitweld.Part0 = hitt
  227. hitweld.Part1 = ball
  228. hitweld.Name = "ouch_weld"
  229. hitweld.C0 = hitweld.C0 * CFrame.new(0,0,0.1)
  230. bullethit.Parent = ball
  231. if hitt.Name == "ouchwound" then
  232. ball.Transparency = 1
  233. local function waittoremove()
  234. wait(3)
  235. ball:destroy()
  236. end
  237. spawn(waittoremove)
  238. end
  239. bullethit:Play()
  240. bullethit.MaxDistance = 10
  241. if hitt.Parent:findFirstChildOfClass("Humanoid") then
  242. bullethitflesh.Parent = ball
  243. bullethitflesh:Play()
  244. bullethitflesh.MaxDistance = 10
  245. local randomdamage = math.random(40,80)
  246. if hitt.Parent:findFirstChildOfClass("Humanoid").Health > 500 then
  247. hitt.Parent:findFirstChildOfClass("Humanoid").MaxHealth = 500
  248. hitt.Parent:findFirstChildOfClass("Humanoid").Health = 500
  249. end
  250. if hitt.Parent:findFirstChildOfClass("Humanoid").Health <= randomdamage then
  251. local velocity = Instance.new("BodyVelocity", hit)
  252. velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
  253. velocity.Velocity = handle.CFrame.lookVector * -math.random(15,25)
  254. game.Debris:AddItem(velocity, 0.1)
  255. hitt.Parent:findFirstChildOfClass("Humanoid").Health = 0
  256. local function searchforweld(wot)
  257. for i,v in pairs(wot:GetChildren()) do
  258. searchforweld(v)
  259. if v.ClassName == "Weld" or v.ClassName == "Motor6D" and v.Name ~= "ouch_weld" then
  260. v:destroy()
  261. end
  262. end
  263. end
  264. searchforweld(hitt.Parent)
  265. ragdollkill(hitt.Parent)
  266. else
  267. if hitt.Name ~= "Head" then
  268. hitt.Parent:findFirstChildOfClass("Humanoid").Health = hitt.Parent:findFirstChildOfClass("Humanoid").Health - randomdamage
  269. local velocity = Instance.new("BodyVelocity", hit)
  270. velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
  271. velocity.Velocity = handle.CFrame.lookVector * -math.random(15,25)
  272. game.Debris:AddItem(velocity, 0.1)
  273. else
  274. hitt.Parent:findFirstChildOfClass("Humanoid").Health = 0
  275. local function searchforweld(wot)
  276. for i,v in pairs(wot:GetChildren()) do
  277. searchforweld(v)
  278. if v.ClassName == "Weld" or v.ClassName == "Motor6D" and v.Name ~= "ouch_weld" then
  279. v:destroy()
  280. end
  281. end
  282. end
  283. searchforweld(hitt.Parent)
  284. ragdollkill(hitt.Parent)
  285. end
  286. end
  287. local function bbb()
  288. wait(bullethitflesh.TimeLength)
  289. bullethitflesh.Parent = handle
  290. end
  291. spawn(bbb)
  292. ball.BrickColor = BrickColor.new("Maroon")
  293. ball.Material = "Pebble"
  294. else
  295. if not hitt.Parent:findFirstChildOfClass("Humanoid") and hitt.Parent.ClassName == "Model" then
  296. hitt:BreakJoints()
  297. local velocity = Instance.new("BodyVelocity", hitt)
  298. velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  299. velocity.Velocity = handle.CFrame.lookVector * -math.random(10,30)
  300. local function cancollide()
  301. wait(0.1)
  302. hitt.CanCollide = true
  303. velocity:destroy()
  304. end
  305. spawn(cancollide)
  306. end
  307. ball.BrickColor = hitt.BrickColor
  308. ball.Material = "Cobblestone"
  309. local function fadeaway()
  310. wait(20)
  311. for i = 1,100 do
  312. ball.Transparency = ball.Transparency + 0.01
  313. wait()
  314. end
  315. ball:destroy()
  316. end
  317. end
  318. local function aaa()
  319. wait(bullethit.TimeLength)
  320. bullethit.Parent = handle
  321. end
  322. spawn(aaa)
  323. end
  324. if hit ~= nil then
  325. if hit.Parent ~= nil then
  326. if not hit.Parent:findFirstChildOfClass("Humanoid") and not hit:findFirstChild("shattered") and hit.Name ~= "HumanoidRootPart" and hit.Transparency > 0.1 or hit.Material == "Glass" then
  327. if hit.Size.z < hit.Size.x then
  328. if hit.Size.z < 1.5 then
  329. local sha = Instance.new("BoolValue", hit)
  330. sha.Name = "shattered"
  331. local shatter = Instance.new("Part", workspace)
  332. shatter.Transparency = hit.Transparency
  333. shatter.Material = hit.Material
  334. shatter.BrickColor = hit.BrickColor
  335. shatter.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z)
  336. shatter.CanCollide = hit.CanCollide
  337. shatter.CFrame = hit.CFrame * CFrame.new(shatter.Size.x/2,shatter.Size.y/2,0)
  338. shatter:BreakJoints()
  339. shatter.Velocity = handle.CFrame.lookVector * -20
  340. game.Debris:AddItem(shatter, 15)
  341. --
  342. local shatter = Instance.new("Part", workspace)
  343. shatter.Transparency = hit.Transparency
  344. shatter.Material = hit.Material
  345. shatter.BrickColor = hit.BrickColor
  346. shatter.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z)
  347. shatter.CanCollide = hit.CanCollide
  348. shatter.CFrame = hit.CFrame * CFrame.new(-shatter.Size.x/2,shatter.Size.y/2,0)
  349. shatter:BreakJoints()
  350. shatter.Velocity = handle.CFrame.lookVector * -20
  351. game.Debris:AddItem(shatter, 15)
  352. --
  353. local shatter = Instance.new("Part", workspace)
  354. shatter.Transparency = hit.Transparency
  355. shatter.Material = hit.Material
  356. shatter.BrickColor = hit.BrickColor
  357. shatter.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z)
  358. shatter.CanCollide = hit.CanCollide
  359. shatter.CFrame = hit.CFrame * CFrame.new(shatter.Size.x/2,-shatter.Size.y/2,0)
  360. shatter:BreakJoints()
  361. shatter.Velocity = handle.CFrame.lookVector * -20
  362. game.Debris:AddItem(shatter, 15)
  363. --
  364. local shatter = Instance.new("Part", workspace)
  365. shatter.Transparency = hit.Transparency
  366. shatter.Material = hit.Material
  367. shatter.BrickColor = hit.BrickColor
  368. shatter.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z)
  369. shatter.CanCollide = hit.CanCollide
  370. shatter.CFrame = hit.CFrame * CFrame.new(-shatter.Size.x/2,-shatter.Size.y/2,0)
  371. shatter:BreakJoints()
  372. shatter.Velocity = handle.CFrame.lookVector * -20
  373. game.Debris:AddItem(shatter, 15)
  374. --
  375. hit.Anchored = true
  376. hit.Transparency = 1
  377. hit.CanCollide = false
  378. local function stopshattering()
  379. shattersound.Parent = hit
  380. shattersound:Play()
  381. shattersound.MaxDistance = 30
  382. wait(shattersound.TimeLength/2)
  383. shattersound.Parent = handle
  384. hit:destroy()
  385. end
  386. spawn(stopshattering)
  387. end
  388. elseif hit.Size.x < hit.Size.z then
  389. if hit.Size.x < 1.5 then
  390. local sha = Instance.new("BoolValue", hit)
  391. sha.Name = "shattered"
  392. local shatter = Instance.new("Part", workspace)
  393. shatter.Transparency = hit.Transparency
  394. shatter.Material = hit.Material
  395. shatter.BrickColor = hit.BrickColor
  396. shatter.Size = Vector3.new(hit.Size.x,hit.Size.y/2,hit.Size.z/2)
  397. shatter.CanCollide = hit.CanCollide
  398. shatter.CFrame = hit.CFrame * CFrame.new(0,shatter.Size.y/2,shatter.Size.z/2)
  399. shatter:BreakJoints()
  400. shatter.Velocity = handle.CFrame.lookVector * -20
  401. game.Debris:AddItem(shatter, 15)
  402. --
  403. local shatter = Instance.new("Part", workspace)
  404. shatter.Transparency = hit.Transparency
  405. shatter.Material = hit.Material
  406. shatter.BrickColor = hit.BrickColor
  407. shatter.Size = Vector3.new(hit.Size.x,hit.Size.y/2,hit.Size.z/2)
  408. shatter:BreakJoints()
  409. shatter.CanCollide = hit.CanCollide
  410. shatter.CFrame = hit.CFrame * CFrame.new(0,-shatter.Size.y/2,shatter.Size.z/2)
  411. shatter.Velocity = handle.CFrame.lookVector * -20
  412. game.Debris:AddItem(shatter, 15)
  413. --
  414. local shatter = Instance.new("Part", workspace)
  415. shatter.Transparency = hit.Transparency
  416. shatter.Material = hit.Material
  417. shatter.BrickColor = hit.BrickColor
  418. shatter.Size = Vector3.new(hit.Size.x,hit.Size.y/2,hit.Size.z/2)
  419. shatter.CanCollide = hit.CanCollide
  420. shatter.CFrame = hit.CFrame * CFrame.new(0,shatter.Size.y/2,-shatter.Size.z/2)
  421. shatter:BreakJoints()
  422. shatter.Velocity = handle.CFrame.lookVector * -20
  423. game.Debris:AddItem(shatter, 15)
  424. --
  425. local shatter = Instance.new("Part", workspace)
  426. shatter.Transparency = hit.Transparency
  427. shatter.Material = hit.Material
  428. shatter.BrickColor = hit.BrickColor
  429. shatter.Size = Vector3.new(hit.Size.x,hit.Size.y/2,hit.Size.z/2)
  430. shatter.CanCollide = hit.CanCollide
  431. shatter.CFrame = hit.CFrame * CFrame.new(0,-shatter.Size.y/2,-shatter.Size.z/2)
  432. shatter:BreakJoints()
  433. shatter.Velocity = handle.CFrame.lookVector * -20
  434. game.Debris:AddItem(shatter, 15)
  435. --
  436. hit.Anchored = true
  437. hit.Transparency = 1
  438. hit.CanCollide = false
  439. local function stopshattering()
  440. shattersound.Parent = hit
  441. shattersound:Play()
  442. shattersound.MaxDistance = 30
  443. wait(shattersound.TimeLength/2)
  444. shattersound.Parent = handle
  445. hit:destroy()
  446. end
  447. spawn(stopshattering)
  448. end
  449. end
  450. end
  451. end
  452. if hit.Parent.ClassName == "Accessory" or hit.Parent.ClassName == "Hat" then
  453. for i,v in pairs(hit:GetChildren()) do
  454. if v.ClassName == "Attachment" or v.ClassName == "Weld" or v.ClassName == "Motor6D" then
  455. v:destroy()
  456. end
  457. end
  458. hit.Parent.Parent = workspace
  459. hit.CanCollide = false
  460. local velocity = Instance.new("BodyVelocity", hit)
  461. velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  462. velocity.Velocity = handle.CFrame.lookVector * -math.random(10,30)
  463. local function cancollide()
  464. wait(0.1)
  465. hit.CanCollide = true
  466. velocity:destroy()
  467. end
  468. spawn(cancollide)
  469. else
  470. makewound(hit)
  471. end
  472. end
  473. for i = 1,10 do
  474. if plr.Character.Torso:findFirstChild("RightArmWeld") then
  475. plr.Character.Torso:findFirstChild("RightArmWeld").C1 = plr.Character.Torso:findFirstChild("RightArmWeld").C1 * CFrame.fromEulerAnglesXYZ(0.055,0,0)
  476. heartbeat:wait()
  477. end
  478. end
  479. canuse = true
  480. end
  481. elseif whataction == "point" then
  482. if plr.Character:findFirstChild("Torso") then
  483. if not plr.Character.Torso:findFirstChild("HeadWeld") then
  484. local head = Instance.new("Weld", plr.Character.Torso)
  485. head.Part0 = plr.Character.Torso
  486. head.Part1 = plr.Character.Head
  487. head.C0 = CFrame.new(0,1.5,0)
  488. head.C1 = CFrame.new(0,-0.5,0)
  489. head.Name = "HeadWeld"
  490. end
  491. if not plr.Character.Torso:findFirstChild("RightArmWeld") then
  492. local rightarm = Instance.new("Weld", plr.Character.Torso)
  493. rightarm.Part0 = plr.Character.Torso
  494. rightarm.Part1 = plr.Character["Right Arm"]
  495. rightarm.C0 = CFrame.new(1.5,0,0)
  496. rightarm.C1 = CFrame.new(0,0.5,0)
  497. rightarm.Name = "RightArmWeld"
  498. end
  499. if not plr.Character.Torso:findFirstChild("LeftArmWeld") then
  500. local leftarm = Instance.new("Weld", plr.Character.Torso)
  501. leftarm.Part0 = plr.Character.Torso
  502. leftarm.Part1 = plr.Character["Left Arm"]
  503. leftarm.C0 = CFrame.new(-1.5,0,0)
  504. leftarm.C1 = CFrame.new(0,0.5,0)
  505. leftarm.Name = "LeftArmWeld"
  506. end
  507. if plr.Character.Torso:findFirstChild("RightArmWeld") then
  508. plr.Character.Torso:findFirstChild("RightArmWeld").C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,math.pi/3) * CFrame.fromEulerAnglesXYZ(math.asin((pos-origin).unit.y),0,0)
  509. end
  510. if plr.Character.Torso:findFirstChild("HeadWeld") then
  511. plr.Character.Torso:findFirstChild("HeadWeld").C0 = CFrame.new(0,1,0) * CFrame.fromEulerAnglesXYZ(math.asin((pos-origin).unit.y),-math.pi/3,0)
  512. end
  513. if plr.Character.Torso:findFirstChild("LeftArmWeld") then
  514. plr.Character.Torso:findFirstChild("LeftArmWeld").C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.asin((pos-origin).unit.y)/2,0,0)
  515. end
  516. end
  517. end
  518. end
  519. shootevent.OnServerEvent:connect(dosomething)
  520. function ragdollkill(character)
  521. local victimshumanoid = character:findFirstChildOfClass("Humanoid")
  522. if not character:findFirstChild("UpperTorso") then
  523. character.Archivable = true
  524. for i,v in pairs(character:GetChildren()) do
  525. if v.ClassName == "Sound" then
  526. v:remove()
  527. end
  528. for q,w in pairs(v:GetChildren()) do
  529. if w.ClassName == "Sound" then
  530. w:remove()
  531. end
  532. end
  533. end
  534. local ragdoll = character:Clone()
  535. ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  536. if ragdoll:findFirstChild("Health") then
  537. if ragdoll:findFirstChild("Health").ClassName == "Script" then
  538. ragdoll:findFirstChild("Health").Disabled = true
  539. end
  540. end
  541. for i,v in pairs(character:GetChildren()) do
  542. if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
  543. v:destroy()
  544. end
  545. end
  546. for i,v in pairs(character:GetChildren()) do
  547. if v.ClassName == "Accessory" then
  548. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  549. if attachment1 then
  550. for q,w in pairs(character:GetChildren()) do
  551. if w.ClassName == "Part" then
  552. local attachment2 = w:findFirstChild(attachment1.Name)
  553. if attachment2 then
  554. local hinge = Instance.new("HingeConstraint", v.Handle)
  555. hinge.Attachment0 = attachment1
  556. hinge.Attachment1 = attachment2
  557. hinge.LimitsEnabled = true
  558. hinge.LowerAngle = 0
  559. hinge.UpperAngle = 0
  560. end
  561. end
  562. end
  563. end
  564. end
  565. end
  566. ragdoll.Parent = workspace
  567. if ragdoll:findFirstChild("Right Arm") then
  568. local glue = Instance.new("Glue", ragdoll.Torso)
  569. glue.Part0 = ragdoll.Torso
  570. glue.Part1 = ragdoll:findFirstChild("Right Arm")
  571. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  572. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  573. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
  574. limbcollider.Size = Vector3.new(1.4,1,1)
  575. limbcollider.Shape = "Cylinder"
  576. limbcollider.Transparency = 1
  577. limbcollider.Name = "LimbCollider"
  578. local limbcolliderweld = Instance.new("Weld", limbcollider)
  579. limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
  580. limbcolliderweld.Part1 = limbcollider
  581. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  582. end
  583. if ragdoll:findFirstChild("Left Arm") then
  584. local glue = Instance.new("Glue", ragdoll.Torso)
  585. glue.Part0 = ragdoll.Torso
  586. glue.Part1 = ragdoll:findFirstChild("Left Arm")
  587. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  588. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  589. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
  590. limbcollider.Size = Vector3.new(1.4,1,1)
  591. limbcollider.Shape = "Cylinder"
  592. limbcollider.Name = "LimbCollider"
  593. limbcollider.Transparency = 1
  594. local limbcolliderweld = Instance.new("Weld", limbcollider)
  595. limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
  596. limbcolliderweld.Part1 = limbcollider
  597. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  598. end
  599. if ragdoll:findFirstChild("Left Leg") then
  600. local glue = Instance.new("Glue", ragdoll.Torso)
  601. glue.Part0 = ragdoll.Torso
  602. glue.Part1 = ragdoll:findFirstChild("Left Leg")
  603. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  604. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  605. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
  606. limbcollider.Size = Vector3.new(1.4,1,1)
  607. limbcollider.Shape = "Cylinder"
  608. limbcollider.Name = "LimbCollider"
  609. limbcollider.Transparency = 1
  610. local limbcolliderweld = Instance.new("Weld", limbcollider)
  611. limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
  612. limbcolliderweld.Part1 = limbcollider
  613. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  614. end
  615. if ragdoll:findFirstChild("Right Leg") then
  616. local glue = Instance.new("Glue", ragdoll.Torso)
  617. glue.Part0 = ragdoll.Torso
  618. glue.Part1 = ragdoll:findFirstChild("Right Leg")
  619. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  620. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  621. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
  622. limbcollider.Size = Vector3.new(1.4,1,1)
  623. limbcollider.Shape = "Cylinder"
  624. limbcollider.Name = "LimbCollider"
  625. limbcollider.Transparency = 1
  626. local limbcolliderweld = Instance.new("Weld", limbcollider)
  627. limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
  628. limbcolliderweld.Part1 = limbcollider
  629. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  630. end
  631. if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
  632. local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
  633. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  634. local connection = Instance.new('HingeConstraint', ragdoll["Head"])
  635. connection.LimitsEnabled = true
  636. connection.Attachment0 = ragdoll.Torso.NeckAttachment
  637. connection.Attachment1 = HeadAttachment
  638. connection.UpperAngle = 60
  639. connection.LowerAngle = -60
  640. elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
  641. local hedweld = Instance.new("Weld", ragdoll.Torso)
  642. hedweld.Part0 = ragdoll.Torso
  643. hedweld.Part1 = ragdoll.Head
  644. hedweld.C0 = CFrame.new(0,1.5,0)
  645. end
  646. game.Debris:AddItem(ragdoll, 30)
  647. local function aaaalol()
  648. wait(0.2)
  649. local function searchforvelocity(wot)
  650. for i,v in pairs(wot:GetChildren()) do
  651. searchforvelocity(v)
  652. if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
  653. v:destroy()
  654. end
  655. end
  656. end
  657. searchforvelocity(ragdoll)
  658. wait(0.5)
  659. if ragdoll:findFirstChildOfClass("Humanoid") then
  660. ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  661. end
  662. if ragdoll:findFirstChild("HumanoidRootPart") then
  663. ragdoll:findFirstChild("HumanoidRootPart"):destroy()
  664. end
  665. end
  666. spawn(aaaalol)
  667. elseif character:findFirstChild("UpperTorso") then
  668. character.Archivable = true
  669. for i,v in pairs(character:GetChildren()) do
  670. if v.ClassName == "Sound" then
  671. v:remove()
  672. end
  673. for q,w in pairs(v:GetChildren()) do
  674. if w.ClassName == "Sound" then
  675. w:remove()
  676. end
  677. end
  678. end
  679. local ragdoll = character:Clone()
  680. ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  681. if ragdoll:findFirstChild("Health") then
  682. if ragdoll:findFirstChild("Health").ClassName == "Script" then
  683. ragdoll:findFirstChild("Health").Disabled = true
  684. end
  685. end
  686. for i,v in pairs(character:GetChildren()) do
  687. if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
  688. v:destroy()
  689. end
  690. end
  691. for i,v in pairs(character:GetChildren()) do
  692. if v.ClassName == "Accessory" then
  693. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  694. if attachment1 then
  695. for q,w in pairs(character:GetChildren()) do
  696. if w.ClassName == "Part" or w.ClassName == "MeshPart" then
  697. local attachment2 = w:findFirstChild(attachment1.Name)
  698. if attachment2 then
  699. local hinge = Instance.new("HingeConstraint", v.Handle)
  700. hinge.Attachment0 = attachment1
  701. hinge.Attachment1 = attachment2
  702. hinge.LimitsEnabled = true
  703. hinge.LowerAngle = 0
  704. hinge.UpperAngle = 0
  705. end
  706. end
  707. end
  708. end
  709. end
  710. end
  711. ragdoll.Parent = workspace
  712. local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
  713. Humanoid.PlatformStand = true
  714. local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
  715. local connection = Instance.new('BallSocketConstraint', limb)
  716. connection.LimitsEnabled = true
  717. connection.Attachment0 = attachementone
  718. connection.Attachment1 = attachmenttwo
  719. connection.TwistLimitsEnabled = true
  720. connection.TwistLowerAngle = twistlower
  721. connection.TwistUpperAngle = twistupper
  722. local limbcollider = Instance.new("Part", limb)
  723. limbcollider.Size = Vector3.new(0.1,1,1)
  724. limbcollider.Shape = "Cylinder"
  725. limbcollider.Transparency = 1
  726. limbcollider:BreakJoints()
  727. local limbcolliderweld = Instance.new("Weld", limbcollider)
  728. limbcolliderweld.Part0 = limb
  729. limbcolliderweld.Part1 = limbcollider
  730. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  731. end
  732. local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
  733. local connection = Instance.new('HingeConstraint', limb)
  734. connection.LimitsEnabled = true
  735. connection.Attachment0 = attachementone
  736. connection.Attachment1 = attachmenttwo
  737. connection.LimitsEnabled = true
  738. connection.LowerAngle = lower
  739. connection.UpperAngle = upper
  740. local limbcollider = Instance.new("Part", limb)
  741. limbcollider.Size = Vector3.new(0.1,1,1)
  742. limbcollider.Shape = "Cylinder"
  743. limbcollider.Transparency = 1
  744. limbcollider:BreakJoints()
  745. local limbcolliderweld = Instance.new("Weld", limbcollider)
  746. limbcolliderweld.Part0 = limb
  747. limbcolliderweld.Part1 = limbcollider
  748. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  749. end
  750. local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
  751. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  752. if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
  753. makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
  754. end
  755. makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
  756. makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
  757. makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
  758. makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
  759. --
  760. makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
  761. makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
  762. makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
  763. --
  764. makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
  765. makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
  766. makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
  767. --
  768. makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
  769. makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
  770. makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
  771. for i,v in pairs(Humanoid.Parent:GetChildren()) do
  772. if v.ClassName == "Accessory" then
  773. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  774. if attachment1 then
  775. for q,w in pairs(Humanoid.Parent:GetChildren()) do
  776. if w.ClassName == "Part" then
  777. local attachment2 = w:findFirstChild(attachment1.Name)
  778. if attachment2 then
  779. local hinge = Instance.new("HingeConstraint", v.Handle)
  780. hinge.Attachment0 = attachment1
  781. hinge.Attachment1 = attachment2
  782. hinge.LimitsEnabled = true
  783. hinge.LowerAngle = 0
  784. hinge.UpperAngle = 0
  785. end
  786. end
  787. end
  788. end
  789. end
  790. end
  791. for i,v in pairs(ragdoll:GetChildren()) do
  792. for q,w in pairs(v:GetChildren()) do
  793. if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] then
  794. w:destroy()
  795. end
  796. end
  797. end
  798. if ragdoll:findFirstChild("HumanoidRootPart") then
  799. ragdoll.HumanoidRootPart.Anchored = true
  800. ragdoll.HumanoidRootPart.CanCollide = false
  801. end
  802. if ragdoll:findFirstChildOfClass("Humanoid") then
  803. ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  804. end
  805. local function waitfordatmoment()
  806. wait(0.2)
  807. local function searchforvelocity(wot)
  808. for i,v in pairs(wot:GetChildren()) do
  809. searchforvelocity(v)
  810. if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
  811. v:destroy()
  812. end
  813. end
  814. end
  815. searchforvelocity(ragdoll)
  816. end
  817. spawn(waitfordatmoment)
  818. game.Debris:AddItem(ragdoll, 30)
  819. end
  820. end
  821. end))
  822. Camera16.Name = "ThumbnailCamera"
  823. Camera16.Parent = Tool0
  824. Camera16.CFrame = CFrame.new(3.01131964, 1.70072341, -15.2324295, 0.506096363, -0.263865292, 0.821122169, -0, 0.952051163, 0.305938959, -0.862476945, -0.154834598, 0.481829643)
  825. Camera16.CoordinateFrame = CFrame.new(3.01131964, 1.70072341, -15.2324295, 0.506096363, -0.263865292, 0.821122169, -0, 0.952051163, 0.305938959, -0.862476945, -0.154834598, 0.481829643)
  826. Camera16.Focus = CFrame.new(1.3690753, 1.08884549, -16.1960888, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  827. Camera16.focus = CFrame.new(1.3690753, 1.08884549, -16.1960888, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  828. Script17.Name = "ShellScript"
  829. Script17.Parent = Tool0
  830. table.insert(cors,sandbox(Script17,function()
  831. --By Lundo_Fett
  832. canuse = true
  833. heartbeat = game:GetService("RunService").Heartbeat
  834. tool = script.Parent
  835. handle = tool.Handle
  836. shoot = handle.gunshot
  837. shattersound = handle.shatter
  838. empty = handle.empty
  839. shootevent = tool.GunEvent
  840. equip = handle.equip
  841. unequip = handle.unequip
  842. bullethitflesh = handle.bullethitflesh
  843. bullethit = handle.bullethit
  844. bulletcrack = handle["supersonic bullet crack"]
  845. function dosomething(plr, whataction, pos, origin)
  846. if whataction == "shoot" then
  847. wait(0.4)
  848. script.Parent.Handle.shell.Pitch = 1 + math.random(1,2)/10
  849. script.Parent.Handle.shell:Play()
  850. end
  851. end
  852. shootevent.OnServerEvent:connect(dosomething)
  853.  
  854. end))
  855. LocalScript18.Name = "Credits"
  856. LocalScript18.Parent = Tool0
  857. table.insert(cors,sandbox(LocalScript18,function()
  858. -- Credit to Rufus14 for making the gun, Rratewerani for originailly editing it, and Lundo_Fett
  859. -- for editing even more.
  860.  
  861.  
  862.  
  863.  
  864.  
  865. --ran out of room to fit in one line whatyu doin sotp you know there's nothing here? 👌GOT EM
  866.  
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943.  
  944.  
  945.  
  946.  
  947.  
  948.  
  949.  
  950.  
  951.  
  952.  
  953.  
  954.  
  955.  
  956.  
  957.  
  958.  
  959.  
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994. --whatyu doin sotp you know there's nothing here? 👌GOT EM
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267.  
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280.  
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305.  
  1306.  
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320. --whatyu doin sotp you know there's nothing here? 👌GOT EM
  1321.  
  1322. end))
  1323. Script19.Name = "ShellScript"
  1324. Script19.Parent = Tool0
  1325. table.insert(cors,sandbox(Script19,function()
  1326. --By Lundo_Fett
  1327. canuse = true
  1328. heartbeat = game:GetService("RunService").Heartbeat
  1329. tool = script.Parent
  1330. handle = tool.Handle
  1331. shoot = handle.gunshot
  1332. shattersound = handle.shatter
  1333. empty = handle.empty
  1334. shootevent = tool.GunEvent
  1335. equip = handle.equip
  1336. unequip = handle.unequip
  1337. bullethitflesh = handle.bullethitflesh
  1338. bullethit = handle.bullethit
  1339. bulletcrack = handle["supersonic bullet crack"]
  1340. function dosomething(plr, whataction, pos, origin)
  1341. if whataction == "shoot" then
  1342. local shell = Instance.new("Part")
  1343. shell.CFrame = handle.CFrame * CFrame.fromEulerAnglesXYZ(-1.5,0,0)
  1344. shell.Size = Vector3.new(1,1,1)
  1345. shell.BrickColor = BrickColor.new(24)
  1346. shell.Reflectance = .5
  1347. shell.CanCollide = false
  1348. shell.BottomSurface = 0
  1349. shell.TopSurface = 0
  1350. shell.Name = "Shell"
  1351. shell.Velocity =handle.CFrame.lookVector * 30 + Vector3.new(math.random(-10,10),20,math.random(-10,10))
  1352. shell.RotVelocity = Vector3.new(0,200,0)
  1353. local shellmesh = Instance.new("CylinderMesh")
  1354. shellmesh.Scale = Vector3.new(0.1, 0.8, 0.1)
  1355. shellmesh.Parent = shell
  1356. shell.Parent = game.Workspace
  1357. game:GetService("Debris"):addItem(shell,2)
  1358.  
  1359. local shellmesh = Instance.new("SpecialMesh")
  1360. shellmesh.Scale = Vector3.new(0.9,0.9,3)
  1361. shellmesh.MeshId = "http://www.roblox.com/asset/?id=95387759"
  1362. shellmesh.TextureId = "http://www.roblox.com/asset/?id=95387789"
  1363. shellmesh.MeshType = "FileMesh"
  1364. shellmesh.Parent = shell
  1365. wait(0.1)
  1366. shell.CanCollide = true
  1367. end
  1368. end
  1369. shootevent.OnServerEvent:connect(dosomething)
  1370.  
  1371. end))
  1372. Script20.Name = "ShellScript"
  1373. Script20.Parent = Tool0
  1374. table.insert(cors,sandbox(Script20,function()
  1375. --By Lundo_Fett
  1376. canuse = true
  1377. heartbeat = game:GetService("RunService").Heartbeat
  1378. tool = script.Parent
  1379. handle = tool.Handle
  1380. shoot = handle.gunshot
  1381. shattersound = handle.shatter
  1382. empty = handle.empty
  1383. shootevent = tool.GunEvent
  1384. equip = handle.equip
  1385. unequip = handle.unequip
  1386. bullethitflesh = handle.bullethitflesh
  1387. bullethit = handle.bullethit
  1388. bulletcrack = handle["supersonic bullet crack"]
  1389. flasjhlightofyeet = script.Parent.Handle.FlashFX.Enabled
  1390. function dosomething(plr, whataction, pos, origin)
  1391. if whataction == "shoot" then
  1392. flasjhlightofyeet = true
  1393. wait(0.1)
  1394. flasjhlightofyeet = false
  1395. end
  1396. end
  1397. shootevent.OnServerEvent:connect(dosomething)
  1398.  
  1399. end))
  1400. for i,v in pairs(mas:GetChildren()) do
  1401. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  1402. pcall(function() v:MakeJoints() end)
  1403. end
  1404. mas:Destroy()
  1405. for i,v in pairs(cors) do
  1406. spawn(function()
  1407. pcall(v)
  1408. end)
  1409. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement