sawgamer1

Untitled

Jul 4th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.25 KB | None | 0 0
  1. Player = game.Players.LocalPlayer
  2. c = Player.Character c.Archivable = true
  3. HumanoidName = "Human"
  4.  
  5. RSC0 = CFrame.new(1.5 , 0.5 , 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  6. RSC1 = CFrame.new(0, 0.5 , 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  7. LSC0 = CFrame.new(-1.5 , 0.5 , 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  8. LSC1 = CFrame.new(0, 0.5 , 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  9. RHC0 = CFrame.new(0.5 , -1 , 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  10. RHC1 = CFrame.new(0, 1 , 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  11. LHC0 = CFrame.new(-0.5 , -1 , 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  12. LHC1 = CFrame.new(0 , 1 , 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  13. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  14. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  15. NC0 = CFrame.new(0, 1 , 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  16. NC1 = CFrame.new(0, -0.5 , 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  17. --mouse = Player:GetMouse()
  18.  
  19. local m = Instance.new("Model",c)m.Name = "People"
  20. local mtwo = Instance.new("Model",c)mtwo.Name = "Buildings"
  21. local SoundCopy = Instance.new("Sound")
  22.  
  23. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  24. local gui = Instance.new(GuiType)
  25. gui.Parent = parent
  26. gui.Text = text
  27. gui.BackgroundTransparency = backtrans
  28. gui.BackgroundColor3 = backcol
  29. gui.SizeConstraint = "RelativeXY"
  30. gui.TextXAlignment = "Center"
  31. gui.TextYAlignment = "Center"
  32. gui.Position = pos
  33. gui.Size = size
  34. gui.Font = "SourceSans"
  35. gui.FontSize = "Size14"
  36. gui.TextWrapped = false
  37. gui.TextStrokeTransparency = 0
  38. gui.TextColor = BrickColor.new("White")
  39. return gui
  40. end
  41. local basgui = Instance.new("GuiMain")
  42. basgui.Parent = Player.PlayerGui
  43. basgui.Name = "CooldownsGUI"
  44. local basframe = Instance.new("Frame")
  45. basframe.Parent = basgui
  46. basframe.BackgroundColor3 = Color3.new(255, 255, 255)
  47. basframe.BackgroundTransparency = 1
  48. basframe.BorderColor3 = Color3.new(17, 17, 17)
  49. basframe.Size = UDim2.new(0.2, 0, 0.2, 0)
  50. basframe.Position = UDim2.new(0.8, 0, 0.8, 0)
  51. local basicgui = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Really blue").Color, UDim2.new(0.35, 0, -0.125, 0), UDim2.new(0.45, 0, 0.35, 0))
  52. basicgui.ZIndex = 2
  53. basicgui.Font = "Highway"
  54. basicgui.BackgroundTransparency = 0.5
  55. basicgui.BorderSizePixel = 0.65
  56. basicgui.TextScaled = true
  57. basicgui.Text = "Deaths: 0"
  58. basicgui.TextSize = 24
  59. local basicgui2 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Really blue").Color, UDim2.new(-0.15, 0, -0.125, 0), UDim2.new(0.45, 0, 0.35, 0))
  60. basicgui2.ZIndex = 2
  61. basicgui2.Font = "Highway"
  62. basicgui2.BackgroundTransparency = 0.5
  63. basicgui2.BorderSizePixel = 0.65
  64. basicgui2.TextScaled = true
  65. basicgui2.Text = "Population: 4"
  66. basicgui2.TextSize = 24
  67. local basicgui3 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Really blue").Color, UDim2.new(-0.15, 0, 0.45, 0), UDim2.new(0.45, 0, 0.35, 0))
  68. basicgui3.ZIndex = 2
  69. basicgui3.Font = "Highway"
  70. basicgui3.BackgroundTransparency = 0.5
  71. basicgui3.BorderSizePixel = 0.65
  72. basicgui3.TextScaled = true
  73. basicgui3.Text = "Max Population: 4"
  74. basicgui3.TextSize = 24
  75.  
  76. function Lightningz(pos, pos2, radius, numParts, model, removalTime)
  77. radius = radius or 0.2
  78. numParts = numParts or 10
  79. model = model or game.Workspace
  80. local pos = pos
  81. local lastpos = lastpos
  82. local lv = CFrame.new(pos,pos2).lookVector
  83. removalTime = 0.001
  84. local dist = (pos-pos2).magnitude
  85. local trans = 0
  86. local color = BrickColor.new("Bright yellow")
  87. local dbp = dist/numParts
  88. local last = pos
  89. for i = 1,numParts do
  90. local p = Instance.new("Part")
  91. p.FormFactor = "Custom"
  92. p.Size = Vector3.new(1,1,1)
  93. p.CanCollide = false
  94. p.Transparency = trans
  95. p.Anchored = true
  96. p.BrickColor = color
  97. p.Material = "Neon"
  98. local x = math.random(-100,100)/100*dbp*4
  99. local y = math.random(-100,100)/100*dbp*4
  100. local p2 = CFrame.new(pos+lv*(i*dbp),pos2+lv)*CFrame.new(x,y,0)
  101. local dist2 = (p2.p-last).magnitude
  102. local mid = (p2.p+last)/2
  103. local m = Instance.new("BlockMesh",p)
  104. m.Scale = Vector3.new(radius,radius,dist2 + (radius/4))
  105. p.CFrame = CFrame.new(mid,p2.p)
  106. last = p2.p
  107. p.Parent = model
  108. game.Debris:AddItem(p, 0.05)
  109. end
  110. if model ~= game.Workspace then
  111. game.Debris:AddItem(model, 0)
  112. end
  113. end
  114.  
  115. function Lightningz2(pos, pos2, radius, numParts, model, removalTime)
  116. radius = radius or 0.2
  117. numParts = numParts or 10
  118. model = model or game.Workspace
  119. local pos = pos
  120. local lastpos = lastpos
  121. local lv = CFrame.new(pos,pos2).lookVector
  122. removalTime = 0.001
  123. local dist = (pos-pos2).magnitude
  124. local trans = 0
  125. local color = BrickColor.new("Dark indigo")
  126. local dbp = dist/numParts
  127. local last = pos
  128. for i = 1,numParts do
  129. local p = Instance.new("Part")
  130. p.FormFactor = "Custom"
  131. p.Size = Vector3.new(1,1,1)
  132. p.CanCollide = false
  133. p.Transparency = trans
  134. p.Anchored = true
  135. p.BrickColor = color
  136. p.Material = "Neon"
  137. local x = math.random(-100,100)/100*dbp*4
  138. local y = math.random(-100,100)/100*dbp*4
  139. local p2 = CFrame.new(pos+lv*(i*dbp),pos2+lv)*CFrame.new(x,y,0)
  140. local dist2 = (p2.p-last).magnitude
  141. local mid = (p2.p+last)/2
  142. local m = Instance.new("BlockMesh",p)
  143. m.Scale = Vector3.new(radius,radius,dist2 + (radius/4))
  144. p.CFrame = CFrame.new(mid,p2.p)
  145. last = p2.p
  146. p.Parent = model
  147. game.Debris:AddItem(p, 0.05)
  148. end
  149. if model ~= game.Workspace then
  150. game.Debris:AddItem(model, 0)
  151. end
  152. end
  153.  
  154. function Gunshot(pos, pos2, radius, numParts, model, removalTime)
  155. radius = radius or 0.2
  156. numParts = numParts or 10
  157. model = model or game.Workspace
  158. local pos = pos
  159. local lastpos = lastpos
  160. local lv = CFrame.new(pos,pos2).lookVector
  161. removalTime = 0.001
  162. local dist = (pos-pos2).magnitude
  163. local trans = 0
  164. local color = BrickColor.new("Bright yellow")
  165. local dbp = dist/numParts
  166. local last = pos
  167. for i = 1,5 do
  168. local p = Instance.new("Part")
  169. p.FormFactor = "Custom"
  170. p.Size = Vector3.new(1,1,1)
  171. p.CanCollide = false
  172. p.Transparency = trans
  173. p.Anchored = true
  174. p.BrickColor = color
  175. p.Material = "Neon"
  176. local x = math.random(-100,100)/100
  177. local y = math.random(-100,100)/100
  178. local p2 = CFrame.new(pos+lv*(i*dbp),pos2+lv)*CFrame.new(x,y,0)
  179. local dist2 = (p2.p-last).magnitude
  180. local mid = (p2.p+last)/2
  181. local m = Instance.new("BlockMesh",p)
  182. m.Scale = Vector3.new(radius,radius,dist2 + (radius/4))
  183. p.CFrame = CFrame.new(mid,p2.p)
  184. last = p2.p
  185. p.Parent = model
  186. game.Debris:AddItem(p, 0.05)
  187. end
  188. if model ~= game.Workspace then
  189. game.Debris:AddItem(model, 0)
  190. end
  191. end
  192.  
  193. Music = {763483501,812080936,763483026,752883700,803643339,537303025,197414857,342562518,585370931,565208983,337474501,777567679
  194. ,359349817,663307468,573314737,748389784}
  195. Music2 = {207358216,837171666,194162931,834390668,422870202,313419853,375915857,630904863,399074275,194150930,194929297,555701779,836801158,154157312
  196. ,154157584,154157524,154147007,154157312}
  197. Wisdom = {418097928,418097747,142510109,519714246}
  198. Face = {113475009,112974390,168044312,93815042,246864785,192602765}
  199. Face2 = {82323254,70440756,840490876,179025078,55705255}
  200. Shirt = {878947655,484067846,473527776,377999320,473171113,190634494,137500327,108768042,576802216,805736384,519851578,65380730,224258737,277459318,
  201. 289034791,358039398,238100566,469527314}
  202. Pants = {144076759,129459076,295871033,138981718,169668949,240002705}
  203.  
  204. function swait(num)
  205. if num==0 or num==nil then
  206. game:service'RunService'.Heartbeat:wait(0)
  207. else
  208. for i=0,num do
  209. game:service'RunService'.Heartbeat:wait(0)
  210. end
  211. end
  212. end
  213.  
  214. cf = CFrame.new
  215. ang = CFrame.Angles
  216. rd = math.rad
  217.  
  218. function lerpz(joint, prop, cfrmz, alp)
  219. if joint ~= nil then
  220. joint[prop] = joint[prop]:lerp(cfrmz, alp)
  221. end
  222. end
  223. function resetlerp(pl)
  224. pl.HumanoidRootPart:findFirstChild("RootJoint").C0 = RJC0
  225. pl.HumanoidRootPart:findFirstChild("RootJoint").C1 = RJC1
  226. pl.Torso:findFirstChild("Neck").C0 = NC0
  227. pl.Torso:findFirstChild("Neck").C1 = NC1
  228. pl.Torso:findFirstChild("Right Shoulder").C0 = RSC0
  229. pl.Torso:findFirstChild("Right Shoulder").C1 = RSC1
  230. pl.Torso:findFirstChild("Left Shoulder").C0 = LSC0
  231. pl.Torso:findFirstChild("Left Shoulder").C1 = LSC1
  232. pl.Torso:findFirstChild("Right Hip").C0 = RHC0
  233. pl.Torso:findFirstChild("Right Hip").C1 = RHC1
  234. pl.Torso:findFirstChild("Left Hip").C0 = LHC0
  235. pl.Torso:findFirstChild("Left Hip").C1 = LHC1
  236. end
  237.  
  238. function NukeShockwaves(Size, CFramez)
  239. local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0.75 Shock.Size = Vector3.new(0.2,0.2,0.2) Shock.Anchored = true
  240. Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Bright orange") local SM = Instance.new("SpecialMesh",Shock) Shock.Name = "NoMoonPls"
  241. SM.MeshId = "rbxassetid://20329976" SM.Scale = Vector3.new(0,5,0) Shock.CFrame = CFramez*CFrame.new(0,1,0)*CFrame.Angles(0,math.rad(math.random(-360,360)),0)
  242. Spawn(function()
  243. for i = 1,math.huge do
  244. if Shock.Transparency >= 1 then break end
  245. Shock.Transparency = Shock.Transparency + 0.0125
  246. SM.Scale = SM.Scale+Vector3.new(30*Size,15*Size,30*Size)
  247. Shock.CFrame = Shock.CFrame*CFrame.new(Vector3.new(0,-15,0))*CFrame.Angles(math.rad(90),0,0)
  248. wait()
  249. end
  250. end)
  251. end
  252.  
  253. function MeteorShower()
  254. for i = 1,25 do
  255. Spawn(function()
  256. local P = Instance.new("Part",c)P.Size = Vector3.new(75,75,75)P.Anchored = false P.CanCollide = true
  257. local M = Instance.new("SpecialMesh",P)M.MeshType = "Sphere" P.BrickColor = BrickColor.new("Brown")
  258. P.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(math.random(-1000,1000),math.random(4000,6000),math.random(-1000,1000))*CFrame.Angles(0,0,math.rad(-180))
  259. local BV = Instance.new("BodyVelocity",P)BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)BV.Velocity = Vector3.new(0,-450,0)
  260. BV.P = 1000000
  261. local S = Instance.new("Sound",P)S.SoundId = "rbxassetid://728747130" S.Volume = 4 S.Looped = true S:Play()
  262. hit = false
  263. P.Touched:connect(function(Hit)
  264. if hit == true then return end
  265. if Hit.Anchored == true and Hit.Name ~= "NoMoonPls" then
  266. hit = true BV.Velocity = Vector3.new(0,-5,0) P.Anchored = true
  267. local S2 = Instance.new("Sound",P)S2.SoundId = "rbxassetid://211062246" S2.Volume = 10 S2:Play()
  268. local S3 = Instance.new("Sound",P)S3.SoundId = "rbxassetid://133159174" S3.Volume = 10 S3:Play()
  269. for i,v in pairs (m:children()) do
  270. if v:findFirstChild("HumanoidRootPart")~= nil then
  271. if (v.HumanoidRootPart.Position-P.Position).Magnitude >= 100 then
  272. v:remove() Population = Population - 1 Deaths = Deaths + 1
  273. end
  274. end
  275. end
  276. end
  277. end)
  278. for i = 1,math.huge do
  279. NukeShockwaves(0.3,P.CFrame*CFrame.new(Vector3.new(0,-45,0)))
  280. swait()
  281. end
  282. end)
  283. end
  284. end
  285.  
  286. function RandomAct(pl)
  287. local r = math.random(1,10)
  288. local RJ = pl.HumanoidRootPart:findFirstChild("RootJoint")
  289. local N = pl.Torso:findFirstChild("Neck")
  290. local RS = pl.Torso:findFirstChild("Right Shoulder")
  291. local LS = pl.Torso:findFirstChild("Left Shoulder")
  292. local RH = pl.Torso:findFirstChild("Right Hip")
  293. local LH = pl.Torso:findFirstChild("Left Hip")
  294. if r == 1 then
  295. for i = 1,2 do
  296. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-10), rd(0), rd(0)), 0.75)
  297. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-10), rd(0), rd(0)), 0.75)
  298. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(165)), 0.75)
  299. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  300. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  301. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  302. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(0), rd(0)), 0.75)
  303. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  304. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(0), rd(0)), 0.75)
  305. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  306. swait()
  307. end
  308. elseif r == 2 then
  309. for i = 1,2 do
  310. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-10), rd(0), rd(0)), 0.75)
  311. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-10), rd(0), rd(0)), 0.75)
  312. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(170)), 0.75)
  313. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  314. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  315. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  316. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(0), rd(0)), 0.75)
  317. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  318. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(0), rd(0)), 0.75)
  319. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  320. swait()
  321. end
  322. for i = 1,2 do
  323. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  324. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  325. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  326. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  327. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  328. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  329. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  330. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  331. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  332. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  333. swait()
  334. end
  335. else
  336. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  337. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  338. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(180)), 1)
  339. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  340. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  341. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  342. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  343. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  344. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  345. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  346. end
  347. end
  348.  
  349. function AssassinReveal(pl)
  350. local RJ = pl.HumanoidRootPart:findFirstChild("RootJoint")
  351. local N = pl.Torso:findFirstChild("Neck")
  352. local RS = pl.Torso:findFirstChild("Right Shoulder")
  353. local LS = pl.Torso:findFirstChild("Left Shoulder")
  354. local RH = pl.Torso:findFirstChild("Right Hip")
  355. local LH = pl.Torso:findFirstChild("Left Hip")
  356. local b = Instance.new("BoolValue",pl)b.Name = "Disabled" game.Debris:AddItem(b,1)
  357. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  358. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  359. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  360. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  361. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  362. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  363. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  364. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  365. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  366. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  367. wait(0.5)
  368. lerpz(RJ, "C0", RJC0 * cf(0, 0, 5000) * ang(rd(0), rd(0), rd(0)), 1)
  369. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  370. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  371. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  372. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  373. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  374. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  375. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  376. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  377. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  378. end
  379.  
  380. function AssassinHide(pl)
  381. local RJ = pl.HumanoidRootPart:findFirstChild("RootJoint")
  382. local N = pl.Torso:findFirstChild("Neck")
  383. local RS = pl.Torso:findFirstChild("Right Shoulder")
  384. local LS = pl.Torso:findFirstChild("Left Shoulder")
  385. local RH = pl.Torso:findFirstChild("Right Hip")
  386. local LH = pl.Torso:findFirstChild("Left Hip")
  387. lerpz(RJ, "C0", RJC0 * cf(0, 0, 5000) * ang(rd(0), rd(0), rd(0)), 1)
  388. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  389. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  390. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  391. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  392. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  393. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  394. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  395. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  396. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  397. end
  398.  
  399. function BatSwing(pl)
  400. local RJ = pl.HumanoidRootPart:findFirstChild("RootJoint")
  401. local N = pl.Torso:findFirstChild("Neck")
  402. local RS = pl.Torso:findFirstChild("Right Shoulder")
  403. local LS = pl.Torso:findFirstChild("Left Shoulder")
  404. local RH = pl.Torso:findFirstChild("Right Hip")
  405. local LH = pl.Torso:findFirstChild("Left Hip")
  406. local b = Instance.new("BoolValue",pl)b.Name = "Disabled" game.Debris:AddItem(b,math.random(7,12)/10)
  407. for i = 1,8 do
  408. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(50), rd(0), rd(0)), 0.75)
  409. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  410. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(120)), 0.75)
  411. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  412. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  413. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  414. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  415. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  416. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  417. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  418. swait()
  419. end
  420. for i = 1,4 do
  421. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(0)), 0.75)
  422. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  423. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-35)), 0.75)
  424. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  425. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  426. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  427. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  428. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  429. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  430. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  431. swait()
  432. end
  433. for i = 1,2 do
  434. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  435. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  436. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  437. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  438. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  439. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  440. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  441. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  442. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  443. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  444. swait()
  445. end
  446. end
  447.  
  448. function ShootGun(pl)
  449. local RJ = pl.HumanoidRootPart:findFirstChild("RootJoint")
  450. local N = pl.Torso:findFirstChild("Neck")
  451. local RS = pl.Torso:findFirstChild("Right Shoulder")
  452. local LS = pl.Torso:findFirstChild("Left Shoulder")
  453. local RH = pl.Torso:findFirstChild("Right Hip")
  454. local LH = pl.Torso:findFirstChild("Left Hip")
  455. for i = 1,8 do
  456. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  457. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  458. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.75)
  459. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  460. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  461. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  462. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  463. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  464. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  465. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  466. swait()
  467. end
  468. for i = 1,2 do
  469. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  470. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  471. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  472. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  473. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  474. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  475. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  476. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  477. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  478. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  479. swait()
  480. end
  481. end
  482.  
  483. function Dance(playah)
  484.  
  485. end
  486.  
  487. function BuildStructure(pl)
  488. local mr = math.random(1,8)
  489. if mr == 1 then
  490. local P = Instance.new("Part",mtwo)P.Size = Vector3.new(25,25,3)P.Material = "Brick" P.BrickColor = BrickColor.new("Dusty Rose")P.Anchored = true
  491. P.CFrame = pl.HumanoidRootPart.CFrame*CFrame.new(0,-12.5,-4)
  492. Spawn(function()
  493. for i = 1,20 do
  494. P.CFrame = P.CFrame*CFrame.new(0,0.625,0)
  495. swait()
  496. end
  497. end)
  498. elseif mr == 2 then
  499. local P = Instance.new("Part",mtwo)P.Size = Vector3.new(4,55,2)P.Anchored = true
  500. P.CFrame = pl.HumanoidRootPart.CFrame*CFrame.new(0,-22.5,-4)
  501. local M = Instance.new("SpecialMesh",P)M.Scale = Vector3.new(0.4,0.4,0.4)M.Offset = Vector3.new(13,0,0) M.MeshId = "rbxassetid://498788302"
  502. M.TextureId = "rbxassetid://498788336"
  503. Spawn(function()
  504. for i = 1,20 do
  505. P.CFrame = P.CFrame*CFrame.new(0,2.25,0)
  506. swait()
  507. end
  508. end)
  509. elseif mr == 3 then
  510. local P = Instance.new("Part",mtwo)P.Size = Vector3.new(6, 2, 6)P.Anchored = true
  511. P.CFrame = pl.HumanoidRootPart.CFrame*CFrame.new(0,-1,-3)
  512. local M = Instance.new("SpecialMesh",P)M.Scale = Vector3.new(2.5,2.5,2.5)M.Offset = Vector3.new(0,0,0) M.MeshId = "rbxassetid://431822418"
  513. M.TextureId = "rbxassetid://431822423"
  514. Spawn(function()
  515. for i = 1,20 do
  516. P.CFrame = P.CFrame*CFrame.new(0,0.0125,0)
  517. swait()
  518. end
  519. end)
  520. else
  521. local mr2 = math.random(1,3)
  522. if mr2 == 1 then
  523. local P = Instance.new("Part",mtwo)P.Size = Vector3.new(32, 48, 32)P.Anchored = true
  524. P.CFrame = pl.HumanoidRootPart.CFrame*CFrame.new(0,-24,-36)
  525. local M = Instance.new("SpecialMesh",P)M.Scale = Vector3.new(8,8,8)M.Offset = Vector3.new(0,0,0) M.MeshId = "rbxassetid://430319084"
  526. M.TextureId = "rbxassetid://430319142" MaxPopulation = MaxPopulation + 5
  527. Spawn(function()
  528. for i = 1,20 do
  529. P.CFrame = P.CFrame*CFrame.new(0,2.2,0)
  530. swait()
  531. end
  532. end)
  533. end
  534. end
  535. end
  536.  
  537. function ZombieArms(pl)
  538. pl.Humanoid.MaxHealth = 1000 swait() pl.Humanoid.Health = 1000
  539. local RJ = pl.HumanoidRootPart:findFirstChild("RootJoint")
  540. local N = pl.Torso:findFirstChild("Neck")
  541. local RS = pl.Torso:findFirstChild("Right Shoulder")
  542. local LS = pl.Torso:findFirstChild("Left Shoulder")
  543. local RH = pl.Torso:findFirstChild("Right Hip")
  544. local LH = pl.Torso:findFirstChild("Left Hip")
  545. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(15), rd(0), rd(0)), 1)
  546. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  547. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 1)
  548. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  549. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-90)), 1)
  550. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  551. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  552. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  553. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  554. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  555. end
  556. function SuperAttack(pl,em)
  557. local RJ = pl.HumanoidRootPart:findFirstChild("RootJoint")
  558. local N = pl.Torso:findFirstChild("Neck")
  559. local RS = pl.Torso:findFirstChild("Right Shoulder")
  560. local LS = pl.Torso:findFirstChild("Left Shoulder")
  561. local RH = pl.Torso:findFirstChild("Right Hip")
  562. local LH = pl.Torso:findFirstChild("Left Hip")
  563. local b = Instance.new("BoolValue",pl)b.Name = "Disabled" game.Debris:AddItem(b,math.random(16,26)/10)
  564. Spawn(function()
  565. for i = 1,16 do
  566. lerpz(RJ, "C0", RJC0 * cf(0, 0, 30) * ang(rd(0), rd(0), rd(0)), 0.25)
  567. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  568. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  569. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  570. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  571. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  572. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  573. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  574. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  575. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  576. swait()
  577. end
  578. ragplayer(em)
  579. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  580. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  581. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  582. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  583. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  584. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  585. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  586. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  587. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  588. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  589. for i = 1,5 do
  590. Gunshot(pl.Torso.Position, em.Torso.Position, 0.5, 8)
  591. end
  592. pl.HumanoidRootPart.CFrame = em.HumanoidRootPart.CFrame
  593. local GS = Instance.new("Sound",pl.Head)GS.Volume = 4 GS.SoundId = "rbxassetid://779129548" GS:Play()
  594. if em.Humanoid.Health <= 250 then
  595. ragplayer(em) Population = Population - 1 Deaths = Deaths + 1
  596. else
  597. em.Humanoid.Health = em.Humanoid.Health - 250
  598. end
  599. end)
  600. end
  601.  
  602. function Resize(Size,pl)
  603. local LA = pl["Left Arm"]
  604. local RA = pl["Right Arm"]
  605. local LL = pl["Left Leg"]
  606. local RL = pl["Right Leg"]
  607. local HR = pl["HumanoidRootPart"]
  608. local H = pl["Head"]
  609. local T = pl["Torso"]
  610. local RJ = pl.HumanoidRootPart:findFirstChild("RootJoint")
  611. local N = pl.Torso:findFirstChild("Neck")
  612. local RS = pl.Torso:findFirstChild("Right Shoulder")
  613. local LS = pl.Torso:findFirstChild("Left Shoulder")
  614. local RH = pl.Torso:findFirstChild("Right Hip")
  615. local LH = pl.Torso:findFirstChild("Left Hip")
  616. if Size == 1 then
  617. RJ.Parent = nil N.Parent = nil RS.Parent = nil LS.Parent = nil RH.Parent = nil LH.Parent = nil
  618. LA.Size = Vector3.new(0.6,1.2,0.6)RA.Size = Vector3.new(0.6,1.2,0.6)HR.Size = Vector3.new(1.2,1.2,0.6) pl.Humanoid.HipHeight = -0.1
  619. LL.Size = Vector3.new(0.6,1.2,0.6)RL.Size = Vector3.new(0.6,1.2,0.6)H.Size = Vector3.new(2,1,1)T.Size = Vector3.new(1.2,1.2,0.6)
  620. RJ.Parent = pl.HumanoidRootPart N.Parent = T RS.Parent = T LS.Parent = T RH.Parent = T LH.Parent = T
  621. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  622. lerpz(N, "C0", NC0 * cf(0, 0, -0.3) * ang(rd(0), rd(0), rd(0)), 1)
  623. lerpz(RS, "C0", RSC0 * cf(0, 0, -0.6) * ang(rd(0), rd(0), rd(0)), 1)
  624. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  625. lerpz(LS, "C0", LSC0 * cf(0, 0, -0.6) * ang(rd(0), rd(0), rd(0)), 1)
  626. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  627. lerpz(RH, "C0", RHC0 * cf(0, 0.8, -0.2) * ang(rd(0), rd(0), rd(0)), 1)
  628. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  629. lerpz(LH, "C0", LHC0 * cf(0, 0.8, -0.2) * ang(rd(0), rd(0), rd(0)), 1)
  630. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  631. else
  632. RJ.Parent = nil N.Parent = nil RS.Parent = nil LS.Parent = nil RH.Parent = nil LH.Parent = nil
  633. LA.Size = Vector3.new(1,2,1)RA.Size = Vector3.new(1,2,1)HR.Size = Vector3.new(2,2,1) pl.Humanoid.HipHeight = 0
  634. LL.Size = Vector3.new(1,2,1)RL.Size = Vector3.new(1,2,1)H.Size = Vector3.new(2,1,1)T.Size = Vector3.new(2,2,1)
  635. RJ.Parent = pl.HumanoidRootPart N.Parent = T RS.Parent = T LS.Parent = T RH.Parent = T LH.Parent = T
  636. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  637. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  638. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  639. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  640. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  641. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  642. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  643. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  644. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  645. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  646. end
  647. end
  648.  
  649. function Suicide(pl)
  650. pl.Parent = game.Workspace
  651. local RJ = pl.HumanoidRootPart:findFirstChild("RootJoint")
  652. local N = pl.Torso:findFirstChild("Neck")
  653. local RS = pl.Torso:findFirstChild("Right Shoulder")
  654. local LS = pl.Torso:findFirstChild("Left Shoulder")
  655. local RH = pl.Torso:findFirstChild("Right Hip")
  656. local LH = pl.Torso:findFirstChild("Left Hip")
  657. local r = math.random(1,2)
  658. if r == 1 then
  659. local wep = Instance.new("Part",pl)wep.Size = Vector3.new(0.2,0.2,0.2)local MH = Instance.new("SpecialMesh",wep)MH.MeshId = "rbxassetid://623102664"
  660. local WH = Instance.new("Weld",pl["Right Arm"])WH.Part0 = pl["Right Arm"] WH.Part1 = wep WH.C0 = CFrame.new(0,-1.5,0) MH.TextureId = "rbxassetid://623102879"
  661. MH.Scale = Vector3.new(0.01,0.01,0.01)WH.C0 = WH.C0*CFrame.Angles(0,math.rad(90),0)
  662. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  663. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  664. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(180)), 1)
  665. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  666. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  667. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  668. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  669. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  670. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  671. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  672. wait(0.1)
  673. ragplayer(pl) pl.Head.Transparency = 1 local GS = Instance.new("Sound",pl.Head)GS.Volume = 10 GS.SoundId = "rbxassetid://801978264" GS:Play()
  674. pl.Head:findFirstChild("face"):remove()
  675. else
  676. ragplayer(pl) local GS = Instance.new("Sound",pl.Head)GS.Volume = 10 GS.SoundId = "rbxassetid://356911785" GS:Play()
  677. pl.Head:findFirstChild("face"):remove()
  678. end
  679. end
  680. function ragplayer(cactus)
  681. cactus.Humanoid.PlatformStand = true cactus:findFirstChild("Humanoid").Health = 0.01
  682. if cactus["Right Arm"]~=nil and cactus.Torso:FindFirstChild("Right Shoulder") then
  683. cactus.Torso:FindFirstChild("Right Shoulder"):Destroy()
  684. makegloo(cactus.Torso, RSC0, RSC1, cactus.Torso, cactus["Right Arm"], "Right Shoulder")
  685. maketouchy(cactus["Right Arm"], cactus["Right Arm"], CFrame.new(0, 0.5, 0))
  686. end
  687. if cactus["Left Arm"]~=nil and cactus.Torso:FindFirstChild("Left Shoulder") then
  688. cactus.Torso:FindFirstChild("Left Shoulder"):Destroy()
  689. makegloo(cactus.Torso, LSC0, LSC1, cactus.Torso, cactus["Left Arm"], "Left Shoulder")
  690. maketouchy(cactus["Left Arm"], cactus["Left Arm"], CFrame.new(0, 0.5, 0))
  691. end
  692. if cactus["Right Leg"]~=nil and cactus.Torso:FindFirstChild("Right Hip") then
  693. cactus.Torso:FindFirstChild("Right Hip"):Destroy()
  694. makegloo(cactus.Torso, RHC0, RHC1, cactus.Torso, cactus["Right Leg"], "Right Hip")
  695. maketouchy(cactus["Right Leg"], cactus["Right Leg"], CFrame.new(0, 0.5, 0))
  696. end
  697. if cactus["Left Leg"]~=nil and cactus.Torso:FindFirstChild("Left Hip") then
  698. cactus.Torso:FindFirstChild("Left Hip"):Destroy()
  699. makegloo(cactus.Torso, LHC0, LHC1, cactus.Torso, cactus["Left Leg"], "Left Hip")
  700. maketouchy(cactus["Left Leg"], cactus["Left Leg"], CFrame.new(0, 0.5, 0))
  701. end
  702. cactus.Parent = game.Workspace game.Debris:AddItem(cactus,10)
  703. end
  704. function makegloo(paren, co, ci, parto, parti, nam) local gloo = Instance.new("Glue") gloo.Name = nam gloo.C0 = co gloo.C1 = ci gloo.Part0 = parto gloo.Part1 = parti gloo.Parent = paren end
  705.  
  706. function maketouchy(parent, limb, cframe) local pr = Instance.new("Part") pr.Name = "touchy" pr.Size = Vector3.new(1, 1, 1) pr.Transparency = 1 pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5) pr.CanCollide = true pr.Anchored = false pr.Parent = parent local w = Instance.new("Weld") w.Part0 = pr w.Part1 = limb w.C0 = cframe w.Parent = pr end
  707.  
  708.  
  709. EventTrigger = false
  710.  
  711. --[[mouse.KeyDown:connect(function(key)
  712. if key == "v" then
  713. EventTrigger = true
  714. end
  715. end)]]
  716.  
  717. local p = c:clone() p.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame p.Name = "Alpha"..HumanoidName
  718. p.Head:findFirstChild("face").Texture = "rbxassetid://423525986" p.Humanoid.WalkSpeed = 6
  719. p:findFirstChild("Shirt").ShirtTemplate = "rbxassetid://182145502"
  720. p:findFirstChild("Pants").PantsTemplate = "rbxassetid://182145710"
  721. p.Humanoid.MaxHealth = 500 p.Humanoid.Health = 500
  722. wait()
  723. for i,v in pairs(p:children()) do
  724. if v.ClassName == "Accessory" then
  725. p.Humanoid:AddAccessory(v)
  726. end
  727. end
  728. p.Parent = m
  729. TPopulation = 4
  730. Population = 4
  731. MaxPopulation = 25
  732. CreatedHuman = 0
  733. Deaths = 0
  734. while true do
  735. swait()
  736. c.Humanoid.MaxHealth = c.Humanoid.MaxHealth*2
  737. c.Humanoid.Health = c.Humanoid.MaxHealth
  738. local rzzz = math.random(1,100000)
  739. if rzzz == 10000 or EventTrigger == true then EventTrigger = false
  740. local rae = math.random(1,1)
  741. if rae == 1 then
  742. print("Zombie Apocalypse")
  743. local GS = Instance.new("Sound",game.Workspace)GS.Volume = 1 GS.SoundId = "rbxassetid://301700586" GS:Play()
  744. for i,v in pairs (m:children()) do
  745. local random = math.random(1,4)
  746. if random == 1 and v.Name ~= "Alpha"..HumanoidName and v.Name ~= "Dark"..HumanoidName then
  747. v.Head:findFirstChild("face").Texture = "rbxassetid://"..FaceId2 v.Name = "Zombie"..HumanoidName v.Humanoid.WalkSpeed = 12
  748. local b = Instance.new("ObjectValue",v)b.Name = "Target" b.Value = nil ZombieArms(v)
  749. end
  750. end
  751. elseif rae == 2 then
  752. MeteorShower()
  753. end
  754. end
  755. for i,v in pairs (m:children()) do
  756. local m2 = math.random(1,15000)
  757. if v:findFirstChild("Head")== nil or v:findFirstChild("HumanoidRootPart")== nil or v.Humanoid.Health <= 0 then
  758. v.Parent = game.Workspace game.Debris:AddItem(v,2) Deaths = Deaths + 1 Population = Population - 1
  759. elseif v:findFirstChild("HumanoidRootPart")~= nil and v:findFirstChild("Head")~= nil and v.Humanoid.Health > 0 then
  760. if v:findFirstChild("Humanoid").Sit == true or v:findFirstChild("Humanoid").PlatformStand == true then
  761. v:findFirstChild("Humanoid").Jump = true
  762. end
  763. if v:findFirstChild("Disabled")== nil then
  764. if v.Name == "Suicidal"..HumanoidName then
  765. if v:findFirstChild("DeathCount")~= nil then
  766. if v:findFirstChild("DeathCount").Value > 0 then
  767. v:findFirstChild("DeathCount").Value = v:findFirstChild("DeathCount").Value - 5
  768. else v.Parent = game.Workspace
  769. Suicide(v) Population = Population - 1 Deaths = Deaths + 1
  770. end
  771. end
  772. elseif v.Name == "Violent"..HumanoidName or v.Name == "Genocide"..HumanoidName or v.Name == "Dark"..HumanoidName or v.Name == "Zombie"..HumanoidName or v.Name == "Assassin"..HumanoidName then
  773. if m2 > 7000 and m2 <= 7002 and v.Name == "Violent"..HumanoidName then
  774. v.Humanoid.WalkSpeed = 8 v:findFirstChild("Bat"):remove() v.Name = "Vigilante"..HumanoidName
  775. local wep = Instance.new("Part",v)wep.Size = Vector3.new(0.2,0.2,0.2)local MH = Instance.new("SpecialMesh",wep)MH.MeshId = "rbxassetid://623102664" wep.Name = "Gun"
  776. local W2H = Instance.new("Weld",v["Right Arm"])W2H.Part0 = v["Right Arm"] W2H.Part1 = wep W2H.C0 = CFrame.new(0,-1.5,0) MH.TextureId = "rbxassetid://623102879"
  777. MH.Scale = Vector3.new(0.01,0.01,0.01)W2H.C0 = W2H.C0*CFrame.Angles(0,math.rad(90),math.rad(-90))
  778. local wep = Instance.new("Part",v)wep.Size = Vector3.new(0.2,0.2,0.2)local MH = Instance.new("SpecialMesh",wep)MH.MeshId = "rbxassetid://623102664" wep.Name = "Gun2"
  779. local W2H = Instance.new("Weld",v["Left Arm"])W2H.Part0 = v["Left Arm"] W2H.Part1 = wep W2H.C0 = CFrame.new(0,-1.5,0) MH.TextureId = "rbxassetid://623102879"
  780. MH.Scale = Vector3.new(0.01,0.01,0.01)W2H.C0 = W2H.C0*CFrame.Angles(0,math.rad(90),math.rad(-90))
  781. end
  782. if v:findFirstChild("Target") ~= nil and v:findFirstChild("Target").Value == nil then
  783. local rz = math.random(1,Population)
  784. for i,v2 in pairs (m:children()) do
  785. if v2 ~= v or v.Name == "Zombie"..HumanoidName and v2.Name ~= "Zombie"..HumanoidName then
  786. v:findFirstChild("Target").Value = v2
  787. if rz == i then break end
  788. end
  789. end
  790. else
  791. if ((v:findFirstChild("Target").Value):findFirstChild("HumanoidRootPart"))~= nil and v.HumanoidRootPart ~= nil and ((v:findFirstChild("Target").Value):findFirstChild("HumanoidRootPart").Position-v.HumanoidRootPart.Position).magnitude <= 6 and (v:findFirstChild("Target").Value):findFirstChild("Humanoid").Health > 1 then
  792. if v.Name == "Zombie"..HumanoidName then
  793. local b = Instance.new("ObjectValue",v)b.Name = "Target" b.Value = nil
  794. (v:findFirstChild("Target").Value).Name = "Zombie"..HumanoidName
  795. ZombieArms(v)
  796. Deaths = Deaths + 1 (v:findFirstChild("Target").Value).Humanoid.WalkSpeed = 12
  797. local rz = math.random(1,Population) Population = Population - 1
  798. for i,v2 in pairs (m:children()) do
  799. if v2 ~= v or v.Name == "Zombie"..HumanoidName and v2.Name ~= "Zombie"..HumanoidName then
  800. v:findFirstChild("Target").Value = v2
  801. if rz == i then break end
  802. end
  803. end
  804. elseif v.Name == "Assassin"..HumanoidName then
  805. ragplayer((v:findFirstChild("Target").Value))
  806. AssassinReveal(v)
  807. Deaths = Deaths + 1 Population = Population - 1
  808. local rz = math.random(1,Population)
  809. for i,v2 in pairs (m:children()) do
  810. if v2 ~= v or v.Name == "Zombie"..HumanoidName and v2.Name ~= "Zombie"..HumanoidName then
  811. v:findFirstChild("Target").Value = v2
  812. if rz == i then break end
  813. end
  814. end
  815. else
  816. if (v:findFirstChild("Target").Value).Humanoid.Health <= 15 then
  817. ragplayer((v:findFirstChild("Target").Value))
  818. Deaths = Deaths + 1 Population = Population - 1
  819. local rz = math.random(1,Population)
  820. for i,v2 in pairs (m:children()) do
  821. if v2 ~= v or v.Name == "Zombie"..HumanoidName and v2.Name ~= "Zombie"..HumanoidName then
  822. v:findFirstChild("Target").Value = v2
  823. if rz == i then break end
  824. end
  825. end
  826. else
  827. (v:findFirstChild("Target").Value).Humanoid.Health = (v:findFirstChild("Target").Value).Humanoid.Health - 15
  828. end
  829. BatSwing(v)
  830. local GS = Instance.new("Sound",v.Head)GS.Volume = 4 GS.SoundId = "rbxassetid://386946017" GS:Play()
  831. end
  832. elseif v:findFirstChild("Target").Value ~= nil and (v:findFirstChild("Target").Value):findFirstChild("HumanoidRootPart") ~= nil then
  833. v.Humanoid.WalkToPoint = (v:findFirstChild("Target").Value):findFirstChild("HumanoidRootPart").Position
  834. end
  835.  
  836. if v.Name == "Dark"..HumanoidName then
  837. if v:findFirstChild("Kills").Value >= 250 then
  838. local p2 = p:clone()p2.Parent = m p2.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame p2.Name = "Omega"..HumanoidName
  839. end
  840. for i,v2 in pairs (m:children()) do
  841. if v2:findFirstChild("HumanoidRootPart")~= nil and v:findFirstChild("HumanoidRootPart")~= nil and v2 ~= v then
  842. if (v2.Torso.Position-v.Torso.Position).magnitude <= math.random(48,50) then
  843. for i = 1,4 do
  844. Lightningz2(v2.HumanoidRootPart.Position, v.HumanoidRootPart.Position, 0.3, 4)
  845. swait()
  846. end
  847. local GS = Instance.new("Sound",v.Head)GS.Volume = 3 GS.SoundId = "rbxassetid://821439273" GS:Play()
  848. ragplayer(v2) Deaths = Deaths + 1 Population = Population - 1 v:findFirstChild("Kills").Value = v:findFirstChild("Kills").Value + 1
  849. end
  850. end
  851. end
  852. end
  853. if v.Name == "Genocide"..HumanoidName then
  854. if v:findFirstChild("Kills").Value >= 20 then
  855. v.Name = "Dark"..HumanoidName v.Head:findFirstChild("face").Texture = "rbxassetid://"
  856. v.Humanoid.MaxHealth = 2500 swait() v.Humanoid.Health = 2500
  857. for i,v in pairs (v:children()) do
  858. if v.ClassName == "Part" then
  859. if v.Name ~= "HumanoidRootPart" then
  860. v.Material = "Sand" v.BrickColor = BrickColor.new("Really black")
  861. if v.Name ~= "Head" then
  862. local M = Instance.new("SpecialMesh",v)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  863. M.Scale = Vector3.new(v.Size.X*2,v.Size.Y*2,v.Size.Z*2)
  864. end
  865. end
  866. end
  867. end
  868. end
  869. end
  870. if v.Name == "Genocide"..HumanoidName and v:findFirstChild("GunCoolDown")== nil then
  871. for i,v2 in pairs (m:children()) do
  872. if v2 ~= v then
  873. if v2:findFirstChild("HumanoidRootPart")~=nil and v:findFirstChild("HumanoidRootPart")~=nil and(v2.Torso.Position-v.Torso.Position).magnitude <= math.random(15,40) then
  874. Gunshot(v2.HumanoidRootPart.Position, v.HumanoidRootPart.Position, 0.1, 10) ShootGun(v)
  875. local GS = Instance.new("Sound",v.Head)GS.Volume = 4 GS.SoundId = "rbxassetid://356911785" GS:Play()
  876. local b = Instance.new("BoolValue",v)b.Name = "GunCoolDown" game.Debris:AddItem(b,math.random(3,8)/10)
  877. if v2.Humanoid.Health <= 125 then
  878. Gunshot(v2.HumanoidRootPart.Position, v.HumanoidRootPart.Position, 0.1, 10) ShootGun(v)
  879. ragplayer(v2) Deaths = Deaths + 1 Population = Population - 1 v:findFirstChild("Kills").Value = v:findFirstChild("Kills").Value + 1
  880. else
  881. v2.Humanoid.Health = v2.Humanoid.Health - 125
  882. Gunshot(v2.HumanoidRootPart.Position, v.HumanoidRootPart.Position, 0.1, 10) ShootGun(v)
  883. end
  884. end
  885. end
  886. end
  887. end
  888. end
  889. else
  890. MusicId = Music[math.random(1,#Music)]
  891. MusicId2 = Music2[math.random(1,#Music2)]
  892. FaceId = Face[math.random(1,#Face)]
  893. FaceId2 = Face2[math.random(1,#Face2)]
  894. WisdomId = Wisdom[math.random(1,#Wisdom)]
  895. ShirtId = Shirt[math.random(1,#Shirt)]
  896. PantsId = Pants[math.random(1,#Pants)]
  897. if CreatedHuman <= 2 then CreatedHuman = CreatedHuman + 1
  898. local p2 = p:clone() p2.HumanoidRootPart.CFrame = p.HumanoidRootPart.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))
  899. p2:findFirstChild("Shirt").ShirtTemplate = "rbxassetid://"..ShirtId
  900. p2:findFirstChild("Pants").PantsTemplate = "rbxassetid://"..PantsId
  901. p2.Head:findFirstChild("face").Texture = "rbxassetid://"..FaceId2 p2.Name = "Human" p2.Humanoid.WalkSpeed = 12
  902. p2.Parent = m
  903. p2.Head:findFirstChild("face").Texture = "rbxassetid://" p2.Name = "Builder"..HumanoidName p2.Humanoid.WalkSpeed = 16
  904. p2:findFirstChild("Shirt").ShirtTemplate = "rbxassetid://768629253"
  905. p2:findFirstChild("Pants").PantsTemplate = "rbxassetid://295871033"
  906. local hat = Instance.new("Part",p2)hat.Size = Vector3.new(0.2,0.2,0.2)local MH = Instance.new("SpecialMesh",hat)MH.MeshId = "rbxassetid://163124435"
  907. local WH = Instance.new("Weld",p2.Head)WH.Part0 = p2.Head WH.Part1 = hat WH.C0 = CFrame.new(0,0.5,-0.06125) MH.TextureId = "rbxassetid://177258954"
  908. MH.Scale = Vector3.new(1.05,1.05,1.05)
  909. elseif CreatedHuman <= 4 then CreatedHuman = CreatedHuman + 1
  910. local p2 = p:clone() p2.HumanoidRootPart.CFrame = p.HumanoidRootPart.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))
  911. p2:findFirstChild("Shirt").ShirtTemplate = "rbxassetid://"..ShirtId
  912. p2:findFirstChild("Pants").PantsTemplate = "rbxassetid://"..PantsId
  913. p2.Head:findFirstChild("face").Texture = "rbxassetid://"..FaceId2 p2.Name = "Human" p2.Humanoid.WalkSpeed = 12
  914. p2.Parent = m
  915. end
  916. if v.Name == "Police"..HumanoidName then
  917. for i,v2 in pairs (m:children()) do
  918. if v2.Name == "Violent"..HumanoidName or v2.Name == "Genocide"..HumanoidName or v2.Name == "Dark"..HumanoidName or v2.Name == "Assassin"..HumanoidName or v2.Name == "Zombie"..HumanoidName then
  919. if v2:findFirstChild("HumanoidRootPart")~= nil and v:findFirstChild("GunCoolDown")== nil then
  920. if (v2.Torso.Position-v.Torso.Position).magnitude <= 40 then
  921. local miss = nil
  922. if v2.Name == "Genocide"..HumanoidName then
  923. miss = math.random(1,25)
  924. elseif v2.Name == "Dark"..HumanoidName then
  925. miss = math.random(1,1000)
  926. else
  927. miss = math.random(1,5)
  928. end
  929. local GS = Instance.new("Sound",v.Head)GS.Volume = 4 GS.SoundId = "rbxassetid://356911785" GS:Play()
  930. local b = Instance.new("BoolValue",v)b.Name = "GunCoolDown" game.Debris:AddItem(b,math.random(3,8)/10)
  931. if miss == 1 then
  932. if v2.Humanoid.Health <= 35 then
  933. Gunshot(v2.HumanoidRootPart.Position, v.HumanoidRootPart.Position, 0.1, 10) ShootGun(v)
  934. ragplayer(v2) Deaths = Deaths + 1 Population = Population - 1
  935. else
  936. v2.Humanoid.Health = v2.Humanoid.Health - 35
  937. Gunshot(v2.HumanoidRootPart.Position, v.HumanoidRootPart.Position, 0.1, 10) ShootGun(v)
  938. end
  939. else
  940. Gunshot(v2.HumanoidRootPart.Position+Vector3.new(math.random(-15,15),math.random(-15,15),math.random(-15,15)), v.HumanoidRootPart.Position, 0.1, 10) ShootGun(v)
  941. end
  942. end
  943. end
  944. end
  945. end
  946. end
  947. if v.Name == "Vigilante"..HumanoidName then
  948. for i,v2 in pairs (m:children()) do
  949. if v2.Name == "Violent"..HumanoidName or v2.Name == "Genocide"..HumanoidName or v2.Name == "Dark"..HumanoidName and v:findFirstChild("GunCoolDown")== nil then
  950. if (v2.Torso.Position-v.Torso.Position).magnitude <= 40 then
  951. local miss = nil
  952. if v2.Name == "Genocide"..HumanoidName then
  953. miss = math.random(1,12)
  954. elseif v2.Name == "Dark"..HumanoidName then
  955. miss = math.random(1,500)
  956. else
  957. miss = math.random(1,2)
  958. end
  959. local GS = Instance.new("Sound",v.Head)GS.Volume = 4 GS.SoundId = "rbxassetid://356911785" GS:Play()
  960. local b = Instance.new("BoolValue",v)b.Name = "GunCoolDown" game.Debris:AddItem(b,math.random(1,5)/10)
  961. if miss == 1 then
  962. Gunshot(v2.HumanoidRootPart.Position, v.HumanoidRootPart.Position, 0.1, 10) ShootGun(v)
  963. ragplayer(v2) Deaths = Deaths + 1 Population = Population - 1
  964. else
  965. Gunshot(v2.HumanoidRootPart.Position+Vector3.new(math.random(-15,15),math.random(-15,15),math.random(-15,15)), v.HumanoidRootPart.Position, 0.1, 10) ShootGun(v)
  966. end
  967. end
  968. end
  969. end
  970. end
  971. if v.Name == "Super"..HumanoidName then
  972. if v:findFirstChild("Humanoid") ~= nil then
  973. v.Humanoid.Health = v.Humanoid.Health + 5
  974. end
  975. for i,v2 in pairs (m:children()) do
  976. if v2.Name == "Violent"..HumanoidName or v2.Name == "Genocide"..HumanoidName or v2.Name == "Dark"..HumanoidName or v2.Name == "Zombie"..HumanoidName or v2.Name == "Assassin"..HumanoidName then
  977. if v2:findFirstChild("HumanoidRootPart")~= nil and v:findFirstChild("HumanoidRootPart")~= nil then
  978. if (v2.Torso.Position-v.Torso.Position).magnitude <= 150 then
  979. SuperAttack(v,v2)
  980. Deaths = Deaths + 1 Population = Population - 1
  981. end
  982. end
  983. end
  984. end
  985. end
  986. if v.Name == "Alpha"..HumanoidName then
  987. if v:findFirstChild("Humanoid") ~= nil then
  988. v.Humanoid.Health = v.Humanoid.Health + 5
  989. end
  990. for i,v2 in pairs (m:children()) do
  991. if v2.Name == "Violent"..HumanoidName or v2.Name == "Genocide"..HumanoidName or v2.Name == "Dark"..HumanoidName or v2.Name == "Zombie"..HumanoidName then
  992. if v2:findFirstChild("HumanoidRootPart")~= nil and v:findFirstChild("HumanoidRootPart")~= nil then
  993. if (v2.Torso.Position-v.Torso.Position).magnitude <= 75 then
  994. for i = 1,4 do
  995. Lightningz(v2.HumanoidRootPart.Position, v.HumanoidRootPart.Position, 0.3, 4)
  996. swait()
  997. end
  998. local GS = Instance.new("Sound",v.Head)GS.Volume = 4 GS.SoundId = "rbxassetid://821439273" GS:Play()
  999. ragplayer(v2) Deaths = Deaths + 1 Population = Population - 1
  1000. end
  1001. end
  1002. end
  1003. end
  1004. end
  1005. if v.Name == "Builder"..HumanoidName then
  1006. local rz = math.random(1,2500)
  1007. if rz == 1 then
  1008. BuildStructure(v)
  1009. end
  1010. end
  1011. if m2 > 5000 and m2 <= 5001 and v.Name == "Human" then
  1012. v.Head:findFirstChild("face").Texture = "rbxassetid://60501076" v.Name = "Fast"..HumanoidName v.Humanoid.WalkSpeed = 200
  1013. local hit = false
  1014. v.HumanoidRootPart.Touched:connect(function()
  1015. if hit == true then return end hit = true
  1016. ragplayer(v) Deaths = Deaths + 1 Population = Population - 1
  1017. local GS = Instance.new("Sound",v.Head)GS.Volume = 4 GS.SoundId = "rbxassetid://386946017" GS:Play()
  1018. end)
  1019. end
  1020. if m2 > 3043 and m2 <= 3044 and v.Name == "Educated"..HumanoidName then
  1021. v.Name = "Assassin"..HumanoidName AssassinHide(v) local b = Instance.new("ObjectValue",v)b.Name = "Target" b.Value = nil
  1022. end
  1023. if m2 == 5003 and v.Name == "Little"..HumanoidName then
  1024. local r = math.random(1,3)
  1025. if r == 1 then
  1026. v.Name = "Super Little"..HumanoidName
  1027. end
  1028. end
  1029. if m2 > 4006 and m2 <= 4007 and v.Name == "Human" then
  1030. v.Name = "Educated"..HumanoidName
  1031. end
  1032. if m2 > 5000 and m2 <= 5001 and v.Name == "Little"..HumanoidName then
  1033. v.Head:findFirstChild("face").Texture = "rbxassetid://60501076" v.Name = "Hyper"..HumanoidName v.Humanoid.WalkSpeed = 200
  1034. local hit = false
  1035. v.HumanoidRootPart.Touched:connect(function()
  1036. if hit == true then return end hit = true
  1037. ragplayer(v) Deaths = Deaths + 1 Population = Population - 1
  1038. local GS = Instance.new("Sound",v.Head)GS.Volume = 4 GS.SoundId = "rbxassetid://386946017" GS:Play()
  1039. end)
  1040. end
  1041. if m2 > 7000 and m2 <= 7001 and v.Name == "Human" then
  1042. local b = Instance.new("IntValue",v)b.Name = "DeathCount" b.Value = 1200 v.Humanoid.WalkSpeed = 0 v.Name = "Suicidal"..HumanoidName
  1043. end
  1044. if m2 > 9000 and m2 <= 9001 and v.Name == "Human" then
  1045. v.Head:findFirstChild("face").Texture = "rbxassetid://"..FaceId v.Name = "Annoying"..HumanoidName
  1046. end
  1047. if m2 >= 5004 and m2 < 5007 and v.Name == "Human" then
  1048. local rz = math.random(1,3)
  1049. if rz == 1 then
  1050. v.Head:findFirstChild("face").Texture = "rbxassetid://" v.Name = "Builder"..HumanoidName v.Humanoid.WalkSpeed = 16
  1051. v:findFirstChild("Shirt").ShirtTemplate = "rbxassetid://768629253"
  1052. v:findFirstChild("Pants").PantsTemplate = "rbxassetid://295871033"
  1053. local hat = Instance.new("Part",v)hat.Name = "Hat" hat.Size = Vector3.new(0.2,0.2,0.2)local MH = Instance.new("SpecialMesh",hat)MH.MeshId = "rbxassetid://163124435"
  1054. local WH = Instance.new("Weld",v.Head)WH.Part0 = v.Head WH.Part1 = hat WH.C0 = CFrame.new(0,0.5,-0.06125) MH.TextureId = "rbxassetid://177258954"
  1055. MH.Scale = Vector3.new(1.05,1.05,1.05)
  1056. end
  1057. end
  1058. if v.Name == "Little"..HumanoidName or v.Name == "Super Little"..HumanoidName then
  1059. if v:findFirstChild("Age") ~= nil then
  1060. if v:findFirstChild("Age").Value >= 1000 then
  1061. if v.Name == "Super Little"..HumanoidName then
  1062. Resize(0,v) v.Name = "Super"..HumanoidName
  1063. v.Humanoid.MaxHealth = 150 swait() v.Humanoid.Health = 150
  1064. else
  1065. Resize(0,v) v.Name = "Human"
  1066. v.Humanoid.MaxHealth = 50 swait() v.Humanoid.Health = 50
  1067. end
  1068. else
  1069. v:findFirstChild("Age").Value = v:findFirstChild("Age").Value + 1
  1070. end
  1071. end
  1072. end
  1073. if m2 >= 5010 and m2 < 5011 then
  1074. --RandomAct(v)
  1075. end
  1076. if m2 >= 5008 and m2 < 5009 and v.Name == "Human" then
  1077. local rz = math.random(1,3)
  1078. if rz == 1 then
  1079. v.Head:findFirstChild("face").Texture = "rbxassetid://299486119" v.Name = "Police"..HumanoidName v.Humanoid.WalkSpeed = 16
  1080. v:findFirstChild("Shirt").ShirtTemplate = "rbxassetid://1972067"
  1081. v:findFirstChild("Pants").PantsTemplate = "rbxassetid://1960214"
  1082. local hat = Instance.new("Part",v)hat.Size = Vector3.new(0.2,0.2,0.2)local MH = Instance.new("SpecialMesh",hat)MH.MeshId = "rbxassetid://1028788"
  1083. local WH = Instance.new("Weld",v.Head)WH.Part0 = v.Head WH.Part1 = hat WH.C0 = CFrame.new(0,0.5,0) MH.TextureId = "rbxassetid://1028787"
  1084. local wep = Instance.new("Part",v)wep.Size = Vector3.new(0.2,0.2,0.2)local MH = Instance.new("SpecialMesh",wep)MH.MeshId = "rbxassetid://623102664" wep.Name = "Gun"
  1085. local W2H = Instance.new("Weld",v["Right Arm"])W2H.Part0 = v["Right Arm"] W2H.Part1 = wep W2H.C0 = CFrame.new(0,-1.5,0) MH.TextureId = "rbxassetid://623102879"
  1086. local b = Instance.new("ObjectValue",v)b.Name = "Target" b.Value = nil MH.Scale = Vector3.new(0.01,0.01,0.01)W2H.C0 = W2H.C0*CFrame.Angles(0,math.rad(90),math.rad(-90))
  1087. end
  1088. end
  1089. if m2 == 5004 and v.Name == "Human" then
  1090. local r = math.random(1,2)
  1091. if r == 1 then v.Name = "Violent"..HumanoidName v.Humanoid.WalkSpeed = 24
  1092. local wep = Instance.new("Part",v)wep.Size = Vector3.new(0.2,0.2,0.2)local MH = Instance.new("SpecialMesh",wep)MH.MeshId = "rbxassetid://441561081"
  1093. local WH = Instance.new("Weld",v["Right Arm"])WH.Part0 = v["Right Arm"] WH.Part1 = wep WH.C0 = CFrame.new(0,-1,-2) MH.TextureId = "rbxassetid://441561146"
  1094. local b = Instance.new("ObjectValue",v)b.Name = "Target" b.Value = nil MH.Scale = Vector3.new(0.02,0.02,0.02)WH.C0 = WH.C0*CFrame.Angles(math.rad(-90),0,0)
  1095. v.Head:findFirstChild("face").Texture = "rbxassetid://168024772" wep.Name = "Bat"
  1096. else v.Name = "Genocide"..HumanoidName v.Humanoid.WalkSpeed = 16
  1097. v.Head:findFirstChild("face").Texture = "rbxassetid://168024772"
  1098. local wep = Instance.new("Part",v)wep.Size = Vector3.new(0.2,0.2,0.2)local MH = Instance.new("SpecialMesh",wep)MH.MeshId = "rbxassetid://623102664"
  1099. local WH = Instance.new("Weld",v["Right Arm"])WH.Part0 = v["Right Arm"] WH.Part1 = wep WH.C0 = CFrame.new(0,-1.5,0) MH.TextureId = "rbxassetid://623102879"
  1100. local b = Instance.new("ObjectValue",v)b.Name = "Target" b.Value = nil MH.Scale = Vector3.new(0.01,0.01,0.01)WH.C0 = WH.C0*CFrame.Angles(0,math.rad(90),math.rad(-90))
  1101. local b2 = Instance.new("IntValue",v)b2.Name = "Kills" b2.Value = 0 wep.Name = "Gun"
  1102. end
  1103. end
  1104. if m2 >= 9000 and m2 < 9250 then
  1105. if v.Name == "Alpha"..HumanoidName then
  1106. local r2 = math.random(1,25)
  1107. if r2 == 1 then
  1108. v:findFirstChild("Humanoid").WalkToPoint = v.HumanoidRootPart.Position+Vector3.new(math.random(-75,75),math.random(-75,75),math.random(-75,75))
  1109. end
  1110. elseif v.Name == "Annoying"..HumanoidName then
  1111. v:findFirstChild("Humanoid").WalkToPoint = v.HumanoidRootPart.Position+Vector3.new(math.random(-25,25),math.random(-25,25),math.random(-25,25))
  1112. elseif v.Name ~= "Suicidal"..HumanoidName then
  1113. local r3 = math.random(1,2)
  1114. if r3 == 1 then
  1115. v:findFirstChild("Humanoid").WalkToPoint = v.HumanoidRootPart.Position+Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1116. end
  1117. end
  1118. end
  1119. if m2 >= 9900 and m2 < 10000 then
  1120. local txt = Instance.new("BillboardGui", v)
  1121. txt.Adornee = v.Head
  1122. txt.Name = "ChatBubble"
  1123. txt.Size = UDim2.new(4, 0, 4, 0)
  1124. txt.StudsOffset = Vector3.new(0, 4, 0)
  1125. local im = Instance.new("ImageLabel",txt)im.Image = "rbxassetid://332218617"
  1126. im.Size = UDim2.new(1,0,1,0)im.BackgroundTransparency = 1 im.ImageTransparency = 1
  1127. if v.Name == "Alpha"..HumanoidName then
  1128. local r2 = math.random(1,10)
  1129. if r2 == 1 then
  1130. local s = SoundCopy:clone() s.Parent = v.HumanoidRootPart
  1131. s.SoundId = "rbxassetid://"..WisdomId s.Volume = 0.5 s:Play()
  1132. s.Loaded:connect(function()
  1133. im.ImageTransparency = 0
  1134. s.Ended:connect(function()
  1135. txt:remove()
  1136. end)
  1137. end)
  1138. end
  1139. elseif v.Name == "Annoying"..HumanoidName then
  1140. local s = SoundCopy:clone() s.Parent = v.HumanoidRootPart
  1141. s.SoundId = "rbxassetid://"..MusicId s.Volume = 0.5 s:Play()
  1142. s.Loaded:connect(function()
  1143. im.ImageTransparency = 0
  1144. s.Ended:connect(function()
  1145. txt:remove()
  1146. end)
  1147. end)
  1148. else
  1149. local r3 = math.random(1,10)
  1150. if r3 == 1 then
  1151. local s = SoundCopy:clone() s.Parent = v.HumanoidRootPart
  1152. s.SoundId = "rbxassetid://"..MusicId2 s.Volume = 0.5 s:Play()
  1153. s.Loaded:connect(function()
  1154. im.ImageTransparency = 0
  1155. s.Ended:connect(function()
  1156. txt:remove()
  1157. end)
  1158. end)
  1159. end
  1160. end
  1161. end
  1162. if Population <= MaxPopulation then
  1163. if m2 <= math.random(0,50-(Population*0.25)) then
  1164. for i,v2 in pairs (m:children()) do
  1165. if v2:findFirstChild("HumanoidRootPart")~= nil and v.Name ~= "Builder"..HumanoidName and v.Name ~= "Dark"..HumanoidName and v.Name ~= "Genocide"..HumanoidName and v.Name ~= "Violent"..HumanoidName and v.Name ~= "Police"..HumanoidName and v.Name ~= "Little"..HumanoidName and v ~= nil and v:findFirstChild("HumanoidRootPart")~= nil and (v.Torso.Position-v2.Torso.Position).magnitude <= 10 then
  1166. Population = Population + 1
  1167. v.HumanoidRootPart.CFrame = v2.HumanoidRootPart.CFrame
  1168. local p2 = v:clone() p2.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame
  1169. p2:findFirstChild("Shirt").ShirtTemplate = "rbxassetid://"..ShirtId
  1170. p2:findFirstChild("Pants").PantsTemplate = "rbxassetid://"..PantsId p2.Humanoid.MaxHealth = 15 p2.Humanoid.Health = 15
  1171. if p2:findFirstChild("Hat")~= nil then
  1172. p2.Hat:remove()
  1173. end
  1174. p2.Head:findFirstChild("face").Texture = "rbxassetid://"..FaceId2 p2.Name = "Little"..HumanoidName p2.Humanoid.WalkSpeed = 12
  1175. local GS = Instance.new("Sound",p2.Head)GS.Volume = 1 GS.SoundId = "rbxassetid://164215701" GS:Play()
  1176. local b = Instance.new("IntValue",p2)b.Name = "Age" b.Value = 0
  1177. Resize(1,p2)
  1178. p2.Parent = m
  1179. end
  1180. end
  1181. end
  1182. end
  1183. end
  1184. end
  1185. end
  1186. end
  1187. basicgui.Text = "Deaths: "..Deaths
  1188. basicgui2.Text = "Population: "..Population
  1189. basicgui3.Text = "Max Population: "..MaxPopulation
  1190. end
Add Comment
Please, Sign In to add comment