Advertisement
lafur

Untitled

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