sawgamer1

Untitled

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