Advertisement
lafur

Untitled

Sep 17th, 2018
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.66 KB | None | 0 0
  1.  
  2. --https://github.com/Mokiros/roblox-FE-compatibility
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  5. local RealPlayer = Player
  6. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end --Converted with ttyyuu12345's model to script plugin v4
  7. function sandbox(var,func)
  8. local env = getfenv(func)
  9. local newenv = setmetatable({},{
  10. __index = function(self,k)
  11. if k=="script" then
  12. return var
  13. else
  14. return env[k]
  15. end
  16. end,
  17. })
  18. setfenv(func,newenv)
  19. return func
  20. end
  21. cors = {}
  22. mas = Instance.new("Model",game:GetService("Lighting"))
  23. Model0 = Instance.new("Model")
  24. Model1 = Instance.new("Model")
  25. Part2 = Instance.new("Part")
  26. SpecialMesh3 = Instance.new("SpecialMesh")
  27. Decal4 = Instance.new("Decal")
  28. Script5 = Instance.new("Script")
  29. Script6 = Instance.new("Script")
  30. Weld7 = Instance.new("Weld")
  31. Weld8 = Instance.new("Weld")
  32. Part9 = Instance.new("Part")
  33. Motor6D10 = Instance.new("Motor6D")
  34. Motor6D11 = Instance.new("Motor6D")
  35. Weld12 = Instance.new("Weld")
  36. Weld13 = Instance.new("Weld")
  37. Script14 = Instance.new("Script")
  38. Part15 = Instance.new("Part")
  39. Script16 = Instance.new("Script")
  40. Part17 = Instance.new("Part")
  41. Weld18 = Instance.new("Weld")
  42. Script19 = Instance.new("Script")
  43. Part20 = Instance.new("Part")
  44. Script21 = Instance.new("Script")
  45. Part22 = Instance.new("Part")
  46. Script23 = Instance.new("Script")
  47. Humanoid24 = Instance.new("Humanoid")
  48. Hat25 = Instance.new("Hat")
  49. Part26 = Instance.new("Part")
  50. SpecialMesh27 = Instance.new("SpecialMesh")
  51. Script28 = Instance.new("Script")
  52. Part29 = Instance.new("Part")
  53. Sound30 = Instance.new("Sound")
  54. Sound31 = Instance.new("Sound")
  55. Script32 = Instance.new("Script")
  56. Script33 = Instance.new("Script")
  57. Hat34 = Instance.new("Hat")
  58. Part35 = Instance.new("Part")
  59. SpecialMesh36 = Instance.new("SpecialMesh")
  60. Part37 = Instance.new("Part")
  61. SpecialMesh38 = Instance.new("SpecialMesh")
  62. Script39 = Instance.new("Script")
  63. Pants40 = Instance.new("Pants")
  64. Shirt41 = Instance.new("Shirt")
  65. Script42 = Instance.new("Script")
  66. Script43 = Instance.new("Script")
  67. Script44 = Instance.new("Script")
  68. BillboardGui45 = Instance.new("BillboardGui")
  69. TextLabel46 = Instance.new("TextLabel")
  70. Script47 = Instance.new("Script")
  71. Script48 = Instance.new("Script")
  72. Sound49 = Instance.new("Sound")
  73. Model0.Name = "Communist Spawner"
  74. Model0.Parent = mas
  75. Model1.Name = "Communist"
  76. Model1.Parent = Model0
  77. Model1.PrimaryPart = Part2
  78. Part2.Name = "Head"
  79. Part2.Parent = Model1
  80. Part2.BrickColor = BrickColor.new("Light orange")
  81. Part2.FormFactor = Enum.FormFactor.Symmetric
  82. Part2.Size = Vector3.new(2, 1, 1)
  83. Part2.CFrame = CFrame.new(-8.05184364, 1038.06909, -2.08751607, 1, 0, 3.70398773e-17, 0, 1, 0, 3.70398773e-17, 0, 1)
  84. Part2.TopSurface = Enum.SurfaceType.Smooth
  85. Part2.Color = Color3.new(0.917647, 0.721569, 0.572549)
  86. Part2.Position = Vector3.new(-8.05184364, 1038.06909, -2.08751607)
  87. Part2.Color = Color3.new(0.917647, 0.721569, 0.572549)
  88. SpecialMesh3.Parent = Part2
  89. SpecialMesh3.Scale = Vector3.new(1.25, 1.25, 1.25)
  90. SpecialMesh3.Scale = Vector3.new(1.25, 1.25, 1.25)
  91. Decal4.Parent = Part2
  92. Decal4.Texture = "http://www.roblox.com/asset/?id=221967384"
  93. Script5.Parent = Part2
  94. table.insert(cors,sandbox(Script5,function()
  95. function blow(hit)
  96. local humanoid = hit.Parent:findFirstChild("Humanoid")
  97.  
  98. if humanoid~=nil then
  99. humanoid:TakeDamage(25)
  100. end
  101. end
  102.  
  103.  
  104.  
  105. connection = script.Parent.Touched:connect(blow)
  106.  
  107.  
  108.  
  109. end))
  110. Script6.Name = "PlaySounds"
  111. Script6.Parent = Part2
  112. table.insert(cors,sandbox(Script6,function()
  113. zombieParent = false
  114.  
  115. local soundIds = {113306429,111896685,113306429}
  116. local sounds = {}
  117. for i=1,#soundIds do
  118. local s = Instance.new("Sound")
  119. s.SoundId = "http://www.roblox.com/asset/?id=" .. soundIds[i]
  120. s.Volume = 1
  121. s.Parent = script.Parent
  122. sounds[#sounds + 1] = s
  123. end
  124.  
  125. while zombieParent == false do
  126.  
  127. wait(1)
  128. if script.Parent.Name == "Head" then
  129. zombieParent = true
  130. end
  131.  
  132. end
  133.  
  134. while true do
  135. wait(math.random(20,35))
  136. local i = math.random(1, #sounds)
  137. sounds[i].Pitch = 1
  138. sounds[i]:Play()
  139. end
  140. end))
  141. Weld7.Name = "HeadWeld"
  142. Weld7.Parent = Part2
  143. Weld7.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  144. Weld7.C1 = CFrame.new(0, 0.349999994, 0, 1, 0, -0, 0, 0.995037258, 0.0995037109, 0, -0.0995037258, 0.995037138)
  145. Weld7.Part0 = Part2
  146. Weld7.Part1 = Part26
  147. Weld8.Name = "HeadWeld"
  148. Weld8.Parent = Part2
  149. Weld8.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  150. Weld8.C1 = CFrame.new(0, -0.100000001, 0, 1, 0, -0, 0, 0.995037258, 0.0995037109, 0, -0.0995037258, 0.995037138)
  151. Weld8.Part0 = Part2
  152. Weld8.Part1 = Part35
  153. Part9.Name = "Torso"
  154. Part9.Parent = Model1
  155. Part9.BrickColor = BrickColor.new("Light orange")
  156. Part9.FormFactor = Enum.FormFactor.Symmetric
  157. Part9.Size = Vector3.new(2, 2, 1)
  158. Part9.CFrame = CFrame.new(-8.05184364, 1036.56909, -2.08751607, 1, 0, 1.23466252e-17, 0, 1, 0, 1.23466252e-17, 0, 1)
  159. Part9.LeftSurface = Enum.SurfaceType.Weld
  160. Part9.RightSurface = Enum.SurfaceType.Weld
  161. Part9.Color = Color3.new(0.917647, 0.721569, 0.572549)
  162. Part9.Position = Vector3.new(-8.05184364, 1036.56909, -2.08751607)
  163. Part9.Color = Color3.new(0.917647, 0.721569, 0.572549)
  164. Motor6D10.Name = "Right Hip"
  165. Motor6D10.Parent = Part9
  166. Motor6D10.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  167. Motor6D10.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  168. Motor6D10.Part0 = Part9
  169. Motor6D10.Part1 = Part22
  170. Motor6D10.MaxVelocity = 0.10000000149012
  171. Motor6D11.Name = "Left Hip"
  172. Motor6D11.Parent = Part9
  173. Motor6D11.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  174. Motor6D11.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  175. Motor6D11.Part0 = Part9
  176. Motor6D11.Part1 = Part20
  177. Motor6D11.MaxVelocity = 0.10000000149012
  178. Weld12.Parent = Part9
  179. Weld12.C1 = CFrame.new(0.800000012, 0.5, 0.400000006, 0.766044438, 0, 0.642787576, -0.642787576, 1.19248806e-08, 0.766044438, -7.66516539e-09, -1, 9.13498877e-09)
  180. Weld12.Part0 = Part9
  181. Weld12.Part1 = Part15
  182. Weld13.Parent = Part9
  183. Weld13.C1 = CFrame.new(-1.20000005, 0.5, 0.400000006, 0.99619472, 0, -0.087155737, 0.087155737, 1.19248806e-08, 0.99619472, 1.03932174e-09, -1, 1.18795027e-08)
  184. Weld13.Part0 = Part9
  185. Weld13.Part1 = Part17
  186. Script14.Parent = Part9
  187. table.insert(cors,sandbox(Script14,function()
  188. function blow(hit)
  189. local humanoid = hit.Parent:findFirstChild("Humanoid")
  190.  
  191. if humanoid~=nil then
  192. humanoid:TakeDamage(25)
  193. end
  194. end
  195.  
  196.  
  197.  
  198. connection = script.Parent.Touched:connect(blow)
  199.  
  200.  
  201.  
  202. end))
  203. Part15.Name = "Left Arm"
  204. Part15.Parent = Model1
  205. Part15.BrickColor = BrickColor.new("Light orange")
  206. Part15.Rotation = Vector3.new(90, 0, 40)
  207. Part15.CanCollide = false
  208. Part15.FormFactor = Enum.FormFactor.Symmetric
  209. Part15.Size = Vector3.new(1, 2, 1)
  210. Part15.CFrame = CFrame.new(-8.34328556, 1036.96912, -2.98476839, 0.766044438, -0.642787576, -7.66516539e-09, 0, 1.19248806e-08, -1, 0.642787576, 0.766044438, 9.13498877e-09)
  211. Part15.Color = Color3.new(0.917647, 0.721569, 0.572549)
  212. Part15.Position = Vector3.new(-8.34328556, 1036.96912, -2.98476839)
  213. Part15.Orientation = Vector3.new(90, -40, 0)
  214. Part15.Color = Color3.new(0.917647, 0.721569, 0.572549)
  215. Script16.Parent = Part15
  216. table.insert(cors,sandbox(Script16,function()
  217. function blow(hit)
  218. local humanoid = hit.Parent:findFirstChild("Humanoid")
  219.  
  220. if humanoid~=nil then
  221. humanoid:TakeDamage(25)
  222. end
  223. end
  224.  
  225.  
  226.  
  227. connection = script.Parent.Touched:connect(blow)
  228.  
  229.  
  230.  
  231. end))
  232. Part17.Name = "Right Arm"
  233. Part17.Parent = Model1
  234. Part17.BrickColor = BrickColor.new("Light orange")
  235. Part17.Rotation = Vector3.new(90, 0, -5)
  236. Part17.CanCollide = false
  237. Part17.FormFactor = Enum.FormFactor.Symmetric
  238. Part17.Size = Vector3.new(1, 2, 1)
  239. Part17.CFrame = CFrame.new(-6.8999877, 1036.96912, -2.69020033, 0.99619472, 0.087155737, 1.03932174e-09, 0, 1.19248806e-08, -1, -0.087155737, 0.99619472, 1.18795027e-08)
  240. Part17.Color = Color3.new(0.917647, 0.721569, 0.572549)
  241. Part17.Position = Vector3.new(-6.8999877, 1036.96912, -2.69020033)
  242. Part17.Orientation = Vector3.new(90, 5, 0)
  243. Part17.Color = Color3.new(0.917647, 0.721569, 0.572549)
  244. Weld18.Name = "RightGrip"
  245. Weld18.Parent = Part17
  246. Weld18.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  247. Weld18.C1 = CFrame.new(0, -0.200000003, 0.200000003, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  248. Weld18.Part0 = Part17
  249. Weld18.Part1 = Part29
  250. Script19.Parent = Part17
  251. table.insert(cors,sandbox(Script19,function()
  252. function blow(hit)
  253. local humanoid = hit.Parent:findFirstChild("Humanoid")
  254.  
  255. if humanoid~=nil then
  256. humanoid:TakeDamage(25)
  257. end
  258. end
  259.  
  260.  
  261.  
  262. connection = script.Parent.Touched:connect(blow)
  263.  
  264.  
  265.  
  266. end))
  267. Part20.Name = "Left Leg"
  268. Part20.Parent = Model1
  269. Part20.BrickColor = BrickColor.new("Light orange")
  270. Part20.CanCollide = false
  271. Part20.FormFactor = Enum.FormFactor.Symmetric
  272. Part20.Size = Vector3.new(1, 2, 1)
  273. Part20.CFrame = CFrame.new(-8.55184364, 1034.56909, -2.08751607, 1, 0, 1.23466252e-17, 0, 1, 0, 1.23466252e-17, 0, 1)
  274. Part20.BottomSurface = Enum.SurfaceType.Smooth
  275. Part20.Color = Color3.new(0.917647, 0.721569, 0.572549)
  276. Part20.Position = Vector3.new(-8.55184364, 1034.56909, -2.08751607)
  277. Part20.Color = Color3.new(0.917647, 0.721569, 0.572549)
  278. Script21.Parent = Part20
  279. table.insert(cors,sandbox(Script21,function()
  280. function blow(hit)
  281. local humanoid = hit.Parent:findFirstChild("Humanoid")
  282.  
  283. if humanoid~=nil then
  284. humanoid:TakeDamage(25)
  285. end
  286. end
  287.  
  288.  
  289.  
  290. connection = script.Parent.Touched:connect(blow)
  291.  
  292.  
  293.  
  294. end))
  295. Part22.Name = "Right Leg"
  296. Part22.Parent = Model1
  297. Part22.BrickColor = BrickColor.new("Light orange")
  298. Part22.CanCollide = false
  299. Part22.FormFactor = Enum.FormFactor.Symmetric
  300. Part22.Size = Vector3.new(1, 2, 1)
  301. Part22.CFrame = CFrame.new(-7.55184364, 1034.56909, -2.08751607, 1, 0, 1.23466252e-17, 0, 1, 0, 1.23466252e-17, 0, 1)
  302. Part22.BottomSurface = Enum.SurfaceType.Smooth
  303. Part22.Color = Color3.new(0.917647, 0.721569, 0.572549)
  304. Part22.Position = Vector3.new(-7.55184364, 1034.56909, -2.08751607)
  305. Part22.Color = Color3.new(0.917647, 0.721569, 0.572549)
  306. Script23.Parent = Part22
  307. table.insert(cors,sandbox(Script23,function()
  308. function blow(hit)
  309. local humanoid = hit.Parent:findFirstChild("Humanoid")
  310.  
  311. if humanoid~=nil then
  312. humanoid:TakeDamage(25)
  313. end
  314. end
  315.  
  316.  
  317.  
  318. connection = script.Parent.Touched:connect(blow)
  319.  
  320.  
  321.  
  322. end))
  323. Humanoid24.Name = "Zombie"
  324. Humanoid24.Parent = Model1
  325. Humanoid24.NameOcclusion = Enum.NameOcclusion.NoOcclusion
  326. Humanoid24.RightLeg = Part22
  327. Humanoid24.LeftLeg = Part20
  328. Humanoid24.Torso = Part9
  329. Humanoid24.Health = 135
  330. Humanoid24.MaxHealth = 135
  331. Humanoid24.WalkSpeed = 18
  332. Hat25.Name = "Millitary Beanie"
  333. Hat25.Parent = Model1
  334. Hat25.AttachmentForward = Vector3.new(0, -0.0995037109, -0.995037138)
  335. Hat25.AttachmentPos = Vector3.new(0, 0.349999994, 0)
  336. Hat25.AttachmentUp = Vector3.new(0, 0.995037258, -0.0995037258)
  337. Part26.Name = "Handle"
  338. Part26.Parent = Hat25
  339. Part26.BrickColor = BrickColor.new("Bright red")
  340. Part26.Rotation = Vector3.new(5.71000004, 0, 0)
  341. Part26.CanCollide = false
  342. Part26.FormFactor = Enum.FormFactor.Symmetric
  343. Part26.Size = Vector3.new(1, 1, 1)
  344. Part26.CFrame = CFrame.new(-8.05184364, 1038.22083, -2.12234235, 1, 3.68560538e-18, 3.68560546e-17, 0, 0.995037258, -0.0995037258, 3.70398773e-17, 0.0995037109, 0.995037138)
  345. Part26.BottomSurface = Enum.SurfaceType.Smooth
  346. Part26.TopSurface = Enum.SurfaceType.Smooth
  347. Part26.Color = Color3.new(0.768628, 0.156863, 0.109804)
  348. Part26.Position = Vector3.new(-8.05184364, 1038.22083, -2.12234235)
  349. Part26.Orientation = Vector3.new(5.71000004, 0, 0)
  350. Part26.Color = Color3.new(0.768628, 0.156863, 0.109804)
  351. SpecialMesh27.Parent = Part26
  352. SpecialMesh27.MeshId = "http://www.roblox.com/asset/?id=9466401"
  353. SpecialMesh27.Scale = Vector3.new(1, 1.10000002, 0.850000024)
  354. SpecialMesh27.TextureId = "http://www.roblox.com/asset/?id=9466384"
  355. SpecialMesh27.MeshType = Enum.MeshType.FileMesh
  356. SpecialMesh27.Scale = Vector3.new(1, 1.10000002, 0.850000024)
  357. Script28.Name = "Control"
  358. Script28.Parent = Model1
  359. table.insert(cors,sandbox(Script28,function()
  360. wait(.1)
  361. local ammo=30 -- How much ammo the Enemy has
  362. local w=.14
  363. local r=false
  364. local t=script.Parent
  365. Spawn(function()
  366. local c=t:Clone()
  367. wait(1)
  368. t.Humanoid.Died:wait()
  369. wait(3)
  370. c.Parent=workspace
  371. c:MakeJoints()
  372. t:Destroy()
  373. end)
  374. local cf={CFrame.new(.8,.5,.4)*CFrame.Angles(math.rad(270),math.rad(40),0),CFrame.new(-1.2,0.5,0.4)*CFrame.Angles(math.rad(270),math.rad(-5),0)}
  375. local c=LoadLibrary'RbxUtility'.Create
  376. local b1=c'Part'{TopSurface=0;BottomSurface=0;Anchored=true;CanCollide=false;BrickColor=BrickColor.White();Size=Vector3.new(.2,.2,1);c'SpecialMesh'{MeshType=6;Scale=Vector3.new(.2,.2,1)}}
  377. local b2=b1:Clone()
  378. b1.Name,b2.Name='1','2'
  379. local mov=c'Part'{Transparency=1;CanCollide=false;Parent=t;Anchored=true}
  380. local h=t:WaitForChild'Handle'
  381. local function reload(boo)
  382. if(boo and ammo~=30)or ammo==0 then
  383. r=true
  384. if w then
  385. w=.03
  386. end
  387. h.Reload:Play()
  388. wait(3) -- How long the Enemy reloads
  389. ammo=30
  390. if w then
  391. w=.14
  392. end
  393. r=false
  394. elseif boo then
  395. wait(.1)
  396. end
  397. end
  398. local function near()
  399. local dis,pl=5000,nil -- Range of the Enemy
  400. for _,v in ipairs(game.Players:GetPlayers())do
  401. if v.Character and v.Character:FindFirstChild'Humanoid'and v:DistanceFromCharacter(h.Position)<dis then
  402. dis,pl=v:DistanceFromCharacter(h.Position),v
  403. end
  404. end
  405. if pl then
  406. return pl.Character:GetModelCFrame(),dis,CFrame.new(pl.Character.Humanoid.WalkToPoint).lookVector
  407. else
  408. return nil
  409. end
  410. end
  411. Spawn(function()
  412. while true do
  413. t.Humanoid.Jump=false
  414. while not w do wait(.1)end
  415. for i=1,math.random(4,9)do
  416. wait(w)
  417. end
  418. end
  419. end)
  420. Spawn(function()
  421. while wait(math.random(2,7)/10)do
  422. local n=near()
  423. if n and math.random(1,3)==2 or not n then
  424. mov.CFrame=t.Torso.CFrame+t.Torso.CFrame.lookVector*Vector3.new(math.random(-25,25),0,math.random(-25,25))
  425. else
  426. mov.CFrame=n+Vector3.new((math.random(1,2)==1 and 1 or -1)*math.random(25,50),0,(math.random(1,2)==1 and 1 or -1)*math.random(25,50))
  427. end
  428. wait(.1)
  429. t.Zombie:MoveTo(mov.Position,mov)
  430. end
  431. end)
  432. while true do
  433. local n,mag,hum=near()
  434. if n then
  435. n=n.p
  436. if not r then
  437. w=.14
  438. local dir=h.Position-n
  439. local tst,_=workspace:FindPartOnRay(Ray.new(t.Torso.Position,(n-t.Torso.Position).Unit*999),t)
  440. local aim=n+Vector3.new(math.random(-mag*.015,mag*.015),math.random(-mag*.015,mag*.015),math.random(-mag*.015,mag*.015))*(2+math.random())+hum
  441. if tst and tst.Parent and game.Players:GetPlayerFromCharacter(tst.Parent)then
  442. wait(.1)
  443. h.Fire:Play()
  444. local par,pos=workspace:FindPartOnRay(Ray.new(h.Position,(aim-h.Position).Unit*999),t)
  445. if par then
  446. local h=par.Parent:FindFirstChild'Humanoid'or par.Parent.Parent:FindFirstChild'Humanoid'
  447. if h and h.Health-10>0 then
  448. h.Health=h.Health-67.5 -- How much damage the gun inflicts
  449. elseif h then
  450. h.Health=0
  451. h.Parent:BreakJoints()
  452. end
  453. end
  454. ammo=ammo-1
  455. mag=(h.Position-pos).magnitude
  456. b1.Parent,b2.Parent=t,t
  457. b1.CFrame,b2.CFrame=CFrame.new(h.Position:Lerp(pos,.3),pos),CFrame.new(pos:Lerp(h.Position,.175),h.Position) -- Gun Accuracy (ONLY EDIT IF YOU KNOW WHAT TO DO)
  458. b1.Mesh.Scale,b2.Mesh.Scale=Vector3.new(.2,.2,mag*.75),Vector3.new(.2,.2,mag/4)
  459. Delay(.03,function()b1.Parent=nil wait(.03)b2.Parent=nil end)
  460. end
  461. wait(.035) -- How fast the enemy shoots
  462. if ammo==0 then
  463. reload()
  464. end
  465. end
  466. else
  467. reload(true)
  468. w=false
  469. end
  470. end
  471.  
  472. -- Dellkiller123
  473. end))
  474. Part29.Name = "Handle"
  475. Part29.Parent = Model1
  476. Part29.BrickColor = BrickColor.new("Light orange")
  477. Part29.Transparency = 1
  478. Part29.Rotation = Vector3.new(-180, 85, 180)
  479. Part29.CanCollide = false
  480. Part29.FormFactor = Enum.FormFactor.Symmetric
  481. Part29.Size = Vector3.new(2, 1, 1)
  482. Part29.CFrame = CFrame.new(-7.18638229, 1037.16907, -3.66896391, -0.087155737, -1.03932174e-09, 0.99619472, -1.19248806e-08, 1, 0, -0.99619472, -1.18795027e-08, -0.087155737)
  483. Part29.RightSurface = Enum.SurfaceType.Hinge
  484. Part29.Color = Color3.new(0.917647, 0.721569, 0.572549)
  485. Part29.Position = Vector3.new(-7.18638229, 1037.16907, -3.66896391)
  486. Part29.Orientation = Vector3.new(0, 95, 0)
  487. Part29.Color = Color3.new(0.917647, 0.721569, 0.572549)
  488. Sound30.Name = "Reload"
  489. Sound30.Parent = Part29
  490. Sound30.SoundId = "http://www.roblox.com/asset/?id=132456279"
  491. Sound30.Volume = 0.10000000149012
  492. Sound31.Name = "Fire"
  493. Sound31.Parent = Part29
  494. Sound31.SoundId = "http://www.roblox.com/asset/?id=139711658"
  495. Sound31.Volume = 1
  496. Script32.Parent = Part29
  497. table.insert(cors,sandbox(Script32,function()
  498. function blow(hit)
  499. local humanoid = hit.Parent:findFirstChild("Humanoid")
  500.  
  501. if humanoid~=nil then
  502. humanoid:TakeDamage(25)
  503. end
  504. end
  505.  
  506.  
  507.  
  508. connection = script.Parent.Touched:connect(blow)
  509.  
  510.  
  511.  
  512. end))
  513. Script33.Name = "MoneyKill"
  514. Script33.Parent = Model1
  515. table.insert(cors,sandbox(Script33,function()
  516. --[[Edited by kirbycaden to make it easier to work with, original was made by some free modeler. Thank you for using a script
  517. that.]]--
  518.  
  519.  
  520. Stat2 = true --Make this either true or false depending if you want something else to go be increased in leaderstats.
  521.  
  522. StatName = "KOs" --Name of stats.
  523.  
  524. IncreaseValue = 1 --Increase in Money/Cash/Points etc.
  525.  
  526. Stat2Name = "Kills" --SecondStat name
  527.  
  528. IncreaseValue2 = 1 --SecondStat increase value.
  529.  
  530. local Humanoid = script.Parent.Zombie --If your zombies have "Zombie" instead of "Humanoid", make this Zombie.
  531. function PwntX_X()
  532. local tag = Humanoid:findFirstChild("creator")
  533. if tag ~= nil then
  534. if tag.Value ~= nil then
  535. local Leaderstats = tag.Value:findFirstChild("leaderstats")
  536. if Leaderstats ~= nil then
  537. Leaderstats[StatName].Value = Leaderstats[StatName].Value + IncreaseValue --Change Money to the stat that is increased.
  538. if Stat2 == true then
  539. Leaderstats[Stat2Name].Value = Leaderstats[Stat2Name].Value + IncreaseValue2
  540. wait(0.1)
  541. script:remove()
  542. end
  543. end
  544. end
  545. end
  546. end
  547. Humanoid.Died:connect(PwntX_X)
  548. end))
  549. Hat34.Name = "Millitary Beanie"
  550. Hat34.Parent = Model1
  551. Hat34.AttachmentForward = Vector3.new(0, -0.0995037109, -0.995037138)
  552. Hat34.AttachmentPos = Vector3.new(0, -0.100000001, 0)
  553. Hat34.AttachmentUp = Vector3.new(0, 0.995037258, -0.0995037258)
  554. Part35.Name = "Handle"
  555. Part35.Parent = Hat34
  556. Part35.BrickColor = BrickColor.new("Bright red")
  557. Part35.Rotation = Vector3.new(5.71000004, 0, 0)
  558. Part35.CanCollide = false
  559. Part35.FormFactor = Enum.FormFactor.Symmetric
  560. Part35.Size = Vector3.new(1, 1, 1)
  561. Part35.CFrame = CFrame.new(-8.05184364, 1038.66858, -2.07756567, 1, 3.68560538e-18, 3.68560546e-17, 0, 0.995037258, -0.0995037258, 3.70398773e-17, 0.0995037109, 0.995037138)
  562. Part35.BottomSurface = Enum.SurfaceType.Smooth
  563. Part35.TopSurface = Enum.SurfaceType.Smooth
  564. Part35.Color = Color3.new(0.768628, 0.156863, 0.109804)
  565. Part35.Position = Vector3.new(-8.05184364, 1038.66858, -2.07756567)
  566. Part35.Orientation = Vector3.new(5.71000004, 0, 0)
  567. Part35.Color = Color3.new(0.768628, 0.156863, 0.109804)
  568. SpecialMesh36.Parent = Part35
  569. SpecialMesh36.MeshId = "http://www.roblox.com/asset/?id=76696701"
  570. SpecialMesh36.Scale = Vector3.new(1.26999998, 1.37, 1.26999998)
  571. SpecialMesh36.TextureId = "http://www.roblox.com/asset/?id=121377688"
  572. SpecialMesh36.MeshType = Enum.MeshType.FileMesh
  573. SpecialMesh36.Scale = Vector3.new(1.26999998, 1.37, 1.26999998)
  574. Part37.Parent = Model1
  575. Part37.BrickColor = BrickColor.new("Light orange")
  576. Part37.Rotation = Vector3.new(0, 5, 0)
  577. Part37.CanCollide = false
  578. Part37.FormFactor = Enum.FormFactor.Custom
  579. Part37.Size = Vector3.new(1, 0.200000003, 2)
  580. Part37.CFrame = CFrame.new(-7.18634081, 1037.76929, -3.66896701, 0.99619472, -1.03932174e-09, 0.087155737, 0, 1, 1.19248806e-08, -0.087155737, -1.18795027e-08, 0.99619472)
  581. Part37.TopSurface = Enum.SurfaceType.Smooth
  582. Part37.Color = Color3.new(0.917647, 0.721569, 0.572549)
  583. Part37.Position = Vector3.new(-7.18634081, 1037.76929, -3.66896701)
  584. Part37.Orientation = Vector3.new(0, 5, 0)
  585. Part37.Color = Color3.new(0.917647, 0.721569, 0.572549)
  586. SpecialMesh38.Parent = Part37
  587. SpecialMesh38.MeshId = "http://www.roblox.com/asset/?id=3824749"
  588. SpecialMesh38.Offset = Vector3.new(-0.174999997, -0.600000024, -0.174999997)
  589. SpecialMesh38.Scale = Vector3.new(1.70000005, 1.29999995, 1.10000002)
  590. SpecialMesh38.TextureId = "http://www.roblox.com/asset/?id=159740858"
  591. SpecialMesh38.VertexColor = Vector3.new(0.699999988, 0.699999988, 0.699999988)
  592. SpecialMesh38.MeshType = Enum.MeshType.FileMesh
  593. SpecialMesh38.Scale = Vector3.new(1.70000005, 1.29999995, 1.10000002)
  594. Script39.Name = "RaceGenerator"
  595. Script39.Parent = Model1
  596. table.insert(cors,sandbox(Script39,function()
  597. colors={"Brick yellow", "Light orange", "Nougat", "Bright orange"}
  598. Color=BrickColor.new(colors[math.random(1,6)])
  599. for i,v in pairs(script.Parent:GetChildren()) do
  600. if v.Name=='Head' or v.Name=='Right Leg' or v.Name=='Right Arm' or v.Name=='Left Arm' or v.Name=='Left Leg' or v.Name=='Torso' then
  601. v.BrickColor=Color
  602. end
  603. end
  604. end))
  605. Pants40.Name = "Pants"
  606. Pants40.Parent = Model1
  607. Pants40.PantsTemplate = "http://www.roblox.com/asset/?id=221961768"
  608. Shirt41.Name = "Shirt"
  609. Shirt41.Parent = Model1
  610. Shirt41.ShirtTemplate = "http://www.roblox.com/asset/?id=221961698"
  611. Script42.Name = "Robot"
  612. Script42.Parent = Model1
  613. table.insert(cors,sandbox(Script42,function()
  614. miked=script.Parent
  615.  
  616. itlh=miked.Torso:findFirstChild("Left Hip")
  617. itlh.Part0=miked.Torso
  618. itlh.Part1=miked:findFirstChild("Left Leg")
  619. itlh.C0=CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  620.  
  621. itrh=miked.Torso:findFirstChild("Right Hip")
  622. itrh.Part0=miked.Torso
  623. itrh.Part1=miked:findFirstChild("Right Leg")
  624. itrh.C0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  625.  
  626. itls=miked.Torso:findFirstChild("Left Shoulder")
  627. itls.Part1=miked.Torso
  628. itls.C0=CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  629. itls.Part0=miked:findFirstChild("Left Arm")
  630.  
  631. itrs=miked.Torso:findFirstChild("Right Shoulder")
  632. itrs.Part1=miked.Torso
  633. itrs.C0=CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  634. itrs.Part0=miked:findFirstChild("Right Arm")
  635.  
  636. miked.Head:makeJoints()
  637. ------------------
  638. ------------------
  639.  
  640.  
  641. function waitForChild(parent, childName)
  642. while true do
  643. local child = parent:findFirstChild(childName)
  644. if child then
  645. return child
  646. end
  647. parent.ChildAdded:wait()
  648. end
  649. end
  650.  
  651. local Figure = script.Parent
  652. local Torso = waitForChild(Figure, "Torso")
  653. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  654. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  655. local RightHip = waitForChild(Torso, "Right Hip")
  656. local LeftHip = waitForChild(Torso, "Left Hip")
  657. local Neck = waitForChild(Torso, "Neck")
  658. local Humanoid = waitForChild(Figure, "Humanoid")
  659. local pose = "Standing"
  660.  
  661. local toolAnim = "None"
  662. local toolAnimTime = 0
  663.  
  664. local isSeated = false
  665.  
  666.  
  667. function onRunning(speed)
  668. if isSeated then return end
  669.  
  670. if speed>0 then
  671. pose = "Running"
  672. else
  673. pose = "Standing"
  674. end
  675. end
  676.  
  677. function onDied()
  678. pose = "Dead"
  679. end
  680.  
  681. function onJumping()
  682. isSeated = false
  683. pose = "Jumping"
  684. end
  685.  
  686. function onClimbing()
  687. pose = "Climbing"
  688. end
  689.  
  690. function onGettingUp()
  691. pose = "GettingUp"
  692. end
  693.  
  694. function onFreeFall()
  695. pose = "FreeFall"
  696. end
  697.  
  698. function onDancing()
  699. pose = "Dancing"
  700. end
  701.  
  702. function onFallingDown()
  703. pose = "FallingDown"
  704. end
  705.  
  706. function onSeated()
  707. isSeated = true
  708. pose = "Seated"
  709. end
  710.  
  711.  
  712.  
  713. function moveJump()
  714. RightShoulder.MaxVelocity = 0.5
  715. LeftShoulder.MaxVelocity = 0.5
  716. RightShoulder.DesiredAngle = -3.14
  717. LeftShoulder.DesiredAngle = -3.14
  718. RightHip.DesiredAngle = 0
  719. LeftHip.DesiredAngle = 0
  720. end
  721.  
  722. function moveFreeFall()
  723. RightShoulder.MaxVelocity = 0.5
  724. LeftShoulder.MaxVelocity = 0.5
  725. RightShoulder.DesiredAngle = -1
  726. LeftShoulder.DesiredAngle = -1
  727. RightHip.DesiredAngle = 0
  728. LeftHip.DesiredAngle = 0
  729. end
  730.  
  731. function moveFloat()
  732. RightShoulder.MaxVelocity = 0.5
  733. LeftShoulder.MaxVelocity = 0.5
  734. RightShoulder.DesiredAngle = -1.57
  735. LeftShoulder.DesiredAngle = 1.57
  736. RightHip.DesiredAngle = 1.57
  737. LeftHip.DesiredAngle = -1.57
  738. end
  739.  
  740. function moveBoogy()
  741. while pose=="Boogy" do
  742. wait(.5)
  743. RightShoulder.MaxVelocity = 1
  744. LeftShoulder.MaxVelocity = 1
  745. RightShoulder.DesiredAngle = -3.14
  746. LeftShoulder.DesiredAngle = 0
  747. RightHip.DesiredAngle = 1.57
  748. LeftHip.DesiredAngle = 0
  749. wait(.5)
  750. RightShoulder.MaxVelocity = 1
  751. LeftShoulder.MaxVelocity = 1
  752. RightShoulder.DesiredAngle = 0
  753. LeftShoulder.DesiredAngle = -3.14
  754. RightHip.DesiredAngle = 0
  755. LeftHip.DesiredAngle = 1.57
  756. end
  757. end
  758.  
  759. function moveZombie()
  760. RightShoulder.MaxVelocity = 0.5
  761. LeftShoulder.MaxVelocity = 0.5
  762. RightShoulder.DesiredAngle = -1.57
  763. LeftShoulder.DesiredAngle = 1.57
  764. RightHip.DesiredAngle = 0
  765. LeftHip.DesiredAngle = 0
  766. end
  767.  
  768. function movePunch()
  769. script.Parent.Torso.Anchored=true
  770. RightShoulder.MaxVelocity = 60
  771. LeftShoulder.MaxVelocity = 0.5
  772. RightShoulder.DesiredAngle = -1.57
  773. LeftShoulder.DesiredAngle = 0
  774. RightHip.DesiredAngle = 0
  775. LeftHip.DesiredAngle = 0
  776. wait(1)
  777. script.Parent.Torso.Anchored=false
  778. pose="Standing"
  779.  
  780. end
  781.  
  782. function moveKick()
  783. RightShoulder.MaxVelocity = 0.5
  784. LeftShoulder.MaxVelocity = 0.5
  785. RightShoulder.DesiredAngle = 0
  786. LeftShoulder.DesiredAngle = 0
  787. RightHip.MaxVelocity = 40
  788. RightHip.DesiredAngle = 1.57
  789. LeftHip.DesiredAngle = 0
  790. wait(1)
  791. pose="Standing"
  792.  
  793. end
  794.  
  795. function moveFly()
  796. RightShoulder.MaxVelocity = 0.5
  797. LeftShoulder.MaxVelocity = 0.5
  798. RightShoulder.DesiredAngle = 0
  799. LeftShoulder.DesiredAngle = 0
  800. RightHip.MaxVelocity = 40
  801. RightHip.DesiredAngle = 1.57
  802. LeftHip.DesiredAngle = 0
  803. wait(1)
  804. pose="Standing"
  805.  
  806. end
  807.  
  808.  
  809. function moveClimb()
  810. RightShoulder.MaxVelocity = 0.5
  811. LeftShoulder.MaxVelocity = 0.5
  812. RightShoulder.DesiredAngle = -3.14
  813. LeftShoulder.DesiredAngle = 3.14
  814. RightHip.DesiredAngle = 0
  815. LeftHip.DesiredAngle = 0
  816. end
  817.  
  818. function moveSit()
  819. RightShoulder.MaxVelocity = 0.15
  820. LeftShoulder.MaxVelocity = 0.15
  821. RightShoulder.DesiredAngle = -3.14 /2
  822. LeftShoulder.DesiredAngle = -3.14 /2
  823. RightHip.DesiredAngle = 3.14 /2
  824. LeftHip.DesiredAngle = -3.14 /2
  825. end
  826.  
  827. function getTool()
  828.  
  829. kidTable = Figure:children()
  830. if (kidTable ~= nil) then
  831. numKids = #kidTable
  832. for i=1,numKids do
  833. if (kidTable[i].className == "Tool") then return kidTable[i] end
  834. end
  835. end
  836.  
  837. return nil
  838. end
  839.  
  840. function getToolAnim(tool)
  841.  
  842. c = tool:children()
  843. for i=1,#c do
  844. if (c[i].Name == "toolanim" and c[i].className == "StringValue") then
  845. return c[i]
  846. end
  847. end
  848. return nil
  849. end
  850.  
  851. function animateTool()
  852.  
  853. if (toolAnim == "None") then
  854. RightShoulder.DesiredAngle = -1.57
  855. return
  856. end
  857.  
  858. if (toolAnim == "Slash") then
  859. RightShoulder.MaxVelocity = 0.5
  860. RightShoulder.DesiredAngle = 0
  861. return
  862. end
  863.  
  864. if (toolAnim == "Lunge") then
  865. RightShoulder.MaxVelocity = 0.5
  866. LeftShoulder.MaxVelocity = 0.5
  867. RightHip.MaxVelocity = 0.5
  868. LeftHip.MaxVelocity = 0.5
  869. RightShoulder.DesiredAngle = -1.57
  870. LeftShoulder.DesiredAngle = 1.0
  871. RightHip.DesiredAngle = 1.57
  872. LeftHip.DesiredAngle = 1.0
  873. return
  874. end
  875. end
  876.  
  877. function move(time)
  878. local amplitude
  879. local frequency
  880.  
  881. if (pose == "Jumping") then
  882. moveJump()
  883. return
  884. end
  885.  
  886. if (pose == "Zombie") then
  887. moveZombie()
  888. return
  889. end
  890.  
  891. if (pose == "Boogy") then
  892. moveBoogy()
  893. return
  894. end
  895.  
  896. if (pose == "Float") then
  897. moveFloat()
  898. return
  899. end
  900.  
  901. if (pose == "Punch") then
  902. movePunch()
  903. return
  904. end
  905.  
  906. if (pose == "Kick") then
  907. moveKick()
  908. return
  909. end
  910.  
  911. if (pose == "Fly") then
  912. moveFly()
  913. return
  914. end
  915.  
  916. if (pose == "FreeFall") then
  917. moveFreeFall()
  918. return
  919. end
  920.  
  921. if (pose == "Climbing") then
  922. moveClimb()
  923. return
  924. end
  925.  
  926. if (pose == "Seated") then
  927. moveSit()
  928. return
  929. end
  930.  
  931. amplitude = 0.1
  932. frequency = 1
  933.  
  934. RightShoulder.MaxVelocity = 0.15
  935. LeftShoulder.MaxVelocity = 0.15
  936. if (pose == "Running") then
  937. amplitude = 1
  938. frequency = 9
  939. elseif (pose == "Dancing") then
  940. amplitude = 2
  941. frequency = 16
  942. end
  943.  
  944.  
  945. desiredAngle = amplitude * math.sin(time*frequency)
  946. if pose~="Dancing" then
  947. RightShoulder.DesiredAngle = -desiredAngle
  948. LeftShoulder.DesiredAngle = desiredAngle
  949. RightHip.DesiredAngle = -desiredAngle
  950. LeftHip.DesiredAngle = -desiredAngle
  951. else
  952. RightShoulder.DesiredAngle = desiredAngle
  953. LeftShoulder.DesiredAngle = desiredAngle
  954. RightHip.DesiredAngle = -desiredAngle
  955. LeftHip.DesiredAngle = -desiredAngle
  956. end
  957.  
  958.  
  959.  
  960. local tool = getTool()
  961.  
  962. if tool ~= nil then
  963.  
  964. animStringValueObject = getToolAnim(tool)
  965.  
  966. if animStringValueObject ~= nil then
  967. toolAnim = animStringValueObject.Value
  968. -- message recieved, delete StringValue
  969. animStringValueObject.Parent = nil
  970. toolAnimTime = time + .3
  971. end
  972.  
  973. if time > toolAnimTime then
  974. toolAnimTime = 0
  975. toolAnim = "None"
  976. end
  977.  
  978. animateTool()
  979.  
  980.  
  981. else
  982. toolAnim = "None"
  983. toolAnimTime = 0
  984. end
  985. end
  986.  
  987.  
  988. -- connect events
  989. -----------------------------------------------------------------------------------------------------------------------
  990.  
  991. function unequip()
  992. local items=script.Parent:children()
  993. for i=1, #items do
  994. if items[i].className=="Tool" then items[i]:remove() end
  995. end
  996. end
  997.  
  998. function onChatted(msg, recipient)
  999. msg = string.lower(msg)
  1000.  
  1001. if string.match(msg, string.lower(script.Parent.Name))~=nil or string.match(msg, "everyone") then
  1002. if string.match(msg, "equip") then
  1003. if game.Workspace:findFirstChild("Hub") then
  1004. if string.match(msg, "rocket") then unequip()
  1005. game.Workspace.Hub.Rocket:clone().Parent=script.Parent
  1006. elseif string.match(msg, "slingshot") then unequip()
  1007. game.Workspace.Hub.Slingshot:clone().Parent=script.Parent
  1008. elseif string.match(msg, "sword") then unequip()
  1009. game.Workspace.Hub.Sword:clone().Parent=script.Parent
  1010. elseif string.match(msg, "pbg") then unequip()
  1011. game.Workspace.Hub.PBG:clone().Parent=script.Parent
  1012. elseif string.match(msg, "superball") then unequip()
  1013. game.Workspace.Hub.Superball:clone().Parent=script.Parent
  1014. elseif string.match(msg, "trowel") then unequip()
  1015. game.Workspace.Hub.Trowel:clone().Parent=script.Parent
  1016. elseif string.match(msg, "bomb") then unequip()
  1017. game.Workspace.Hub.Bomb:clone().Parent=script.Parent
  1018. end
  1019. end
  1020. end
  1021. if string.match(msg, "unequip") then unequip() end
  1022. if string.match(msg, "run") then onRunning(1) end
  1023. if string.match(msg, "climb") then onClimbing() end
  1024. if string.match(msg, "jump") then onJumping() end
  1025. if string.match(msg, "zombie") then pose="Zombie" end
  1026. if string.match(msg, "disco") then pose="Boogy" end
  1027. if string.match(msg, "float") then pose="Float" end
  1028. if string.match(msg, "punch") then pose="Punch" end
  1029. if string.match(msg, "kick") then pose="Kick" end
  1030. if string.match(msg, "fly") then pose="Fly" end
  1031. if string.match(msg, "heal") then script.Parent.Humanoid.Health=script.Parent.Humanoid.MaxHealth end
  1032. if string.match(msg, "defend") then defence() end
  1033. if string.match(msg, "stop") then pose="Standing"; proxkill=false; following=false; stopmoving() end
  1034. if string.match(msg, "go home") then following=false; gohome() end
  1035. if string.match(msg, "follow") then
  1036. if string.match(msg, "all") then
  1037. followany()
  1038. else
  1039. local egg=game.Players:children()
  1040. for i=1, #egg do
  1041. if string.match(msg, string.lower(egg[i].Name)) then
  1042. follow(egg[i].Name)
  1043. return
  1044. end
  1045. end
  1046. end
  1047. end
  1048. if string.match(msg, "kill") then
  1049. if string.match(msg, "all") then
  1050. attackany()
  1051. else
  1052. local egg=game.Players:children()
  1053. for i=1, #egg do
  1054. if string.match(msg, string.lower(egg[i].Name)) then
  1055. attack(egg[i].Name)
  1056. return
  1057. end
  1058. end
  1059. end
  1060. end
  1061.  
  1062. end
  1063. end
  1064.  
  1065. if game.Players.NumPlayers>1 then
  1066. x=game.Players:children()
  1067.  
  1068. for i=1, #x do
  1069. if script.Parent:findFirstChild("Commander")~=nil then
  1070. if script.Parent.Commander:children()~=nil or script.Parent.Commander:children()>0 then
  1071. local ch=script.Parent.Commander:children()
  1072. for i=1, #ch do
  1073. if string.lower(ch[i].Name)==string.lower(x[i].Name) then
  1074. x[i].Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  1075. end
  1076. end
  1077. elseif string.lower(script.Parent.Commander.Value)==string.lower(x[i].Name) then
  1078. x[i].Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  1079. end
  1080. else
  1081. x[i].Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  1082. end
  1083. end
  1084. end
  1085.  
  1086.  
  1087. function onPlayerEntered(Player)
  1088. while Player.Name==nil do
  1089. wait(2)
  1090. end
  1091. if script.Parent:findFirstChild("Commander")~=nil then
  1092. if script.Parent.Commander:children()~=nil or script.Parent.Commander:children()>0 then
  1093. local ch=script.Parent.Commander:children()
  1094. for i=1, #ch do
  1095. if string.lower(ch[i].Name)==string.lower(Player.Name) then
  1096. Player.Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  1097. end
  1098. end
  1099. elseif string.lower(script.Parent.Commander.Value)==string.lower(Player.Name) then
  1100. Player.Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  1101. end
  1102. else
  1103. Player.Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  1104. end
  1105. end
  1106.  
  1107. game.Players.ChildAdded:connect(onPlayerEntered)
  1108.  
  1109.  
  1110.  
  1111. -----------------------------------------------------------------------------------------------------------------------
  1112. -----------------------------------------------------------------------------------------------------------------------
  1113. -----------------------------------------------------------------------------------------------------------------------
  1114. -----------------------------------------------------------------------------------------------------------------------
  1115. -----------------------------------------------------------------------------------------------------------------------
  1116. -----------------------------------------------------------------------------------------------------------------------
  1117. -----------------------------------------------------------------------------------------------------------------------
  1118. -----------------------------------------------------------------------------------------------------------------------
  1119. -----------------------------------------------------------------------------------------------------------------------
  1120. -----------------------------------------------------------------------------------------------------------------------
  1121. -----------------------------------------------------------------------------------------------------------------------
  1122. -----------------------------------------------------------------------------------------------------------------------
  1123. dist=20
  1124.  
  1125. function followany()
  1126. following=true
  1127. while following==true do
  1128.  
  1129. local ch=game.Players:children()
  1130. for i=1, #ch do
  1131. local l=game.Workspace:findFirstChild(ch[i].Name)
  1132. if l~=nil then
  1133. local s=l.Torso
  1134. local p=l.Torso.Position
  1135. local q=script.Parent.Torso.Position
  1136. local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
  1137. if smallest==nil then
  1138. smallest=d
  1139. target=s
  1140. elseif d<smallest then
  1141. smallest=d
  1142. target=s
  1143. end
  1144. end
  1145. end
  1146.  
  1147. if smallest==nil then stopmoving() return end
  1148.  
  1149. if smallest>6*dist then return end
  1150.  
  1151. script.Parent.Humanoid:MoveTo(target.Position, target)
  1152.  
  1153. wait(0.5)
  1154. for i=1, 6 do
  1155. if target.Parent.Humanoid.Health<1 then stopmoving() else wait(0.5) end
  1156. end
  1157. end
  1158. end
  1159.  
  1160.  
  1161.  
  1162. function gohome()
  1163. script.Parent.Humanoid:MoveTo(Vector3.new(0,0,0), game.Workspace.Bases.Base)
  1164. end
  1165. function stopmoving()
  1166. script.Parent.Humanoid:MoveTo(script.Parent.Torso.Position, script.Parent.Torso)
  1167. end
  1168.  
  1169. function follow(name)
  1170. following=true
  1171.  
  1172. local p=game.Workspace:findFirstChild(name)
  1173. if p==nil then return end
  1174. while following==true do
  1175. script.Parent.Humanoid:MoveTo(p.Torso.Position, p.Torso)
  1176. wait(0.5)
  1177. for i=1, 3 do
  1178. if p.Humanoid.Health<1 then following=false; stopmoving() return end
  1179. wait(0.5)
  1180. end
  1181. end
  1182. end
  1183.  
  1184. function attack(name)
  1185. if script.Parent:findFirstChild("Sword")~=nil then
  1186. following=true
  1187. local p=game.Workspace:findFirstChild(name)
  1188. if p==nil then return end
  1189. while following==true do
  1190. script.Parent.Humanoid:MoveTo(p.Torso.Position, p.Torso)
  1191. wait(0.5)
  1192. for i=1, 3 do
  1193. if p.Humanoid.Health<1 then following=false; stopmoving() return end
  1194. local l=p.Torso.Position
  1195. local q=script.Parent.Torso.Position
  1196. local d=math.sqrt( ((l.x-q.x)^2)+((l.y-q.y)^2)+((l.z-q.z)^2) )
  1197. if d<10 then
  1198. script.Parent.Humanoid:MoveTo(p.Torso.Position, p.Torso); slash()
  1199. if (q.y-l.y)>3 and (q.y-l.y)<7 then
  1200. script.Parent.Humanoid:MoveTo(p.Torso.Position+Vector3.new(math.random(-4,4),0,math.random(-4,4)), p.Torso);
  1201. end
  1202. end
  1203. wait(1)
  1204. end
  1205. end
  1206. end
  1207. end
  1208.  
  1209. function attackany()
  1210. if script.Parent:findFirstChild("Sword")~=nil then
  1211.  
  1212. following=true
  1213. while following==true do
  1214.  
  1215. local ch=game.Players:children()
  1216. for i=1, #ch do
  1217. local l=game.Workspace:findFirstChild(ch[i].Name)
  1218. if l~=nil then
  1219. local s=l.Torso
  1220. local p=l.Torso.Position
  1221. local q=script.Parent.Torso.Position
  1222. local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
  1223. if smallest==nil then
  1224. smallest=d
  1225. target=s
  1226. elseif d<smallest then
  1227. smallest=d
  1228. target=s
  1229. end
  1230. end
  1231. end
  1232.  
  1233. if smallest==nil then stopmoving() return end
  1234.  
  1235. if smallest>6*dist then return end
  1236.  
  1237. script.Parent.Humanoid:MoveTo(target.Position, target)
  1238.  
  1239. if smallest<10 then
  1240. slash()
  1241. end
  1242. if target.Parent==nil then stopmoving() return end
  1243. wait(0.5)
  1244. for i=1, 3 do
  1245. if target.Parent.Humanoid.Health<1 then
  1246. stopmoving()
  1247. else
  1248. local p=target.Position
  1249. local q=script.Parent.Torso.Position
  1250. local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
  1251. if d<10 then
  1252. script.Parent.Humanoid:MoveTo(target.Position, target); slash()
  1253. if (q.y-p.y)>3 and (q.y-p.y)<7 then
  1254. script.Parent.Humanoid:MoveTo(p.Torso.Position+Vector3.new(math.random(-4,4),0,math.random(-4,4)), p.Torso);
  1255. end
  1256. end
  1257. wait(1)
  1258. end
  1259. end
  1260. end
  1261. end
  1262. end
  1263.  
  1264.  
  1265. function patrol()
  1266. if points==nil then
  1267. points=0
  1268. if game.Workspace:findFirstChild("pp1")~=nil then
  1269. pp1=game.Workspace:findFirstChild("pp1")
  1270. local points=points+1
  1271. if game.Workspace:findFirstChild("pp2")~=nil then
  1272. pp2=game.Workspace:findFirstChild("pp2")
  1273. local points=points+1
  1274. if game.Workspace:findFirstChild("pp3")~=nil then
  1275. pp3=game.Workspace:findFirstChild("pp3")
  1276. local points=points+1
  1277. if game.Workspace:findFirstChild("pp4")~=nil then
  1278. pp4=game.Workspace:findFirstChild("pp4")
  1279. local points=points+1
  1280. if game.Workspace:findFirstChild("pp5")~=nil then
  1281. pp5=game.Workspace:findFirstChild("pp5")
  1282. local points=points+1
  1283. if game.Workspace:findFirstChild("pp6")~=nil then
  1284. pp6=game.Workspace:findFirstChild("pp6")
  1285. local points=points+1
  1286. if game.Workspace:findFirstChild("pp7")~=nil then
  1287. pp7=game.Workspace:findFirstChild("pp7")
  1288. local points=points+1
  1289. if game.Workspace:findFirstChild("pp8")~=nil then
  1290. pp8=game.Workspace:findFirstChild("pp8")
  1291. local points=points+1
  1292. if game.Workspace:findFirstChild("pp9")~=nil then
  1293. pp9=game.Workspace:findFirstChild("pp9")
  1294. local points=points+1
  1295. end
  1296. end
  1297. end
  1298. end
  1299. end
  1300. end
  1301. end
  1302. end
  1303. end
  1304. end
  1305.  
  1306. if points<1 then return end
  1307. patrolling=true
  1308. local time=2
  1309. if points==1 then return end
  1310. if points>1 then
  1311. while patrolling==true do
  1312. script.Parent.Humanoid:MoveTo(pp1.Position, pp1)
  1313. wait(time)
  1314. script.Parent.Humanoid:MoveTo(pp2.Position, pp2)
  1315. wait(time)
  1316. if points>2 then
  1317. script.Parent.Humanoid:MoveTo(pp3.Position, pp3)
  1318. wait(time)
  1319. if points>3 then
  1320. script.Parent.Humanoid:MoveTo(pp4.Position, pp4)
  1321. wait(time)
  1322. if points>4 then
  1323. script.Parent.Humanoid:MoveTo(pp5.Position, pp5)
  1324. wait(time)
  1325. if points>5 then
  1326. script.Parent.Humanoid:MoveTo(pp6.Position, pp6)
  1327. wait(time)
  1328. if points>6 then
  1329. script.Parent.Humanoid:MoveTo(pp7.Position, pp7)
  1330. wait(time)
  1331. if points>7 then
  1332. script.Parent.Humanoid:MoveTo(pp8.Position, pp8)
  1333. wait(time)
  1334. if points>8 then
  1335. script.Parent.Humanoid:MoveTo(pp9.Position, pp9)
  1336. wait(time)
  1337. end
  1338. end
  1339. end
  1340. end
  1341. end
  1342. end
  1343. end
  1344. end
  1345. end
  1346. end
  1347.  
  1348.  
  1349. function goto(pos,part)
  1350. while true do
  1351. end
  1352. end
  1353.  
  1354.  
  1355. function slash()
  1356. for i=1, 3 do
  1357. wait(.3)
  1358. RightShoulder.MaxVelocity = 2
  1359. LeftShoulder.MaxVelocity = 1
  1360. RightShoulder.DesiredAngle = -2.14
  1361. LeftShoulder.DesiredAngle = 0
  1362. RightHip.DesiredAngle = 0
  1363. LeftHip.DesiredAngle = 0
  1364. wait(.2)
  1365. RightShoulder.MaxVelocity = 2
  1366. LeftShoulder.MaxVelocity = 1
  1367. RightShoulder.DesiredAngle = 0
  1368. LeftShoulder.DesiredAngle = 0
  1369. RightHip.DesiredAngle = 0
  1370. LeftHip.DesiredAngle = 0
  1371. end
  1372. end
  1373.  
  1374. function defence()
  1375. proxkill=true
  1376. while proxkill==true do
  1377. local ch=game.Players:children()
  1378. for i=1, #ch do
  1379. local p=game.Workspace:findFirstChild(ch[i].Name)
  1380. if p~=nil then
  1381. local p=p.Torso.Position
  1382. local q=script.Parent.Torso.Position
  1383. local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
  1384. if d<dist and d>8 then
  1385. local ex=Instance.new("Explosion")
  1386. ex.Position=p
  1387. ex.Parent=game.Workspace
  1388. end
  1389. end
  1390. end
  1391. wait(1)
  1392. end
  1393. end
  1394.  
  1395.  
  1396.  
  1397.  
  1398. -----------------------------------------------------------------------------------------------------------------------
  1399. -----------------------------------------------------------------------------------------------------------------------
  1400. -----------------------------------------------------------------------------------------------------------------------
  1401. -----------------------------------------------------------------------------------------------------------------------
  1402. -----------------------------------------------------------------------------------------------------------------------
  1403. -----------------------------------------------------------------------------------------------------------------------
  1404. -----------------------------------------------------------------------------------------------------------------------
  1405. -----------------------------------------------------------------------------------------------------------------------
  1406. -----------------------------------------------------------------------------------------------------------------------
  1407. -----------------------------------------------------------------------------------------------------------------------
  1408. -----------------------------------------------------------------------------------------------------------------------
  1409. -----------------------------------------------------------------------------------------------------------------------
  1410.  
  1411.  
  1412. Humanoid.Died:connect(onDied)
  1413. Humanoid.Running:connect(onRunning)
  1414. Humanoid.Jumping:connect(onJumping)
  1415. Humanoid.Climbing:connect(onClimbing)
  1416. Humanoid.GettingUp:connect(onGettingUp)
  1417. Humanoid.FreeFalling:connect(onFreeFall)
  1418. Humanoid.FallingDown:connect(onFallingDown)
  1419. Humanoid.Seated:connect(onSeated)
  1420.  
  1421.  
  1422. --[[
  1423.  
  1424. function newSound(id)
  1425. local sound = Instance.new("Sound")
  1426. sound.SoundId = id
  1427. sound.Parent = script.Parent.Head
  1428. return sound
  1429. end
  1430.  
  1431.  
  1432. local sDied = newSound("rbxasset://sounds/uuhhh.wav")
  1433. local sFallingDown = newSound("rbxasset://sounds/splat.wav")
  1434. local sFreeFalling = newSound("rbxasset://sounds/swoosh.wav")
  1435. local sGettingUp = newSound("rbxasset://sounds/hit.wav")
  1436. local sJumping = newSound("rbxasset://sounds/button.wav")
  1437. local sRunning = newSound("rbxasset://sounds/bfsl-minifigfoots1.mp3")
  1438. sRunning.Looped = true
  1439.  
  1440. local Figure = script.Parent
  1441. local Head = waitForChild(Figure, "Head")
  1442. local Humanoid = waitForChild(Figure, "Humanoid")
  1443.  
  1444.  
  1445. function onDied()
  1446. sDied:play()
  1447. end
  1448.  
  1449. function onState(state, sound)
  1450. if state then
  1451. sound:play()
  1452. else
  1453. sound:pause()
  1454. end
  1455. end
  1456.  
  1457. function onRunning(speed)
  1458. if speed>0 then
  1459. sRunning:play()
  1460. else
  1461. sRunning:pause()
  1462. end
  1463. end
  1464.  
  1465.  
  1466. Humanoid.Died:connect(onDied)
  1467. Humanoid.Running:connect(onRunning)
  1468. Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
  1469. Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
  1470. Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
  1471. Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
  1472. --]]
  1473.  
  1474. local nextTime = 0
  1475. local runService = game:service("RunService");
  1476.  
  1477. while Figure.Parent~=nil do
  1478. time = runService.Stepped:wait()
  1479. if time > nextTime then
  1480. move(time)
  1481. nextTime = time + 0.1
  1482. end
  1483. end
  1484.  
  1485. end))
  1486. Script43.Name = "spawnHandler"
  1487. Script43.Parent = Model1
  1488. table.insert(cors,sandbox(Script43,function()
  1489. local NPC = script.Parent
  1490. local cln=NPC:Clone()
  1491. local Config = NPC.Configuration
  1492. local Head, Torso, LArm, RArm, LLeg, RLeg = NPC.Head, NPC.Torso, NPC['Left Arm'], NPC['Right Arm'], NPC['Left Leg'], NPC['Right Leg'];
  1493. local Humanoid;
  1494. print('Starting bot setup')
  1495. -- Preset config
  1496. Config.HumanoidReady.Value = false;
  1497.  
  1498. -- Make sure parts are anchored
  1499. function anchor(bool)
  1500. for _,child in pairs(script.Parent:GetChildren()) do
  1501. if child:IsA('Part') and child.Name~='MoveHere' then
  1502. child.Anchored=bool
  1503. end
  1504. end
  1505. end
  1506.  
  1507.  
  1508. anchor(true)
  1509.  
  1510. function Join(MainPart, LegacyPart, Parent, C0, C1)
  1511. local Joint = Instance.new("Motor");
  1512. Joint.Part0 = MainPart
  1513. Joint.Part1 = LegacyPart
  1514. Joint.C0 = C0
  1515. Joint.C1 = C1
  1516. Joint.Parent = Parent -- !Important: Without parenting last, the C1 and C0 will take affect and prematurely move the parts.
  1517. return Joint;
  1518. end
  1519.  
  1520. for _,child in pairs(script.Parent:children()) do
  1521. if child:IsA('Part') then
  1522. Join(Torso,child,Torso,CFrame.new(),child.CFrame:toObjectSpace(Torso.CFrame))
  1523. end
  1524. end
  1525. -- -- Build NPC
  1526. -- --Join(script.Parent['Right Arm'],script.Parent.Handle, script.Parent['Right Arm'] ,CFrame.new(),script.Parent.Handle.CFrame:toObjectSpace(script.Parent['Right Arm'].CFrame));
  1527. -- print('Welded Gun')
  1528. -- Join(Torso,script.Parent.Hat1, Torso,CFrame.new(),script.Parent.Hat1.CFrame:toObjectSpace(Torso.CFrame));
  1529. -- Join(Torso,script.Parent.Hat2, Torso,CFrame.new(),script.Parent.Hat2.CFrame:toObjectSpace(Torso.CFrame));
  1530. -- Join(Torso, Head, Torso, CFrame.new(), Head.CFrame:toObjectSpace(Torso.CFrame));
  1531. -- Join(Torso, script.Parent['Left Arm'], Torso, CFrame.new(), script.Parent['Left Arm'].CFrame:toObjectSpace(Torso.CFrame));
  1532. -- Join(Torso, script.Parent['Right Arm'], Torso, CFrame.new(), script.Parent['Right Arm'].CFrame:toObjectSpace(Torso.CFrame));
  1533. -- Join(Torso, LLeg, Torso, CFrame.new(0.5,-1,0), CFrame.new(0,1,0));
  1534. -- Join(Torso, RLeg, Torso, CFrame.new(-0.5,-1,0), CFrame.new(0,1,0));
  1535. Humanoid = Instance.new("Humanoid");
  1536. Humanoid.Name = "Zombie";
  1537. Humanoid.Parent = NPC;
  1538. Config.HumanoidReady.Value = true;
  1539. wait()
  1540. anchor(false)
  1541.  
  1542. Humanoid.Died:connect(function()
  1543. wait(3)
  1544. local np=cln
  1545. cln.Parent=workspace
  1546. NPC:Remove()
  1547. end)
  1548. end))
  1549. Script44.Name = "RealisticGraphicsDay/Night"
  1550. Script44.Parent = Model1
  1551. BillboardGui45.Parent = Model1
  1552. BillboardGui45.Size = UDim2.new(0, 200, 0, 50)
  1553. BillboardGui45.ExtentsOffset = Vector3.new(0, 0.5, 0)
  1554. TextLabel46.Parent = BillboardGui45
  1555. TextLabel46.Transparency = 1
  1556. TextLabel46.Size = UDim2.new(0, 200, 0, 50)
  1557. TextLabel46.Text = "TIME FOR COMMUNISM"
  1558. TextLabel46.BackgroundColor3 = Color3.new(1, 1, 1)
  1559. TextLabel46.BackgroundTransparency = 1
  1560. TextLabel46.BorderSizePixel = 0
  1561. TextLabel46.Font = Enum.Font.Fantasy
  1562. TextLabel46.FontSize = Enum.FontSize.Size24
  1563. TextLabel46.TextColor3 = Color3.new(0.470588, 0.0470588, 0.0470588)
  1564. TextLabel46.TextStrokeColor3 = Color3.new(0.454902, 0.12549, 0)
  1565. TextLabel46.TextWrapped = true
  1566. Script47.Parent = Model1
  1567. table.insert(cors,sandbox(Script47,function()
  1568. txt=script.Parent.BillboardGui.TextLabel
  1569. while true do
  1570. txt.Text="T34 caN beAt the TigER"
  1571. wait(1)
  1572. txt.Text="ITS LENNIN TIME"
  1573. wait(1)
  1574. txt.Text="REEEEE"
  1575. wait(1)
  1576. txt.Text="CHEEKI BREEKI TIME"
  1577. wait(1)
  1578. txt.Text="BLYAT"
  1579. wait(1)
  1580. txt.Text="CAPITLSIT PIG DOG"
  1581. wait(1)
  1582. txt.Text="SOVIET UNION STRONK"
  1583. wait(1)
  1584. txt.Text="CAPITLISM IS BAD"
  1585. wait(1)
  1586. txt.Text="CYKA BYLAT"
  1587. wait(1)
  1588. txt.Text="HAIL COMRADE STALIN"
  1589. wait(1)
  1590. txt.Text="COMMUNISM WORKS"
  1591. wait(1)
  1592. end
  1593.  
  1594.  
  1595. end))
  1596. Script48.Name = "Respawn"
  1597. Script48.Parent = Model0
  1598. table.insert(cors,sandbox(Script48,function()
  1599. name="Zombie"
  1600.  
  1601. robo=script.Parent.Communist:clone()
  1602.  
  1603. while true do
  1604. wait(3)
  1605.  
  1606. robot=robo:clone()
  1607. robot.Parent=script.Parent.Parent
  1608. robot:makeJoints()
  1609.  
  1610.  
  1611.  
  1612. end
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620. end))
  1621. Sound49.Name = "RussianMusic"
  1622. Sound49.Parent = Model0
  1623. Sound49.SoundId = "rbxassetid://755194793"
  1624. Sound49.Playing = true
  1625. Sound49.Looped = true
  1626. for i,v in pairs(mas:GetChildren()) do
  1627. v.Parent = workspace
  1628. pcall(function() v:MakeJoints() end)
  1629. end
  1630. mas:Destroy()
  1631. for i,v in pairs(cors) do
  1632. spawn(function()
  1633. pcall(v)
  1634. end)
  1635. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement