Advertisement
The_God_M8

rrrrrrrrrr

May 10th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.25 KB | None | 0 0
  1. --]]
  2. --//====================================================\\--
  3. --|| CREATED BY SHACKLUSTER
  4. --\\====================================================//--
  5. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  6. local Player,game,owner = owner,game
  7. local RealPlayer = Player
  8. do
  9. print("FE Compatibility code by Mokiros")
  10. local rp = RealPlayer
  11. script.Parent = rp.Character
  12.  
  13. --RemoteEvent for communicating
  14. local Event = Instance.new("RemoteEvent")
  15. Event.Name = "UserInput_Event"
  16.  
  17. --Fake event to make stuff like Mouse.KeyDown work
  18. local function fakeEvent()
  19. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  20. t.connect = t.Connect
  21. return t
  22. end
  23.  
  24. --Creating fake input objects with fake variables
  25. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  26. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  27. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  28. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  29. end}
  30. --Merged 2 functions into one by checking amount of arguments
  31. CAS.UnbindAction = CAS.BindAction
  32.  
  33. --This function will trigger the events that have been :Connect()'ed
  34. local function te(self,ev,...)
  35. local t = m[ev]
  36. if t and t._fakeEvent then
  37. for _,f in pairs(t.Functions) do
  38. f(...)
  39. end
  40. end
  41. end
  42. m.TrigEvent = te
  43. UIS.TrigEvent = te
  44.  
  45. Event.OnServerEvent:Connect(function(plr,io)
  46. if plr~=rp then return end
  47. m.Target = io.Target
  48. m.Hit = io.Hit
  49. if not io.isMouse then
  50. local b = io.UserInputState == Enum.UserInputState.Begin
  51. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  52. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  53. end
  54. for _,t in pairs(CAS.Actions) do
  55. for _,k in pairs(t.Keys) do
  56. if k==io.KeyCode then
  57. t.Function(t.Name,io.UserInputState,io)
  58. end
  59. end
  60. end
  61. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  62. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  63. end
  64. end)
  65. Event.Parent = NLS([==[
  66. local Player = game:GetService("Players").LocalPlayer
  67. local Event = script:WaitForChild("UserInput_Event")
  68.  
  69. local Mouse = Player:GetMouse()
  70. local UIS = game:GetService("UserInputService")
  71. local input = function(io,a)
  72. if a then return end
  73. --Since InputObject is a client-side instance, we create and pass table instead
  74. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  75. end
  76. UIS.InputBegan:Connect(input)
  77. UIS.InputEnded:Connect(input)
  78.  
  79. local h,t
  80. --Give the server mouse data 30 times every second, but only if the values changed
  81. --If player is not moving their mouse, client won't fire events
  82. while wait(1/30) do
  83. if h~=Mouse.Hit or t~=Mouse.Target then
  84. h,t=Mouse.Hit,Mouse.Target
  85. Event:FireServer({isMouse=true,Target=t,Hit=h})
  86. end
  87. end]==],Player.Character)
  88.  
  89. ----Sandboxed game object that allows the usage of client-side methods and services
  90. --Real game object
  91. local _rg = game
  92.  
  93. --Metatable for fake service
  94. local fsmt = {
  95. __index = function(self,k)
  96. local s = rawget(self,"_RealService")
  97. if s then return s[k] end
  98. end,
  99. __newindex = function(self,k,v)
  100. local s = rawget(self,"_RealService")
  101. if s then s[k]=v end
  102. end,
  103. __call = function(self,...)
  104. local s = rawget(self,"_RealService")
  105. if s then return s(...) end
  106. end
  107. }
  108. local function FakeService(t,RealService)
  109. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  110. return setmetatable(t,fsmt)
  111. end
  112.  
  113. --Fake game object
  114. local g = {
  115. GetService = function(self,s)
  116. return self[s]
  117. end,
  118. Players = FakeService({
  119. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  120. },"Players"),
  121. UserInputService = FakeService(UIS,"UserInputService"),
  122. ContextActionService = FakeService(CAS,"ContextActionService"),
  123. }
  124. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  125. g.service = g.GetService
  126.  
  127. g.RunService = FakeService({
  128. RenderStepped = _rg:GetService("RunService").Heartbeat,
  129. BindToRenderStep = function(self,name,_,fun)
  130.  
  131. end,
  132. UnbindFromRenderStep = function(self,name)
  133. self._btrs[name]:Disconnect()
  134. end,
  135. },"RunService")
  136.  
  137. setmetatable(g,{
  138. __index=function(self,s)
  139. return _rg:GetService(s) or typeof(_rg[s])=="function"
  140. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  141. end,
  142. __newindex = fsmt.__newindex,
  143. __call = fsmt.__call
  144. })
  145. --Changing owner to fake player object to support owner:GetMouse()
  146. game,owner = g,g.Players.LocalPlayer
  147. end
  148.  
  149. local Scale = owner.Character.Torso.Size.X/2*(owner.Character.Torso:FindFirstChild("ScaleInserted") ~= nil and owner.Character.Torso:FindFirstChild("ScaleInserted").Scale.Z or 1)*0.8
  150. local Speed = 20*Scale
  151. local Gravity = 0.1
  152.  
  153. local Player = owner
  154. local Character = Player.Character
  155. local Humanoid = Character.Humanoid
  156. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
  157. local Torso = Character.HumanoidRootPart
  158. local Mouse = owner:GetMouse()
  159. local RenderStepped = game:GetService("RunService").RenderStepped
  160. local Camera = Workspace.CurrentCamera
  161. Camera:ClearAllChildren()
  162. local Model = Instance.new("Model",Character)
  163. local IgnoreList = {Character,Workspace.Terrain}
  164.  
  165. local Part0Joint = CFrame.new(Vector3.new(1,0.75,0)*Scale*1.25)
  166. local Part1Joint = CFrame.new(Vector3.new(-0.5,0.75,0)*Scale*1.25)
  167. local RotationOffset = CFrame.Angles(math.rad(90),math.rad(0),0)
  168. local Gangster = false
  169.  
  170. local Part0JointHead = CFrame.new(Vector3.new(0,1,0)*Scale*1.25)
  171. local Part1JointHead = CFrame.new(Vector3.new(0,-0.5,0)*Scale*1.25)
  172. local RotationOffsetHead = CFrame.Angles(0,0,0)
  173.  
  174. local Handle = Instance.new("Part",Model)
  175. Handle.CanCollide = false
  176. Handle.Name = "Handle"
  177. Handle.Position = Vector3.new(0,100,0)
  178. Handle:BreakJoints()
  179. Handle.FormFactor = "Custom"
  180. Handle.Size = Vector3.new(0.2,0.2,0.2)
  181. Handle.TopSurface = "SmoothNoOutlines"
  182. Handle.BottomSurface = "SmoothNoOutlines"
  183. Handle.FrontSurface = "SmoothNoOutlines"
  184. Handle.BackSurface = "SmoothNoOutlines"
  185. Handle.RightSurface = "SmoothNoOutlines"
  186. Handle.LeftSurface = "SmoothNoOutlines"
  187. Handle.BrickColor = BrickColor.new("Black")
  188. local Mesh = Instance.new("BlockMesh",Handle)
  189. Mesh.Scale = Vector3.new(0.25,1,0.4) / 0.2 * Scale
  190. local HandleWeld = Instance.new("Motor6D")
  191. HandleWeld.Part0 = Character["Right Arm"]
  192. HandleWeld.Part1 = Handle
  193. HandleWeld.C0 = CFrame.new(Vector3.new(0,-1,0)*Scale) * CFrame.Angles(math.rad(-105),0,0)
  194. HandleWeld.Parent = Handle
  195.  
  196. local Part = Instance.new("Part",Model)
  197. Part.CanCollide = false
  198. Part.Position = Vector3.new(0,100,0)
  199. Part:BreakJoints()
  200. Part.FormFactor = "Custom"
  201. Part.Size = Vector3.new(0.2,0.2,0.2)
  202. Part.TopSurface = "SmoothNoOutlines"
  203. Part.BottomSurface = "SmoothNoOutlines"
  204. Part.FrontSurface = "SmoothNoOutlines"
  205. Part.BackSurface = "SmoothNoOutlines"
  206. Part.RightSurface = "SmoothNoOutlines"
  207. Part.LeftSurface = "SmoothNoOutlines"
  208. Part.BrickColor = BrickColor.new("Black")
  209. local Mesh = Instance.new("CylinderMesh",Part)
  210. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale
  211. local PartWeld = Instance.new("Motor6D")
  212. PartWeld.Part0 = Handle
  213. PartWeld.Part1 = Part
  214. PartWeld.C0 = CFrame.new(Vector3.new(-0.115,-0.475,-0.190)*Scale) * CFrame.Angles(0,0,0)
  215. PartWeld.Parent = Part
  216.  
  217. local Part = Instance.new("Part",Model)
  218. Part.CanCollide = false
  219. Part.Position = Vector3.new(0,100,0)
  220. Part:BreakJoints()
  221. Part.FormFactor = "Custom"
  222. Part.Size = Vector3.new(0.2,0.2,0.2)
  223. Part.TopSurface = "SmoothNoOutlines"
  224. Part.BottomSurface = "SmoothNoOutlines"
  225. Part.FrontSurface = "SmoothNoOutlines"
  226. Part.BackSurface = "SmoothNoOutlines"
  227. Part.RightSurface = "SmoothNoOutlines"
  228. Part.LeftSurface = "SmoothNoOutlines"
  229. Part.BrickColor = BrickColor.new("Black")
  230. local Mesh = Instance.new("CylinderMesh",Part)
  231. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale
  232. local PartWeld = Instance.new("Motor6D")
  233. PartWeld.Part0 = Handle
  234. PartWeld.Part1 = Part
  235. PartWeld.C0 = CFrame.new(Vector3.new(0.115,-0.475,0.190)*Scale) * CFrame.Angles(0,0,0)
  236. PartWeld.Parent = Part
  237.  
  238. local Part = Instance.new("Part",Model)
  239. Part.CanCollide = false
  240. Part.Position = Vector3.new(0,100,0)
  241. Part:BreakJoints()
  242. Part.FormFactor = "Custom"
  243. Part.Size = Vector3.new(0.2,0.2,0.2)
  244. Part.TopSurface = "SmoothNoOutlines"
  245. Part.BottomSurface = "SmoothNoOutlines"
  246. Part.FrontSurface = "SmoothNoOutlines"
  247. Part.BackSurface = "SmoothNoOutlines"
  248. Part.RightSurface = "SmoothNoOutlines"
  249. Part.LeftSurface = "SmoothNoOutlines"
  250. Part.BrickColor = BrickColor.new("Black")
  251. local Mesh = Instance.new("CylinderMesh",Part)
  252. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale
  253. local PartWeld = Instance.new("Motor6D")
  254. PartWeld.Part0 = Handle
  255. PartWeld.Part1 = Part
  256. PartWeld.C0 = CFrame.new(Vector3.new(-0.115,-0.475,0.190)*Scale) * CFrame.Angles(0,0,0)
  257. PartWeld.Parent = Part
  258.  
  259. local Part = Instance.new("Part",Model)
  260. Part.CanCollide = false
  261. Part.Position = Vector3.new(0,100,0)
  262. Part:BreakJoints()
  263. Part.FormFactor = "Custom"
  264. Part.Size = Vector3.new(0.2,0.2,0.2)
  265. Part.TopSurface = "SmoothNoOutlines"
  266. Part.BottomSurface = "SmoothNoOutlines"
  267. Part.FrontSurface = "SmoothNoOutlines"
  268. Part.BackSurface = "SmoothNoOutlines"
  269. Part.RightSurface = "SmoothNoOutlines"
  270. Part.LeftSurface = "SmoothNoOutlines"
  271. Part.BrickColor = BrickColor.new("Black")
  272. local Mesh = Instance.new("CylinderMesh",Part)
  273. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale
  274. local PartWeld = Instance.new("Motor6D")
  275. PartWeld.Part0 = Handle
  276. PartWeld.Part1 = Part
  277. PartWeld.C0 = CFrame.new(Vector3.new(0.115,-0.475,-0.190)*Scale) * CFrame.Angles(0,0,0)
  278. PartWeld.Parent = Part
  279.  
  280. local Part = Instance.new("Part",Model)
  281. Part.CanCollide = false
  282. Part.Position = Vector3.new(0,100,0)
  283. Part:BreakJoints()
  284. Part.FormFactor = "Custom"
  285. Part.Size = Vector3.new(0.2,0.2,0.2)
  286. Part.TopSurface = "SmoothNoOutlines"
  287. Part.BottomSurface = "SmoothNoOutlines"
  288. Part.FrontSurface = "SmoothNoOutlines"
  289. Part.BackSurface = "SmoothNoOutlines"
  290. Part.RightSurface = "SmoothNoOutlines"
  291. Part.LeftSurface = "SmoothNoOutlines"
  292. Part.BrickColor = BrickColor.new("Black")
  293. local Mesh = Instance.new("BlockMesh",Part)
  294. Mesh.Scale = Vector3.new(0.23,0.2,0.1) / 0.2 * Scale
  295. local PartWeld = Instance.new("Motor6D")
  296. PartWeld.Part0 = Handle
  297. PartWeld.Part1 = Part
  298. PartWeld.C0 = CFrame.new(Vector3.new(0,-0.475,-0.175)*Scale) * CFrame.Angles(0,0,0)
  299. PartWeld.Parent = Part
  300.  
  301. local Part = Instance.new("Part",Model)
  302. Part.CanCollide = false
  303. Part.Position = Vector3.new(0,100,0)
  304. Part:BreakJoints()
  305. Part.FormFactor = "Custom"
  306. Part.Size = Vector3.new(0.2,0.2,0.2)
  307. Part.TopSurface = "SmoothNoOutlines"
  308. Part.BottomSurface = "SmoothNoOutlines"
  309. Part.FrontSurface = "SmoothNoOutlines"
  310. Part.BackSurface = "SmoothNoOutlines"
  311. Part.RightSurface = "SmoothNoOutlines"
  312. Part.LeftSurface = "SmoothNoOutlines"
  313. Part.BrickColor = BrickColor.new("Black")
  314. local Mesh = Instance.new("BlockMesh",Part)
  315. Mesh.Scale = Vector3.new(0.23,0.2,0.1) / 0.2 * Scale
  316. local PartWeld = Instance.new("Motor6D")
  317. PartWeld.Part0 = Handle
  318. PartWeld.Part1 = Part
  319. PartWeld.C0 = CFrame.new(Vector3.new(0,-0.475,0.175)*Scale) * CFrame.Angles(0,0,0)
  320. PartWeld.Parent = Part
  321.  
  322. local Part = Instance.new("Part",Model)
  323. Part.CanCollide = false
  324. Part.Position = Vector3.new(0,100,0)
  325. Part:BreakJoints()
  326. Part.FormFactor = "Custom"
  327. Part.Size = Vector3.new(0.2,0.2,0.2)
  328. Part.TopSurface = "SmoothNoOutlines"
  329. Part.BottomSurface = "SmoothNoOutlines"
  330. Part.FrontSurface = "SmoothNoOutlines"
  331. Part.BackSurface = "SmoothNoOutlines"
  332. Part.RightSurface = "SmoothNoOutlines"
  333. Part.LeftSurface = "SmoothNoOutlines"
  334. Part.BrickColor = BrickColor.new("Black")
  335. local Mesh = Instance.new("BlockMesh",Part)
  336. Mesh.Scale = Vector3.new(0.1,0.2,0.38) / 0.2 * Scale
  337. local PartWeld = Instance.new("Motor6D")
  338. PartWeld.Part0 = Handle
  339. PartWeld.Part1 = Part
  340. PartWeld.C0 = CFrame.new(Vector3.new(-0.1,-0.475,0)*Scale) * CFrame.Angles(0,0,0)
  341. PartWeld.Parent = Part
  342.  
  343. local Part = Instance.new("Part",Model)
  344. Part.CanCollide = false
  345. Part.Position = Vector3.new(0,100,0)
  346. Part:BreakJoints()
  347. Part.FormFactor = "Custom"
  348. Part.Size = Vector3.new(0.2,0.2,0.2)
  349. Part.TopSurface = "SmoothNoOutlines"
  350. Part.BottomSurface = "SmoothNoOutlines"
  351. Part.FrontSurface = "SmoothNoOutlines"
  352. Part.BackSurface = "SmoothNoOutlines"
  353. Part.RightSurface = "SmoothNoOutlines"
  354. Part.LeftSurface = "SmoothNoOutlines"
  355. Part.BrickColor = BrickColor.new("Black")
  356. local Mesh = Instance.new("BlockMesh",Part)
  357. Mesh.Scale = Vector3.new(0.1,0.2,0.38) / 0.2 * Scale
  358. local PartWeld = Instance.new("Motor6D")
  359. PartWeld.Part0 = Handle
  360. PartWeld.Part1 = Part
  361. PartWeld.C0 = CFrame.new(Vector3.new(0.1,-0.475,0)*Scale) * CFrame.Angles(0,0,0)
  362. PartWeld.Parent = Part
  363.  
  364. local Part = Instance.new("Part",Model)
  365. Part.CanCollide = false
  366. Part.Position = Vector3.new(0,100,0)
  367. Part:BreakJoints()
  368. Part.FormFactor = "Custom"
  369. Part.Size = Vector3.new(0.2,0.2,0.2)
  370. Part.TopSurface = "SmoothNoOutlines"
  371. Part.BottomSurface = "SmoothNoOutlines"
  372. Part.FrontSurface = "SmoothNoOutlines"
  373. Part.BackSurface = "SmoothNoOutlines"
  374. Part.RightSurface = "SmoothNoOutlines"
  375. Part.LeftSurface = "SmoothNoOutlines"
  376. Part.BrickColor = BrickColor.new("Black")
  377. local Mesh = Instance.new("BlockMesh",Part)
  378. Mesh.Scale = Vector3.new(0.1,0.3,0.05) / 0.2 * Scale
  379. local PartWeld = Instance.new("Motor6D")
  380. PartWeld.Part0 = Handle
  381. PartWeld.Part1 = Part
  382. PartWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.25,-0.75)*Scale) * CFrame.Angles(math.rad(-10),0,0)
  383. PartWeld.Parent = Part
  384.  
  385. local Part = Instance.new("Part",Model)
  386. Part.CanCollide = false
  387. Part.Position = Vector3.new(0,100,0)
  388. Part:BreakJoints()
  389. Part.FormFactor = "Custom"
  390. Part.Size = Vector3.new(0.2,0.2,0.2)
  391. Part.TopSurface = "SmoothNoOutlines"
  392. Part.BottomSurface = "SmoothNoOutlines"
  393. Part.FrontSurface = "SmoothNoOutlines"
  394. Part.BackSurface = "SmoothNoOutlines"
  395. Part.RightSurface = "SmoothNoOutlines"
  396. Part.LeftSurface = "SmoothNoOutlines"
  397. Part.BrickColor = BrickColor.new("Black")
  398. local Mesh = Instance.new("BlockMesh",Part)
  399. Mesh.Scale = Vector3.new(0.1,0.05,0.625) / 0.2 * Scale
  400. local PartWeld = Instance.new("Motor6D")
  401. PartWeld.Part0 = Handle
  402. PartWeld.Part1 = Part
  403. PartWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.1,-0.435)*Scale)
  404. PartWeld.Parent = Part
  405.  
  406. if Humanoid then
  407. plrmodel = Humanoid.Parent
  408. if plrmodel.Humanoid.Health ~= 0 then
  409. --blood
  410. plrmodel.Archivable = true
  411. local Char = plrmodel
  412. local Hum = Char:FindFirstChild("Humanoid")
  413. local Tor = Char:FindFirstChild("Torso") or Char:FindFirstChild("UpperTorso")
  414. local Health = Hum.Health
  415.  
  416. local M = math.random
  417. local R = math.rad
  418. local rates = {.05, .075, .1, .15}
  419.  
  420. local smooth = function(P)
  421. local SM = Enum.SurfaceType.SmoothNoOutlines
  422. P.TopSurface = SM
  423. P.BottomSurface = SM
  424. P.RightSurface = SM
  425. P.LeftSurface = SM
  426. P.FrontSurface = SM
  427. P.BackSurface = SM
  428. end
  429.  
  430. local function BloodPool(Part,Size)
  431. local Pool = Instance.new("Part",game.Workspace)
  432. Pool.TopSurface = 0
  433. Pool.CanCollide = false
  434. Pool.BrickColor = BrickColor.new("Crimson")
  435. Pool.Transparency = 0
  436. Instance.new("CylinderMesh",Pool)
  437. Pool.Anchored = true
  438. Pool.Name = "BloodPoolPart"
  439. smooth(Pool)
  440. Pool.FormFactor = Enum.FormFactor.Custom
  441. Pool.Size = Size
  442. local c = Part.CFrame*CFrame.new(M(-3.01,3.01),-2.9,M(-3.01,3.01))
  443. coroutine.resume(coroutine.create(function()
  444. local rate = rates[M(1,#rates)]
  445. game.Debris:AddItem(Pool,15)
  446. for i = 1,M(25,70) do
  447. wait()
  448. Pool.CFrame = c
  449. Pool.Size = Pool.Size+Vector3.new(rate,0,rate)
  450. end
  451. wait(5)
  452. Pool:Destroy()
  453. end))
  454. end
  455.  
  456. local function BloodDrops(Size,Area)
  457. local Blood = Instance.new("Part",game.Workspace)
  458. Blood.BrickColor = BrickColor.new("Crimson")
  459. Blood.Parent = plrmodel
  460. Blood.TopSurface = 0
  461. Blood.CanCollide = false
  462. Blood.Anchored = false
  463. Blood.FormFactor = Enum.FormFactor.Custom
  464. Blood.Size = Size
  465. Blood.CFrame = Area*CFrame.new(M(-1.00,1.00),M(-1.00,1.00),M(-1.00,1.00))
  466. return Blood
  467. end
  468.  
  469.  
  470.  
  471. Hum.Changed:connect(function()
  472. if Hum.Health < Health then
  473.  
  474. Health = Hum.Health
  475. for i = 1, math.random(4,10)do
  476. local Size = Vector3.new(M(-0.25,0.25),.2,M(-.25,.25))
  477. local Blood = BloodDrops(Size,Tor.CFrame)
  478. local Stopper = false
  479. local Size2 = Vector3.new(M(-0.25,0.25),.2,M(-.25,.25))
  480. BloodPool(Tor,Size2)
  481. end
  482. end
  483. end)
  484. end
  485. --Ragdoll
  486. wait()
  487. function getAttachment0(attachmentName)
  488. for _,child in next,plrmodel:GetChildren() do
  489. local attachment = child:FindFirstChild(attachmentName)
  490. if attachment then
  491. return attachment
  492. end
  493. end
  494. end
  495. plrmodel.Humanoid.Died:Connect(function(var)
  496. local removeHRP = true
  497. local head = plrmodel["Head"]
  498. local leftarm = plrmodel["Left Arm"]
  499. local leftleg = plrmodel["Left Leg"]
  500. local rightleg = plrmodel["Right Leg"]
  501. local rightarm = plrmodel["Right Arm"]
  502. local torso = plrmodel.Torso
  503. local root = plrmodel.HumanoidRootPart
  504. if removeHRP == true then
  505. root:Destroy()
  506. end
  507. local rootA =Instance.new("Attachment")
  508. local HeadA = Instance.new("Attachment")
  509. local LeftArmA = Instance.new("Attachment")
  510. local LeftLegA = Instance.new("Attachment")
  511. local RightArmA = Instance.new("Attachment")
  512. local RightLegA = Instance.new("Attachment")
  513. local TorsoA = Instance.new("Attachment")
  514. local TorsoA1 = Instance.new("Attachment")
  515. local TorsoA2 = Instance.new("Attachment")
  516. local TorsoA3 = Instance.new("Attachment")
  517. local TorsoA4 = Instance.new("Attachment")
  518. local TorsoA5 = Instance.new("Attachment")
  519. local function set1()
  520. HeadA.Name = "HeadA"
  521. HeadA.Parent = head
  522. HeadA.Position = Vector3.new(0, -0.5, 0)
  523. HeadA.Rotation = Vector3.new(0, 0, 0)
  524. HeadA.Axis = Vector3.new(1, 0, 0)
  525. HeadA.SecondaryAxis = Vector3.new(0, 1, 0)
  526. LeftArmA.Name = "LeftArmA"
  527. LeftArmA.Parent = leftarm
  528. LeftArmA.Position = Vector3.new(0.5, 1, 0)
  529. LeftArmA.Rotation = Vector3.new(0, 0, 0)
  530. LeftArmA.Axis = Vector3.new(1, 0, 0)
  531. LeftArmA.SecondaryAxis = Vector3.new(0, 1, 0)
  532. LeftLegA.Name = "LeftLegA"
  533. LeftLegA.Parent = leftleg
  534. LeftLegA.Position = Vector3.new(0, 1, 0)
  535. LeftLegA.Rotation = Vector3.new(0, 0, 0)
  536. LeftLegA.Axis = Vector3.new(1, 0, 0)
  537. LeftLegA.SecondaryAxis = Vector3.new(0, 1, 0)
  538. RightArmA.Name = "RightArmA"
  539. RightArmA.Parent = rightarm
  540. RightArmA.Position = Vector3.new(-0.5, 1, 0)
  541. RightArmA.Rotation = Vector3.new(0, 0, 0)
  542. RightArmA.Axis = Vector3.new(1, 0, 0)
  543. RightArmA.SecondaryAxis = Vector3.new(0, 1, 0)
  544. RightLegA.Name = "RightLegA"
  545. RightLegA.Parent = rightleg
  546. RightLegA.Position = Vector3.new(0, 1, 0)
  547. RightLegA.Rotation = Vector3.new(0, 0, 0)
  548. RightLegA.Axis = Vector3.new(1, 0, 0)
  549. RightLegA.SecondaryAxis = Vector3.new(0, 1, 0)
  550. rootA.Name= "rootA"
  551. rootA.Parent = root
  552. rootA.Position = Vector3.new(0, 0, 0)
  553. rootA.Rotation = Vector3.new(0, 90, 0)
  554. rootA.Axis = Vector3.new(0, 0, -1)
  555. rootA.SecondaryAxis = Vector3.new(0, 1, 0)
  556. end
  557. local function set2()
  558. TorsoA.Name = "TorsoA"
  559. TorsoA.Parent = torso
  560. TorsoA.Position = Vector3.new(0.5, -1, 0)
  561. TorsoA.Rotation = Vector3.new(0, 0, 0)
  562. TorsoA.Axis = Vector3.new(1, 0, 0)
  563. TorsoA.SecondaryAxis = Vector3.new(0, 1, 0)
  564. TorsoA1.Name = "TorsoA1"
  565. TorsoA1.Parent = torso
  566. TorsoA1.Position = Vector3.new(-0.5, -1, 0)
  567. TorsoA1.Rotation = Vector3.new(0, 0, 0)
  568. TorsoA1.Axis = Vector3.new(1, 0, 0)
  569. TorsoA1.SecondaryAxis = Vector3.new(0, 1, 0)
  570. TorsoA2.Name = "TorsoA2"
  571. TorsoA2.Parent = torso
  572. TorsoA2.Position = Vector3.new(-1, 1, 0)
  573. TorsoA2.Rotation = Vector3.new(0, 0, 0)
  574. TorsoA2.Axis = Vector3.new(1, 0, 0)
  575. TorsoA2.SecondaryAxis = Vector3.new(0, 1, 0)
  576. TorsoA3.Name = "TorsoA3"
  577. TorsoA3.Parent = torso
  578. TorsoA3.Position = Vector3.new(1, 1, 0)
  579. TorsoA3.Rotation = Vector3.new(0, 0, 0)
  580. TorsoA3.Axis = Vector3.new(1, 0, 0)
  581. TorsoA3.SecondaryAxis = Vector3.new(0, 1, 0)
  582. TorsoA4.Name = "TorsoA4"
  583. TorsoA4.Parent = torso
  584. TorsoA4.Position = Vector3.new(0, 1, 0)
  585. TorsoA4.Rotation = Vector3.new(0, 0, 0)
  586. TorsoA4.Axis = Vector3.new(1, 0, 0)
  587. TorsoA4.SecondaryAxis = Vector3.new(0, 1, 0)
  588. TorsoA5.Name = "TorsoA5"
  589. TorsoA5.Parent = torso
  590. TorsoA5.Position = Vector3.new(0, 0, 0)
  591. TorsoA5.Rotation = Vector3.new(0, 90, 0)
  592. TorsoA5.Axis = Vector3.new(0, 0, -1)
  593. TorsoA5.SecondaryAxis = Vector3.new(0, 1, 0)
  594. end
  595. local function set3()
  596. end
  597. spawn(set1);
  598. spawn(set2);
  599. local HA = Instance.new("HingeConstraint")
  600. HA.Parent = head
  601. HA.Attachment0 = HeadA
  602. HA.Attachment1 = TorsoA4
  603. HA.Enabled = true
  604. HA.LimitsEnabled=true
  605. HA.LowerAngle=0
  606. HA.UpperAngle=0
  607. local LAT = Instance.new("BallSocketConstraint")
  608. LAT.Parent = leftarm
  609. LAT.Attachment0 = LeftArmA
  610. LAT.Attachment1 = TorsoA2
  611. LAT.Enabled = true
  612. LAT.LimitsEnabled=true
  613. LAT.UpperAngle=90
  614. local RAT = Instance.new("BallSocketConstraint")
  615. RAT.Parent = rightarm
  616. RAT.Attachment0 = RightArmA
  617. RAT.Attachment1 = TorsoA3
  618. RAT.Enabled = true
  619. RAT.LimitsEnabled=true
  620. RAT.UpperAngle=90
  621. local HA = Instance.new("BallSocketConstraint")
  622. HA.Parent = head
  623. HA.Attachment0 = HeadA
  624. HA.Attachment1 = TorsoA4
  625. HA.Enabled = true
  626. local TLL = Instance.new("BallSocketConstraint")
  627. TLL.Parent = torso
  628. TLL.Attachment0 = TorsoA1
  629. TLL.Attachment1 = LeftLegA
  630. TLL.Enabled = true
  631. TLL.LimitsEnabled=true
  632. TLL.UpperAngle=90
  633. local TRL = Instance.new("BallSocketConstraint")
  634. TRL.Parent = torso
  635. TRL.Attachment0 = TorsoA
  636. TRL.Attachment1 = RightLegA
  637. TRL.Enabled = true
  638. TRL.LimitsEnabled=true
  639. TRL.UpperAngle=90
  640. local RTA = Instance.new("BallSocketConstraint")
  641. RTA.Parent = root
  642. RTA.Attachment0 = rootA
  643. RTA.Attachment1 = TorsoA5
  644. RTA.Enabled = true
  645. RTA.LimitsEnabled=true
  646. RTA.UpperAngle=0
  647. head.Velocity = head.CFrame.lookVector*30
  648.  
  649. for _,child in next,plrmodel:GetChildren() do
  650. if child:IsA("Accoutrement") then
  651. for _,part in next,child:GetChildren() do
  652. if part:IsA("BasePart") then
  653. part.Parent = plrmodel
  654. child:remove()
  655. local attachment1 = part:FindFirstChildOfClass("Attachment")
  656. local attachment0 = getAttachment0(attachment1.Name)
  657. if attachment0 and attachment1 then
  658. local constraint = Instance.new("HingeConstraint")
  659. constraint.Attachment0 = attachment0
  660. constraint.Attachment1 = attachment1
  661. constraint.LimitsEnabled = true
  662. constraint.UpperAngle = 0
  663. constraint.LowerAngle = 0
  664. constraint.Parent = plrmodel
  665. end
  666. end
  667. end
  668. end
  669. end
  670. end)
  671.  
  672. end
  673.  
  674. for i = 0,80,10 do
  675. local Part = Instance.new("Part",Model)
  676. Part.CanCollide = false
  677. Part.Position = Vector3.new(0,100,0)
  678. Part:BreakJoints()
  679. Part.FormFactor = "Custom"
  680. Part.Size = Vector3.new(0.2,0.2,0.2)
  681. Part.TopSurface = "SmoothNoOutlines"
  682. Part.BottomSurface = "SmoothNoOutlines"
  683. Part.FrontSurface = "SmoothNoOutlines"
  684. Part.BackSurface = "SmoothNoOutlines"
  685. Part.RightSurface = "SmoothNoOutlines"
  686. Part.LeftSurface = "SmoothNoOutlines"
  687. Part.BrickColor = BrickColor.new("Black")
  688. local Mesh = Instance.new("BlockMesh",Part)
  689. Mesh.Scale = Vector3.new(0.25,0.15,0.03555*2) / 0.2 * Scale
  690. local PartWeld = Instance.new("Motor6D")
  691. PartWeld.Part0 = Handle
  692. PartWeld.Part1 = Part
  693. PartWeld.C0 = CFrame.new(Vector3.new(0,0.15,0.315)*Scale) * CFrame.Angles(math.rad(i-65),0,0) * CFrame.new(Vector3.new(0,0.2,0)*Scale)
  694. PartWeld.Parent = Part
  695. end
  696.  
  697. local Barrel = Instance.new("Part",Model)
  698. Barrel.CanCollide = false
  699. Barrel.Position = Vector3.new(0,100,0)
  700. Barrel:BreakJoints()
  701. Barrel.FormFactor = "Custom"
  702. Barrel.Size = Vector3.new(0.2,0.2,0.2)
  703. Barrel.TopSurface = "SmoothNoOutlines"
  704. Barrel.BottomSurface = "SmoothNoOutlines"
  705. Barrel.FrontSurface = "SmoothNoOutlines"
  706. Barrel.BackSurface = "SmoothNoOutlines"
  707. Barrel.RightSurface = "SmoothNoOutlines"
  708. Barrel.LeftSurface = "SmoothNoOutlines"
  709. Barrel.BrickColor = BrickColor.new("Black")
  710. local Mesh = Instance.new("BlockMesh",Barrel)
  711. Mesh.Scale = Vector3.new(0.25,0.2,2) / 0.2 * Scale
  712. local BarrelWeld = Instance.new("Motor6D")
  713. BarrelWeld.Part0 = Handle
  714. BarrelWeld.Part1 = Barrel
  715. BarrelWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.5,-0.7)*Scale)
  716. BarrelWeld.Parent = Barrel
  717.  
  718. local Barrel1 = Barrel
  719.  
  720. local Barrel2 = Instance.new("Part",Model)
  721. Barrel2.CanCollide = false
  722. Barrel2.Position = Vector3.new(0,100,0)
  723. Barrel2:BreakJoints()
  724. Barrel2.FormFactor = "Custom"
  725. Barrel2.Size = Vector3.new(0.2,0.2,0.2)
  726. Barrel2.TopSurface = "SmoothNoOutlines"
  727. Barrel2.BottomSurface = "SmoothNoOutlines"
  728. Barrel2.FrontSurface = "SmoothNoOutlines"
  729. Barrel2.BackSurface = "SmoothNoOutlines"
  730. Barrel2.RightSurface = "SmoothNoOutlines"
  731. Barrel2.LeftSurface = "SmoothNoOutlines"
  732. Barrel2.BrickColor = BrickColor.new("Really black")
  733. local Mesh = Instance.new("BlockMesh",Barrel2)
  734. Mesh.Scale = Vector3.new(0.25,0.25,2) / 0.2 * Scale
  735. local Barrel2Weld = Instance.new("Motor6D")
  736. Barrel2Weld.Part0 = Barrel
  737. Barrel2Weld.Part1 = Barrel2
  738. Barrel2Weld.C0 = CFrame.new(Vector3.new(0,0.225,0)*Scale)
  739. Barrel2Weld.Parent = Barrel2
  740.  
  741. local RealBarrel = Instance.new("Part",Model)
  742. RealBarrel.CanCollide = false
  743. RealBarrel.Position = Vector3.new(0,100,0)
  744. RealBarrel:BreakJoints()
  745. RealBarrel.FormFactor = "Custom"
  746. RealBarrel.Size = Vector3.new(0.2,0.2,0.2)
  747. RealBarrel.TopSurface = "SmoothNoOutlines"
  748. RealBarrel.BottomSurface = "SmoothNoOutlines"
  749. RealBarrel.FrontSurface = "SmoothNoOutlines"
  750. RealBarrel.BackSurface = "SmoothNoOutlines"
  751. RealBarrel.RightSurface = "SmoothNoOutlines"
  752. RealBarrel.LeftSurface = "SmoothNoOutlines"
  753. RealBarrel.BrickColor = BrickColor.new("Dark grey metallic")
  754. local Mesh = Instance.new("CylinderMesh",RealBarrel)
  755. Mesh.Scale = Vector3.new(0.2,2,0.2) / 0.2 * Scale
  756. local RealBarrelWeld = Instance.new("Motor6D")
  757. RealBarrelWeld.Part0 = Barrel
  758. RealBarrelWeld.Part1 = RealBarrel
  759. RealBarrelWeld.C0 = CFrame.new(Vector3.new(0,0.1,-0.01)*Scale) * CFrame.Angles(math.rad(-90),0,0)
  760. RealBarrelWeld.Parent = RealBarrel
  761.  
  762. for i = 1,75,15 do
  763. local Part = Instance.new("Part",Model)
  764. Part.CanCollide = false
  765. Part.Position = Vector3.new(0,100,0)
  766. Part:BreakJoints()
  767. Part.FormFactor = "Custom"
  768. Part.Size = Vector3.new(0.2,0.2,0.2)
  769. Part.TopSurface = "SmoothNoOutlines"
  770. Part.BottomSurface = "SmoothNoOutlines"
  771. Part.FrontSurface = "SmoothNoOutlines"
  772. Part.BackSurface = "SmoothNoOutlines"
  773. Part.RightSurface = "SmoothNoOutlines"
  774. Part.LeftSurface = "SmoothNoOutlines"
  775. Part.BrickColor = BrickColor.new("Black")
  776. local Mesh = Instance.new("BlockMesh",Part)
  777. Mesh.Scale = Vector3.new(0.05,0.065,0.05) / 0.2 * Scale
  778. local PartWeld = Instance.new("Motor6D")
  779. PartWeld.Part0 = Handle
  780. PartWeld.Part1 = Part
  781. PartWeld.C0 = CFrame.new(Vector3.new(0,0.525,-0.515)*Scale) * CFrame.Angles(math.rad(i),0,0) * CFrame.new(Vector3.new(0,0,0.2)*Scale)
  782. PartWeld.Parent = Part
  783. end
  784.  
  785. local Part = Instance.new("Part",Model)
  786. Part.CanCollide = false
  787. Part.Position = Vector3.new(0,100,0)
  788. Part:BreakJoints()
  789. Part.FormFactor = "Custom"
  790. Part.Size = Vector3.new(0.2,0.2,0.2)
  791. Part.TopSurface = "SmoothNoOutlines"
  792. Part.BottomSurface = "SmoothNoOutlines"
  793. Part.FrontSurface = "SmoothNoOutlines"
  794. Part.BackSurface = "SmoothNoOutlines"
  795. Part.RightSurface = "SmoothNoOutlines"
  796. Part.LeftSurface = "SmoothNoOutlines"
  797. Part.BrickColor = BrickColor.new("Really black")
  798. local Mesh = Instance.new("BlockMesh",Part)
  799. Mesh.Scale = Vector3.new(0.05,0.11,0.1) / 0.2 * Scale
  800. local PartWeld = Instance.new("Motor6D")
  801. PartWeld.Part0 = Barrel2
  802. PartWeld.Part1 = Part
  803. PartWeld.C0 = CFrame.new(Vector3.new(0.06,0.135,0.925)*Scale)
  804. PartWeld.Parent = Part
  805.  
  806. local Part = Instance.new("Part",Model)
  807. Part.CanCollide = false
  808. Part.Position = Vector3.new(0,100,0)
  809. Part:BreakJoints()
  810. Part.FormFactor = "Custom"
  811. Part.Size = Vector3.new(0.2,0.2,0.2)
  812. Part.TopSurface = "SmoothNoOutlines"
  813. Part.BottomSurface = "SmoothNoOutlines"
  814. Part.FrontSurface = "SmoothNoOutlines"
  815. Part.BackSurface = "SmoothNoOutlines"
  816. Part.RightSurface = "SmoothNoOutlines"
  817. Part.LeftSurface = "SmoothNoOutlines"
  818. Part.BrickColor = BrickColor.new("Really black")
  819. local Mesh = Instance.new("BlockMesh",Part)
  820. Mesh.Scale = Vector3.new(0.05,0.11,0.1) / 0.2 * Scale
  821. local PartWeld = Instance.new("Motor6D")
  822. PartWeld.Part0 = Barrel2
  823. PartWeld.Part1 = Part
  824. PartWeld.C0 = CFrame.new(Vector3.new(-0.06,0.135,0.925)*Scale)
  825. PartWeld.Parent = Part
  826.  
  827. local Part = Instance.new("Part",Model)
  828. Part.CanCollide = false
  829. Part.Position = Vector3.new(0,100,0)
  830. Part:BreakJoints()
  831. Part.FormFactor = "Custom"
  832. Part.Size = Vector3.new(0.2,0.2,0.2)
  833. Part.TopSurface = "SmoothNoOutlines"
  834. Part.BottomSurface = "SmoothNoOutlines"
  835. Part.FrontSurface = "SmoothNoOutlines"
  836. Part.BackSurface = "SmoothNoOutlines"
  837. Part.RightSurface = "SmoothNoOutlines"
  838. Part.LeftSurface = "SmoothNoOutlines"
  839. Part.BrickColor = BrickColor.new("Really black")
  840. local Mesh = Instance.new("BlockMesh",Part)
  841. Mesh.Scale = Vector3.new(0.025,0.1,0.1) / 0.2 * Scale
  842. local PartWeld = Instance.new("Motor6D")
  843. PartWeld.Part0 = Barrel2
  844. PartWeld.Part1 = Part
  845. PartWeld.C0 = CFrame.new(Vector3.new(0,0.135,-0.925)*Scale)
  846. PartWeld.Parent = Part
  847.  
  848. local Part = Instance.new("Part",Model)
  849. Part.CanCollide = false
  850. Part.Position = Vector3.new(0,100,0)
  851. Part:BreakJoints()
  852. Part.FormFactor = "Custom"
  853. Part.Size = Vector3.new(0.2,0.2,0.2)
  854. Part.Transparency = 1
  855. Part.TopSurface = "SmoothNoOutlines"
  856. Part.BottomSurface = "SmoothNoOutlines"
  857. Part.FrontSurface = "SmoothNoOutlines"
  858. Part.BackSurface = "SmoothNoOutlines"
  859. Part.RightSurface = "SmoothNoOutlines"
  860. Part.LeftSurface = "SmoothNoOutlines"
  861. Part.BrickColor = BrickColor.new("Really black")
  862. local Mesh = Instance.new("BlockMesh",Part)
  863. Mesh.Scale = Vector3.new(0.1,0.1,0.1) / 0.2 * Scale
  864. local PartWeld = Instance.new("Motor6D")
  865. PartWeld.Part0 = Barrel
  866. PartWeld.Part1 = Part
  867. PartWeld.C0 = CFrame.new(Vector3.new(0,0,-5)*Scale)
  868. PartWeld.Parent = Part
  869.  
  870. local Light = Instance.new("PointLight",Part)
  871. Light.Color = BrickColor.new("Gold").Color
  872. Light.Enabled = true
  873. Light.Shadows = true
  874. Light.Brightness = 0
  875. Light.Range = 6
  876.  
  877. local Part = Instance.new("Part",Model)
  878. Part.Material = "Neon"
  879. Part.CanCollide = false
  880. Part.Position = Vector3.new(0,100,0)
  881. Part:BreakJoints()
  882. Part.FormFactor = "Custom"
  883. Part.Size = Vector3.new(0.2,0.2,0.2)
  884. Part.TopSurface = "SmoothNoOutlines"
  885. Part.BottomSurface = "SmoothNoOutlines"
  886. Part.FrontSurface = "SmoothNoOutlines"
  887. Part.BackSurface = "SmoothNoOutlines"
  888. Part.RightSurface = "SmoothNoOutlines"
  889. Part.LeftSurface = "SmoothNoOutlines"
  890. Part.BrickColor = BrickColor.new("Bright yellow")
  891. Part.Transparency = 0.25
  892. local RecoilMesh = Instance.new("SpecialMesh",Part)
  893. RecoilMesh.MeshType = "FileMesh"
  894. RecoilMesh.MeshId = "http://www.roblox.com/Asset/?id=1323306"
  895. RecoilMesh.TextureId = "http://www.roblox.com/Asset/?id=98896228"
  896. RecoilMesh.Scale = Vector3.new(0.175,0,0.175) * Scale
  897. local PartWeld = Instance.new("Motor6D")
  898. PartWeld.Part0 = RealBarrel
  899. PartWeld.Part1 = Part
  900. PartWeld.C0 = CFrame.new(Vector3.new(0,0.95,0)*Scale)
  901. PartWeld.Parent = Part
  902.  
  903. function ShootBullet(Target,barrel)
  904. local barrel = barrel or Barrel
  905. local Bullet = Instance.new("Part",Workspace)
  906. Barrel.CanCollide = false
  907. Bullet.FormFactor = "Custom"
  908. Bullet.Size = Vector3.new(0.2,0.2,5)*Scale
  909. Bullet.TopSurface = "Smooth"
  910. Bullet.BottomSurface = "Smooth"
  911. Bullet.Anchored = true
  912. Bullet.CanCollide = false
  913. Bullet.CFrame = CFrame.new((barrel.CFrame*CFrame.new(0,0,-barrel.Size.Z*barrel.Mesh.Scale.Z/2)).p,Target)*CFrame.new(0,0,-Bullet.Size.Z/2)
  914. Bullet.Transparency = 0.1
  915. Bullet.BrickColor = BrickColor.new("Gold")
  916. --[[local Mesh = Instance.new("SpecialMesh",Bullet)
  917. Mesh.MeshType = "FileMesh"
  918. Mesh.Scale = Vector3.new(0.5,0.5,0.2)
  919. Mesh.MeshId = "http://www.roblox.com/asset/?id=2697549"
  920. --Mesh.TextureId = "http://www.roblox.com/asset/?id=2697544"]]
  921. local Mesh = Instance.new("BlockMesh",Bullet)
  922. Mesh.Scale = Vector3.new(0.2,0.2,5)*Scale/Bullet.Size
  923. IgnoreList[#IgnoreList+1] = Bullet
  924. RenderStepped:wait()
  925. for i = Speed,1000,Speed do -- Loop to do the bullet movement and stuff.
  926. local ray,Hit,Pos,SurfaceNormal;
  927. ray = Ray.new(Bullet.Position,((Bullet.CFrame*CFrame.Angles(math.rad(-Gravity),0,0)*CFrame.new(0,0,-Speed)).p-Bullet.Position).unit*Speed)
  928. Hit,Pos,SurfaceNormal = Workspace:FindPartOnRayWithIgnoreList(ray,IgnoreList)
  929. Bullet.CFrame = Bullet.CFrame*CFrame.Angles(math.rad(-Gravity),0,0)*CFrame.new(0,0,-Speed)
  930. if Hit ~= nil then
  931. local Hum = Hit.Parent:FindFirstChild("Humanoid") or Hit.Parent.Parent:FindFirstChild("Humanoid") or (Hit.Parent.Parent.Parent ~= nil and Hit.Parent.Parent.Parent:FindFirstChild("Humanoid"))
  932. if Hum ~= nil then
  933. Hum:TakeDamage((((Gangster and math.random(99999,99999) or math.random(99999,99999))*Scale)/100)*Hum.MaxHealth)
  934. end
  935. break
  936. end
  937. RenderStepped:wait()
  938. end
  939. Bullet:Destroy()
  940. end
  941.  
  942. Mouse.Button1Down:connect(function()
  943. if not Down and not DB then
  944. Down = true
  945. while Down do
  946. if Humanoid.Health == 0 then break end
  947. if not DB then
  948. DB = true
  949. local Sound = Instance.new("Sound",Barrel)
  950. Sound.SoundId = "http://www.roblox.com/Asset/?id=165946426" -- 132373574
  951. Sound.Volume = 5*Scale
  952. Sound.Pitch = (math.random(70,110)/100)/((Scale < 0.25 and 0.25) or (Scale > 4 and 4) or Scale)
  953. Sound:Play()
  954. Spawn(function()
  955. ShootBullet(Mouse.Hit.p,Barrel1)
  956. end)
  957. RecoilMesh.VertexColor = Vector3.new(1,math.random(160,245)/255,20/255)
  958. PartWeld.C0 = PartWeld.C0 * CFrame.Angles(0,math.rad(math.random(-40,40)),0)
  959. local Shell = Instance.new("Part",Workspace)
  960. Shell.FormFactor = "Custom"
  961. Shell.BrickColor = BrickColor.new("Bright yellow")
  962. Shell.Size = Vector3.new(0.2,0.5,0.2)*Scale
  963. Shell.CFrame = Barrel.CFrame*CFrame.new(0.5,0.5,0)*CFrame.Angles(math.rad(-90),0,0)
  964. Shell.Velocity = ((Barrel.CFrame*CFrame.new(5,0,math.random(-2,2))).p-Barrel.CFrame.p)*5*Scale
  965. local Mesh = Instance.new("CylinderMesh",Shell)
  966. Mesh.Scale = Vector3.new(0.2,0.5,0.2)*Scale/Shell.Size
  967. Spawn(function()
  968. wait(5)
  969. Shell:Destroy()
  970. end)
  971. for i = 1,20,7.5 do
  972. RotationOffset = RotationOffset*CFrame.Angles(math.rad(7.5),0,0)
  973. Part1Joint = Part1Joint*CFrame.new(Vector3.new(0,-0.15,0)*Scale)
  974. Barrel2Weld.C0 = Barrel2Weld.C0*CFrame.new(Vector3.new(0,0,0.15)*Scale)
  975. Light.Brightness = Light.Brightness+38
  976. RecoilMesh.Scale = RecoilMesh.Scale+(Vector3.new(0,0.375,0)*Scale)
  977. RenderStepped:wait()
  978. end
  979. wait(0.02)
  980. for i = 1,20,3.75 do
  981. RotationOffset = RotationOffset*CFrame.Angles(math.rad(-3.75),0,0)
  982. Part1Joint = Part1Joint*CFrame.new(Vector3.new(0,0.075,0)*Scale)
  983. Barrel2Weld.C0 = Barrel2Weld.C0*CFrame.new(Vector3.new(0,0,-0.075)*Scale)
  984. Light.Brightness = Light.Brightness-19
  985. RecoilMesh.Scale = RecoilMesh.Scale+(Vector3.new(0,-0.1875,0)*Scale)
  986. RenderStepped:wait()
  987. end
  988. wait(0.02)
  989. DB = false
  990. end
  991. end
  992. end
  993. end)
  994.  
  995. Mouse.Button1Up:connect(function()
  996. Down = false
  997. end)
  998.  
  999. Mouse.KeyDown:connect(function(Key)
  1000. if Key:lower() == "g" and not DB then
  1001. DB = true
  1002. if Gangster == true then
  1003. for i = 1,70,5 do
  1004. RotationOffset = RotationOffset*CFrame.Angles(0,math.rad(-5),0)
  1005. RenderStepped:wait()
  1006. end
  1007. Gangster = false
  1008. else
  1009. for i = 1,70,5 do
  1010. RotationOffset = RotationOffset*CFrame.Angles(0,math.rad(5),0)
  1011. RenderStepped:wait()
  1012. end
  1013. Gangster = true
  1014. end
  1015. DB = false
  1016. end
  1017. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement