sawgamer1

Untitled

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