sawgamer1

Untitled

Dec 19th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.32 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. 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()}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;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 t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)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 self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({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")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
  5.  
  6.  
  7. --Converted with ttyyuu12345's model to script plugin v4
  8. function sandbox(var,func)
  9. local env = getfenv(func)
  10. local newenv = setmetatable({},{
  11. __index = function(self,k)
  12. if k=="script" then
  13. return var
  14. else
  15. return env[k]
  16. end
  17. end,
  18. })
  19. setfenv(func,newenv)
  20. return func
  21. end
  22. cors = {}
  23. mas = Instance.new("Model",game:GetService("Lighting"))
  24. Model0 = Instance.new("Model")
  25. Part1 = Instance.new("Part")
  26. Weld2 = Instance.new("Weld")
  27. SpecialMesh3 = Instance.new("SpecialMesh")
  28. Part4 = Instance.new("Part")
  29. Decal5 = Instance.new("Decal")
  30. Motor6D6 = Instance.new("Motor6D")
  31. Motor6D7 = Instance.new("Motor6D")
  32. Motor6D8 = Instance.new("Motor6D")
  33. Motor6D9 = Instance.new("Motor6D")
  34. Motor6D10 = Instance.new("Motor6D")
  35. Part11 = Instance.new("Part")
  36. Part12 = Instance.new("Part")
  37. Part13 = Instance.new("Part")
  38. Script14 = Instance.new("Script")
  39. Part15 = Instance.new("Part")
  40. Script16 = Instance.new("Script")
  41. BoolValue17 = Instance.new("BoolValue")
  42. Script18 = Instance.new("Script")
  43. BoolValue19 = Instance.new("BoolValue")
  44. Humanoid20 = Instance.new("Humanoid")
  45. ObjectValue21 = Instance.new("ObjectValue")
  46. Script22 = Instance.new("Script")
  47. Script23 = Instance.new("Script")
  48. Script24 = Instance.new("Script")
  49. NumberValue25 = Instance.new("NumberValue")
  50. ObjectValue26 = Instance.new("ObjectValue")
  51. Animation27 = Instance.new("Animation")
  52. Script28 = Instance.new("Script")
  53. StringValue29 = Instance.new("StringValue")
  54. Animation30 = Instance.new("Animation")
  55. StringValue31 = Instance.new("StringValue")
  56. Animation32 = Instance.new("Animation")
  57. StringValue33 = Instance.new("StringValue")
  58. Animation34 = Instance.new("Animation")
  59. NumberValue35 = Instance.new("NumberValue")
  60. Animation36 = Instance.new("Animation")
  61. NumberValue37 = Instance.new("NumberValue")
  62. StringValue38 = Instance.new("StringValue")
  63. Animation39 = Instance.new("Animation")
  64. StringValue40 = Instance.new("StringValue")
  65. Animation41 = Instance.new("Animation")
  66. StringValue42 = Instance.new("StringValue")
  67. Animation43 = Instance.new("Animation")
  68. StringValue44 = Instance.new("StringValue")
  69. Animation45 = Instance.new("Animation")
  70. StringValue46 = Instance.new("StringValue")
  71. Animation47 = Instance.new("Animation")
  72. Camera48 = Instance.new("Camera")
  73. Model0.Name = "Zombie Yeti"
  74. Model0.Parent = mas
  75. Part1.Name = "Head"
  76. Part1.Parent = Model0
  77. Part1.CFrame = CFrame.new(-6.13871002, 9.14999771, -11.4352522, -0.999999821, 1.33315838e-08, -2.98023224e-08, 1.33315865e-08, 1, 4.03998524e-09, 2.98023224e-08, 4.03997991e-09, -0.999999821)
  78. Part1.Orientation = Vector3.new(0, -180, 0)
  79. Part1.Position = Vector3.new(-6.13871002, 9.14999771, -11.4352522)
  80. Part1.Rotation = Vector3.new(-180, 0, -180)
  81. Part1.Color = Color3.new(0.94902, 0.952941, 0.952941)
  82. Part1.Size = Vector3.new(4, 2, 2)
  83. Part1.BrickColor = BrickColor.new("White")
  84. Part1.TopSurface = Enum.SurfaceType.Smooth
  85. Part1.brickColor = BrickColor.new("White")
  86. Part1.FormFactor = Enum.FormFactor.Symmetric
  87. Part1.formFactor = Enum.FormFactor.Symmetric
  88. Weld2.Name = "HeadWeld"
  89. Weld2.Parent = Part1
  90. Weld2.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  91. Weld2.C1 = CFrame.new(0, 0.25, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  92. SpecialMesh3.Parent = Part1
  93. SpecialMesh3.MeshId = "http://www.roblox.com/asset/?id=22149649"
  94. SpecialMesh3.Scale = Vector3.new(2, 2, 2)
  95. SpecialMesh3.TextureId = "http://www.roblox.com/asset/?id=22149641"
  96. SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  97. Part4.Name = "Torso"
  98. Part4.Parent = Model0
  99. Part4.CFrame = CFrame.new(-6.13871002, 5.99999809, -11.4352522, -0.999999821, 1.33315838e-08, -2.98023224e-08, 1.33315865e-08, 1, 4.03998524e-09, 2.98023224e-08, 4.03997991e-09, -0.999999821)
  100. Part4.Orientation = Vector3.new(0, -180, 0)
  101. Part4.Position = Vector3.new(-6.13871002, 5.99999809, -11.4352522)
  102. Part4.Rotation = Vector3.new(-180, 0, -180)
  103. Part4.Color = Color3.new(0.94902, 0.952941, 0.952941)
  104. Part4.Size = Vector3.new(4, 4, 2)
  105. Part4.BrickColor = BrickColor.new("White")
  106. Part4.LeftParamA = 0
  107. Part4.LeftParamB = 0
  108. Part4.LeftSurface = Enum.SurfaceType.Weld
  109. Part4.Material = Enum.Material.Ice
  110. Part4.RightParamA = 0
  111. Part4.RightParamB = 0
  112. Part4.RightSurface = Enum.SurfaceType.Weld
  113. Part4.brickColor = BrickColor.new("White")
  114. Part4.FormFactor = Enum.FormFactor.Symmetric
  115. Part4.formFactor = Enum.FormFactor.Symmetric
  116. Decal5.Name = "roblox"
  117. Decal5.Parent = Part4
  118. Motor6D6.Name = "Right Shoulder"
  119. Motor6D6.Parent = Part4
  120. Motor6D6.MaxVelocity = 0.15000000596046
  121. Motor6D6.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  122. Motor6D6.C1 = CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  123. Motor6D6.Part0 = Part4
  124. Motor6D6.Part1 = Part12
  125. Motor6D6.part1 = Part12
  126. Motor6D7.Name = "Left Shoulder"
  127. Motor6D7.Parent = Part4
  128. Motor6D7.MaxVelocity = 0.15000000596046
  129. Motor6D7.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  130. Motor6D7.C1 = CFrame.new(1.99999976, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  131. Motor6D7.Part0 = Part4
  132. Motor6D7.Part1 = Part11
  133. Motor6D7.part1 = Part11
  134. Motor6D8.Name = "Right Hip"
  135. Motor6D8.Parent = Part4
  136. Motor6D8.MaxVelocity = 0.10000000149012
  137. Motor6D8.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  138. Motor6D8.C1 = CFrame.new(0, 3, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  139. Motor6D8.Part0 = Part4
  140. Motor6D8.Part1 = Part15
  141. Motor6D8.part1 = Part15
  142. Motor6D9.Name = "Left Hip"
  143. Motor6D9.Parent = Part4
  144. Motor6D9.MaxVelocity = 0.10000000149012
  145. Motor6D9.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  146. Motor6D9.C1 = CFrame.new(0, 3, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  147. Motor6D9.Part0 = Part4
  148. Motor6D9.Part1 = Part13
  149. Motor6D9.part1 = Part13
  150. Motor6D10.Name = "Neck"
  151. Motor6D10.Parent = Part4
  152. Motor6D10.C1 = CFrame.new(0, 3.1500001, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  153. Motor6D10.Part0 = Part1
  154. Motor6D10.Part1 = Part4
  155. Motor6D10.part1 = Part4
  156. Part11.Name = "Left Arm"
  157. Part11.Parent = Model0
  158. Part11.CFrame = CFrame.new(-3.13871074, 5.99999809, -11.4352522, -0.999999821, 1.33315838e-08, -2.98023224e-08, 1.33315865e-08, 1, 4.03998524e-09, 2.98023224e-08, 4.03997991e-09, -0.999999821)
  159. Part11.Orientation = Vector3.new(0, -180, 0)
  160. Part11.Position = Vector3.new(-3.13871074, 5.99999809, -11.4352522)
  161. Part11.Rotation = Vector3.new(-180, 0, -180)
  162. Part11.Color = Color3.new(0.94902, 0.952941, 0.952941)
  163. Part11.Size = Vector3.new(2, 4, 2)
  164. Part11.BottomSurface = Enum.SurfaceType.Smooth
  165. Part11.BrickColor = BrickColor.new("White")
  166. Part11.CanCollide = false
  167. Part11.Material = Enum.Material.Ice
  168. Part11.brickColor = BrickColor.new("White")
  169. Part11.FormFactor = Enum.FormFactor.Symmetric
  170. Part11.formFactor = Enum.FormFactor.Symmetric
  171. Part12.Name = "Right Arm"
  172. Part12.Parent = Model0
  173. Part12.CFrame = CFrame.new(-9.13871002, 5.99999809, -11.4352522, -0.999999821, 1.33315838e-08, -2.98023224e-08, 1.33315865e-08, 1, 4.03998524e-09, 2.98023224e-08, 4.03997991e-09, -0.999999821)
  174. Part12.Orientation = Vector3.new(0, -180, 0)
  175. Part12.Position = Vector3.new(-9.13871002, 5.99999809, -11.4352522)
  176. Part12.Rotation = Vector3.new(-180, 0, -180)
  177. Part12.Color = Color3.new(0.94902, 0.952941, 0.952941)
  178. Part12.Size = Vector3.new(2, 4, 2)
  179. Part12.BottomSurface = Enum.SurfaceType.Smooth
  180. Part12.BrickColor = BrickColor.new("White")
  181. Part12.CanCollide = false
  182. Part12.Material = Enum.Material.Ice
  183. Part12.brickColor = BrickColor.new("White")
  184. Part12.FormFactor = Enum.FormFactor.Symmetric
  185. Part12.formFactor = Enum.FormFactor.Symmetric
  186. Part13.Name = "Left Leg"
  187. Part13.Parent = Model0
  188. Part13.CFrame = CFrame.new(-5.13871002, 1.99999809, -11.4352522, -0.999999821, 1.33315838e-08, -2.98023224e-08, 1.33315865e-08, 1, 4.03998524e-09, 2.98023224e-08, 4.03997991e-09, -0.999999821)
  189. Part13.Orientation = Vector3.new(0, -180, 0)
  190. Part13.Position = Vector3.new(-5.13871002, 1.99999809, -11.4352522)
  191. Part13.Rotation = Vector3.new(-180, 0, -180)
  192. Part13.Color = Color3.new(0.94902, 0.952941, 0.952941)
  193. Part13.Size = Vector3.new(2, 4, 2)
  194. Part13.BottomSurface = Enum.SurfaceType.Smooth
  195. Part13.BrickColor = BrickColor.new("White")
  196. Part13.CanCollide = false
  197. Part13.Material = Enum.Material.Ice
  198. Part13.brickColor = BrickColor.new("White")
  199. Part13.FormFactor = Enum.FormFactor.Symmetric
  200. Part13.formFactor = Enum.FormFactor.Symmetric
  201. Script14.Parent = Part13
  202. table.insert(cors,sandbox(Script14,function()
  203. function touch(hit)
  204. if hit.Parent.Name == "Tank" or hit.Parent.Name == "Brotherhood Of Scythe" then
  205. script.Parent.Parent.Humanoid.Jump = true
  206. end
  207. end
  208.  
  209. script.Parent.Touched:connect(touch)
  210.  
  211. while true do
  212. touch = script.Parent:findFirstChild("TouchInterest")
  213. if touch == nil then
  214. script.Parent.Touched:connect(touch)
  215. end
  216. wait()
  217. end
  218.  
  219. end))
  220. Part15.Name = "Right Leg"
  221. Part15.Parent = Model0
  222. Part15.CFrame = CFrame.new(-7.13871002, 1.99999809, -11.4352522, -0.999999821, 1.33315838e-08, -2.98023224e-08, 1.33315865e-08, 1, 4.03998524e-09, 2.98023224e-08, 4.03997991e-09, -0.999999821)
  223. Part15.Orientation = Vector3.new(0, -180, 0)
  224. Part15.Position = Vector3.new(-7.13871002, 1.99999809, -11.4352522)
  225. Part15.Rotation = Vector3.new(-180, 0, -180)
  226. Part15.Color = Color3.new(0.94902, 0.952941, 0.952941)
  227. Part15.Size = Vector3.new(2, 4, 2)
  228. Part15.BottomSurface = Enum.SurfaceType.Smooth
  229. Part15.BrickColor = BrickColor.new("White")
  230. Part15.CanCollide = false
  231. Part15.Material = Enum.Material.Ice
  232. Part15.brickColor = BrickColor.new("White")
  233. Part15.FormFactor = Enum.FormFactor.Symmetric
  234. Part15.formFactor = Enum.FormFactor.Symmetric
  235. Script16.Parent = Part15
  236. table.insert(cors,sandbox(Script16,function()
  237. function touch(hit)
  238. if hit.Parent.Name == "Tank" or hit.Parent.Name == "Brotherhood Of Scythe" then
  239. script.Parent.Parent.Humanoid.Jump = true
  240. end
  241. end
  242.  
  243. script.Parent.Touched:connect(touch)
  244.  
  245. while true do
  246. touch = script.Parent:findFirstChild("TouchInterest")
  247. if touch == nil then
  248. script.Parent.Touched:connect(touch)
  249. end
  250. wait()
  251. end
  252.  
  253. end))
  254. BoolValue17.Name = "Attack"
  255. BoolValue17.Parent = Model0
  256. Script18.Name = "ChaseScript"
  257. Script18.Parent = Model0
  258. table.insert(cors,sandbox(Script18,function()
  259. wait()
  260. zombieParent = false
  261.  
  262. while zombieParent == false do
  263.  
  264. wait()
  265. if script.Parent.Name == "Zombie Yeti" then
  266. zombieParent = true
  267. end
  268.  
  269. end
  270.  
  271. local larm = script.Parent:FindFirstChild("Left Arm")
  272. local rarm = script.Parent:FindFirstChild("Right Arm")
  273. local waitTimer = 0
  274.  
  275. function findNearestTorso(pos)
  276. local list = game.Workspace:children()
  277. local torso = nil
  278. local dist = 10000
  279. local temp = nil
  280. local human = nil
  281. local temp2 = nil
  282. for x = 1, #list do
  283. temp2 = list[x]
  284. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  285. temp = temp2:findFirstChild("Torso")
  286. human = temp2:findFirstChild("Humanoid")
  287. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  288. if (temp.Position - pos).magnitude < dist then
  289. torso = temp
  290. script.Parent.Target.Value = temp
  291. dist = (temp.Position - pos).magnitude
  292.  
  293. if human.Health >= 1 then
  294. script.Parent.Range.Value = true
  295. else
  296. script.Parent.Range.Value = false
  297. end
  298. end
  299. end
  300. if dist < 10 then
  301. script.Parent.Attack.Value = true
  302. else
  303. script.Parent.Attack.Value = false
  304. end
  305. end
  306. end
  307. return torso
  308. end
  309.  
  310. function Sit()
  311. if script.Parent.Zombie.Sit == true then
  312. script.Parent.Zombie.Jump = true
  313. print("Anti Seat Putter!!!")
  314. end
  315. end
  316.  
  317. script.Parent.Zombie.Changed:connect(Sit)
  318.  
  319. function touch(hit)
  320. if hit and hit.Parent then
  321. if hit.Parent.Name == "Ballista" or hit.Parent.Name == "Brotherhood Of Scythe" or hit.Parent.Name == "Jump" then
  322. script.Parent.Zombie.Jump = true
  323. end
  324. end
  325. end
  326.  
  327. script.Parent["Right Leg"].Touched:connect(touch)
  328.  
  329. script.Parent["Left Leg"].Touched:connect(touch)
  330.  
  331. while true do
  332. wait(1)
  333. local target = findNearestTorso(script.Parent.Torso.Position)
  334. if target ~= nil then
  335. rx = math.random(-3,3)
  336. ry = math.random(0,0)
  337. rz = math.random(-3,3)
  338. script.Parent.Zombie:MoveTo(target.Position+Vector3.new(rx,ry,rz), target)
  339. else
  340. script.Parent.Range.Value = false
  341. script.Parent.Attack.Value = false
  342. end
  343. end
  344.  
  345. end))
  346. BoolValue19.Name = "Range"
  347. BoolValue19.Parent = Model0
  348. Humanoid20.Name = "Zombie"
  349. Humanoid20.Parent = Model0
  350. Humanoid20.Health = 4752
  351. Humanoid20.LeftLeg = Part13
  352. Humanoid20.MaxHealth = 4752
  353. Humanoid20.NameOcclusion = Enum.NameOcclusion.NoOcclusion
  354. Humanoid20.RightLeg = Part15
  355. Humanoid20.Torso = Part4
  356. Humanoid20.WalkSpeed = 75
  357. Humanoid20.maxHealth = 4752
  358. ObjectValue21.Name = "Target"
  359. ObjectValue21.Parent = Model0
  360. Script22.Name = "Die"
  361. Script22.Parent = Model0
  362. table.insert(cors,sandbox(Script22,function()
  363. human = script.Parent.Zombie
  364. --tool = script.Parent.Pistol
  365.  
  366. function Die()
  367. --if tool ~= nil then tool:remove() end
  368. wait(2.5)
  369. script.Parent:remove()
  370. end
  371.  
  372. human.Died:connect(Die)
  373. end))
  374. Script23.Name = "ZombieScript"
  375. Script23.Parent = Model0
  376. table.insert(cors,sandbox(Script23,function()
  377. wait(1.5)
  378. local sp = script.Parent
  379. local Humanoid = sp:WaitForChild("Zombie")
  380. local Head = sp:WaitForChild("Head")
  381. local Torso = sp:WaitForChild("Torso")
  382. local Animation = script:WaitForChild("AttackAnim")
  383. local Yeti = Instance.new("Sound",Torso)
  384. Yeti.Volume = 1
  385. Yeti.SoundId = "http://www.roblox.com/asset/?id=38212101"
  386. Spawn(function() Yeti:Play() end)
  387. local Hit1 = Instance.new("Sound",Torso)
  388. Hit1.Volume = 1
  389. Hit1.SoundId = "http://www.roblox.com/asset/?id=2801263"
  390. local Hit2 = Instance.new("Sound",Torso)
  391. Hit2.Volume = 1
  392. Hit2.SoundId = "http://www.roblox.com/asset/?id=38212101"
  393.  
  394. local AttackEnabled = true
  395.  
  396. function wait(TimeToWait)
  397. if TimeToWait ~= nil then
  398. local TotalTime = 0
  399. TotalTime = TotalTime + game:GetService("RunService").Heartbeat:wait()
  400. while TotalTime < TimeToWait do
  401. TotalTime = TotalTime + game:GetService("RunService").Heartbeat:wait()
  402. end
  403. else
  404. game:GetService("RunService").Heartbeat:wait()
  405. end
  406. end
  407.  
  408. function DamageTag(parent,damage)
  409. local DmgTag = script.DamageTag:clone()
  410. DmgTag.Damage.Value = damage
  411. DmgTag.creator.Value = game.Players.LocalPlayer
  412. DmgTag.Disabled = false
  413. DmgTag.Parent = parent
  414. end
  415.  
  416. local Anim = Humanoid:LoadAnimation(Animation)
  417. function Hit(hit)
  418. local TargetHum = hit.Parent:FindFirstChild("Humanoid")
  419. if TargetHum ~= nil and TargetHum:IsA("Humanoid") and AttackEnabled == true and TargetHum ~= Humanoid then
  420. AttackEnabled = false
  421. Delay(0.5,function() AttackEnabled = true end)
  422. if Anim then Anim:Play(nil,nil,1.5) end
  423. DamageTag(TargetHum.Parent,125)
  424. Hit1:Play()
  425. Hit2:Play()
  426. end
  427. end
  428.  
  429. for _, Child in pairs(script.Parent:GetChildren()) do
  430. if Child:IsA("Part") or Child:IsA("WedgePart") or Child:IsA("CornerWedgePart") then
  431. Child.Touched:connect(Hit)
  432. end
  433. end
  434.  
  435. end))
  436. Script24.Name = "DamageTag"
  437. Script24.Parent = Script23
  438. table.insert(cors,sandbox(Script24,function()
  439. wait()
  440. h = script.Parent:findFirstChild("Humanoid")
  441. if h ~= nil then
  442. while h:findFirstChild("creator") do
  443. h.creator:Destroy()
  444. end
  445. tag = script.creator:clone()
  446. tag.Parent = h
  447. game.Debris:AddItem(tag,5)
  448. h:TakeDamage(script.Damage.Value)
  449. end
  450. script:remove()
  451. end))
  452. Script24.Disabled = true
  453. NumberValue25.Name = "Damage"
  454. NumberValue25.Parent = Script24
  455. ObjectValue26.Name = "creator"
  456. ObjectValue26.Parent = Script24
  457. Animation27.Name = "AttackAnim"
  458. Animation27.Parent = Script23
  459. Animation27.AnimationId = "http://www.roblox.com/Asset?ID=105211514"
  460. Script28.Name = "Animate"
  461. Script28.Parent = Model0
  462. table.insert(cors,sandbox(Script28,function()
  463. function waitForChild(parent, childName)
  464. local child = parent:findFirstChild(childName)
  465. if child then return child end
  466. while true do
  467. child = parent.ChildAdded:wait()
  468. if child.Name==childName then return child end
  469. end
  470. end
  471.  
  472. local Figure = script.Parent
  473. local Torso = waitForChild(Figure, "Torso")
  474. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  475. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  476. local RightHip = waitForChild(Torso, "Right Hip")
  477. local LeftHip = waitForChild(Torso, "Left Hip")
  478. local Neck = waitForChild(Torso, "Neck")
  479. local Zombie = waitForChild(Figure, "Zombie")
  480. local pose = "Standing"
  481.  
  482. local currentAnim = ""
  483. local currentAnimInstance = nil
  484. local currentAnimTrack = nil
  485. local currentAnimKeyframeHandler = nil
  486. local currentAnimSpeed = 1.0
  487. local animTable = {}
  488. local animNames = {
  489. idle = {
  490. { id = "http://www.roblox.com/asset/?id=180435571", weight = 9 },
  491. { id = "http://www.roblox.com/asset/?id=180435792", weight = 1 }
  492. },
  493. walk = {
  494. { id = "http://www.roblox.com/asset/?id=180426354", weight = 10 }
  495. },
  496. run = {
  497. { id = "run.xml", weight = 10 }
  498. },
  499. jump = {
  500. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  501. },
  502. fall = {
  503. { id = "http://www.roblox.com/asset/?id=305752857", weight = 10 }
  504. },
  505. climb = {
  506. { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
  507. },
  508. sit = {
  509. { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
  510. },
  511. toolnone = {
  512. { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 }
  513. },
  514. toolslash = {
  515. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  516. -- { id = "slash.xml", weight = 10 }
  517. },
  518. toollunge = {
  519. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  520. },
  521. wave = {
  522. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  523. },
  524. point = {
  525. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  526. },
  527. dance = {
  528. { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 },
  529. { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 },
  530. { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 }
  531. },
  532. dance2 = {
  533. { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 },
  534. { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 },
  535. { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 }
  536. },
  537. dance3 = {
  538. { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 },
  539. { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 },
  540. { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 }
  541. },
  542. laugh = {
  543. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  544. },
  545. cheer = {
  546. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  547. },
  548. }
  549.  
  550. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  551. local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  552.  
  553. math.randomseed(tick())
  554.  
  555. function configureAnimationSet(name, fileList)
  556. if (animTable[name] ~= nil) then
  557. for _, connection in pairs(animTable[name].connections) do
  558. connection:disconnect()
  559. end
  560. end
  561. animTable[name] = {}
  562. animTable[name].count = 0
  563. animTable[name].totalWeight = 0
  564. animTable[name].connections = {}
  565.  
  566. -- check for config values
  567. local config = script:FindFirstChild(name)
  568. if (config ~= nil) then
  569. -- print("Loading anims " .. name)
  570. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  571. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  572. local idx = 1
  573. for _, childPart in pairs(config:GetChildren()) do
  574. if (childPart:IsA("Animation")) then
  575. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  576. animTable[name][idx] = {}
  577. animTable[name][idx].anim = childPart
  578. local weightObject = childPart:FindFirstChild("Weight")
  579. if (weightObject == nil) then
  580. animTable[name][idx].weight = 1
  581. else
  582. animTable[name][idx].weight = weightObject.Value
  583. end
  584. animTable[name].count = animTable[name].count + 1
  585. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  586. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  587. idx = idx + 1
  588. end
  589. end
  590. end
  591.  
  592. -- fallback to defaults
  593. if (animTable[name].count <= 0) then
  594. for idx, anim in pairs(fileList) do
  595. animTable[name][idx] = {}
  596. animTable[name][idx].anim = Instance.new("Animation")
  597. animTable[name][idx].anim.Name = name
  598. animTable[name][idx].anim.AnimationId = anim.id
  599. animTable[name][idx].weight = anim.weight
  600. animTable[name].count = animTable[name].count + 1
  601. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  602. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  603. end
  604. end
  605. end
  606.  
  607. -- Setup animation objects
  608. function scriptChildModified(child)
  609. local fileList = animNames[child.Name]
  610. if (fileList ~= nil) then
  611. configureAnimationSet(child.Name, fileList)
  612. end
  613. end
  614.  
  615. script.ChildAdded:connect(scriptChildModified)
  616. script.ChildRemoved:connect(scriptChildModified)
  617.  
  618.  
  619. for name, fileList in pairs(animNames) do
  620. configureAnimationSet(name, fileList)
  621. end
  622.  
  623. -- ANIMATION
  624.  
  625. -- declarations
  626. local toolAnim = "None"
  627. local toolAnimTime = 0
  628.  
  629. local jumpAnimTime = 0
  630. local jumpAnimDuration = 0.3
  631.  
  632. local toolTransitionTime = 0.1
  633. local fallTransitionTime = 0.3
  634. local jumpMaxLimbVelocity = 0.75
  635.  
  636. -- functions
  637.  
  638. function stopAllAnimations()
  639. local oldAnim = currentAnim
  640.  
  641. -- return to idle if finishing an emote
  642. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  643. oldAnim = "idle"
  644. end
  645.  
  646. currentAnim = ""
  647. currentAnimInstance = nil
  648. if (currentAnimKeyframeHandler ~= nil) then
  649. currentAnimKeyframeHandler:disconnect()
  650. end
  651.  
  652. if (currentAnimTrack ~= nil) then
  653. currentAnimTrack:Stop()
  654. currentAnimTrack:Destroy()
  655. currentAnimTrack = nil
  656. end
  657. return oldAnim
  658. end
  659.  
  660. function setAnimationSpeed(speed)
  661. if speed ~= currentAnimSpeed then
  662. currentAnimSpeed = speed
  663. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  664. end
  665. end
  666.  
  667. function keyFrameReachedFunc(frameName)
  668. if (frameName == "End") then
  669.  
  670. local repeatAnim = currentAnim
  671. -- return to idle if finishing an emote
  672. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  673. repeatAnim = "idle"
  674. end
  675.  
  676. local animSpeed = currentAnimSpeed
  677. playAnimation(repeatAnim, 0.0, Zombie)
  678. setAnimationSpeed(animSpeed)
  679. end
  680. end
  681.  
  682. -- Preload animations
  683. function playAnimation(animName, transitionTime, Zombie)
  684.  
  685. local roll = math.random(1, animTable[animName].totalWeight)
  686. local origRoll = roll
  687. local idx = 1
  688. while (roll > animTable[animName][idx].weight) do
  689. roll = roll - animTable[animName][idx].weight
  690. idx = idx + 1
  691. end
  692. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  693. local anim = animTable[animName][idx].anim
  694.  
  695. -- switch animation
  696. if (anim ~= currentAnimInstance) then
  697.  
  698. if (currentAnimTrack ~= nil) then
  699. currentAnimTrack:Stop(transitionTime)
  700. currentAnimTrack:Destroy()
  701. end
  702.  
  703. currentAnimSpeed = 1.0
  704.  
  705. -- load it to the Zombie; get AnimationTrack
  706. currentAnimTrack = Zombie:LoadAnimation(anim)
  707.  
  708. -- play the animation
  709. currentAnimTrack:Play(transitionTime)
  710. currentAnim = animName
  711. currentAnimInstance = anim
  712.  
  713. -- set up keyframe name triggers
  714. if (currentAnimKeyframeHandler ~= nil) then
  715. currentAnimKeyframeHandler:disconnect()
  716. end
  717. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  718.  
  719. end
  720.  
  721. end
  722.  
  723. -------------------------------------------------------------------------------------------
  724. -------------------------------------------------------------------------------------------
  725.  
  726. local toolAnimName = ""
  727. local toolAnimTrack = nil
  728. local toolAnimInstance = nil
  729. local currentToolAnimKeyframeHandler = nil
  730.  
  731. function toolKeyFrameReachedFunc(frameName)
  732. if (frameName == "End") then
  733. -- print("Keyframe : ".. frameName)
  734. playToolAnimation(toolAnimName, 0.0, Zombie)
  735. end
  736. end
  737.  
  738.  
  739. function playToolAnimation(animName, transitionTime, Zombie)
  740.  
  741. local roll = math.random(1, animTable[animName].totalWeight)
  742. local origRoll = roll
  743. local idx = 1
  744. while (roll > animTable[animName][idx].weight) do
  745. roll = roll - animTable[animName][idx].weight
  746. idx = idx + 1
  747. end
  748. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  749. local anim = animTable[animName][idx].anim
  750.  
  751. if (toolAnimInstance ~= anim) then
  752.  
  753. if (toolAnimTrack ~= nil) then
  754. toolAnimTrack:Stop()
  755. toolAnimTrack:Destroy()
  756. transitionTime = 0
  757. end
  758.  
  759. -- load it to the Zombie; get AnimationTrack
  760. toolAnimTrack = Zombie:LoadAnimation(anim)
  761.  
  762. -- play the animation
  763. toolAnimTrack:Play(transitionTime)
  764. toolAnimName = animName
  765. toolAnimInstance = anim
  766.  
  767. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  768. end
  769. end
  770.  
  771. function stopToolAnimations()
  772. local oldAnim = toolAnimName
  773.  
  774. if (currentToolAnimKeyframeHandler ~= nil) then
  775. currentToolAnimKeyframeHandler:disconnect()
  776. end
  777.  
  778. toolAnimName = ""
  779. toolAnimInstance = nil
  780. if (toolAnimTrack ~= nil) then
  781. toolAnimTrack:Stop()
  782. toolAnimTrack:Destroy()
  783. toolAnimTrack = nil
  784. end
  785.  
  786.  
  787. return oldAnim
  788. end
  789.  
  790. -------------------------------------------------------------------------------------------
  791. -------------------------------------------------------------------------------------------
  792.  
  793.  
  794. function onRunning(speed)
  795. if speed>0.01 then
  796. playAnimation("walk", 0.1, Zombie)
  797. if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
  798. setAnimationSpeed(speed / 14.5)
  799. end
  800. pose = "Running"
  801. else
  802. playAnimation("idle", 0.1, Zombie)
  803. pose = "Standing"
  804. end
  805. end
  806.  
  807. function onDied()
  808. pose = "Dead"
  809. end
  810.  
  811. function onJumping()
  812. playAnimation("jump", 0.1, Zombie)
  813. jumpAnimTime = jumpAnimDuration
  814. pose = "Jumping"
  815. end
  816.  
  817. function onClimbing(speed)
  818. playAnimation("climb", 0.1, Zombie)
  819. setAnimationSpeed(speed / 12.0)
  820. pose = "Climbing"
  821. end
  822.  
  823. function onGettingUp()
  824. pose = "GettingUp"
  825. end
  826.  
  827. function onFreeFall()
  828. if (jumpAnimTime <= 0) then
  829. playAnimation("fall", fallTransitionTime, Zombie)
  830. end
  831. pose = "FreeFall"
  832. end
  833.  
  834. function onFallingDown()
  835. pose = "FallingDown"
  836. end
  837.  
  838. function onSeated()
  839. pose = "Seated"
  840. end
  841.  
  842. function onPlatformStanding()
  843. pose = "PlatformStanding"
  844. end
  845.  
  846. function onSwimming(speed)
  847. if speed>0 then
  848. pose = "Running"
  849. else
  850. pose = "Standing"
  851. end
  852. end
  853.  
  854. function getTool()
  855. for _, kid in ipairs(Figure:GetChildren()) do
  856. if kid.className == "Tool" then return kid end
  857. end
  858. return nil
  859. end
  860.  
  861. function getToolAnim(tool)
  862. for _, c in ipairs(tool:GetChildren()) do
  863. if c.Name == "toolanim" and c.className == "StringValue" then
  864. return c
  865. end
  866. end
  867. return nil
  868. end
  869.  
  870. function animateTool()
  871.  
  872. if (toolAnim == "None") then
  873. playToolAnimation("toolnone", toolTransitionTime, Zombie)
  874. return
  875. end
  876.  
  877. if (toolAnim == "Slash") then
  878. playToolAnimation("toolslash", 0, Zombie)
  879. return
  880. end
  881.  
  882. if (toolAnim == "Lunge") then
  883. playToolAnimation("toollunge", 0, Zombie)
  884. return
  885. end
  886. end
  887.  
  888. function moveSit()
  889. RightShoulder.MaxVelocity = 0.15
  890. LeftShoulder.MaxVelocity = 0.15
  891. RightShoulder:SetDesiredAngle(3.14 /2)
  892. LeftShoulder:SetDesiredAngle(-3.14 /2)
  893. RightHip:SetDesiredAngle(3.14 /2)
  894. LeftHip:SetDesiredAngle(-3.14 /2)
  895. end
  896.  
  897. local lastTick = 0
  898.  
  899. function move(time)
  900. local amplitude = 1
  901. local frequency = 1
  902. local deltaTime = time - lastTick
  903. lastTick = time
  904.  
  905. local climbFudge = 0
  906. local setAngles = false
  907.  
  908. if (jumpAnimTime > 0) then
  909. jumpAnimTime = jumpAnimTime - deltaTime
  910. end
  911.  
  912. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  913. playAnimation("fall", fallTransitionTime, Zombie)
  914. elseif (pose == "Seated") then
  915. playAnimation("sit", 0.5, Zombie)
  916. return
  917. elseif (pose == "Running") then
  918. playAnimation("walk", 0.1, Zombie)
  919. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  920. -- print("Wha " .. pose)
  921. stopAllAnimations()
  922. amplitude = 0.1
  923. frequency = 1
  924. setAngles = true
  925. end
  926.  
  927. if (setAngles) then
  928. desiredAngle = amplitude * math.sin(time * frequency)
  929.  
  930. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  931. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  932. RightHip:SetDesiredAngle(-desiredAngle)
  933. LeftHip:SetDesiredAngle(-desiredAngle)
  934. end
  935.  
  936. -- Tool Animation handling
  937. local tool = getTool()
  938. if tool and tool:FindFirstChild("Handle") then
  939.  
  940. animStringValueObject = getToolAnim(tool)
  941.  
  942. if animStringValueObject then
  943. toolAnim = animStringValueObject.Value
  944. -- message recieved, delete StringValue
  945. animStringValueObject.Parent = nil
  946. toolAnimTime = time + .3
  947. end
  948.  
  949. if time > toolAnimTime then
  950. toolAnimTime = 0
  951. toolAnim = "None"
  952. end
  953.  
  954. animateTool()
  955. else
  956. stopToolAnimations()
  957. toolAnim = "None"
  958. toolAnimInstance = nil
  959. toolAnimTime = 0
  960. end
  961. end
  962.  
  963. -- connect events
  964. Zombie.Died:connect(onDied)
  965. Zombie.Running:connect(onRunning)
  966. Zombie.Jumping:connect(onJumping)
  967. Zombie.Climbing:connect(onClimbing)
  968. Zombie.GettingUp:connect(onGettingUp)
  969. Zombie.FreeFalling:connect(onFreeFall)
  970. Zombie.FallingDown:connect(onFallingDown)
  971. Zombie.Seated:connect(onSeated)
  972. Zombie.PlatformStanding:connect(onPlatformStanding)
  973. Zombie.Swimming:connect(onSwimming)
  974.  
  975. -- setup emote chat hook
  976. Game.Players.LocalPlayer.Chatted:connect(function(msg)
  977. local emote = ""
  978. if (string.sub(msg, 1, 3) == "/e ") then
  979. emote = string.sub(msg, 4)
  980. elseif (string.sub(msg, 1, 7) == "/emote ") then
  981. emote = string.sub(msg, 8)
  982. end
  983.  
  984. if (pose == "Standing" and emoteNames[emote] ~= nil) then
  985. playAnimation(emote, 0.1, Zombie)
  986. end
  987.  
  988. end)
  989.  
  990.  
  991. -- main program
  992.  
  993. local runService = game:service("RunService");
  994.  
  995. -- initialize to idle
  996. playAnimation("idle", 0.1, Zombie)
  997. pose = "Standing"
  998.  
  999. while Figure.Parent~=nil do
  1000. local _, time = wait(0.1)
  1001. move(time)
  1002. end
  1003.  
  1004.  
  1005.  
  1006.  
  1007. end))
  1008. StringValue29.Name = "climb"
  1009. StringValue29.Parent = Script28
  1010. Animation30.Name = "ClimbAnim"
  1011. Animation30.Parent = StringValue29
  1012. Animation30.AnimationId = "http://www.roblox.com/asset/?id=180436334"
  1013. StringValue31.Name = "fall"
  1014. StringValue31.Parent = Script28
  1015. Animation32.Name = "FallAnim"
  1016. Animation32.Parent = StringValue31
  1017. Animation32.AnimationId = "http://www.roblox.com/asset/?id=180436148"
  1018. StringValue33.Name = "idle"
  1019. StringValue33.Parent = Script28
  1020. Animation34.Name = "Animation1"
  1021. Animation34.Parent = StringValue33
  1022. Animation34.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1023. NumberValue35.Name = "Weight"
  1024. NumberValue35.Parent = Animation34
  1025. NumberValue35.Value = 9
  1026. Animation36.Name = "Animation2"
  1027. Animation36.Parent = StringValue33
  1028. Animation36.AnimationId = "http://www.roblox.com/asset/?id=180435792"
  1029. NumberValue37.Name = "Weight"
  1030. NumberValue37.Parent = Animation36
  1031. NumberValue37.Value = 1
  1032. StringValue38.Name = "jump"
  1033. StringValue38.Parent = Script28
  1034. Animation39.Name = "JumpAnim"
  1035. Animation39.Parent = StringValue38
  1036. Animation39.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  1037. StringValue40.Name = "run"
  1038. StringValue40.Parent = Script28
  1039. Animation41.Name = "RunAnim"
  1040. Animation41.Parent = StringValue40
  1041. Animation41.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  1042. StringValue42.Name = "sit"
  1043. StringValue42.Parent = Script28
  1044. Animation43.Name = "SitAnim"
  1045. Animation43.Parent = StringValue42
  1046. Animation43.AnimationId = "http://www.roblox.com/asset/?id=178130996"
  1047. StringValue44.Name = "toolnone"
  1048. StringValue44.Parent = Script28
  1049. Animation45.Name = "ToolNoneAnim"
  1050. Animation45.Parent = StringValue44
  1051. Animation45.AnimationId = "http://www.roblox.com/asset/?id=182393478"
  1052. StringValue46.Name = "walk"
  1053. StringValue46.Parent = Script28
  1054. Animation47.Name = "WalkAnim"
  1055. Animation47.Parent = StringValue46
  1056. Animation47.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  1057. Camera48.Name = "ThumbnailCamera"
  1058. Camera48.Parent = Model0
  1059. Camera48.CFrame = CFrame.new(-120.427315, 8.9444809, -67.5636902, 0.6640172, 0.0586584844, -0.745412886, 3.7252903e-09, 0.996918142, 0.0784500837, 0.747717321, -0.0520922095, 0.661970794)
  1060. Camera48.CoordinateFrame = CFrame.new(-120.427315, 8.9444809, -67.5636902, 0.6640172, 0.0586584844, -0.745412886, 3.7252903e-09, 0.996918142, 0.0784500837, 0.747717321, -0.0520922095, 0.661970794)
  1061. Camera48.Focus = CFrame.new(-118.936478, 8.78757954, -68.8876419, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1062. Camera48.focus = CFrame.new(-118.936478, 8.78757954, -68.8876419, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1063. for i,v in pairs(mas:GetChildren()) do
  1064. v.Parent = workspace
  1065. pcall(function() v:MakeJoints() end)
  1066. end
  1067. mas:Destroy()
  1068. for i,v in pairs(cors) do
  1069. spawn(function()
  1070. pcall(v)
  1071. end)
  1072. end
Advertisement
Add Comment
Please, Sign In to add comment