Advertisement
lundofett

Untitled

Nov 29th, 2019
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.27 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",plr:WaitForChild("Backpack"))
  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.TextureId = "rbxassetid://168510890"
  42. Tool0.Grip = CFrame.new(-0.0662693828, -0.275076389, -0.4518933, -0.998969376, 0, 0.0453881398, 0, 1, 0, -0.0453881398, 0, -0.998969376)
  43. Tool0.GripForward = Vector3.new(-0.0453881398, -0, 0.998969376)
  44. Tool0.GripPos = Vector3.new(-0.0662693828, -0.275076389, -0.4518933)
  45. Tool0.GripRight = Vector3.new(-0.998969376, 0, -0.0453881398)
  46. Tool0.ToolTip = "Gun to kill skids."
  47. Part1.Name = "Handle"
  48. Part1.Parent = Tool0
  49. Part1.CFrame = CFrame.new(82.8850021, 0.0249999836, 21.8549995, 1, 0, 0, 0, 1, 1.1920929e-07, 0, -1.1920929e-07, 1)
  50. Part1.Position = Vector3.new(82.8850021, 0.0249999836, 21.8549995)
  51. Part1.Size = Vector3.new(0.230000198, 0.0500000007, 0.290000528)
  52. Part1.BottomSurface = Enum.SurfaceType.Smooth
  53. Part1.TopSurface = Enum.SurfaceType.Smooth
  54. SpecialMesh2.Parent = Part1
  55. SpecialMesh2.MeshId = "rbxassetid://436697873"
  56. SpecialMesh2.Scale = Vector3.new(0.0299999993, 0.0299999993, 0.0299999993)
  57. SpecialMesh2.VertexColor = Vector3.new(2, 2, 2)
  58. SpecialMesh2.TextureId = "rbxassetid://436697889"
  59. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  60. Sound3.Name = "shatter"
  61. Sound3.Parent = Part1
  62. Sound3.Pitch = 2
  63. Sound3.PlaybackSpeed = 2
  64. Sound3.SoundId = "rbxassetid://2596202821"
  65. Sound4.Name = "empty"
  66. Sound4.Parent = Part1
  67. Sound4.SoundId = "rbxassetid://769464514"
  68. Sound5.Name = "unequip"
  69. Sound5.Parent = Part1
  70. Sound5.SoundId = "rbxassetid://402318477"
  71. Sound6.Name = "supersonic bullet crack"
  72. Sound6.Parent = Part1
  73. Sound6.EmitterSize = 1
  74. Sound6.MinDistance = 1
  75. Sound6.Pitch = 1.5
  76. Sound6.PlaybackSpeed = 1.5
  77. Sound6.SoundId = "rbxassetid://259586543"
  78. Sound6.Volume = 3
  79. Sound7.Name = "bullethitflesh"
  80. Sound7.Parent = Part1
  81. Sound7.SoundId = "rbxassetid://1565725028"
  82. Sound7.Volume = 0.20000000298023
  83. Sound8.Name = "bullethit"
  84. Sound8.Parent = Part1
  85. Sound8.SoundId = "rbxassetid://151130059"
  86. Sound9.Name = "equip"
  87. Sound9.Parent = Part1
  88. Sound9.SoundId = "rbxassetid://240784215"
  89. Sound10.Name = "shell"
  90. Sound10.Parent = Part1
  91. Sound10.SoundId = "rbxassetid://325025387"
  92. Sound10.Volume = 0.10000000149012
  93. PointLight11.Name = "FlashFX"
  94. PointLight11.Parent = Part1
  95. PointLight11.Color = Color3.new(1, 1, 0.498039)
  96. PointLight11.Enabled = false
  97. PointLight11.Range = 6
  98. PointLight11.Brightness = 10
  99. PointLight11.Shadows = true
  100. Sound12.Name = "gunshot"
  101. Sound12.Parent = Part1
  102. Sound12.Pitch = 1.5499999523163
  103. Sound12.PlaybackSpeed = 1.5499999523163
  104. Sound12.SoundId = "rbxassetid://1265552868"
  105. Sound12.Volume = 5
  106. RemoteEvent13.Name = "GunEvent"
  107. RemoteEvent13.Parent = Tool0
  108. LocalScript14.Name = "ShootLocal"
  109. LocalScript14.Parent = Tool0
  110. table.insert(cors,sandbox(LocalScript14,function()
  111. --By Rufus14 [Edit By Rratewerani, Lundo_Fett didnt re-edit anything here bec its confusing as crap]
  112.  
  113. tool = script.Parent
  114. playermouse = game:GetService("Players").LocalPlayer:GetMouse()
  115. runservice = game:GetService("RunService").RenderStepped
  116. gunevent = tool.GunEvent
  117. function onpress()
  118. gunevent:FireServer("shoot", playermouse.Hit.p, playermouse.Origin.p)
  119. end
  120. tool.Activated:connect(onpress)
  121. function removearms()
  122. if game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("RightArmWeld") then
  123. game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("RightArmWeld"):destroy()
  124. end
  125. if game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("HeadWeld") then
  126. game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("HeadWeld"):destroy()
  127. end
  128. if game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("LeftArmWeld") then
  129. game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("LeftArmWeld"):destroy()
  130. end
  131. if game:GetService("Players").LocalPlayer.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld") then
  132. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld"):destroy()
  133. end
  134. end
  135. tool.Unequipped:connect(removearms)
  136. while runservice:wait() do
  137. if tool.Parent == game:GetService("Players").LocalPlayer.Character then
  138. if (workspace.CurrentCamera.CFrame.p - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude < 1.3 then
  139. if game:GetService("Players").LocalPlayer.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld") then
  140. gunevent:FireServer("point", playermouse.Hit.p, playermouse.Origin.p)
  141. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.HumanoidRootPartWeld.C0 = CFrame.fromEulerAnglesXYZ(0,math.pi/3,0)
  142. else
  143. local humanoidrootpart = Instance.new("Weld", game:GetService("Players").LocalPlayer.Character.HumanoidRootPart)
  144. humanoidrootpart.Part0 = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
  145. humanoidrootpart.Part1 = game:GetService("Players").LocalPlayer.Character.Torso
  146. humanoidrootpart.Name = "HumanoidRootPartWeld"
  147. end
  148. else
  149. if game:GetService("Players").LocalPlayer.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld") then
  150. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld"):destroy()
  151. end
  152. gunevent:FireServer("point", playermouse.Hit.p, playermouse.Origin.p)
  153. 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)
  154. end
  155. end
  156. end
  157. end))
  158. Script15.Name = "ShootScript"
  159. Script15.Parent = Tool0
  160. table.insert(cors,sandbox(Script15,function()
  161. --By Rufus14 [Edit By Rratewerani and Lundo_Fett]
  162. canuse = true
  163. heartbeat = game:GetService("RunService").Heartbeat
  164. tool = script.Parent
  165. handle = tool.Handle
  166. shoot = handle.gunshot
  167. shattersound = handle.shatter
  168. empty = handle.empty
  169. shootevent = tool.GunEvent
  170. equip = handle.equip
  171. unequip = handle.unequip
  172. bullethitflesh = handle.bullethitflesh
  173. bullethit = handle.bullethit
  174. bulletcrack = handle["supersonic bullet crack"]
  175. function positiongun()
  176. equip:Play()
  177. end
  178. function resetgun()
  179. unequip:Play()
  180. end
  181.  
  182. tool.Unequipped:connect(resetgun)
  183. tool.Equipped:connect(positiongun)
  184. function dosomething(plr, whataction, pos, origin)
  185. if whataction == "shoot" then
  186. if canuse then
  187. canuse = false
  188. shoot:Play()
  189. for i = 1,10 do
  190. plr.Character.Torso:findFirstChild("RightArmWeld").C1 = plr.Character.Torso:findFirstChild("RightArmWeld").C1 * CFrame.fromEulerAnglesXYZ(-0.055,0,0)
  191. end
  192. local light = Instance.new("PointLight", handle)
  193. light.Brightness = 10
  194. local ray = Ray.new(handle.Position, (pos - handle.Position).unit * 400)
  195. local hit, position = workspace:FindPartOnRayWithIgnoreList(ray, {handle, tool.Parent["Right Arm"]})
  196. local part = Instance.new("Part", handle)
  197. part.Anchored = true
  198. part.CanCollide = false
  199. part.Material = "Neon"
  200. part.Size = Vector3.new(0,0,(handle.Position - position).magnitude/4)
  201. part.CFrame = CFrame.new(handle.Position, position) * CFrame.new(0,0,-(handle.Position - position).magnitude/2)
  202. local function hide()
  203. bulletcrack.Parent = part
  204. bulletcrack:Play()
  205. bulletcrack.MaxDistance = part.Size.z
  206. wait(0.01)
  207. part.Transparency = 1
  208. wait(bulletcrack.TimeLength - 0.01)
  209. bulletcrack.Parent = handle
  210. part:destroy()
  211. end
  212. spawn(hide)
  213. game.Debris:AddItem(light, 0.04)
  214. local function makewound(hitt)
  215. local ball = Instance.new("Part", hitt.Parent)
  216. ball.Shape = "Ball"
  217. ball.Name = "ouchwound"
  218. ball.Transparency = hitt.Transparency
  219. ball.CanCollide = false
  220. ball.Size = Vector3.new(0.25,0.25,0.25)
  221. ball.CFrame = CFrame.new(position.x,position.y,position.z)
  222. local hitweld = Instance.new("Weld", hitt)
  223. ball.CFrame = CFrame.new(ball.Position, handle.Position)
  224. hitweld.C0 = hitt.CFrame:toObjectSpace(ball.CFrame)
  225. hitweld.Part0 = hitt
  226. hitweld.Part1 = ball
  227. hitweld.Name = "ouch_weld"
  228. hitweld.C0 = hitweld.C0 * CFrame.new(0,0,0.1)
  229. bullethit.Parent = ball
  230. if hitt.Name == "ouchwound" then
  231. ball.Transparency = 1
  232. local function waittoremove()
  233. wait(3)
  234. ball:destroy()
  235. end
  236. spawn(waittoremove)
  237. end
  238. bullethit:Play()
  239. bullethit.MaxDistance = 10
  240. if hitt.Parent:findFirstChildOfClass("Humanoid") then
  241. bullethitflesh.Parent = ball
  242. bullethitflesh:Play()
  243. bullethitflesh.MaxDistance = 10
  244. local randomdamage = math.random(40,80)
  245. if hitt.Parent:findFirstChildOfClass("Humanoid").Health > 500 then
  246. hitt.Parent:findFirstChildOfClass("Humanoid").MaxHealth = 500
  247. hitt.Parent:findFirstChildOfClass("Humanoid").Health = 500
  248. end
  249. if hitt.Parent:findFirstChildOfClass("Humanoid").Health <= randomdamage then
  250. local velocity = Instance.new("BodyVelocity", hit)
  251. velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
  252. velocity.Velocity = handle.CFrame.lookVector * -math.random(15,25)
  253. game.Debris:AddItem(velocity, 0.1)
  254. hitt.Parent:findFirstChildOfClass("Humanoid").Health = 0
  255. local function searchforweld(wot)
  256. for i,v in pairs(wot:GetChildren()) do
  257. searchforweld(v)
  258. if v.ClassName == "Weld" or v.ClassName == "Motor6D" and v.Name ~= "ouch_weld" then
  259. v:destroy()
  260. end
  261. end
  262. end
  263. searchforweld(hitt.Parent)
  264. ragdollkill(hitt.Parent)
  265. else
  266. if hitt.Name ~= "Head" then
  267. hitt.Parent:findFirstChildOfClass("Humanoid").Health = hitt.Parent:findFirstChildOfClass("Humanoid").Health - randomdamage
  268. local velocity = Instance.new("BodyVelocity", hit)
  269. velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
  270. velocity.Velocity = handle.CFrame.lookVector * -math.random(15,25)
  271. game.Debris:AddItem(velocity, 0.1)
  272. else
  273. hitt.Parent:findFirstChildOfClass("Humanoid").Health = 0
  274. local function searchforweld(wot)
  275. for i,v in pairs(wot:GetChildren()) do
  276. searchforweld(v)
  277. if v.ClassName == "Weld" or v.ClassName == "Motor6D" and v.Name ~= "ouch_weld" then
  278. v:destroy()
  279. end
  280. end
  281. end
  282. searchforweld(hitt.Parent)
  283. ragdollkill(hitt.Parent)
  284. end
  285. end
  286. local function bbb()
  287. wait(bullethitflesh.TimeLength)
  288. bullethitflesh.Parent = handle
  289. end
  290. spawn(bbb)
  291. ball.BrickColor = BrickColor.new("Maroon")
  292. ball.Material = "Pebble"
  293. else
  294. if not hitt.Parent:findFirstChildOfClass("Humanoid") and hitt.Parent.ClassName == "Model" then
  295. hitt:BreakJoints()
  296. local velocity = Instance.new("BodyVelocity", hitt)
  297. velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  298. velocity.Velocity = handle.CFrame.lookVector * -math.random(10,30)
  299. local function cancollide()
  300. wait(0.1)
  301. hitt.CanCollide = true
  302. velocity:destroy()
  303. end
  304. spawn(cancollide)
  305. end
  306. ball.BrickColor = hitt.BrickColor
  307. ball.Material = "Cobblestone"
  308. local function fadeaway()
  309. wait(20)
  310. for i = 1,100 do
  311. ball.Transparency = ball.Transparency + 0.01
  312. wait()
  313. end
  314. ball:destroy()
  315. end
  316. end
  317. local function aaa()
  318. wait(bullethit.TimeLength)
  319. bullethit.Parent = handle
  320. end
  321. spawn(aaa)
  322. end
  323. if hit ~= nil then
  324. if hit.Parent ~= nil then
  325. 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
  326. if hit.Size.z < hit.Size.x then
  327. if hit.Size.z < 1.5 then
  328. local sha = Instance.new("BoolValue", hit)
  329. sha.Name = "shattered"
  330. local shatter = Instance.new("Part", workspace)
  331. shatter.Transparency = hit.Transparency
  332. shatter.Material = hit.Material
  333. shatter.BrickColor = hit.BrickColor
  334. shatter.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z)
  335. shatter.CanCollide = hit.CanCollide
  336. shatter.CFrame = hit.CFrame * CFrame.new(shatter.Size.x/2,shatter.Size.y/2,0)
  337. shatter:BreakJoints()
  338. shatter.Velocity = handle.CFrame.lookVector * -20
  339. game.Debris:AddItem(shatter, 15)
  340. --
  341. local shatter = Instance.new("Part", workspace)
  342. shatter.Transparency = hit.Transparency
  343. shatter.Material = hit.Material
  344. shatter.BrickColor = hit.BrickColor
  345. shatter.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z)
  346. shatter.CanCollide = hit.CanCollide
  347. shatter.CFrame = hit.CFrame * CFrame.new(-shatter.Size.x/2,shatter.Size.y/2,0)
  348. shatter:BreakJoints()
  349. shatter.Velocity = handle.CFrame.lookVector * -20
  350. game.Debris:AddItem(shatter, 15)
  351. --
  352. local shatter = Instance.new("Part", workspace)
  353. shatter.Transparency = hit.Transparency
  354. shatter.Material = hit.Material
  355. shatter.BrickColor = hit.BrickColor
  356. shatter.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z)
  357. shatter.CanCollide = hit.CanCollide
  358. shatter.CFrame = hit.CFrame * CFrame.new(shatter.Size.x/2,-shatter.Size.y/2,0)
  359. shatter:BreakJoints()
  360. shatter.Velocity = handle.CFrame.lookVector * -20
  361. game.Debris:AddItem(shatter, 15)
  362. --
  363. local shatter = Instance.new("Part", workspace)
  364. shatter.Transparency = hit.Transparency
  365. shatter.Material = hit.Material
  366. shatter.BrickColor = hit.BrickColor
  367. shatter.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z)
  368. shatter.CanCollide = hit.CanCollide
  369. shatter.CFrame = hit.CFrame * CFrame.new(-shatter.Size.x/2,-shatter.Size.y/2,0)
  370. shatter:BreakJoints()
  371. shatter.Velocity = handle.CFrame.lookVector * -20
  372. game.Debris:AddItem(shatter, 15)
  373. --
  374. hit.Anchored = true
  375. hit.Transparency = 1
  376. hit.CanCollide = false
  377. local function stopshattering()
  378. shattersound.Parent = hit
  379. shattersound:Play()
  380. shattersound.MaxDistance = 30
  381. wait(shattersound.TimeLength/2)
  382. shattersound.Parent = handle
  383. hit:destroy()
  384. end
  385. spawn(stopshattering)
  386. end
  387. elseif hit.Size.x < hit.Size.z then
  388. if hit.Size.x < 1.5 then
  389. local sha = Instance.new("BoolValue", hit)
  390. sha.Name = "shattered"
  391. local shatter = Instance.new("Part", workspace)
  392. shatter.Transparency = hit.Transparency
  393. shatter.Material = hit.Material
  394. shatter.BrickColor = hit.BrickColor
  395. shatter.Size = Vector3.new(hit.Size.x,hit.Size.y/2,hit.Size.z/2)
  396. shatter.CanCollide = hit.CanCollide
  397. shatter.CFrame = hit.CFrame * CFrame.new(0,shatter.Size.y/2,shatter.Size.z/2)
  398. shatter:BreakJoints()
  399. shatter.Velocity = handle.CFrame.lookVector * -20
  400. game.Debris:AddItem(shatter, 15)
  401. --
  402. local shatter = Instance.new("Part", workspace)
  403. shatter.Transparency = hit.Transparency
  404. shatter.Material = hit.Material
  405. shatter.BrickColor = hit.BrickColor
  406. shatter.Size = Vector3.new(hit.Size.x,hit.Size.y/2,hit.Size.z/2)
  407. shatter:BreakJoints()
  408. shatter.CanCollide = hit.CanCollide
  409. shatter.CFrame = hit.CFrame * CFrame.new(0,-shatter.Size.y/2,shatter.Size.z/2)
  410. shatter.Velocity = handle.CFrame.lookVector * -20
  411. game.Debris:AddItem(shatter, 15)
  412. --
  413. local shatter = Instance.new("Part", workspace)
  414. shatter.Transparency = hit.Transparency
  415. shatter.Material = hit.Material
  416. shatter.BrickColor = hit.BrickColor
  417. shatter.Size = Vector3.new(hit.Size.x,hit.Size.y/2,hit.Size.z/2)
  418. shatter.CanCollide = hit.CanCollide
  419. shatter.CFrame = hit.CFrame * CFrame.new(0,shatter.Size.y/2,-shatter.Size.z/2)
  420. shatter:BreakJoints()
  421. shatter.Velocity = handle.CFrame.lookVector * -20
  422. game.Debris:AddItem(shatter, 15)
  423. --
  424. local shatter = Instance.new("Part", workspace)
  425. shatter.Transparency = hit.Transparency
  426. shatter.Material = hit.Material
  427. shatter.BrickColor = hit.BrickColor
  428. shatter.Size = Vector3.new(hit.Size.x,hit.Size.y/2,hit.Size.z/2)
  429. shatter.CanCollide = hit.CanCollide
  430. shatter.CFrame = hit.CFrame * CFrame.new(0,-shatter.Size.y/2,-shatter.Size.z/2)
  431. shatter:BreakJoints()
  432. shatter.Velocity = handle.CFrame.lookVector * -20
  433. game.Debris:AddItem(shatter, 15)
  434. --
  435. hit.Anchored = true
  436. hit.Transparency = 1
  437. hit.CanCollide = false
  438. local function stopshattering()
  439. shattersound.Parent = hit
  440. shattersound:Play()
  441. shattersound.MaxDistance = 30
  442. wait(shattersound.TimeLength/2)
  443. shattersound.Parent = handle
  444. hit:destroy()
  445. end
  446. spawn(stopshattering)
  447. end
  448. end
  449. end
  450. end
  451. if hit.Parent.ClassName == "Accessory" or hit.Parent.ClassName == "Hat" then
  452. for i,v in pairs(hit:GetChildren()) do
  453. if v.ClassName == "Attachment" or v.ClassName == "Weld" or v.ClassName == "Motor6D" then
  454. v:destroy()
  455. end
  456. end
  457. hit.Parent.Parent = workspace
  458. hit.CanCollide = false
  459. local velocity = Instance.new("BodyVelocity", hit)
  460. velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  461. velocity.Velocity = handle.CFrame.lookVector * -math.random(10,30)
  462. local function cancollide()
  463. wait(0.1)
  464. hit.CanCollide = true
  465. velocity:destroy()
  466. end
  467. spawn(cancollide)
  468. else
  469. makewound(hit)
  470. end
  471. end
  472. for i = 1,10 do
  473. if plr.Character.Torso:findFirstChild("RightArmWeld") then
  474. plr.Character.Torso:findFirstChild("RightArmWeld").C1 = plr.Character.Torso:findFirstChild("RightArmWeld").C1 * CFrame.fromEulerAnglesXYZ(0.055,0,0)
  475. heartbeat:wait()
  476. end
  477. end
  478. canuse = true
  479. end
  480. elseif whataction == "point" then
  481. if plr.Character:findFirstChild("Torso") then
  482. if not plr.Character.Torso:findFirstChild("HeadWeld") then
  483. local head = Instance.new("Weld", plr.Character.Torso)
  484. head.Part0 = plr.Character.Torso
  485. head.Part1 = plr.Character.Head
  486. head.C0 = CFrame.new(0,1.5,0)
  487. head.C1 = CFrame.new(0,-0.5,0)
  488. head.Name = "HeadWeld"
  489. end
  490. if not plr.Character.Torso:findFirstChild("RightArmWeld") then
  491. local rightarm = Instance.new("Weld", plr.Character.Torso)
  492. rightarm.Part0 = plr.Character.Torso
  493. rightarm.Part1 = plr.Character["Right Arm"]
  494. rightarm.C0 = CFrame.new(1.5,0,0)
  495. rightarm.C1 = CFrame.new(0,0.5,0)
  496. rightarm.Name = "RightArmWeld"
  497. end
  498. if not plr.Character.Torso:findFirstChild("LeftArmWeld") then
  499. local leftarm = Instance.new("Weld", plr.Character.Torso)
  500. leftarm.Part0 = plr.Character.Torso
  501. leftarm.Part1 = plr.Character["Left Arm"]
  502. leftarm.C0 = CFrame.new(-1.5,0,0)
  503. leftarm.C1 = CFrame.new(0,0.5,0)
  504. leftarm.Name = "LeftArmWeld"
  505. end
  506. if plr.Character.Torso:findFirstChild("RightArmWeld") then
  507. 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)
  508. end
  509. if plr.Character.Torso:findFirstChild("HeadWeld") then
  510. plr.Character.Torso:findFirstChild("HeadWeld").C0 = CFrame.new(0,1,0) * CFrame.fromEulerAnglesXYZ(math.asin((pos-origin).unit.y),-math.pi/3,0)
  511. end
  512. if plr.Character.Torso:findFirstChild("LeftArmWeld") then
  513. plr.Character.Torso:findFirstChild("LeftArmWeld").C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.asin((pos-origin).unit.y)/2,0,0)
  514. end
  515. end
  516. end
  517. end
  518. shootevent.OnServerEvent:connect(dosomething)
  519. function ragdollkill(character)
  520. local victimshumanoid = character:findFirstChildOfClass("Humanoid")
  521. if not character:findFirstChild("UpperTorso") then
  522. character.Archivable = true
  523. for i,v in pairs(character:GetChildren()) do
  524. if v.ClassName == "Sound" then
  525. v:remove()
  526. end
  527. for q,w in pairs(v:GetChildren()) do
  528. if w.ClassName == "Sound" then
  529. w:remove()
  530. end
  531. end
  532. end
  533. local ragdoll = character:Clone()
  534. ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  535. if ragdoll:findFirstChild("Health") then
  536. if ragdoll:findFirstChild("Health").ClassName == "Script" then
  537. ragdoll:findFirstChild("Health").Disabled = true
  538. end
  539. end
  540. for i,v in pairs(character:GetChildren()) do
  541. if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
  542. v:destroy()
  543. end
  544. end
  545. for i,v in pairs(character:GetChildren()) do
  546. if v.ClassName == "Accessory" then
  547. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  548. if attachment1 then
  549. for q,w in pairs(character:GetChildren()) do
  550. if w.ClassName == "Part" then
  551. local attachment2 = w:findFirstChild(attachment1.Name)
  552. if attachment2 then
  553. local hinge = Instance.new("HingeConstraint", v.Handle)
  554. hinge.Attachment0 = attachment1
  555. hinge.Attachment1 = attachment2
  556. hinge.LimitsEnabled = true
  557. hinge.LowerAngle = 0
  558. hinge.UpperAngle = 0
  559. end
  560. end
  561. end
  562. end
  563. end
  564. end
  565. ragdoll.Parent = workspace
  566. if ragdoll:findFirstChild("Right Arm") then
  567. local glue = Instance.new("Glue", ragdoll.Torso)
  568. glue.Part0 = ragdoll.Torso
  569. glue.Part1 = ragdoll:findFirstChild("Right Arm")
  570. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  571. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  572. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
  573. limbcollider.Size = Vector3.new(1.4,1,1)
  574. limbcollider.Shape = "Cylinder"
  575. limbcollider.Transparency = 1
  576. limbcollider.Name = "LimbCollider"
  577. local limbcolliderweld = Instance.new("Weld", limbcollider)
  578. limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
  579. limbcolliderweld.Part1 = limbcollider
  580. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  581. end
  582. if ragdoll:findFirstChild("Left Arm") then
  583. local glue = Instance.new("Glue", ragdoll.Torso)
  584. glue.Part0 = ragdoll.Torso
  585. glue.Part1 = ragdoll:findFirstChild("Left Arm")
  586. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  587. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  588. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
  589. limbcollider.Size = Vector3.new(1.4,1,1)
  590. limbcollider.Shape = "Cylinder"
  591. limbcollider.Name = "LimbCollider"
  592. limbcollider.Transparency = 1
  593. local limbcolliderweld = Instance.new("Weld", limbcollider)
  594. limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
  595. limbcolliderweld.Part1 = limbcollider
  596. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  597. end
  598. if ragdoll:findFirstChild("Left Leg") then
  599. local glue = Instance.new("Glue", ragdoll.Torso)
  600. glue.Part0 = ragdoll.Torso
  601. glue.Part1 = ragdoll:findFirstChild("Left Leg")
  602. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  603. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  604. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
  605. limbcollider.Size = Vector3.new(1.4,1,1)
  606. limbcollider.Shape = "Cylinder"
  607. limbcollider.Name = "LimbCollider"
  608. limbcollider.Transparency = 1
  609. local limbcolliderweld = Instance.new("Weld", limbcollider)
  610. limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
  611. limbcolliderweld.Part1 = limbcollider
  612. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  613. end
  614. if ragdoll:findFirstChild("Right Leg") then
  615. local glue = Instance.new("Glue", ragdoll.Torso)
  616. glue.Part0 = ragdoll.Torso
  617. glue.Part1 = ragdoll:findFirstChild("Right Leg")
  618. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  619. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  620. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
  621. limbcollider.Size = Vector3.new(1.4,1,1)
  622. limbcollider.Shape = "Cylinder"
  623. limbcollider.Name = "LimbCollider"
  624. limbcollider.Transparency = 1
  625. local limbcolliderweld = Instance.new("Weld", limbcollider)
  626. limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
  627. limbcolliderweld.Part1 = limbcollider
  628. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  629. end
  630. if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
  631. local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
  632. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  633. local connection = Instance.new('HingeConstraint', ragdoll["Head"])
  634. connection.LimitsEnabled = true
  635. connection.Attachment0 = ragdoll.Torso.NeckAttachment
  636. connection.Attachment1 = HeadAttachment
  637. connection.UpperAngle = 60
  638. connection.LowerAngle = -60
  639. elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
  640. local hedweld = Instance.new("Weld", ragdoll.Torso)
  641. hedweld.Part0 = ragdoll.Torso
  642. hedweld.Part1 = ragdoll.Head
  643. hedweld.C0 = CFrame.new(0,1.5,0)
  644. end
  645. game.Debris:AddItem(ragdoll, 30)
  646. local function aaaalol()
  647. wait(0.2)
  648. local function searchforvelocity(wot)
  649. for i,v in pairs(wot:GetChildren()) do
  650. searchforvelocity(v)
  651. if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
  652. v:destroy()
  653. end
  654. end
  655. end
  656. searchforvelocity(ragdoll)
  657. wait(0.5)
  658. if ragdoll:findFirstChildOfClass("Humanoid") then
  659. ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  660. end
  661. if ragdoll:findFirstChild("HumanoidRootPart") then
  662. ragdoll:findFirstChild("HumanoidRootPart"):destroy()
  663. end
  664. end
  665. spawn(aaaalol)
  666. elseif character:findFirstChild("UpperTorso") then
  667. character.Archivable = true
  668. for i,v in pairs(character:GetChildren()) do
  669. if v.ClassName == "Sound" then
  670. v:remove()
  671. end
  672. for q,w in pairs(v:GetChildren()) do
  673. if w.ClassName == "Sound" then
  674. w:remove()
  675. end
  676. end
  677. end
  678. local ragdoll = character:Clone()
  679. ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  680. if ragdoll:findFirstChild("Health") then
  681. if ragdoll:findFirstChild("Health").ClassName == "Script" then
  682. ragdoll:findFirstChild("Health").Disabled = true
  683. end
  684. end
  685. for i,v in pairs(character:GetChildren()) do
  686. if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
  687. v:destroy()
  688. end
  689. end
  690. for i,v in pairs(character:GetChildren()) do
  691. if v.ClassName == "Accessory" then
  692. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  693. if attachment1 then
  694. for q,w in pairs(character:GetChildren()) do
  695. if w.ClassName == "Part" or w.ClassName == "MeshPart" then
  696. local attachment2 = w:findFirstChild(attachment1.Name)
  697. if attachment2 then
  698. local hinge = Instance.new("HingeConstraint", v.Handle)
  699. hinge.Attachment0 = attachment1
  700. hinge.Attachment1 = attachment2
  701. hinge.LimitsEnabled = true
  702. hinge.LowerAngle = 0
  703. hinge.UpperAngle = 0
  704. end
  705. end
  706. end
  707. end
  708. end
  709. end
  710. ragdoll.Parent = workspace
  711. local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
  712. Humanoid.PlatformStand = true
  713. local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
  714. local connection = Instance.new('BallSocketConstraint', limb)
  715. connection.LimitsEnabled = true
  716. connection.Attachment0 = attachementone
  717. connection.Attachment1 = attachmenttwo
  718. connection.TwistLimitsEnabled = true
  719. connection.TwistLowerAngle = twistlower
  720. connection.TwistUpperAngle = twistupper
  721. local limbcollider = Instance.new("Part", limb)
  722. limbcollider.Size = Vector3.new(0.1,1,1)
  723. limbcollider.Shape = "Cylinder"
  724. limbcollider.Transparency = 1
  725. limbcollider:BreakJoints()
  726. local limbcolliderweld = Instance.new("Weld", limbcollider)
  727. limbcolliderweld.Part0 = limb
  728. limbcolliderweld.Part1 = limbcollider
  729. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  730. end
  731. local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
  732. local connection = Instance.new('HingeConstraint', limb)
  733. connection.LimitsEnabled = true
  734. connection.Attachment0 = attachementone
  735. connection.Attachment1 = attachmenttwo
  736. connection.LimitsEnabled = true
  737. connection.LowerAngle = lower
  738. connection.UpperAngle = upper
  739. local limbcollider = Instance.new("Part", limb)
  740. limbcollider.Size = Vector3.new(0.1,1,1)
  741. limbcollider.Shape = "Cylinder"
  742. limbcollider.Transparency = 1
  743. limbcollider:BreakJoints()
  744. local limbcolliderweld = Instance.new("Weld", limbcollider)
  745. limbcolliderweld.Part0 = limb
  746. limbcolliderweld.Part1 = limbcollider
  747. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  748. end
  749. local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
  750. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  751. if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
  752. makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
  753. end
  754. makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
  755. makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
  756. makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
  757. makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
  758. --
  759. makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
  760. makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
  761. makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
  762. --
  763. makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
  764. makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
  765. makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
  766. --
  767. makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
  768. makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
  769. makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
  770. for i,v in pairs(Humanoid.Parent:GetChildren()) do
  771. if v.ClassName == "Accessory" then
  772. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  773. if attachment1 then
  774. for q,w in pairs(Humanoid.Parent:GetChildren()) do
  775. if w.ClassName == "Part" then
  776. local attachment2 = w:findFirstChild(attachment1.Name)
  777. if attachment2 then
  778. local hinge = Instance.new("HingeConstraint", v.Handle)
  779. hinge.Attachment0 = attachment1
  780. hinge.Attachment1 = attachment2
  781. hinge.LimitsEnabled = true
  782. hinge.LowerAngle = 0
  783. hinge.UpperAngle = 0
  784. end
  785. end
  786. end
  787. end
  788. end
  789. end
  790. for i,v in pairs(ragdoll:GetChildren()) do
  791. for q,w in pairs(v:GetChildren()) do
  792. if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] then
  793. w:destroy()
  794. end
  795. end
  796. end
  797. if ragdoll:findFirstChild("HumanoidRootPart") then
  798. ragdoll.HumanoidRootPart.Anchored = true
  799. ragdoll.HumanoidRootPart.CanCollide = false
  800. end
  801. if ragdoll:findFirstChildOfClass("Humanoid") then
  802. ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  803. end
  804. local function waitfordatmoment()
  805. wait(0.2)
  806. local function searchforvelocity(wot)
  807. for i,v in pairs(wot:GetChildren()) do
  808. searchforvelocity(v)
  809. if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
  810. v:destroy()
  811. end
  812. end
  813. end
  814. searchforvelocity(ragdoll)
  815. end
  816. spawn(waitfordatmoment)
  817. game.Debris:AddItem(ragdoll, 30)
  818. end
  819. end
  820. end))
  821. Camera16.Name = "ThumbnailCamera"
  822. Camera16.Parent = Tool0
  823. 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)
  824. 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)
  825. Camera16.Focus = CFrame.new(1.3690753, 1.08884549, -16.1960888, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  826. Camera16.focus = CFrame.new(1.3690753, 1.08884549, -16.1960888, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  827. Script17.Name = "ShellScript"
  828. Script17.Parent = Tool0
  829. table.insert(cors,sandbox(Script17,function()
  830. --By Lundo_Fett
  831. canuse = true
  832. heartbeat = game:GetService("RunService").Heartbeat
  833. tool = script.Parent
  834. handle = tool.Handle
  835. shoot = handle.gunshot
  836. shattersound = handle.shatter
  837. empty = handle.empty
  838. shootevent = tool.GunEvent
  839. equip = handle.equip
  840. unequip = handle.unequip
  841. bullethitflesh = handle.bullethitflesh
  842. bullethit = handle.bullethit
  843. bulletcrack = handle["supersonic bullet crack"]
  844. function dosomething(plr, whataction, pos, origin)
  845. if whataction == "shoot" then
  846. wait(0.4)
  847. script.Parent.Handle.shell.Pitch = 1 + math.random(1,2)/10
  848. script.Parent.Handle.shell:Play()
  849. end
  850. end
  851. shootevent.OnServerEvent:connect(dosomething)
  852.  
  853. end))
  854. LocalScript18.Name = "Credits"
  855. LocalScript18.Parent = Tool0
  856. table.insert(cors,sandbox(LocalScript18,function()
  857. -- Credit to Rufus14 for making the gun, Rratewerani for originailly editing it, and Lundo_Fett
  858. -- for editing even more.
  859.  
  860.  
  861.  
  862.  
  863.  
  864. --ran out of room to fit in one line whatyu doin sotp you know there's nothing here? 👌GOT EM
  865.  
  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. --whatyu doin sotp you know there's nothing here? 👌GOT EM
  994.  
  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. --whatyu doin sotp you know there's nothing here? 👌GOT EM
  1320.  
  1321. end))
  1322. Script19.Name = "ShellScript"
  1323. Script19.Parent = Tool0
  1324. table.insert(cors,sandbox(Script19,function()
  1325. --By Lundo_Fett
  1326. canuse = true
  1327. heartbeat = game:GetService("RunService").Heartbeat
  1328. tool = script.Parent
  1329. handle = tool.Handle
  1330. shoot = handle.gunshot
  1331. shattersound = handle.shatter
  1332. empty = handle.empty
  1333. shootevent = tool.GunEvent
  1334. equip = handle.equip
  1335. unequip = handle.unequip
  1336. bullethitflesh = handle.bullethitflesh
  1337. bullethit = handle.bullethit
  1338. bulletcrack = handle["supersonic bullet crack"]
  1339. function dosomething(plr, whataction, pos, origin)
  1340. if whataction == "shoot" then
  1341. local shell = Instance.new("Part")
  1342. shell.CFrame = handle.CFrame * CFrame.fromEulerAnglesXYZ(-1.5,0,0)
  1343. shell.Size = Vector3.new(1,1,1)
  1344. shell.BrickColor = BrickColor.new(24)
  1345. shell.Reflectance = .5
  1346. shell.CanCollide = false
  1347. shell.BottomSurface = 0
  1348. shell.TopSurface = 0
  1349. shell.Name = "Shell"
  1350. shell.Velocity =handle.CFrame.lookVector * 30 + Vector3.new(math.random(-10,10),20,math.random(-10,10))
  1351. shell.RotVelocity = Vector3.new(0,200,0)
  1352. local shellmesh = Instance.new("CylinderMesh")
  1353. shellmesh.Scale = Vector3.new(0.1, 0.8, 0.1)
  1354. shellmesh.Parent = shell
  1355. shell.Parent = game.Workspace
  1356. game:GetService("Debris"):addItem(shell,2)
  1357.  
  1358. local shellmesh = Instance.new("SpecialMesh")
  1359. shellmesh.Scale = Vector3.new(0.9,0.9,3)
  1360. shellmesh.MeshId = "http://www.roblox.com/asset/?id=95387759"
  1361. shellmesh.TextureId = "http://www.roblox.com/asset/?id=95387789"
  1362. shellmesh.MeshType = "FileMesh"
  1363. shellmesh.Parent = shell
  1364. wait(0.1)
  1365. shell.CanCollide = true
  1366. end
  1367. end
  1368. shootevent.OnServerEvent:connect(dosomething)
  1369.  
  1370. end))
  1371. Script20.Name = "ShellScript"
  1372. Script20.Parent = Tool0
  1373. table.insert(cors,sandbox(Script20,function()
  1374. --By Lundo_Fett
  1375. canuse = true
  1376. heartbeat = game:GetService("RunService").Heartbeat
  1377. tool = script.Parent
  1378. handle = tool.Handle
  1379. shoot = handle.gunshot
  1380. shattersound = handle.shatter
  1381. empty = handle.empty
  1382. shootevent = tool.GunEvent
  1383. equip = handle.equip
  1384. unequip = handle.unequip
  1385. bullethitflesh = handle.bullethitflesh
  1386. bullethit = handle.bullethit
  1387. bulletcrack = handle["supersonic bullet crack"]
  1388. flasjhlightofyeet = script.Parent.Handle.FlashFX.Enabled
  1389. function dosomething(plr, whataction, pos, origin)
  1390. if whataction == "shoot" then
  1391. flasjhlightofyeet = true
  1392. wait(0.1)
  1393. flasjhlightofyeet = false
  1394. end
  1395. end
  1396. shootevent.OnServerEvent:connect(dosomething)
  1397.  
  1398. end))
  1399. for i,v in pairs(mas:GetChildren()) do
  1400. v.Parent = script
  1401. pcall(function() v:MakeJoints() end)
  1402. end
  1403. mas:Destroy()
  1404. for i,v in pairs(cors) do
  1405. spawn(function()
  1406. pcall(v)
  1407. end)
  1408. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement