Advertisement
DarkScriptZEditors

Untitled

Dec 29th, 2018
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.37 KB | None | 0 0
  1. warn('Pumpkin Bot From Reason To Die')
  2. warn('Made By GAMEKILLERTOY')
  3. warn('Made On Christmas Eve 24/12/2018')
  4. warn('Do Not Leak.')
  5.  
  6. -------------
  7. --//Fe Code
  8. -------------
  9.  
  10.  
  11. if game:GetService("RunService"):IsClient()then error("What are u doing run h/ not hl/ u umm....")end;InternalData = {}
  12. do
  13. script.Parent = owner.Character
  14. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  15. local function NewFakeEvent()
  16. local Bind = Instance.new("BindableEvent")
  17. local Fake;Fake = {Connections = {},
  18. fakeEvent=true;
  19. Connect=function(self,Func)
  20. Bind.Event:connect(Func)
  21. self.Connections[Bind] = true
  22. return setmetatable({Connected = true},{
  23. __index = function (self,Index)
  24. if Index:lower() == "disconnect" then
  25. return function() Fake.Connections[Bind] = false;self.Connected = false end
  26. end
  27. return Fake[Index]
  28. end;
  29. __tostring = function() return "Connection" end;
  30. })
  31. end}
  32. Fake.connect = Fake.Connect;return Fake;
  33. end
  34. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  35. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  36. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  37. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  38. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  39. local function TriggerEvent(self,Event,...)
  40. local Trigger = Mouse[Event]
  41. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  42. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  43. end
  44. end
  45. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  46. Event.OnServerEvent:Connect(function(FiredBy,Input)
  47. if FiredBy.Name ~= owner.Name then return end
  48. if Input.MouseEvent then
  49. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  50. else
  51. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  52. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  53. for _,Action in pairs(ContextActionService.Actions) do
  54. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  55. end
  56. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  57. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  58. end
  59. end)
  60. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  61. Event.Parent = NLS([[
  62. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  63. local Input = function(Input,gameProcessedEvent)
  64. if gameProcessedEvent then return end
  65. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  66. end
  67. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  68. local Hit,Target
  69. while wait(1/30) do
  70. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  71. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  72. end
  73. end
  74. ]],owner.Character)
  75. end
  76. RealGame = game;game = setmetatable({},{
  77. __index = function (self,Index)
  78. local Sandbox = function (Thing)
  79. if Thing:IsA("Player") then
  80. local RealPlayer = Thing
  81. return setmetatable({},{
  82. __index = function (self,Index)
  83. local Type = type(RealPlayer[Index])
  84. if Type == "function" then
  85. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  86. return function (self)return InternalData["Mouse"] end
  87. end
  88. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  89. end
  90. return RealPlayer[Index]
  91. end;
  92. __tostring = function(self) return RealPlayer.Name end
  93. })
  94. end
  95. end
  96. if RealGame[Index] then
  97. local Type = type(RealGame[Index])
  98. if Type == "function" then
  99. if Index:lower() == "getservice" or Index:lower() == "service" then
  100. return function (self,Service)
  101. local FakeServices = {
  102. ["players"] = function()
  103. return setmetatable({},{
  104. __index = function (self2,Index2)
  105. local RealService = RealGame:GetService(Service)
  106. local Type2 = type(Index2)
  107. if Type2 == "function" then
  108. return function (self,...) return RealService[Index2](RealService,...)end
  109. else
  110. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  111. return RealService[Index2]
  112. end
  113. end;
  114. __tostring = function(self) return RealGame:GetService(Service).Name end
  115. })
  116. end;
  117. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  118. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  119. ["runservice"] = function()
  120. return setmetatable({},{
  121. __index = function(self2,Index2)
  122. local RealService = RealGame:GetService(Service)
  123. local Type2 = type(Index2)
  124. if Type2 == "function" then
  125. return function (self,...) return RealService[Index2](RealService,...) end
  126. else
  127. local RunServices = {
  128. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  129. ["renderstepped"] = function() return RealService["Stepped"] end
  130. }
  131. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  132. return RealService[Index2]
  133. end
  134. end
  135. })
  136. end
  137. }
  138. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  139. return RealGame:GetService(Service)
  140. end
  141. end
  142. return function (self,...) return RealGame[Index](RealGame,...) end
  143. else
  144. if game:GetService(Index) then return game:GetService(Index) end
  145. return RealGame[Index]
  146. end
  147. end
  148. return nil
  149. end
  150. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script")
  151.  
  152. ------------------
  153. --//End Of Fe Code
  154. ------------------
  155.  
  156.  
  157.  
  158. wait(1/60)
  159. plr = game:GetService("Players").LocalPlayer
  160. char = plr.Character
  161. leftarm = char["Left Arm"]
  162. rightarm = char["Right Arm"]
  163. head = char["Head"]
  164. hum = char["Humanoid"]
  165. leftleg = char["Left Leg"]
  166. rightleg = char["Right Leg"]
  167. torso = char["Torso"]
  168. position = nil
  169. local Camera = workspace.CurrentCamera
  170. Mouse = plr:GetMouse()
  171. hrp = char["HumanoidRootPart"]
  172. lhip = torso["Left Hip"]
  173. rhip = torso["Right Hip"]
  174. neck = torso["Neck"]
  175. lshoulder = torso["Left Shoulder"]
  176. rshoulder = torso["Right Shoulder"]
  177. rootjoint = hrp["RootJoint"]
  178. hum.HipHeight = 2.5
  179. local debby = game:GetService("Debris")
  180. attack = false
  181. shots = 140
  182.  
  183. ScreenGui0 = Instance.new("ScreenGui")
  184. TextLabel1 = Instance.new("TextLabel")
  185. ScreenGui0.Parent = plr:FindFirstChildOfClass("PlayerGui")
  186. TextLabel1.Parent = ScreenGui0
  187. TextLabel1.Position = UDim2.new(0.040000014, 0, 0.564668775, 0)
  188. TextLabel1.Size = UDim2.new(0, 200, 0, 50)
  189. TextLabel1.BackgroundColor = BrickColor.new("Institutional white")
  190. TextLabel1.BackgroundColor3 = Color3.new(1, 1, 1)
  191. TextLabel1.BackgroundTransparency = 0.40000000596046
  192. TextLabel1.BorderSizePixel = 10
  193. TextLabel1.Font = Enum.Font.Highway
  194. TextLabel1.FontSize = Enum.FontSize.Size14
  195. TextLabel1.Text = "Ammo :"
  196. TextLabel1.TextColor = BrickColor.new("Really black")
  197. TextLabel1.TextColor3 = Color3.new(0, 0, 0)
  198. TextLabel1.TextScaled = true
  199. TextLabel1.TextSize = 14
  200. TextLabel1.TextWrap = true
  201. TextLabel1.TextWrapped = true
  202.  
  203.  
  204. --Converted with ttyyuu12345's model to script plugin v4
  205. function sandbox(var,func)
  206. local env = getfenv(func)
  207. local newenv = setmetatable({},{
  208. __index = function(self,k)
  209. if k=="script" then
  210. return var
  211. else
  212. return env[k]
  213. end
  214. end,
  215. })
  216. setfenv(func,newenv)
  217. return func
  218. end
  219. cors = {}
  220. mas = Instance.new("Model",game:GetService("Lighting"))
  221. Model0 = Instance.new("Model")
  222. Part1 = Instance.new("Part")
  223. SpecialMesh2 = Instance.new("SpecialMesh")
  224. Motor6D3 = Instance.new("Motor6D")
  225. Part4 = Instance.new("Part")
  226. SpecialMesh5 = Instance.new("SpecialMesh")
  227. Motor6D6 = Instance.new("Motor6D")
  228. Part7 = Instance.new("Part")
  229. SpecialMesh8 = Instance.new("SpecialMesh")
  230. Motor6D9 = Instance.new("Motor6D")
  231. Part10 = Instance.new("Part")
  232. SpecialMesh11 = Instance.new("SpecialMesh")
  233. Motor6D12 = Instance.new("Motor6D")
  234. Part13 = Instance.new("Part")
  235. SpecialMesh14 = Instance.new("SpecialMesh")
  236. Motor6D15 = Instance.new("Motor6D")
  237. Part16 = Instance.new("Part")
  238. SpecialMesh17 = Instance.new("SpecialMesh")
  239. Motor6D18 = Instance.new("Motor6D")
  240. Part19 = Instance.new("Part")
  241. SpecialMesh20 = Instance.new("SpecialMesh")
  242. Motor6D21 = Instance.new("Motor6D")
  243. Part22 = Instance.new("Part")
  244. SpecialMesh23 = Instance.new("SpecialMesh")
  245. Motor6D24 = Instance.new("Motor6D")
  246. Part25 = Instance.new("Part")
  247. SpecialMesh26 = Instance.new("SpecialMesh")
  248. Motor6D27 = Instance.new("Motor6D")
  249. Part28 = Instance.new("Part")
  250. SpecialMesh29 = Instance.new("SpecialMesh")
  251. Motor6D30 = Instance.new("Motor6D")
  252. Part31 = Instance.new("Part")
  253. SpecialMesh32 = Instance.new("SpecialMesh")
  254. Motor6D33 = Instance.new("Motor6D")
  255. Part34 = Instance.new("Part")
  256. SpecialMesh35 = Instance.new("SpecialMesh")
  257. Model0.Parent = mas
  258. Part1.Name = "Right1"
  259. Part1.Parent = Model0
  260. Part1.Transparency = 1
  261. Part1.CFrame = CFrame.new(9.33311081, 0.183244228, 17.4095669, -0.998881698, -0.00363235897, -0.0471435338, -0.002744667, 0.999818265, -0.018880643, 0.047203552, -0.0187301375, -0.998709679)
  262. Part1.Orientation = Vector3.new(1.08000004, -177.300003, -0.159999996)
  263. Part1.Position = Vector3.new(9.33311081, 0.183244228, 17.4095669)
  264. Part1.Rotation = Vector3.new(178.919998, -2.70000005, 179.789993)
  265. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  266. Part1.Size = Vector3.new(1.080001, 0.310000122, 1.40000045)
  267. Part1.BottomSurface = Enum.SurfaceType.Smooth
  268. Part1.BrickColor = BrickColor.new("Dark stone grey")
  269. Part1.Material = Enum.Material.SmoothPlastic
  270. Part1.TopSurface = Enum.SurfaceType.Smooth
  271. Part1.brickColor = BrickColor.new("Dark stone grey")
  272. SpecialMesh2.Parent = Part1
  273. SpecialMesh2.MeshId = "rbxassetid://2674959759"
  274. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  275. Motor6D3.Name = "Right"
  276. Motor6D3.Parent = Part1
  277. Motor6D3.C0 = CFrame.new(-1.42142916, -0.00518584251, -0.0670986176, 1.00000012, 5.82076609e-11, 0, 5.82076609e-11, 1.00000012, 1.86264515e-09, 0, 1.86264515e-09, 1)
  278. Motor6D3.Part0 = Part34
  279. Motor6D3.Part1 = Part1
  280. Motor6D3.part1 = Part1
  281. Part4.Name = "Base"
  282. Part4.Parent = Model0
  283. Part4.CFrame = CFrame.new(8.67791367, 4.32636499, 17.241909, -1, 0.000478663773, -1.53854489e-06, -0.000478662783, -1.00000012, 4.43682075e-06, -1.51246786e-06, 4.44427133e-06, 1)
  284. Part4.Orientation = Vector3.new(0, 0, -179.970001)
  285. Part4.Position = Vector3.new(8.67791367, 4.32636499, 17.241909)
  286. Part4.Rotation = Vector3.new(0, 0, -179.970001)
  287. Part4.Size = Vector3.new(4, 1, 2)
  288. Part4.BottomSurface = Enum.SurfaceType.Smooth
  289. Part4.CanCollide = false
  290. Part4.TopSurface = Enum.SurfaceType.Smooth
  291. SpecialMesh5.Parent = Part4
  292. SpecialMesh5.MeshId = "rbxassetid://2400995463"
  293. SpecialMesh5.Scale = Vector3.new(1, 1.10000002, 1)
  294. SpecialMesh5.TextureId = "rbxassetid://2400997534"
  295. SpecialMesh5.MeshType = Enum.MeshType.FileMesh
  296. Motor6D6.Name = "Base"
  297. Motor6D6.Parent = Part4
  298. Motor6D6.C0 = CFrame.new(-0.786250114, 4.1427002, 0.0530052185, 0.998882711, 0.00226674811, 0.047205057, 0.00315381051, -0.999819756, -0.0187256895, 0.0471540913, 0.0188536402, -0.998709679)
  299. Motor6D6.Part0 = Part34
  300. Motor6D6.Part1 = Part4
  301. Part7.Name = "Right2"
  302. Part7.Parent = Model0
  303. Part7.CFrame = CFrame.new(9.38368607, 2.63722801, 17.1389523, 0.98612541, 0.0323248468, 0.16282472, 0.138493985, 0.38057059, -0.914322734, -0.0915216357, 0.924186707, 0.370813429)
  304. Part7.Orientation = Vector3.new(66.1100006, 23.7099991, 20)
  305. Part7.Position = Vector3.new(9.38368607, 2.63722801, 17.1389523)
  306. Part7.Rotation = Vector3.new(67.9199982, 9.36999989, -1.88)
  307. Part7.Color = Color3.new(0.388235, 0.372549, 0.384314)
  308. Part7.Size = Vector3.new(1.080001, 1.74999952, 1.40000045)
  309. Part7.BottomSurface = Enum.SurfaceType.Smooth
  310. Part7.BrickColor = BrickColor.new("Dark stone grey")
  311. Part7.Material = Enum.Material.SmoothPlastic
  312. Part7.TopSurface = Enum.SurfaceType.Smooth
  313. Part7.brickColor = BrickColor.new("Dark stone grey")
  314. SpecialMesh8.Parent = Part7
  315. SpecialMesh8.MeshId = "rbxassetid://2674953990"
  316. SpecialMesh8.MeshType = Enum.MeshType.FileMesh
  317. Motor6D9.Name = "Right"
  318. Motor6D9.Parent = Part7
  319. Motor6D9.C0 = CFrame.new(-1.49145699, 2.45323563, 0.154449463, -0.989722669, 0.0102916472, -0.142629385, 0.136601016, 0.363073707, -0.921692967, 0.0422992408, -0.931703568, -0.360748082)
  320. Motor6D9.Part0 = Part34
  321. Motor6D9.Part1 = Part7
  322. Motor6D9.part1 = Part7
  323. Part10.Name = "Right3"
  324. Part10.Parent = Model0
  325. Part10.CFrame = CFrame.new(9.44626999, 1.78425395, 17.1288948, 0.992015243, 0.000441342592, 0.126118302, -0.126023486, -0.0354624912, 0.991393566, 0.00490998477, -0.999370873, -0.0351237096)
  326. Part10.Orientation = Vector3.new(-82.4800034, 105.559998, -105.720001)
  327. Part10.Position = Vector3.new(9.44626999, 1.78425395, 17.1288948)
  328. Part10.Rotation = Vector3.new(-92.0299988, 7.25, -0.0299999993)
  329. Part10.Color = Color3.new(0.388235, 0.372549, 0.384314)
  330. Part10.Size = Vector3.new(1.06399989, 1.61400008, 2)
  331. Part10.BottomSurface = Enum.SurfaceType.Smooth
  332. Part10.BrickColor = BrickColor.new("Dark stone grey")
  333. Part10.TopSurface = Enum.SurfaceType.Smooth
  334. Part10.brickColor = BrickColor.new("Dark stone grey")
  335. SpecialMesh11.Parent = Part10
  336. SpecialMesh11.MeshId = "rbxassetid://2674953677"
  337. SpecialMesh11.MeshType = Enum.MeshType.FileMesh
  338. Motor6D12.Name = "Right"
  339. Motor6D12.Parent = Part10
  340. Motor6D12.C0 = CFrame.new(-1.552104, 1.60037804, 0.177648544, -0.990328014, -0.0475173518, -0.130356237, -0.129695848, -0.0167392865, 0.991412699, -0.0492913574, 0.998730123, 0.010414578)
  341. Motor6D12.Part0 = Part34
  342. Motor6D12.Part1 = Part10
  343. Motor6D12.part1 = Part10
  344. Part13.Name = "left joy stick"
  345. Part13.Parent = Model0
  346. Part13.CFrame = CFrame.new(7.15353441, 5.09736586, 18.77075, 1.00000012, 1.00278994e-05, -2.0340085e-06, -1.002918e-05, 1.00000036, 4.46848571e-06, 2.00420618e-06, -4.472211e-06, 1)
  347. Part13.Position = Vector3.new(7.15353441, 5.09736586, 18.77075)
  348. Part13.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  349. Part13.Size = Vector3.new(0.430000365, 1, 0.680000424)
  350. Part13.BottomSurface = Enum.SurfaceType.Smooth
  351. Part13.BrickColor = BrickColor.new("Really black")
  352. Part13.TopSurface = Enum.SurfaceType.Smooth
  353. Part13.brickColor = BrickColor.new("Really black")
  354. SpecialMesh14.Parent = Part13
  355. SpecialMesh14.MeshId = "rbxassetid://2394494069"
  356. SpecialMesh14.MeshType = Enum.MeshType.FileMesh
  357. Motor6D15.Name = "left joy stick"
  358. Motor6D15.Parent = Part13
  359. Motor6D15.C0 = CFrame.new(0.806474686, 4.8904624, -1.4165554, -0.998881459, -0.00275489478, 0.0472055525, -0.00364242308, 0.999818146, -0.018725656, -0.0471453629, -0.0188766532, -0.998709679)
  360. Motor6D15.Part0 = Part34
  361. Motor6D15.Part1 = Part13
  362. Motor6D15.part1 = Part13
  363. Part16.Name = "Right4"
  364. Part16.Parent = Model0
  365. Part16.CFrame = CFrame.new(9.36532593, 0.877757132, 17.1428528, 0.997253358, 0.00228923932, 0.0740333945, 0.0615540221, 0.530335009, -0.845551074, -0.0411981754, 0.847785234, 0.528737187)
  366. Part16.Orientation = Vector3.new(57.7299995, 7.96999979, 6.61999989)
  367. Part16.Position = Vector3.new(9.36532593, 0.877757132, 17.1428528)
  368. Part16.Rotation = Vector3.new(57.9799995, 4.25, -0.129999995)
  369. Part16.Color = Color3.new(0.388235, 0.372549, 0.384314)
  370. Part16.Size = Vector3.new(1.06399989, 1.11400008, 1.29999995)
  371. Part16.BottomSurface = Enum.SurfaceType.Smooth
  372. Part16.BrickColor = BrickColor.new("Dark stone grey")
  373. Part16.TopSurface = Enum.SurfaceType.Smooth
  374. Part16.brickColor = BrickColor.new("Dark stone grey")
  375. SpecialMesh17.Parent = Part16
  376. SpecialMesh17.MeshId = "rbxassetid://2674954472"
  377. SpecialMesh17.MeshType = Enum.MeshType.FileMesh
  378. Motor6D18.Name = "Left"
  379. Motor6D18.Parent = Part16
  380. Motor6D18.C0 = CFrame.new(-1.46810436, 0.694079101, 0.184638977, -0.998251557, 0.036276184, -0.0466715693, 0.0586920716, 0.514350891, -0.855569243, -0.00703121722, -0.856812298, -0.515580595)
  381. Motor6D18.Part0 = Part34
  382. Motor6D18.Part1 = Part16
  383. Motor6D18.part1 = Part16
  384. Part19.Name = "Right joystic"
  385. Part19.Parent = Model0
  386. Part19.CFrame = CFrame.new(10.1280823, 5.09733534, 18.7707577, 1.00000012, 1.00278994e-05, -2.0340085e-06, -1.002918e-05, 1.00000036, 4.46848571e-06, 2.00420618e-06, -4.472211e-06, 1)
  387. Part19.Position = Vector3.new(10.1280823, 5.09733534, 18.7707577)
  388. Part19.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  389. Part19.Size = Vector3.new(0.430000365, 1, 0.680000424)
  390. Part19.BottomSurface = Enum.SurfaceType.Smooth
  391. Part19.BrickColor = BrickColor.new("Really black")
  392. Part19.TopSurface = Enum.SurfaceType.Smooth
  393. Part19.brickColor = BrickColor.new("Really black")
  394. SpecialMesh20.Parent = Part19
  395. SpecialMesh20.MeshId = "rbxassetid://2394494069"
  396. SpecialMesh20.MeshType = Enum.MeshType.FileMesh
  397. Motor6D21.Name = "Right joystic"
  398. Motor6D21.Parent = Part19
  399. Motor6D21.C0 = CFrame.new(-2.16474628, 4.87962723, -1.55679321, -0.998881459, -0.00275489478, 0.0472055525, -0.00364242308, 0.999818146, -0.018725656, -0.0471453629, -0.0188766532, -0.998709679)
  400. Motor6D21.Part0 = Part34
  401. Motor6D21.Part1 = Part19
  402. Motor6D21.part1 = Part19
  403. Part22.Name = "guns"
  404. Part22.Parent = Model0
  405. Part22.CFrame = CFrame.new(8.6575737, 4.14725161, 17.2230492, 1, 1.00283532e-05, -2.0227601e-06, -1.00283441e-05, 1, 4.47036928e-06, 2.02280489e-06, -4.47034927e-06, 1)
  406. Part22.Position = Vector3.new(8.6575737, 4.14725161, 17.2230492)
  407. Part22.Size = Vector3.new(4, 1, 2)
  408. Part22.BottomSurface = Enum.SurfaceType.Smooth
  409. Part22.CanCollide = false
  410. Part22.TopSurface = Enum.SurfaceType.Smooth
  411. SpecialMesh23.Parent = Part22
  412. SpecialMesh23.MeshId = "rbxassetid://2394487436"
  413. SpecialMesh23.TextureId = "rbxassetid://2394487469"
  414. SpecialMesh23.MeshType = Enum.MeshType.FileMesh
  415. Motor6D24.Name = "guns"
  416. Motor6D24.Parent = Part22
  417. Motor6D24.C0 = CFrame.new(-0.766331673, 3.96404672, 0.0761814117, -0.998881459, -0.00275489478, 0.0472055525, -0.00364242308, 0.999818146, -0.018725656, -0.0471453629, -0.0188766532, -0.998709679)
  418. Motor6D24.Part0 = Part34
  419. Motor6D24.Part1 = Part22
  420. Motor6D24.part1 = Part22
  421. Part25.Name = "Left3"
  422. Part25.Parent = Model0
  423. Part25.CFrame = CFrame.new(7.941082, 0.849091232, 17.1201382, 0.997253358, 0.00228923932, 0.0740333945, 0.0615540221, 0.530335009, -0.845551074, -0.0411981754, 0.847785234, 0.528737187)
  424. Part25.Position = Vector3.new(7.941082, 0.849091232, 17.1201382)
  425. Part25.Color = Color3.new(0.388235, 0.372549, 0.384314)
  426. Part25.Size = Vector3.new(1.06399989, 1.21400011, 1)
  427. Part25.BottomSurface = Enum.SurfaceType.Smooth
  428. Part25.BrickColor = BrickColor.new("Dark stone grey")
  429. Part25.TopSurface = Enum.SurfaceType.Smooth
  430. Part25.brickColor = BrickColor.new("Dark stone grey")
  431. SpecialMesh26.Parent = Part25
  432. SpecialMesh26.MeshId = "rbxassetid://2674954472"
  433. SpecialMesh26.MeshType = Enum.MeshType.FileMesh
  434. Motor6D27.Name = "Left"
  435. Motor6D27.Parent = Part25
  436. Motor6D27.C0 = CFrame.new(-0.0464468002, 0.67101717, 0.275009155, -0.998251557, 0.036276184, -0.0466715693, 0.0586920716, 0.514350891, -0.855569243, -0.00703121722, -0.856812298, -0.515580595)
  437. Motor6D27.Part0 = Part34
  438. Motor6D27.Part1 = Part25
  439. Motor6D27.part1 = Part25
  440. Part28.Name = "Left2"
  441. Part28.Parent = Model0
  442. Part28.CFrame = CFrame.new(7.93966532, 2.63724637, 17.1389465, 0.990739763, 0.0479208566, 0.127037451, 0.104117133, 0.332397401, -0.937375247, -0.0871467441, 0.941921234, 0.324329853)
  443. Part28.Orientation = Vector3.new(69.6200027, 21.3899994, 17.3899994)
  444. Part28.Position = Vector3.new(7.93966532, 2.63724637, 17.1389465)
  445. Part28.Rotation = Vector3.new(70.9100037, 7.30000019, -2.76999998)
  446. Part28.Color = Color3.new(0.388235, 0.372549, 0.384314)
  447. Part28.Size = Vector3.new(1.080001, 1.74999952, 1.40000045)
  448. Part28.BottomSurface = Enum.SurfaceType.Smooth
  449. Part28.BrickColor = BrickColor.new("Dark stone grey")
  450. Part28.Material = Enum.Material.SmoothPlastic
  451. Part28.TopSurface = Enum.SurfaceType.Smooth
  452. Part28.brickColor = BrickColor.new("Dark stone grey")
  453. SpecialMesh29.Parent = Part28
  454. SpecialMesh29.MeshId = "rbxassetid://2674953990"
  455. SpecialMesh29.MeshType = Enum.MeshType.FileMesh
  456. Motor6D30.Name = "Left"
  457. Motor6D30.Parent = Part28
  458. Motor6D30.C0 = CFrame.new(-0.0490517616, 2.45849919, 0.222530365, -0.994031012, -0.00431757048, -0.109013051, 0.102131717, 0.314520448, -0.943740666, 0.0383615158, -0.949240863, -0.312202096)
  459. Motor6D30.Part0 = Part34
  460. Motor6D30.Part1 = Part28
  461. Motor6D30.part1 = Part28
  462. Part31.Name = "Left1"
  463. Part31.Parent = Model0
  464. Part31.CFrame = CFrame.new(7.93524837, 1.78427327, 17.1288853, 0.997013807, 0.0197377987, 0.0746622607, -0.0739332959, -0.0353914127, 0.996635377, 0.0223137438, -0.999178648, -0.0338264406)
  465. Part31.Orientation = Vector3.new(-85.3000031, 114.370003, -115.580002)
  466. Part31.Position = Vector3.new(7.93524837, 1.78427327, 17.1288853)
  467. Part31.Rotation = Vector3.new(-91.9400024, 4.28000021, -1.13)
  468. Part31.Color = Color3.new(0.388235, 0.372549, 0.384314)
  469. Part31.Size = Vector3.new(1.06399989, 1.61400008, 2)
  470. Part31.BottomSurface = Enum.SurfaceType.Smooth
  471. Part31.BrickColor = BrickColor.new("Dark stone grey")
  472. Part31.TopSurface = Enum.SurfaceType.Smooth
  473. Part31.brickColor = BrickColor.new("Dark stone grey")
  474. SpecialMesh32.Parent = Part31
  475. SpecialMesh32.MeshId = "rbxassetid://2674953677"
  476. SpecialMesh32.MeshType = Enum.MeshType.FileMesh
  477. Motor6D33.Name = "Left"
  478. Motor6D33.Parent = Part31
  479. Motor6D33.C0 = CFrame.new(-0.0427737236, 1.60588622, 0.24889183, -0.994642377, -0.0667833462, -0.0789109021, -0.0779592767, -0.0167419147, 0.996816158, -0.0678918064, 0.997627079, 0.0114458334)
  480. Motor6D33.Part0 = Part34
  481. Motor6D33.Part1 = Part31
  482. Motor6D33.part1 = Part31
  483. Part34.Name = "Left4"
  484. Part34.Parent = Model0
  485. Part34.Transparency = 1
  486. Part34.CFrame = CFrame.new(7.91008949, 0.183260918, 17.4095535, -0.998881578, -0.00363235851, -0.0471435338, -0.00274466677, 0.999818146, -0.0188806448, 0.0472035445, -0.0187301338, -0.998709679)
  487. Part34.Orientation = Vector3.new(1.08000004, -177.300003, -0.159999996)
  488. Part34.Position = Vector3.new(7.91008949, 0.183260918, 17.4095535)
  489. Part34.Rotation = Vector3.new(178.919998, -2.70000005, 179.789993)
  490. Part34.Color = Color3.new(0.388235, 0.372549, 0.384314)
  491. Part34.Size = Vector3.new(1.080001, 0.310000122, 1.40000045)
  492. Part34.BottomSurface = Enum.SurfaceType.Smooth
  493. Part34.BrickColor = BrickColor.new("Dark stone grey")
  494. Part34.Material = Enum.Material.SmoothPlastic
  495. Part34.TopSurface = Enum.SurfaceType.Smooth
  496. Part34.brickColor = BrickColor.new("Dark stone grey")
  497. SpecialMesh35.Parent = Part34
  498. SpecialMesh35.MeshId = "rbxassetid://2674959759"
  499. SpecialMesh35.MeshType = Enum.MeshType.FileMesh
  500. for i,v in pairs(Model0:GetChildren()) do
  501. v.CanCollide = false
  502. pcall(function() v:MakeJoints() end)
  503. end
  504. for i,v in pairs(mas:GetChildren()) do
  505. v.Parent = char
  506. base = Part4
  507. ljoystick = Motor6D15
  508. rjoystick = Motor6D21
  509. gun = Part22
  510. foot = Part34
  511. pcall(function() v:MakeJoints() end)
  512. end
  513. mas:Destroy()
  514. for i,v in pairs(cors) do
  515. spawn(function()
  516. pcall(v)
  517. end)
  518. end
  519. Motor6D223 = Instance.new("Motor6D")
  520. foo3 = Instance.new("Part")
  521. foo3.Parent =Model0
  522. foo3.CanCollide =false
  523. foo3.brickColor = BrickColor.new("Dark stone grey")
  524. foo3.Size = Vector3.new(1.080001, 0.310000122, 1.40000045)
  525. Motor6D223.Parent = foo3
  526. Motor6D223.Part0 = Part25
  527. Motor6D223.Part1 = foo3
  528. Motor6D223.C0 = CFrame.new(0,-.55,-0.4)
  529. eeee = Instance.new("SpecialMesh")
  530. eeee.Parent = foo3
  531. eeee.MeshId = "rbxassetid://2674959759"
  532. eeee.MeshType = Enum.MeshType.FileMesh
  533.  
  534. Motor6D224 = Instance.new("Motor6D")
  535. foo1 = Instance.new("Part")
  536. foo1.Parent =Model0
  537. foo1.CanCollide =false
  538. foo1.brickColor = BrickColor.new("Dark stone grey")
  539. foo1.Size = Vector3.new(1.080001, 0.310000122, 1.40000045)
  540. Motor6D224.Parent = foo1
  541. Motor6D224.Part0 = Part16
  542. Motor6D224.Part1 = foo1
  543. Motor6D224.C0 = CFrame.new(0,-.55,-0.4)
  544. eeee1 = Instance.new("SpecialMesh")
  545. eeee1.Parent = foo1
  546. eeee1.MeshId = "rbxassetid://2674959759"
  547. eeee1.MeshType = Enum.MeshType.FileMesh
  548.  
  549. sine = 0
  550. attacking = false
  551. hum.Animator.Parent = nil
  552. function ray(pos, dir, rang, ignoredesc)
  553. return workspace:FindPartOnRay(Ray.new(pos, dir.unit * rang), ignoredesc)
  554. end
  555. function swait(num)
  556. if num == 0 or num == nil then
  557. game:service("RunService").Stepped:wait(0)
  558. else
  559. for i = 0, num do
  560. game:service("RunService").Stepped:wait(0)
  561. end
  562. end
  563. end
  564. function ray2(startpos, endpos, distance, ignore)
  565. local dir = CFrame.new(startpos,endpos).lookVector
  566. return ray(startpos, dir, distance, ignore)
  567. end
  568.  
  569. coroutine.wrap(function()
  570. while true do
  571. swait()
  572. TextLabel1.Text = "Ammo :"..shots.."/140"
  573. end
  574. end)()
  575.  
  576. local Create = LoadLibrary("RbxUtility").Create
  577.  
  578. function so(id,par,pit,vol)
  579. local sou = Instance.new("Sound", par or workspace)
  580. if par == char then
  581. sou.Parent = char.Torso
  582. end
  583. sou.Volume = vol
  584. sou.Pitch = pit or 1
  585. sou.SoundId = "rbxassetid://" .. id
  586. sou.PlayOnRemove = true
  587. sou:Destroy()
  588. end
  589.  
  590. w = Instance.new("Weld")
  591. w.Parent = torso
  592. w.Part0 = torso
  593. w.Part1 = base
  594. w.C0 = CFrame.Angles(math.rad(180),math.rad(0),0)
  595. w.C1 = CFrame.new(0,-1.15,0)
  596.  
  597. function rayCast(Position, Direction, Range, Ignore)
  598. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  599. end
  600.  
  601. function FindNearestTorso(Position, Distance, SinglePlayer)
  602. if SinglePlayer then
  603. return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
  604. end
  605. local List = {}
  606. for i, v in pairs(workspace:GetDescendants()) do
  607. if v:IsA("Model") then
  608. if v:findFirstChild("Head") then
  609. if v ~= char then
  610. if (v.Head.Position - Position).magnitude <= Distance then
  611. table.insert(List, v)
  612. end
  613. end
  614. end
  615. end
  616. end
  617. return List
  618. end
  619.  
  620. EffectModel = Create("Model"){
  621. Parent = char,
  622. Name = "Effects",
  623. }
  624.  
  625. --Effect Functions--
  626. Effects = {
  627.  
  628. Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
  629. local p = Instance.new("Part",EffectModel)
  630. p.BrickColor = BrickColor.new(colour)
  631. p.Size = partsize
  632. p.Anchored = true
  633. p.CanCollide = false
  634. p.Material = matr
  635. p.CFrame = cf
  636. if inverse == true then
  637. p.Transparency = 1
  638. else
  639. p.Transparency = 0
  640. end
  641. local m = Instance.new("BlockMesh",p)
  642. m.Scale = meshstart
  643. coroutine.wrap(function()
  644. for i=0,1,factor do
  645. swait()
  646. if inverse == true then
  647. p.Transparency = 1-i
  648. else
  649. p.Transparency = i
  650. end
  651. m.Scale = m.Scale + meshadd
  652. if spin == true then
  653. p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  654. end
  655. end
  656. p:Destroy()
  657. end)()
  658. return p
  659. end,
  660.  
  661. Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  662. local p = Instance.new("Part",EffectModel)
  663. p.BrickColor = BrickColor.new(colour)
  664. p.Size = partsize
  665. p.Anchored = true
  666. p.CanCollide = false
  667. p.Material = matr
  668. p.CFrame = cf
  669. if inverse == true then
  670. p.Transparency = 1
  671. else
  672. p.Transparency = 0
  673. end
  674. local m = Instance.new("SpecialMesh",p)
  675. m.MeshType = "Sphere"
  676. m.Scale = meshstart
  677. coroutine.wrap(function()
  678. for i=0,1,factor do
  679. swait()
  680. if inverse == true then
  681. p.Transparency = 1-i
  682. else
  683. p.Transparency = i
  684. end
  685. m.Scale = m.Scale + meshadd
  686. end
  687. p:Destroy()
  688. end)()
  689. return p
  690. end,
  691.  
  692. Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  693. local p = Instance.new("Part",EffectModel)
  694. p.BrickColor = BrickColor.new(colour)
  695. p.Size = partsize
  696. p.Anchored = true
  697. p.CanCollide = false
  698. p.Material = matr
  699. p.CFrame = cf
  700. if inverse == true then
  701. p.Transparency = 1
  702. else
  703. p.Transparency = 0
  704. end
  705. local m = Instance.new("CylinderMesh",p)
  706. m.Scale = meshstart
  707. coroutine.wrap(function()
  708. for i=0,1,factor do
  709. swait()
  710. if inverse == true then
  711. p.Transparency = 1-i
  712. else
  713. p.Transparency = i
  714. end
  715. m.Scale = m.Scale + meshadd
  716. end
  717. p:Destroy()
  718. end)()
  719. return p
  720. end,
  721.  
  722. Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
  723. local p = Instance.new("Part",EffectModel)
  724. p.BrickColor = BrickColor.new(colour)
  725. p.Size = Vector3.new()
  726. p.Anchored = true
  727. p.CanCollide = false
  728. p.CFrame = cf
  729. if inverse == true then
  730. p.Transparency = 1
  731. else
  732. p.Transparency = 0
  733. end
  734. local m = Instance.new("SpecialMesh",p)
  735. m.MeshId = "rbxassetid://20329976"
  736. m.Scale = meshstart
  737. coroutine.wrap(function()
  738. for i=0,1,factor do
  739. swait()
  740. if inverse == true then
  741. p.Transparency = 1-i
  742. else
  743. p.Transparency = i
  744. end
  745. m.Scale = m.Scale + meshadd
  746. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  747. end
  748. p:Destroy()
  749. end)()
  750. return p
  751. end,
  752.  
  753. Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
  754. local p = Instance.new("Part",EffectModel)
  755. p.BrickColor = BrickColor.new(colour)
  756. p.Size = Vector3.new()
  757. p.Anchored = true
  758. p.CanCollide = false
  759. p.CFrame = cf
  760. if inverse == true then
  761. p.Transparency = 1
  762. else
  763. p.Transparency = 0
  764. end
  765. local m = Instance.new("SpecialMesh",p)
  766. m.MeshId = "rbxassetid://3270017"
  767. m.Scale = meshstart
  768. coroutine.wrap(function()
  769. for i=0,1,factor do
  770. swait()
  771. if inverse == true then
  772. p.Transparency = 1-i
  773. else
  774. p.Transparency = i
  775. end
  776. m.Scale = m.Scale + meshadd
  777. end
  778. p:Destroy()
  779. end)()
  780. return p
  781. end,
  782.  
  783. Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
  784. local p = Instance.new("Part",EffectModel)
  785. p.BrickColor = BrickColor.new(colour)
  786. p.Size = Vector3.new()
  787. p.Anchored = true
  788. p.CanCollide = false
  789. p.CFrame = cf
  790. if inverse == true then
  791. p.Transparency = 1
  792. else
  793. p.Transparency = 0
  794. end
  795. local m = Instance.new("SpecialMesh",p)
  796. m.MeshId = meshid
  797. m.TextureId = textid
  798. m.Scale = meshstart
  799. coroutine.wrap(function()
  800. for i=0,1,factor do
  801. swait()
  802. if inverse == true then
  803. p.Transparency = 1-i
  804. else
  805. p.Transparency = i
  806. end
  807. m.Scale = m.Scale + meshadd
  808. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  809. end
  810. p:Destroy()
  811. end)()
  812. return p
  813. end,
  814.  
  815. Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
  816. local p = Instance.new("Part",EffectModel)
  817. p.BrickColor = BrickColor.new(colour)
  818. p.Size = partsize
  819. p.Anchored = true
  820. p.CanCollide = false
  821. p.Material = matr
  822. p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  823. if inverse == true then
  824. p.Transparency = 1
  825. else
  826. p.Transparency = 0
  827. end
  828. local m = Instance.new("SpecialMesh",p)
  829. m.MeshType = "Sphere"
  830. m.Scale = meshstart
  831. coroutine.wrap(function()
  832. for i=0,1,factor do
  833. swait()
  834. if inverse == true then
  835. p.Transparency = 1-i
  836. else
  837. p.Transparency = i
  838. end
  839. m.Scale = m.Scale + meshadd
  840. p.CFrame = p.CFrame * CFrame.new(0,move,0)
  841. end
  842. p:Destroy()
  843. end)()
  844. return p
  845. end,
  846.  
  847. }
  848.  
  849. function GetDudesTorso(c)
  850. local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  851. if torsy ~= nil then
  852. return torsy
  853. end
  854. end
  855.  
  856. function BodyVel(part,faws)
  857. local bodyvel = Instance.new("BodyVelocity",part)
  858. local pep = 10000000
  859. bodyvel.P = pep
  860. bodyvel.MaxForce = Vector3.new(pep,pep,pep)
  861. bodyvel.Velocity = faws
  862. debby:AddItem(bodyvel,.2)
  863. end
  864.  
  865. function Dmg(dude,dmg,env,faws,trip,efftyp,toim)
  866. if dude and dude ~= char then
  867. if dude:FindFirstChild("HITO") then return end
  868. if toim ~= 0 then
  869. local debounce = Instance.new("BoolValue",dude)
  870. debounce.Name = "HITO"
  871. debby:AddItem(debounce,toim)
  872. end
  873. local hum = dude:FindFirstChildOfClass("Humanoid")
  874. local dam = dmg+math.random(-env,env)
  875. local teksu = "-"..dam
  876. if hum then
  877. local finhel = hum.Health - dam
  878. if (finhel <= 0 and dude:FindFirstChild("DEATHED")==nil) or dmg == math.huge then
  879. teksu = "DEATH"
  880. dude:BreakJoints()
  881. Instance.new("BoolValue",dude).Name = "DEATHED"
  882. --local soaa = Instance.new("Sound",dude.Head)
  883. --local cho = math.random(1,5)
  884. --if cho == 1 then
  885. --soaa.SoundId = ""
  886. --elseif cho == 2 then
  887. --soaa.SoundId = "rbxassetid://535528169"
  888. --elseif cho == 3 then
  889. --soaa.SoundId = "rbxassetid://1080363252"
  890. --elseif cho == 4 then
  891. --soaa.SoundId = "rbxassetid://147758746"
  892. --elseif cho == 5 then
  893. --soaa.SoundId = "rbxassetid://626777433"
  894. --soaa.Volume = .2
  895. --soaa.TimePosition = 1
  896. --end
  897. --game:service'Debris':AddItem(soaa,6)
  898. --soaa:Play()
  899. end
  900. if dmg ~= math.huge then
  901. hum.Health = hum.Health - dam
  902. end
  903. end
  904. coroutine.wrap(function()
  905. local naeeym2 = Instance.new("BillboardGui",dude)
  906. naeeym2.Size = UDim2.new(0,100,0,40)
  907. naeeym2.StudsOffset = Vector3.new(0,3,0)
  908. naeeym2.Adornee = dude:FindFirstChild("Head")
  909. naeeym2.Name = "TalkingBillBoard"
  910. local tecks2 = Instance.new("TextLabel",naeeym2)
  911. tecks2.BackgroundTransparency = 1
  912. tecks2.BorderSizePixel = 0
  913. tecks2.Text = teksu
  914. tecks2.Font = "Fantasy"
  915. tecks2.TextSize = 24
  916. tecks2.TextStrokeTransparency = 0
  917. tecks2.TextColor3 = Color3.new(1,1,1)
  918. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  919. tecks2.Size = UDim2.new(1,0,0.5,0)
  920. swait(10)
  921. for i = 0,1,.05 do
  922. swait()
  923. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  924. tecks2.TextStrokeTransparency = i
  925. tecks2.TextTransparency = i
  926. end
  927. naeeym2:Destroy()
  928. end)()
  929. local torsy = GetDudesTorso(dude)
  930. if torsy then
  931. local amtt = dam/5
  932. if amtt > 30 then
  933. amtt = 30
  934. end
  935. for i=1,amtt do
  936. local blp = Instance.new("Part",EffectModel)
  937. blp.Size = Vector3.new(.3,.3,.3)
  938. blp.BrickColor = BrickColor.Random()
  939. blp.CFrame = torsy.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  940. blp.Velocity = torsy.CFrame.lookVector*math.random(-8,-8) + torsy.CFrame.rightVector*math.random(-8,8) + Vector3.new(0,math.random(0,5),0)
  941. blp.RotVelocity = Vector3.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))
  942. --local blm = Instance.new("SpecialMesh",blp)
  943. --blm.MeshType = "Sphere"
  944. coroutine.wrap(function()
  945. swait(10)
  946. blp.Orientation = Vector3.new(0,blp.Orientation.y,0)
  947. for i=0,1,.1 do
  948. swait()
  949. blp.Transparency = i
  950. blp.Size = blp.Size + Vector3.new(.05,-.05,.05)
  951. end
  952. blp:Destroy()
  953. end)()
  954. end
  955. if efftyp == "Blunt" then
  956. puncheff(torsy)
  957. elseif efftyp == "Sharp" then
  958. slasheff(torsy)
  959. elseif efftyp == "Shot" then
  960. end
  961. if faws ~= 0 then
  962. BodyVel(torsy,faws)
  963. end
  964. if trip == true then
  965. torsy.CFrame = torsy.CFrame * CFrame.Angles(math.rad(-90),0,0)
  966. torsy.RotVelocity = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  967. end
  968. end
  969. end
  970. end
  971.  
  972. function MagnitudeDmg(par,magni,dmg,env,faws,trip,efftyp,toim)
  973. for _, c in pairs(workspace:GetDescendants()) do
  974. local hum = c:FindFirstChildOfClass("Humanoid")
  975. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
  976. local head = GetDudesTorso(c)
  977. if head ~= nil then
  978. local targ = head.Position - par.Position
  979. local mag = targ.magnitude
  980. if magni >= mag and c ~= char then
  981. Dmg(c,dmg,env,faws,trip,efftyp,toim)
  982. end
  983. end
  984. end
  985. end
  986. end
  987.  
  988.  
  989. function puncheff(par)
  990. if par.Parent:FindFirstChild("DebounceHit")==nil then
  991. so(386946017,par,math.random(80,120)/100,1)
  992. Effects.Sphere(par.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(.1,.1,.1),"Neon","White",false,.1)
  993. end
  994. end
  995.  
  996. function slasheff(par)
  997. if par.Parent:FindFirstChild("DebounceHit")==nil then
  998. local cho = math.random(1,3)
  999. so(444667859,par,1,1)
  1000. Effects.Sphere(par.CFrame*CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360)),Vector3.new(.5,.5,.5),Vector3.new(1,0,1),Vector3.new(-.1,5,-.1),"Neon","White",false,.1)
  1001. end
  1002. end
  1003.  
  1004. MuzzleFlash = Instance.new("Part")
  1005. MuzzleFlash.Parent = gun
  1006. MuzzleFlash.CanCollide = false
  1007. MuzzleFlash.Size = Vector3.new(1,1,1)
  1008. MuzzleFlash.Transparency = 1
  1009. w2 = Instance.new("Weld")
  1010. w2.Part0 = gun
  1011. w2.Parent = gun
  1012. w2.Part1 = MuzzleFlash
  1013. w2.C0 = CFrame.new(2.5,0,0.6)
  1014.  
  1015. MuzzleFlash2 = Instance.new("Part")
  1016. MuzzleFlash2.Parent = gun
  1017. MuzzleFlash2.CanCollide = false
  1018. MuzzleFlash2.Size = Vector3.new(1,1,1)
  1019. MuzzleFlash2.Transparency = 1
  1020. w22 = Instance.new("Weld")
  1021. w22.Part0 = gun
  1022. w22.Parent = gun
  1023. w22.Part1 = MuzzleFlash2
  1024. w22.C0 = CFrame.new(-2.5,0,0.6)
  1025. function gunreload()
  1026. local bolting = false
  1027. if shots < 1 then
  1028. bolting = true
  1029. end
  1030. so(769380905,torso,1,1)
  1031. shots = shots+140
  1032. end
  1033.  
  1034.  
  1035. local fire = Instance.new("Sound")
  1036. fire.Parent = gun
  1037. fire.SoundId = "rbxassetid://1583819337"
  1038. fire.Volume = 1.2
  1039.  
  1040. function gunshoot()
  1041. attack = true
  1042. repeat
  1043. wait(.1)
  1044. local part, pos = rayCast(MuzzleFlash.Position,((Mouse.Hit.p+Vector3.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)) - MuzzleFlash.Position),200,char)
  1045. local aimo = Instance.new("Part",Camera)
  1046. aimo.Anchored = true
  1047. aimo.Size = Vector3.new()
  1048. aimo.Transparency = 1
  1049. aimo.CanCollide = false
  1050. aimo.CFrame = CFrame.new(pos)
  1051. Effects.Block(CFrame.new((MuzzleFlash.Position + pos)/2,pos),Vector3.new(.2,.2,(MuzzleFlash.Position - pos).magnitude),Vector3.new(0,0,1),Vector3.new(.1,.1,0),"Neon","Bright yellow",false,false,.1)
  1052. MagnitudeDmg(aimo,3,5,2,hrp.CFrame.lookVector*2,false,"Shot",.1)
  1053. local part, pos = rayCast(MuzzleFlash2.Position,((Mouse.Hit.p+Vector3.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)) - MuzzleFlash2.Position),200,char)
  1054. local aimo = Instance.new("Part",Camera)
  1055. aimo.Anchored = true
  1056. aimo.Size = Vector3.new()
  1057. aimo.Transparency = 1
  1058. aimo.CanCollide = false
  1059. aimo.CFrame = CFrame.new(pos)
  1060. Effects.Block(CFrame.new((MuzzleFlash2.Position + pos)/2,pos),Vector3.new(.2,.2,(MuzzleFlash2.Position - pos).magnitude),Vector3.new(0,0,1),Vector3.new(.1,.1,0),"Neon","Bright yellow",false,false,.1)
  1061. MagnitudeDmg(aimo,3,5,2,hrp.CFrame.lookVector*2,false,"Shot",.1)
  1062. fire:Play()
  1063. shots = shots - 2
  1064. aimo:Destroy()
  1065. aimo:Destroy()
  1066. if shots <= 0 then
  1067. gunreload()
  1068. end
  1069. until zhold == false
  1070. attack = false
  1071. end
  1072.  
  1073.  
  1074.  
  1075. zhold = false
  1076. Mouse.Button1Down:connect(function()
  1077. zhold = true
  1078. if attack == false then
  1079. gunshoot()
  1080. end
  1081. end)
  1082.  
  1083. Mouse.Button1Up:connect(function()
  1084. zhold = false
  1085. end)
  1086.  
  1087.  
  1088. checks1 = coroutine.wrap(function() -------Checks
  1089. while true do
  1090. local hf = ray(hrp.Position,(CFrame.new(hrp.Position,hrp.Position+Vector3.new(0,-1,0))).lookVector,3*3,char)
  1091. if hrp.Velocity.y > 1 and hf == nil then
  1092. position = "Jump"
  1093. elseif hrp.Velocity.y < -1 and hf == nil then
  1094. position = "Falling"
  1095. elseif hrp.Velocity.Magnitude < 2 and hf ~= nil then
  1096. position = "Idle"
  1097. elseif hrp.Velocity.Magnitude > 2 and hf ~= nil then
  1098. position = "Walking"
  1099. end
  1100. wait()
  1101. end
  1102. end)
  1103. checks1()
  1104. hum.WalkSpeed = 12
  1105. hum.JumpPower = 70
  1106. lemotor = Motor6D27 -- lower left leg
  1107. lemotor2 = Motor6D30 -- upper left leg
  1108. lemotor3 = Motor6D33 -- knee?
  1109. fmotor = Motor6D223 -- left foot
  1110. remotor = Motor6D3 -- right foot
  1111. remotor2 = Motor6D9 -- upper leg right
  1112. rmottor4 = Motor6D18 -- lower leg right
  1113. remotor3 = Motor6D12 -- knee
  1114. local anims = coroutine.wrap(function()
  1115. while true do
  1116. swait()
  1117. sine = sine + 1
  1118. if position == "Idle" and attacking == false then
  1119. lshoulder.C0 = lshoulder.C0:lerp(lshoulder.C1 *CFrame.new(-0.3,0 + .02 * math.cos(sine/10),1.5) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(-55)),.1)
  1120. ljoystick.C1 = ljoystick.C1:lerp(ljoystick.C0 *CFrame.new(0.75,-4.9,-1.3) *CFrame.Angles(math.rad(0),math.rad(180),math.rad(0)),.1)
  1121. rshoulder.C0 = rshoulder.C0:lerp(rshoulder.C1 *CFrame.new(0.3,0 + .02 * math.cos(sine/10),1.5) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(55)),.1)
  1122. rjoystick.C1 = rjoystick.C1:lerp(rjoystick.C0 *CFrame.new(-2.2,-4.9,-1.3) *CFrame.Angles(math.rad(0),math.rad(180),math.rad(0)),.1)
  1123. rootjoint.C0 = rootjoint.C0:lerp(rootjoint.C1 *CFrame.new(0,0,0+.02 * math.cos(sine/10)) *CFrame.Angles(0,0,0),.1)
  1124. neck.C0 = neck.C0:lerp(neck.C1 *CFrame.new(0,0,1.5+.01 * math.cos(sine/10)) *CFrame.Angles(math.rad(1 - .5 * math.cos(sine/10)),0,0),.1)
  1125. lhip.C0 = lhip.C0:lerp(lhip.C1 *CFrame.new(0,-2,.5+.01 * math.cos(sine/10)) *CFrame.Angles(0,math.rad(5),math.rad(-65)),.1)
  1126. rhip.C0 = rhip.C0:lerp(rhip.C1 *CFrame.new(0,-2,.5+.01 * math.cos(sine/10)) *CFrame.Angles(0,math.rad(-5),math.rad(65)),.1)
  1127. lemotor.C0 = lemotor.C0:lerp(lemotor.C1 *CFrame.new(0,0.67,0.23) *CFrame.Angles(math.rad(-0),math.rad(5),math.rad(0)),.1)
  1128. lemotor2.C0 = lemotor2.C0:lerp(lemotor2.C1 *CFrame.new(-0.1,2.5 - 0.01 * math.cos(sine/10),0.3) *CFrame.Angles(math.rad(-5),math.rad(5),math.rad(0)),.1)
  1129. lemotor3.C0 = lemotor3.C0:lerp(lemotor3.C1 *CFrame.new(0,1.5 - 0.01 * math.cos(sine/10),.3) *CFrame.Angles(math.rad(-5),math.rad(5),math.rad(0)),.1)
  1130. rmottor4.C0 = rmottor4.C0:lerp(rmottor4.C1 *CFrame.new(-1.6,0.57,.25) *CFrame.Angles(math.rad(-0),math.rad(5),math.rad(0)),.1)
  1131. remotor2.C0 = remotor2.C0:lerp(remotor2.C1 *CFrame.new(-1.6,2.5 - 0.01 * math.cos(sine/10),.3) *CFrame.Angles(math.rad(-5),math.rad(5),math.rad(0)),.1)
  1132. remotor3.C0 = remotor3.C0:lerp(remotor3.C1 *CFrame.new(-1.6,1.5 - 0.01 * math.cos(sine/10),.3) *CFrame.Angles(math.rad(-5),math.rad(5),math.rad(0)),.1)
  1133. elseif position == "Walking" and attacking == false then
  1134. lshoulder.C0 = lshoulder.C0:lerp(lshoulder.C1 *CFrame.new(-0.3 - .3 * math.cos(sine/10),0 + .02 * math.cos(sine/10),1.5) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(-55)),.1)
  1135. ljoystick.C1 = ljoystick.C1:lerp(ljoystick.C0 *CFrame.new(0.75,-4.9,-1.3) *CFrame.Angles(math.rad(0- 5 * math.cos(sine/10)),math.rad(180),math.rad(0)),.1)
  1136. rshoulder.C0 = rshoulder.C0:lerp(rshoulder.C1 *CFrame.new(0.3 - .3 * math.cos(sine/10),0 + .02 * math.cos(sine/10),1.5) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(55)),.1)
  1137. rjoystick.C1 = rjoystick.C1:lerp(rjoystick.C0 *CFrame.new(-2.2,-4.9,-1.3) *CFrame.Angles(math.rad(0+ 5 * math.cos(sine/10)),math.rad(180),math.rad(0)),.1)
  1138. rootjoint.C0 = rootjoint.C0:lerp(rootjoint.C1 *CFrame.new(0,0,0+.05 * math.cos(sine/10)) *CFrame.Angles(0,0 + .1 * math.cos(sine/10),math.rad(0 + .05 * math.cos(sine/5))),.1)
  1139. neck.C0 = neck.C0:lerp(neck.C1 *CFrame.new(0,0,1.5+.01 * math.cos(sine/10)) *CFrame.Angles(math.rad(0),0,0),.1)
  1140. lemotor.C0 = lemotor.C0:lerp(lemotor2.C1 *CFrame.new(0,0.67- 0.01 * math.cos(sine/10),0.23- 1 * math.cos(sine/10)) *CFrame.Angles(math.rad(-0- 20 * math.cos(sine/10)),math.rad(5),math.rad(0)),.1)
  1141. lemotor2.C0 = lemotor2.C0:lerp(lemotor2.C1 *CFrame.new(0,2.5 - 0.01 * math.cos(sine/10),0.3- 1 * math.cos(sine/10)) *CFrame.Angles(math.rad(-5- 10 * math.cos(sine/10)),math.rad(5),math.rad(0)),.1)
  1142. lemotor3.C0 = lemotor3.C0:lerp(lemotor2.C1 *CFrame.new(0,1.5 - 0.01 * math.cos(sine/10),.3- 1* math.cos(sine/10)) *CFrame.Angles(math.rad(-5),math.rad(5),math.rad(0)),.1)
  1143. fmotor.C1 = fmotor.C1:lerp(CFrame.new(0,.1,-0.2) *CFrame.Angles(math.rad(10),math.rad(5),math.rad(0)),.1)
  1144. rmottor4.C0 = rmottor4.C0:lerp(remotor2.C1 *CFrame.new(-1.6,0.67- 0.01 * math.cos(sine/10),-0.23+ 1 * math.cos(sine/10)) *CFrame.Angles(math.rad(-0- 20 * math.cos(sine/10)),math.rad(5),math.rad(0)),.1)
  1145. remotor2.C0 = remotor2.C0:lerp(remotor2.C1 *CFrame.new(-1.6,2.5 - 0.01 * math.cos(sine/10),-0.3+ 1 * math.cos(sine/10)) *CFrame.Angles(math.rad(-5- 10 * math.cos(sine/10)),math.rad(5),math.rad(0)),.1)
  1146. remotor3.C0 = remotor3.C0:lerp(remotor2.C1 *CFrame.new(-1.6,1.5 - 0.01 * math.cos(sine/10),-.3+ 1 * math.cos(sine/10)) *CFrame.Angles(math.rad(-5),math.rad(5),math.rad(0)),.1)
  1147. remotor.C1 = remotor.C1:lerp(CFrame.new(0,.1,-0.2) *CFrame.Angles(math.rad(10),math.rad(-5),math.rad(0)),.1)
  1148. lhip.C0 = lhip.C0:lerp(lhip.C1 *CFrame.new(0,-2,.5+.01 * math.cos(sine/10)) *CFrame.Angles(0,math.rad(5),math.rad(-65)),.1)
  1149. rhip.C0 = rhip.C0:lerp(rhip.C1 *CFrame.new(0,-2,.5+.01 * math.cos(sine/10)) *CFrame.Angles(0,math.rad(-5),math.rad(65)),.1)
  1150. elseif position == "Jump" and attacking == false then
  1151. lshoulder.C0 = lshoulder.C0:lerp(lshoulder.C1 *CFrame.new(-.3,0 + .02 * math.cos(sine/10),1.5) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(-55)),.5)
  1152. ljoystick.C1 = ljoystick.C1:lerp(ljoystick.C0 *CFrame.new(0.75,-4.9,-1.1) *CFrame.Angles(math.rad(25),math.rad(180),math.rad(0)),.5)
  1153. rshoulder.C0 = rshoulder.C0:lerp(rshoulder.C1 *CFrame.new(0.3,0 + .02 * math.cos(sine/10),1.5) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(55)),.5)
  1154. rjoystick.C1 = rjoystick.C1:lerp(rjoystick.C0 *CFrame.new(-2.2,-4.9,-1.1) *CFrame.Angles(math.rad(25),math.rad(180),math.rad(0)),.5)
  1155. rootjoint.C0 = rootjoint.C0:lerp(rootjoint.C1 *CFrame.new(0,0,0+.05 * math.cos(sine/10)) *CFrame.Angles(math.rad(-30),0,0),.5)
  1156. neck.C0 = neck.C0:lerp(neck.C1 *CFrame.new(0,0,1.5+.01 * math.cos(sine/10)) *CFrame.Angles(math.rad(20),0,0),.5)
  1157. lhip.C0 = lhip.C0:lerp(lhip.C1 *CFrame.new(0,-2,.5+.01 * math.cos(sine/10)) *CFrame.Angles(0,math.rad(5),math.rad(-65)),.5)
  1158. rhip.C0 = rhip.C0:lerp(rhip.C1 *CFrame.new(0,-2,.5+.01 * math.cos(sine/10)) *CFrame.Angles(0,math.rad(-5),math.rad(65)),.5)
  1159. lemotor.C0 = lemotor.C0:lerp(lemotor2.C1 *CFrame.new(0,1.67- 0.01 * math.cos(sine/10),0.23- 0.5 * math.cos(sine/10)) *CFrame.Angles(math.rad(-0),math.rad(5),math.rad(0)),.1)
  1160. lemotor2.C0 = lemotor2.C0:lerp(lemotor2.C1 *CFrame.new(0,2.5 - 0.01 * math.cos(sine/10),0.3- 0.5 * math.cos(sine/10)) *CFrame.Angles(math.rad(-30),math.rad(5),math.rad(0)),.1)
  1161. lemotor3.C0 = lemotor3.C0:lerp(lemotor2.C1 *CFrame.new(0,2 - 0.01 * math.cos(sine/10),.3- 0.5 * math.cos(sine/10)) *CFrame.Angles(math.rad(30),math.rad(5),math.rad(0)),.1)
  1162. fmotor.C1 = fmotor.C1:lerp(CFrame.new(0,.1,-0.2) *CFrame.Angles(math.rad(0),math.rad(5),math.rad(0)),.1)
  1163. rmottor4.C0 = rmottor4.C0:lerp(remotor2.C1 *CFrame.new(-1.6,1.67- 0.01 * math.cos(sine/10),0.23- 0.5 * math.cos(sine/10)) *CFrame.Angles(math.rad(-0),math.rad(5),math.rad(0)),.1)
  1164. remotor2.C0 = remotor2.C0:lerp(remotor2.C1 *CFrame.new(-1.6,2.5 - 0.01 * math.cos(sine/10),0.3- 0.5 * math.cos(sine/10)) *CFrame.Angles(math.rad(-30),math.rad(5),math.rad(0)),.1)
  1165. remotor3.C0 = remotor3.C0:lerp(remotor2.C1 *CFrame.new(-1.6,2 - 0.01 * math.cos(sine/10),.3- 0.5 * math.cos(sine/10)) *CFrame.Angles(math.rad(30),math.rad(5),math.rad(0)),.1)
  1166. remotor.C1 = fmotor.C1:lerp(CFrame.new(0,.1,-0.2) *CFrame.Angles(math.rad(0),math.rad(5),math.rad(0)),.1)
  1167. elseif position == "Falling" and attacking == false then
  1168. lshoulder.C0 = lshoulder.C0:lerp(lshoulder.C1 *CFrame.new(-.3,0 + .02 * math.cos(sine/10),1.5) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(-55)),.1)
  1169. ljoystick.C1 = ljoystick.C1:lerp(ljoystick.C0 *CFrame.new(0.75,-4.9,-1.1) *CFrame.Angles(math.rad(25),math.rad(180),math.rad(0)),.1)
  1170. rshoulder.C0 = rshoulder.C0:lerp(rshoulder.C1 *CFrame.new(0.3,0 + .02 * math.cos(sine/10),1.5) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(55)),.1)
  1171. rjoystick.C1 = rjoystick.C1:lerp(rjoystick.C0 *CFrame.new(-2.2,-4.9,-1.1) *CFrame.Angles(math.rad(25),math.rad(180),math.rad(0)),.1)
  1172. rootjoint.C0 = rootjoint.C0:lerp(rootjoint.C1 *CFrame.new(0,0,0+.02 * math.cos(sine/10)) *CFrame.Angles(math.rad(-30),0,0),.1)
  1173. neck.C0 = neck.C0:lerp(neck.C1 *CFrame.new(0,0,1.5+.01 * math.cos(sine/10)) *CFrame.Angles(math.rad(20),0,0),.1)
  1174. lhip.C0 = lhip.C0:lerp(lhip.C1 *CFrame.new(0,-2,.5+.01 * math.cos(sine/10)) *CFrame.Angles(0,math.rad(5),math.rad(-65)),.1)
  1175. rhip.C0 = rhip.C0:lerp(rhip.C1 *CFrame.new(0,-2,.5+.01 * math.cos(sine/10)) *CFrame.Angles(0,math.rad(-5),math.rad(65)),.1)
  1176. lemotor.C0 = lemotor.C0:lerp(lemotor2.C1 *CFrame.new(0,1.67- 0.01 * math.cos(sine/10),0.23) *CFrame.Angles(math.rad(-0),math.rad(5),math.rad(0)),.1)
  1177. lemotor2.C0 = lemotor2.C0:lerp(lemotor2.C1 *CFrame.new(0,2.5 - 0.01 * math.cos(sine/10),0.3) *CFrame.Angles(math.rad(-30),math.rad(5),math.rad(0)),.1)
  1178. lemotor3.C0 = lemotor3.C0:lerp(lemotor2.C1 *CFrame.new(0,2 - 0.01 * math.cos(sine/10),.3) *CFrame.Angles(math.rad(30),math.rad(5),math.rad(0)),.1)
  1179. fmotor.C1 = fmotor.C1:lerp(CFrame.new(0,.1,-0.2) *CFrame.Angles(math.rad(0),math.rad(5),math.rad(0)),.1)
  1180. rmottor4.C0 = rmottor4.C0:lerp(remotor2.C1 *CFrame.new(-1.6,1.67- 0.01 * math.cos(sine/10),0.23) *CFrame.Angles(math.rad(-0),math.rad(5),math.rad(0)),.1)
  1181. remotor2.C0 = remotor2.C0:lerp(remotor2.C1 *CFrame.new(-1.6,2.5 - 0.01 * math.cos(sine/10),0.3) *CFrame.Angles(math.rad(-30),math.rad(5),math.rad(0)),.1)
  1182. remotor3.C0 = remotor3.C0:lerp(remotor2.C1 *CFrame.new(-1.6,2 - 0.01 * math.cos(sine/10),.3) *CFrame.Angles(math.rad(30),math.rad(5),math.rad(0)),.1)
  1183. remotor.C1 = fmotor.C1:lerp(CFrame.new(0,.1,-0.2) *CFrame.Angles(math.rad(0),math.rad(5),math.rad(0)),.1)
  1184. end
  1185. end
  1186. end)
  1187. anims()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement