Advertisement
Animescapetower

Guest Bot

Mar 14th, 2018
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 105.31 KB | None | 0 0
  1. --Guest 7241
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Part1 = Instance.new("Part")
  21. Decal2 = Instance.new("Decal")
  22. Script3 = Instance.new("Script")
  23. Model4 = Instance.new("Model")
  24. Part5 = Instance.new("Part")
  25. Part6 = Instance.new("Part")
  26. Part7 = Instance.new("Part")
  27. Motor6D8 = Instance.new("Motor6D")
  28. Motor6D9 = Instance.new("Motor6D")
  29. Motor6D10 = Instance.new("Motor6D")
  30. Motor6D11 = Instance.new("Motor6D")
  31. Motor6D12 = Instance.new("Motor6D")
  32. BodyGyro13 = Instance.new("BodyGyro")
  33. Part14 = Instance.new("Part")
  34. Part15 = Instance.new("Part")
  35. Weld16 = Instance.new("Weld")
  36. Weld17 = Instance.new("Weld")
  37. Weld18 = Instance.new("Weld")
  38. Weld19 = Instance.new("Weld")
  39. Weld20 = Instance.new("Weld")
  40. Weld21 = Instance.new("Weld")
  41. Weld22 = Instance.new("Weld")
  42. Weld23 = Instance.new("Weld")
  43. Weld24 = Instance.new("Weld")
  44. Weld25 = Instance.new("Weld")
  45. Weld26 = Instance.new("Weld")
  46. Weld27 = Instance.new("Weld")
  47. Weld28 = Instance.new("Weld")
  48. Weld29 = Instance.new("Weld")
  49. Weld30 = Instance.new("Weld")
  50. Weld31 = Instance.new("Weld")
  51. Weld32 = Instance.new("Weld")
  52. Weld33 = Instance.new("Weld")
  53. Weld34 = Instance.new("Weld")
  54. Weld35 = Instance.new("Weld")
  55. Weld36 = Instance.new("Weld")
  56. Weld37 = Instance.new("Weld")
  57. Weld38 = Instance.new("Weld")
  58. Weld39 = Instance.new("Weld")
  59. Weld40 = Instance.new("Weld")
  60. Weld41 = Instance.new("Weld")
  61. Weld42 = Instance.new("Weld")
  62. Weld43 = Instance.new("Weld")
  63. Weld44 = Instance.new("Weld")
  64. Weld45 = Instance.new("Weld")
  65. Weld46 = Instance.new("Weld")
  66. Weld47 = Instance.new("Weld")
  67. Weld48 = Instance.new("Weld")
  68. Weld49 = Instance.new("Weld")
  69. Weld50 = Instance.new("Weld")
  70. Weld51 = Instance.new("Weld")
  71. Weld52 = Instance.new("Weld")
  72. Weld53 = Instance.new("Weld")
  73. Weld54 = Instance.new("Weld")
  74. Weld55 = Instance.new("Weld")
  75. Weld56 = Instance.new("Weld")
  76. Weld57 = Instance.new("Weld")
  77. Weld58 = Instance.new("Weld")
  78. Weld59 = Instance.new("Weld")
  79. Weld60 = Instance.new("Weld")
  80. Weld61 = Instance.new("Weld")
  81. Weld62 = Instance.new("Weld")
  82. Weld63 = Instance.new("Weld")
  83. Weld64 = Instance.new("Weld")
  84. Weld65 = Instance.new("Weld")
  85. Weld66 = Instance.new("Weld")
  86. Weld67 = Instance.new("Weld")
  87. Weld68 = Instance.new("Weld")
  88. Weld69 = Instance.new("Weld")
  89. Weld70 = Instance.new("Weld")
  90. Weld71 = Instance.new("Weld")
  91. Weld72 = Instance.new("Weld")
  92. Weld73 = Instance.new("Weld")
  93. Weld74 = Instance.new("Weld")
  94. Weld75 = Instance.new("Weld")
  95. Weld76 = Instance.new("Weld")
  96. Weld77 = Instance.new("Weld")
  97. Weld78 = Instance.new("Weld")
  98. Weld79 = Instance.new("Weld")
  99. Weld80 = Instance.new("Weld")
  100. Weld81 = Instance.new("Weld")
  101. Weld82 = Instance.new("Weld")
  102. Weld83 = Instance.new("Weld")
  103. Weld84 = Instance.new("Weld")
  104. Weld85 = Instance.new("Weld")
  105. Weld86 = Instance.new("Weld")
  106. Weld87 = Instance.new("Weld")
  107. Weld88 = Instance.new("Weld")
  108. Weld89 = Instance.new("Weld")
  109. Weld90 = Instance.new("Weld")
  110. Weld91 = Instance.new("Weld")
  111. Weld92 = Instance.new("Weld")
  112. Weld93 = Instance.new("Weld")
  113. Weld94 = Instance.new("Weld")
  114. Weld95 = Instance.new("Weld")
  115. Weld96 = Instance.new("Weld")
  116. Weld97 = Instance.new("Weld")
  117. Weld98 = Instance.new("Weld")
  118. Part99 = Instance.new("Part")
  119. SpecialMesh100 = Instance.new("SpecialMesh")
  120. Decal101 = Instance.new("Decal")
  121. Script102 = Instance.new("Script")
  122. Tool103 = Instance.new("Tool")
  123. Part104 = Instance.new("Part")
  124. SpecialMesh105 = Instance.new("SpecialMesh")
  125. Script106 = Instance.new("Script")
  126. BodyAngularVelocity107 = Instance.new("BodyAngularVelocity")
  127. IntValue108 = Instance.new("IntValue")
  128. IntValue109 = Instance.new("IntValue")
  129. NumberValue110 = Instance.new("NumberValue")
  130. BoolValue111 = Instance.new("BoolValue")
  131. StringValue112 = Instance.new("StringValue")
  132. BoolValue113 = Instance.new("BoolValue")
  133. IntValue114 = Instance.new("IntValue")
  134. Script115 = Instance.new("Script")
  135. Script116 = Instance.new("Script")
  136. IntValue117 = Instance.new("IntValue")
  137. Script118 = Instance.new("Script")
  138. BoolValue119 = Instance.new("BoolValue")
  139. Script120 = Instance.new("Script")
  140. Script121 = Instance.new("Script")
  141. Script122 = Instance.new("Script")
  142. Weld123 = Instance.new("Weld")
  143. Script124 = Instance.new("Script")
  144. Humanoid125 = Instance.new("Humanoid")
  145. Script126 = Instance.new("Script")
  146. Weld127 = Instance.new("Weld")
  147. Script128 = Instance.new("Script")
  148. Script129 = Instance.new("Script")
  149. Script130 = Instance.new("Script")
  150. Script131 = Instance.new("Script")
  151. Weld132 = Instance.new("Weld")
  152. Script133 = Instance.new("Script")
  153. Weld134 = Instance.new("Weld")
  154. Script135 = Instance.new("Script")
  155. Script136 = Instance.new("Script")
  156. Script137 = Instance.new("Script")
  157. Script138 = Instance.new("Script")
  158. Script139 = Instance.new("Script")
  159. Script140 = Instance.new("Script")
  160. Script141 = Instance.new("Script")
  161. Script142 = Instance.new("Script")
  162. NumberValue143 = Instance.new("NumberValue")
  163. IntValue144 = Instance.new("IntValue")
  164. BoolValue145 = Instance.new("BoolValue")
  165. NumberValue146 = Instance.new("NumberValue")
  166. Script147 = Instance.new("Script")
  167. Script148 = Instance.new("Script")
  168. Weld149 = Instance.new("Weld")
  169. Script150 = Instance.new("Script")
  170. Weld151 = Instance.new("Weld")
  171. Script152 = Instance.new("Script")
  172. Weld153 = Instance.new("Weld")
  173. Script154 = Instance.new("Script")
  174. Weld155 = Instance.new("Weld")
  175. Script156 = Instance.new("Script")
  176. Script157 = Instance.new("Script")
  177. Script158 = Instance.new("Script")
  178. Script159 = Instance.new("Script")
  179. Script160 = Instance.new("Script")
  180. Script161 = Instance.new("Script")
  181. Script162 = Instance.new("Script")
  182. Script163 = Instance.new("Script")
  183. Script164 = Instance.new("Script")
  184. Script165 = Instance.new("Script")
  185. IntValue166 = Instance.new("IntValue")
  186. Script167 = Instance.new("Script")
  187. Script168 = Instance.new("Script")
  188. Script169 = Instance.new("Script")
  189. Script170 = Instance.new("Script")
  190. IntValue171 = Instance.new("IntValue")
  191. Script172 = Instance.new("Script")
  192. Script173 = Instance.new("Script")
  193. Script174 = Instance.new("Script")
  194. Model0.Name = "dont delete"
  195. Model0.Parent = mas
  196. Part1.Name = "BotSpawn"
  197. Part1.Parent = Model0
  198. Part1.Rotation = Vector3.new(180, 0, -180)
  199. Part1.Anchored = true
  200. Part1.Size = Vector3.new(6, 1.20000005, 6)
  201. Part1.CFrame = CFrame.new(36.0099983, 0.600000024, -15.9499798, -0.999994278, 3.97376493e-24, 0, 4.04159671e-24, 1, -2.66773825e-25, 0, -2.71330754e-25, -0.999994278)
  202. Part1.BackSurface = Enum.SurfaceType.Weld
  203. Part1.BottomSurface = Enum.SurfaceType.Weld
  204. Part1.FrontSurface = Enum.SurfaceType.Weld
  205. Part1.LeftSurface = Enum.SurfaceType.Weld
  206. Part1.RightSurface = Enum.SurfaceType.Weld
  207. Part1.TopSurface = Enum.SurfaceType.Smooth
  208. Part1.Position = Vector3.new(36.0099983, 0.600000024, -15.9499798)
  209. Part1.Orientation = Vector3.new(0, 180, 0)
  210. Decal2.Parent = Part1
  211. Decal2.Texture = "rbxasset://Textures/SpawnLocation.png"
  212. Decal2.Face = Enum.NormalId.Top
  213. Script3.Name = "Respawn"
  214. Script3.Parent = Part1
  215. table.insert(cors,sandbox(Script3,function()
  216. Figure = script.Parent.Parent:findFirstChild("Guest 7241")
  217. NewFig = Figure:Clone()
  218. Humanoid = Figure.Humanoid
  219. Debris = game:GetService("Debris")
  220.  
  221. function onDied()
  222. wait(5)
  223. OldFigure = Figure
  224. Respawn = NewFig:Clone()
  225. Respawn.Parent = script.Parent.Parent
  226. Respawn:MakeJoints()
  227. Humanoid = Respawn.Humanoid
  228. Humanoid.Died:connect(onDied)
  229. OldFigure:Remove()
  230. ForceField = Instance.new("ForceField")
  231. ForceField.Parent = Respawn
  232. Debris:AddItem(ForceField, 11)
  233. Figure = Respawn
  234. end
  235.  
  236. Humanoid.Died:connect(onDied)
  237. end))
  238. Model4.Name = "Guest 7241"
  239. Model4.Parent = Model0
  240. Part5.Name = "Left Leg"
  241. Part5.Parent = Model4
  242. Part5.BrickColor = BrickColor.new("Bright blue")
  243. Part5.Rotation = Vector3.new(180, 0, 180)
  244. Part5.RotVelocity = Vector3.new(-2.12814831e-22, 1.90315357e-22, -2.08932575e-22)
  245. Part5.Velocity = Vector3.new(3.62148461e-20, 0.0218018591, 3.68462111e-20)
  246. Part5.CanCollide = false
  247. Part5.FormFactor = Enum.FormFactor.Symmetric
  248. Part5.Size = Vector3.new(1, 2, 1)
  249. Part5.CFrame = CFrame.new(36.5099831, 2.20053005, -16.449976, -0.999994099, -1.53733789e-21, -5.96042966e-08, -1.5372765e-21, 1, -5.38734948e-22, 5.96042966e-08, -5.38736614e-22, -0.999994099)
  250. Part5.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  251. Part5.Position = Vector3.new(36.5099831, 2.20053005, -16.449976)
  252. Part5.Orientation = Vector3.new(0, -180, 0)
  253. Part5.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  254. Part6.Name = "Right Leg"
  255. Part6.Parent = Model4
  256. Part6.BrickColor = BrickColor.new("Bright blue")
  257. Part6.Rotation = Vector3.new(180, 0, 180)
  258. Part6.CanCollide = false
  259. Part6.FormFactor = Enum.FormFactor.Symmetric
  260. Part6.Size = Vector3.new(1, 2, 1)
  261. Part6.CFrame = CFrame.new(35.5099983, 2.20053005, -16.449976, -0.999994099, -1.53733789e-21, -5.96042966e-08, -1.5372765e-21, 1, -5.38734948e-22, 5.96042966e-08, -5.38736614e-22, -0.999994099)
  262. Part6.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  263. Part6.Position = Vector3.new(35.5099983, 2.20053005, -16.449976)
  264. Part6.Orientation = Vector3.new(0, -180, 0)
  265. Part6.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  266. Part7.Name = "Torso"
  267. Part7.Parent = Model4
  268. Part7.BrickColor = BrickColor.new("Bright green")
  269. Part7.Rotation = Vector3.new(180, 0, -180)
  270. Part7.FormFactor = Enum.FormFactor.Symmetric
  271. Part7.Size = Vector3.new(2, 2, 1)
  272. Part7.CFrame = CFrame.new(36.0099983, 4.19956493, -16.449976, -0.999994278, 3.97376493e-24, 0, 4.04159671e-24, 1, -2.66773825e-25, 0, -2.71330754e-25, -0.999994278)
  273. Part7.BottomSurface = Enum.SurfaceType.Smooth
  274. Part7.Color = Color3.new(0.294118, 0.592157, 0.294118)
  275. Part7.Position = Vector3.new(36.0099983, 4.19956493, -16.449976)
  276. Part7.Orientation = Vector3.new(0, 180, 0)
  277. Part7.Color = Color3.new(0.294118, 0.592157, 0.294118)
  278. Motor6D8.Name = "Right Shoulder"
  279. Motor6D8.Parent = Part7
  280. Motor6D8.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  281. Motor6D8.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  282. Motor6D8.DesiredAngle = 1.5700000524521
  283. Motor6D8.MaxVelocity = 0.5
  284. Motor6D9.Name = "Right Hip"
  285. Motor6D9.Parent = Part7
  286. Motor6D9.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  287. Motor6D9.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  288. Motor6D9.DesiredAngle = -0.0587741099298
  289. Motor6D9.MaxVelocity = 0.10000000149012
  290. Motor6D10.Name = "Neck"
  291. Motor6D10.Parent = Part7
  292. Motor6D10.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  293. Motor6D10.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  294. Motor6D10.MaxVelocity = 0.10000000149012
  295. Motor6D11.Name = "Left Shoulder"
  296. Motor6D11.Parent = Part7
  297. Motor6D11.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  298. Motor6D11.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  299. Motor6D11.DesiredAngle = 0.0587741099298
  300. Motor6D11.MaxVelocity = 0.5
  301. Motor6D12.Name = "Left Hip"
  302. Motor6D12.Parent = Part7
  303. Motor6D12.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  304. Motor6D12.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  305. Motor6D12.DesiredAngle = -0.0587741099298
  306. Motor6D12.MaxVelocity = 0.10000000149012
  307. BodyGyro13.Parent = Part7
  308. Part14.Name = "Left Arm"
  309. Part14.Parent = Model4
  310. Part14.BrickColor = BrickColor.new("Bright yellow")
  311. Part14.Rotation = Vector3.new(180, 0, 180)
  312. Part14.CanCollide = false
  313. Part14.FormFactor = Enum.FormFactor.Symmetric
  314. Part14.Size = Vector3.new(1, 2, 1)
  315. Part14.CFrame = CFrame.new(34.5099983, 4.20004702, -16.449976, -0.999994099, -1.53733789e-21, -5.96042966e-08, -1.5372765e-21, 1, -5.38734948e-22, 5.96042966e-08, -5.38736614e-22, -0.999994099)
  316. Part14.Color = Color3.new(0.960784, 0.803922, 0.188235)
  317. Part14.Position = Vector3.new(34.5099983, 4.20004702, -16.449976)
  318. Part14.Orientation = Vector3.new(0, -180, 0)
  319. Part14.Color = Color3.new(0.960784, 0.803922, 0.188235)
  320. Part15.Name = "Right Arm"
  321. Part15.Parent = Model4
  322. Part15.BrickColor = BrickColor.new("Bright yellow")
  323. Part15.Rotation = Vector3.new(180, 0, 180)
  324. Part15.RotVelocity = Vector3.new(-2.12814831e-22, 1.90315357e-22, -2.08932575e-22)
  325. Part15.Velocity = Vector3.new(3.6061766e-20, 0.0218018591, 3.66108976e-20)
  326. Part15.CanCollide = false
  327. Part15.FormFactor = Enum.FormFactor.Symmetric
  328. Part15.Size = Vector3.new(1, 2, 1)
  329. Part15.CFrame = CFrame.new(37.5099831, 4.70014811, -16.4499741, -0.999993742, -1.53733991e-21, -5.96042753e-08, -1.53727387e-21, 1, -5.38734544e-22, 5.96042753e-08, -5.38736715e-22, -0.999993742)
  330. Part15.Color = Color3.new(0.960784, 0.803922, 0.188235)
  331. Part15.Position = Vector3.new(37.5099831, 4.70014811, -16.4499741)
  332. Part15.Orientation = Vector3.new(0, -180, 0)
  333. Part15.Color = Color3.new(0.960784, 0.803922, 0.188235)
  334. Weld16.Name = "RightGrip"
  335. Weld16.Parent = Part15
  336. Weld16.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  337. Weld16.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  338. Weld17.Name = "RightGrip"
  339. Weld17.Parent = Part15
  340. Weld17.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  341. Weld17.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  342. Weld18.Name = "RightGrip"
  343. Weld18.Parent = Part15
  344. Weld18.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  345. Weld18.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  346. Weld19.Name = "RightGrip"
  347. Weld19.Parent = Part15
  348. Weld19.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  349. Weld19.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  350. Weld20.Name = "RightGrip"
  351. Weld20.Parent = Part15
  352. Weld20.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  353. Weld20.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  354. Weld21.Name = "RightGrip"
  355. Weld21.Parent = Part15
  356. Weld21.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  357. Weld21.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  358. Weld22.Name = "RightGrip"
  359. Weld22.Parent = Part15
  360. Weld22.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  361. Weld22.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  362. Weld23.Name = "RightGrip"
  363. Weld23.Parent = Part15
  364. Weld23.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  365. Weld23.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  366. Weld24.Name = "RightGrip"
  367. Weld24.Parent = Part15
  368. Weld24.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  369. Weld24.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  370. Weld25.Name = "RightGrip"
  371. Weld25.Parent = Part15
  372. Weld25.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  373. Weld25.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  374. Weld26.Name = "RightGrip"
  375. Weld26.Parent = Part15
  376. Weld26.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  377. Weld26.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  378. Weld27.Name = "RightGrip"
  379. Weld27.Parent = Part15
  380. Weld27.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  381. Weld27.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  382. Weld28.Name = "RightGrip"
  383. Weld28.Parent = Part15
  384. Weld28.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  385. Weld28.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  386. Weld29.Name = "RightGrip"
  387. Weld29.Parent = Part15
  388. Weld29.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  389. Weld29.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  390. Weld30.Name = "RightGrip"
  391. Weld30.Parent = Part15
  392. Weld30.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  393. Weld30.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  394. Weld31.Name = "RightGrip"
  395. Weld31.Parent = Part15
  396. Weld31.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  397. Weld31.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  398. Weld32.Name = "RightGrip"
  399. Weld32.Parent = Part15
  400. Weld32.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  401. Weld32.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  402. Weld33.Name = "RightGrip"
  403. Weld33.Parent = Part15
  404. Weld33.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  405. Weld33.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  406. Weld34.Name = "RightGrip"
  407. Weld34.Parent = Part15
  408. Weld34.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  409. Weld34.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  410. Weld35.Name = "RightGrip"
  411. Weld35.Parent = Part15
  412. Weld35.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  413. Weld35.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  414. Weld36.Name = "RightGrip"
  415. Weld36.Parent = Part15
  416. Weld36.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  417. Weld36.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  418. Weld37.Name = "RightGrip"
  419. Weld37.Parent = Part15
  420. Weld37.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  421. Weld37.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  422. Weld38.Name = "RightGrip"
  423. Weld38.Parent = Part15
  424. Weld38.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  425. Weld38.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  426. Weld39.Name = "RightGrip"
  427. Weld39.Parent = Part15
  428. Weld39.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  429. Weld39.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  430. Weld40.Name = "RightGrip"
  431. Weld40.Parent = Part15
  432. Weld40.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  433. Weld40.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  434. Weld41.Name = "RightGrip"
  435. Weld41.Parent = Part15
  436. Weld41.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  437. Weld41.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  438. Weld42.Name = "RightGrip"
  439. Weld42.Parent = Part15
  440. Weld42.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  441. Weld42.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  442. Weld43.Name = "RightGrip"
  443. Weld43.Parent = Part15
  444. Weld43.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  445. Weld43.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  446. Weld44.Name = "RightGrip"
  447. Weld44.Parent = Part15
  448. Weld44.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  449. Weld44.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  450. Weld45.Name = "RightGrip"
  451. Weld45.Parent = Part15
  452. Weld45.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  453. Weld45.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  454. Weld46.Name = "RightGrip"
  455. Weld46.Parent = Part15
  456. Weld46.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  457. Weld46.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  458. Weld47.Name = "RightGrip"
  459. Weld47.Parent = Part15
  460. Weld47.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  461. Weld47.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  462. Weld48.Name = "RightGrip"
  463. Weld48.Parent = Part15
  464. Weld48.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  465. Weld48.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  466. Weld49.Name = "RightGrip"
  467. Weld49.Parent = Part15
  468. Weld49.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  469. Weld49.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  470. Weld50.Name = "RightGrip"
  471. Weld50.Parent = Part15
  472. Weld50.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  473. Weld50.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  474. Weld51.Name = "RightGrip"
  475. Weld51.Parent = Part15
  476. Weld51.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  477. Weld51.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  478. Weld52.Name = "RightGrip"
  479. Weld52.Parent = Part15
  480. Weld52.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  481. Weld52.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  482. Weld53.Name = "RightGrip"
  483. Weld53.Parent = Part15
  484. Weld53.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  485. Weld53.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  486. Weld54.Name = "RightGrip"
  487. Weld54.Parent = Part15
  488. Weld54.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  489. Weld54.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  490. Weld55.Name = "RightGrip"
  491. Weld55.Parent = Part15
  492. Weld55.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  493. Weld55.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  494. Weld56.Name = "RightGrip"
  495. Weld56.Parent = Part15
  496. Weld56.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  497. Weld56.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  498. Weld57.Name = "RightGrip"
  499. Weld57.Parent = Part15
  500. Weld57.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  501. Weld57.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  502. Weld58.Name = "RightGrip"
  503. Weld58.Parent = Part15
  504. Weld58.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  505. Weld58.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  506. Weld59.Name = "RightGrip"
  507. Weld59.Parent = Part15
  508. Weld59.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  509. Weld59.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  510. Weld60.Name = "RightGrip"
  511. Weld60.Parent = Part15
  512. Weld60.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  513. Weld60.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  514. Weld61.Name = "RightGrip"
  515. Weld61.Parent = Part15
  516. Weld61.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  517. Weld61.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  518. Weld62.Name = "RightGrip"
  519. Weld62.Parent = Part15
  520. Weld62.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  521. Weld62.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  522. Weld63.Name = "RightGrip"
  523. Weld63.Parent = Part15
  524. Weld63.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  525. Weld63.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  526. Weld64.Name = "RightGrip"
  527. Weld64.Parent = Part15
  528. Weld64.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  529. Weld64.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  530. Weld65.Name = "RightGrip"
  531. Weld65.Parent = Part15
  532. Weld65.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  533. Weld65.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  534. Weld66.Name = "RightGrip"
  535. Weld66.Parent = Part15
  536. Weld66.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  537. Weld66.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  538. Weld67.Name = "RightGrip"
  539. Weld67.Parent = Part15
  540. Weld67.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  541. Weld67.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  542. Weld68.Name = "RightGrip"
  543. Weld68.Parent = Part15
  544. Weld68.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  545. Weld68.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  546. Weld69.Name = "RightGrip"
  547. Weld69.Parent = Part15
  548. Weld69.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  549. Weld69.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  550. Weld70.Name = "RightGrip"
  551. Weld70.Parent = Part15
  552. Weld70.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  553. Weld70.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  554. Weld71.Name = "RightGrip"
  555. Weld71.Parent = Part15
  556. Weld71.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  557. Weld71.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  558. Weld72.Name = "RightGrip"
  559. Weld72.Parent = Part15
  560. Weld72.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  561. Weld72.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  562. Weld73.Name = "RightGrip"
  563. Weld73.Parent = Part15
  564. Weld73.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  565. Weld73.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  566. Weld74.Name = "RightGrip"
  567. Weld74.Parent = Part15
  568. Weld74.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  569. Weld74.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  570. Weld75.Name = "RightGrip"
  571. Weld75.Parent = Part15
  572. Weld75.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  573. Weld75.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  574. Weld76.Name = "RightGrip"
  575. Weld76.Parent = Part15
  576. Weld76.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  577. Weld76.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  578. Weld77.Name = "RightGrip"
  579. Weld77.Parent = Part15
  580. Weld77.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  581. Weld77.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  582. Weld78.Name = "RightGrip"
  583. Weld78.Parent = Part15
  584. Weld78.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  585. Weld78.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  586. Weld79.Name = "RightGrip"
  587. Weld79.Parent = Part15
  588. Weld79.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  589. Weld79.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  590. Weld80.Name = "RightGrip"
  591. Weld80.Parent = Part15
  592. Weld80.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  593. Weld80.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  594. Weld81.Name = "RightGrip"
  595. Weld81.Parent = Part15
  596. Weld81.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  597. Weld81.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  598. Weld82.Name = "RightGrip"
  599. Weld82.Parent = Part15
  600. Weld82.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  601. Weld82.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  602. Weld83.Name = "RightGrip"
  603. Weld83.Parent = Part15
  604. Weld83.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  605. Weld83.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  606. Weld84.Name = "RightGrip"
  607. Weld84.Parent = Part15
  608. Weld84.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  609. Weld84.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  610. Weld85.Name = "RightGrip"
  611. Weld85.Parent = Part15
  612. Weld85.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  613. Weld85.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  614. Weld86.Name = "RightGrip"
  615. Weld86.Parent = Part15
  616. Weld86.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  617. Weld86.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  618. Weld87.Name = "RightGrip"
  619. Weld87.Parent = Part15
  620. Weld87.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  621. Weld87.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  622. Weld88.Name = "RightGrip"
  623. Weld88.Parent = Part15
  624. Weld88.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  625. Weld88.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  626. Weld89.Name = "RightGrip"
  627. Weld89.Parent = Part15
  628. Weld89.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  629. Weld89.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  630. Weld90.Name = "RightGrip"
  631. Weld90.Parent = Part15
  632. Weld90.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  633. Weld90.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  634. Weld91.Name = "RightGrip"
  635. Weld91.Parent = Part15
  636. Weld91.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  637. Weld91.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  638. Weld92.Name = "RightGrip"
  639. Weld92.Parent = Part15
  640. Weld92.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  641. Weld92.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  642. Weld93.Name = "RightGrip"
  643. Weld93.Parent = Part15
  644. Weld93.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  645. Weld93.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  646. Weld94.Name = "RightGrip"
  647. Weld94.Parent = Part15
  648. Weld94.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  649. Weld94.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  650. Weld95.Name = "RightGrip"
  651. Weld95.Parent = Part15
  652. Weld95.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  653. Weld95.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  654. Weld96.Name = "RightGrip"
  655. Weld96.Parent = Part15
  656. Weld96.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  657. Weld96.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  658. Weld97.Name = "RightGrip"
  659. Weld97.Parent = Part15
  660. Weld97.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  661. Weld97.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  662. Weld98.Name = "RightGrip"
  663. Weld98.Parent = Part15
  664. Weld98.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, -0)
  665. Weld98.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  666. Weld98.Part0 = Part15
  667. Weld98.Part1 = Part104
  668. Part99.Name = "Head"
  669. Part99.Parent = Model4
  670. Part99.BrickColor = BrickColor.new("Bright yellow")
  671. Part99.Rotation = Vector3.new(180, 0, -180)
  672. Part99.FormFactor = Enum.FormFactor.Symmetric
  673. Part99.Size = Vector3.new(2, 1, 1)
  674. Part99.CFrame = CFrame.new(36.0099983, 5.69956493, -16.449976, -0.999988556, 5.83156944e-24, 0, 5.9672543e-24, 1, -3.91456127e-25, 0, -4.00568505e-25, -0.999988556)
  675. Part99.Color = Color3.new(0.960784, 0.803922, 0.188235)
  676. Part99.Position = Vector3.new(36.0099983, 5.69956493, -16.449976)
  677. Part99.Orientation = Vector3.new(0, 180, 0)
  678. Part99.Color = Color3.new(0.960784, 0.803922, 0.188235)
  679. SpecialMesh100.Parent = Part99
  680. SpecialMesh100.Scale = Vector3.new(1.25, 1.25, 1.25)
  681. SpecialMesh100.Scale = Vector3.new(1.25, 1.25, 1.25)
  682. Decal101.Name = "face"
  683. Decal101.Parent = Part99
  684. Decal101.Texture = "rbxasset://textures/face.png"
  685. Script102.Name = "README"
  686. Script102.Parent = Model4
  687. table.insert(cors,sandbox(Script102,function()
  688. --Sword Bot v.2 Manual
  689.  
  690. --Sword Bot v.2 can be set on deathmatch mode, or can be set to simply target a single person without harming anthing else.
  691.  
  692. --Sword Bot v.2 CANNOT kill humanoids named Zombie!
  693.  
  694. --Toggle Deathmatch value on and off to change if the bot attacks all or just one person.
  695.  
  696. --Change Target to the name of the thing you want the bot to follow and blox.
  697.  
  698. --Change Target to nothing if you want it to just stand around.
  699.  
  700. --Change Distance to how far your bot will see
  701.  
  702. --Delete the value called BotFriend if you want your Bot to be killed by other bots in deathmatch.
  703.  
  704. --Copy and paste the value called BotFriend into whatever you do not want the bot to attack.
  705.  
  706. --Toggle Twirl on and off to change if the bot will twirl it's sword on touch, twirling does more damage, but also takes alot.
  707.  
  708. --And Damage is the amount of damage the sword will inflict.
  709.  
  710. --Coming Soon = Team Mode
  711. end))
  712. Tool103.Name = "LinkedSword"
  713. Tool103.Parent = Model4
  714. Tool103.TextureId = "rbxasset://Textures/Sword128.png"
  715. Tool103.GripForward = Vector3.new(-1, -0, -0)
  716. Tool103.GripPos = Vector3.new(0, 0, -1.5)
  717. Tool103.GripRight = Vector3.new(0, 1, 0)
  718. Tool103.GripUp = Vector3.new(0, 0, 1)
  719. Part104.Name = "Handle"
  720. Part104.Parent = Tool103
  721. Part104.BrickColor = BrickColor.new("Bright yellow")
  722. Part104.Reflectance = 0.40000000596046
  723. Part104.Rotation = Vector3.new(0, 0, 90)
  724. Part104.RotVelocity = Vector3.new(-2.12814831e-22, 1.90315357e-22, -2.08932575e-22)
  725. Part104.Velocity = Vector3.new(3.6138306e-20, 0.0218018591, 3.68237124e-20)
  726. Part104.CanCollide = false
  727. Part104.FormFactor = Enum.FormFactor.Plate
  728. Part104.Size = Vector3.new(2, 0.800000012, 4)
  729. Part104.CFrame = CFrame.new(37.5099831, 3.70014811, -14.9499836, -1.53733991e-21, -0.999993742, 5.96042753e-08, 1, -1.53727387e-21, 5.38734544e-22, -5.38736715e-22, 5.96042753e-08, 0.999993742)
  730. Part104.BottomSurface = Enum.SurfaceType.Smooth
  731. Part104.TopSurface = Enum.SurfaceType.Smooth
  732. Part104.Color = Color3.new(0.960784, 0.803922, 0.188235)
  733. Part104.Position = Vector3.new(37.5099831, 3.70014811, -14.9499836)
  734. Part104.Orientation = Vector3.new(0, 0, 90)
  735. Part104.Color = Color3.new(0.960784, 0.803922, 0.188235)
  736. SpecialMesh105.Parent = Part104
  737. SpecialMesh105.MeshId = "rbxasset://fonts/sword.mesh"
  738. SpecialMesh105.Scale = Vector3.new(2, 2, 1)
  739. SpecialMesh105.TextureId = "rbxasset://textures/SwordTexture.png"
  740. SpecialMesh105.VertexColor = Vector3.new(2, 2, 2)
  741. SpecialMesh105.MeshType = Enum.MeshType.FileMesh
  742. SpecialMesh105.Scale = Vector3.new(2, 2, 1)
  743. Script106.Name = "Damage"
  744. Script106.Parent = Part104
  745. table.insert(cors,sandbox(Script106,function()
  746. function onTouched(part)
  747. foe = script.Parent.Parent.Parent.Target.Value
  748. deathmatch = script.Parent.Parent.Parent.Deathmatch.Value
  749. twirl = script.Parent.Parent.Parent.Twirl.Value
  750. damage = script.Parent.Parent.Parent.Damage.Value
  751. if part.Parent:findFirstChild("Humanoid") ~= nil then
  752. if part.Parent.Name == foe and deathmatch ~= true then
  753. part.Parent.Humanoid.Health = part.Parent.Humanoid.Health - damage
  754. if twirl == true then
  755. script.Parent.BodyAngularVelocity.angularvelocity = Vector3.new(0,20,0)
  756. wait(0.5)
  757. script.Parent.BodyAngularVelocity.angularvelocity = Vector3.new(0,0,0)
  758. end
  759. elseif deathmatch ~= false and part.Parent:findFirstChild("BotFriend") == nil then
  760. part.Parent.Humanoid.Health = part.Parent.Humanoid.Health - damage
  761. if twirl == true then
  762. script.Parent.BodyAngularVelocity.angularvelocity = Vector3.new(0,20,0)
  763. wait(0.5)
  764. script.Parent.BodyAngularVelocity.angularvelocity = Vector3.new(0,0,0)
  765. end
  766. end
  767. end
  768. end
  769.  
  770. script.Parent.Touched:connect(onTouched)
  771. end))
  772. BodyAngularVelocity107.Parent = Part104
  773. BodyAngularVelocity107.maxTorque = Vector3.new(0, 400000, 0)
  774. BodyAngularVelocity107.MaxTorque = Vector3.new(0, 400000, 0)
  775. BodyAngularVelocity107.AngularVelocity = Vector3.new(0, 0, 0)
  776. IntValue108.Name = "Mode"
  777. IntValue108.Parent = Model4
  778. IntValue109.Name = "hit"
  779. IntValue109.Parent = Model4
  780. IntValue109.Value = 2
  781. NumberValue110.Name = "Distance"
  782. NumberValue110.Parent = Model4
  783. NumberValue110.Value = 2000
  784. BoolValue111.Name = "Twirl"
  785. BoolValue111.Parent = Model4
  786. BoolValue111.Value = true
  787. StringValue112.Name = "Target"
  788. StringValue112.Parent = Model4
  789. StringValue112.Value = "Player"
  790. BoolValue113.Name = "Twirl"
  791. BoolValue113.Parent = Model4
  792. BoolValue113.Value = true
  793. IntValue114.Name = "Timber"
  794. IntValue114.Parent = Model4
  795. Script115.Name = "FellCheck"
  796. Script115.Parent = Model4
  797. table.insert(cors,sandbox(Script115,function()
  798. hits = script.Parent.hit --This keeps track of how much "hp" the tree has left
  799. local newtree = script.Parent:clone() --for inserting a new tree later
  800.  
  801. while true do --infinite loop
  802. if hits.Value < 1 then --if the tree has less than 1 "hp" then
  803. script.Parent:BreakJoints() --make tree able to fall over.
  804. wait(3) --wait a while
  805. script.Parent:remove() --remove the tree
  806. wait(10) --wait a while
  807. newtree.Parent = game.Workspace --insert a new tree
  808. newtree:MakeJoints() --make tree unable to fall over
  809. end
  810. wait(1) --wait a while before checking trees hp again
  811. end
  812.  
  813. end))
  814. Script116.Name = "Animate"
  815. Script116.Parent = Model4
  816. table.insert(cors,sandbox(Script116,function()
  817. --Simple Easy Animations, credit to miked for the joint config.
  818.  
  819. miked=script.Parent
  820.  
  821. itlh=miked.Torso:findFirstChild("Left Hip")
  822. itlh.Part0=miked.Torso
  823. itlh.Part1=miked:findFirstChild("Left Leg")
  824. --itlh.C0=CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  825.  
  826. itrh=miked.Torso:findFirstChild("Right Hip")
  827. itrh.Part0=miked.Torso
  828. itrh.Part1=miked:findFirstChild("Right Leg")
  829. --itrh.C0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  830.  
  831. itls=miked.Torso:findFirstChild("Left Shoulder")
  832. itls.Part1=miked.Torso
  833. --itls.C0=CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  834. itls.Part0=miked:findFirstChild("Left Arm")
  835.  
  836. itrs=miked.Torso:findFirstChild("Right Shoulder")
  837. itrs.Part1=miked.Torso
  838. --itrs.C0=CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  839. itrs.Part0=miked:findFirstChild("Right Arm")
  840.  
  841.  
  842. function waitForChild(parent, childName)
  843. local child = parent:findFirstChild(childName)
  844. if child then return child end
  845. while true do
  846. child = parent.ChildAdded:wait()
  847. if child.Name==childName then return child end
  848. end
  849. end
  850.  
  851. -- ANIMATION
  852.  
  853. -- declarations
  854.  
  855. local Figure = script.Parent
  856. local Torso = waitForChild(Figure, "Torso")
  857. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  858. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  859. local RightHip = waitForChild(Torso, "Right Hip")
  860. local LeftHip = waitForChild(Torso, "Left Hip")
  861. local Neck = waitForChild(Torso, "Neck")
  862. local Humanoid = waitForChild(Figure, "Humanoid")
  863. local pose = "Standing"
  864.  
  865. local toolAnim = "None"
  866. local toolAnimTime = 0
  867.  
  868. -- functions
  869.  
  870. function onRunning(speed)
  871. if speed>0 then
  872. pose = "Running"
  873. else
  874. pose = "Standing"
  875. end
  876. end
  877.  
  878. function onDied()
  879. pose = "Dead"
  880. end
  881.  
  882. function onJumping()
  883. pose = "Jumping"
  884. end
  885.  
  886. function onClimbing()
  887. pose = "Climbing"
  888. end
  889.  
  890. function onGettingUp()
  891. pose = "GettingUp"
  892. end
  893.  
  894. function onFreeFall()
  895. pose = "FreeFall"
  896. end
  897.  
  898. function onFallingDown()
  899. pose = "FallingDown"
  900. end
  901.  
  902. function onSeated()
  903. pose = "Seated"
  904. end
  905.  
  906. function onPlatformStanding()
  907. pose = "PlatformStanding"
  908. end
  909.  
  910. function moveJump()
  911. RightShoulder.MaxVelocity = 0.5
  912. LeftShoulder.MaxVelocity = 0.5
  913. RightShoulder.DesiredAngle = 3.14
  914. LeftShoulder.DesiredAngle = -3.14
  915. RightHip.DesiredAngle = 0
  916. LeftHip.DesiredAngle = 0
  917. end
  918.  
  919.  
  920. -- same as jump for now
  921.  
  922. function moveFreeFall()
  923. RightShoulder.MaxVelocity = 0.5
  924. LeftShoulder.MaxVelocity = 0.5
  925. RightShoulder.DesiredAngle = 3.14
  926. LeftShoulder.DesiredAngle = -3.14
  927. RightHip.DesiredAngle = 0
  928. LeftHip.DesiredAngle = 0
  929. end
  930.  
  931. function moveSit()
  932. RightShoulder.MaxVelocity = 0.15
  933. LeftShoulder.MaxVelocity = 0.15
  934. RightShoulder.DesiredAngle = 3.14 /2
  935. LeftShoulder.DesiredAngle = -3.14 /2
  936. RightHip.DesiredAngle = 3.14 /2
  937. LeftHip.DesiredAngle = -3.14 /2
  938. end
  939.  
  940. function getTool()
  941. for _, kid in ipairs(Figure:GetChildren()) do
  942. if kid.className == "Tool" then return kid end
  943. end
  944. return nil
  945. end
  946.  
  947. function getToolAnim(tool)
  948. for _, c in ipairs(tool:GetChildren()) do
  949. if c.Name == "toolanim" and c.className == "StringValue" then
  950. return c
  951. end
  952. end
  953. return nil
  954. end
  955.  
  956. function animateTool()
  957.  
  958. if (toolAnim == "None") then
  959. RightShoulder.DesiredAngle = 1.57
  960. return
  961. end
  962.  
  963. if (toolAnim == "Slash") then
  964. RightShoulder.MaxVelocity = 0.5
  965. RightShoulder.DesiredAngle = 0
  966. return
  967. end
  968.  
  969. if (toolAnim == "Lunge") then
  970. RightShoulder.MaxVelocity = 0.5
  971. LeftShoulder.MaxVelocity = 0.5
  972. RightHip.MaxVelocity = 0.5
  973. LeftHip.MaxVelocity = 0.5
  974. RightShoulder.DesiredAngle = 1.57
  975. LeftShoulder.DesiredAngle = 1.0
  976. RightHip.DesiredAngle = 1.57
  977. LeftHip.DesiredAngle = 1.0
  978. return
  979. end
  980. end
  981.  
  982. function move(time)
  983. local amplitude
  984. local frequency
  985.  
  986. if (pose == "Jumping") then
  987. moveJump()
  988. return
  989. end
  990.  
  991. if (pose == "FreeFall") then
  992. moveFreeFall()
  993. return
  994. end
  995.  
  996. if (pose == "Seated") then
  997. moveSit()
  998. return
  999. end
  1000.  
  1001. local climbFudge = 0
  1002.  
  1003. if (pose == "Running") then
  1004. RightShoulder.MaxVelocity = 0.15
  1005. LeftShoulder.MaxVelocity = 0.15
  1006. amplitude = 1
  1007. frequency = 9
  1008. elseif (pose == "Climbing") then
  1009. RightShoulder.MaxVelocity = 0.5
  1010. LeftShoulder.MaxVelocity = 0.5
  1011. amplitude = 1
  1012. frequency = 9
  1013. climbFudge = 3.14
  1014. else
  1015. amplitude = 0.1
  1016. frequency = 1
  1017. end
  1018.  
  1019. desiredAngle = amplitude * math.sin(time*frequency)
  1020.  
  1021. RightShoulder.DesiredAngle = desiredAngle + climbFudge
  1022. LeftShoulder.DesiredAngle = desiredAngle - climbFudge
  1023. RightHip.DesiredAngle = -desiredAngle
  1024. LeftHip.DesiredAngle = -desiredAngle
  1025.  
  1026.  
  1027. local tool = getTool()
  1028.  
  1029. if tool then
  1030.  
  1031. animStringValueObject = getToolAnim(tool)
  1032.  
  1033. if animStringValueObject then
  1034. toolAnim = animStringValueObject.Value
  1035. -- message recieved, delete StringValue
  1036. animStringValueObject.Parent = nil
  1037. toolAnimTime = time + .3
  1038. end
  1039.  
  1040. if time > toolAnimTime then
  1041. toolAnimTime = 0
  1042. toolAnim = "None"
  1043. end
  1044.  
  1045. animateTool()
  1046.  
  1047.  
  1048. else
  1049. toolAnim = "None"
  1050. toolAnimTime = 0
  1051. end
  1052. end
  1053.  
  1054.  
  1055. -- connect events
  1056.  
  1057. Humanoid.Died:connect(onDied)
  1058. Humanoid.Running:connect(onRunning)
  1059. Humanoid.Jumping:connect(onJumping)
  1060. Humanoid.Climbing:connect(onClimbing)
  1061. Humanoid.GettingUp:connect(onGettingUp)
  1062. Humanoid.FreeFalling:connect(onFreeFall)
  1063. Humanoid.FallingDown:connect(onFallingDown)
  1064. Humanoid.Seated:connect(onSeated)
  1065. Humanoid.PlatformStanding:connect(onPlatformStanding)
  1066.  
  1067. -- main program
  1068.  
  1069. local runService = game:service("RunService");
  1070.  
  1071. while Figure.Parent~=nil do
  1072. local _, time = wait(0.1)
  1073. move(time)
  1074. end
  1075.  
  1076. end))
  1077. IntValue117.Name = "BotFriend"
  1078. IntValue117.Parent = Model4
  1079. Script118.Name = "Respawn"
  1080. Script118.Parent = Model4
  1081. table.insert(cors,sandbox(Script118,function()
  1082. name="Humanoid"
  1083.  
  1084.  
  1085.  
  1086. robo=script.Parent:clone()
  1087.  
  1088.  
  1089.  
  1090. while true do
  1091.  
  1092. wait(60)
  1093.  
  1094. if script.Parent.Humanoid.Health<1 then
  1095.  
  1096. robot=robo:clone()
  1097.  
  1098. robot.Parent=script.Parent.Parent
  1099.  
  1100. robot:makeJoints()
  1101.  
  1102. script.Parent:remove()
  1103.  
  1104. end
  1105.  
  1106. end
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115. end))
  1116. BoolValue119.Name = "Deathmatch"
  1117. BoolValue119.Parent = Model4
  1118. BoolValue119.Value = true
  1119. Script120.Name = "Regenerator"
  1120. Script120.Parent = Model4
  1121. Script120.Disabled = true
  1122. table.insert(cors,sandbox(Script120,function()
  1123. clone = script.Parent.clone()
  1124. goblin = script.Parent
  1125.  
  1126. goblin.remove()
  1127. clone.Parent = game.Workspace
  1128.  
  1129.  
  1130.  
  1131. end))
  1132. Script121.Name = "Health"
  1133. Script121.Parent = Model4
  1134. table.insert(cors,sandbox(Script121,function()
  1135. script.Parent.Humanoid.Health = script.Parent.Humanoid.MaxHealth
  1136.  
  1137. while true do
  1138. wait(0.1)
  1139. if script.Parent.Humanoid.Health ~= script.Parent.Humanoid.MaxHealth then
  1140. script.Parent.Humanoid.Health = script.Parent.Humanoid.Health + 1
  1141. end
  1142. end
  1143.  
  1144. end))
  1145. Script122.Name = "Follow"
  1146. Script122.Parent = Model4
  1147. table.insert(cors,sandbox(Script122,function()
  1148. local larm = script.Parent:FindFirstChild("Left Arm")
  1149. local rarm = script.Parent:FindFirstChild("Right Arm")
  1150.  
  1151. function findNearestTorso(pos)
  1152. local list = game.Workspace:children()
  1153. local torso = nil
  1154. local dist = 14
  1155. local temp = nil
  1156. local human = nil
  1157. local temp2 = nil
  1158. for x = 1, #list do
  1159. temp2 = list[x]
  1160. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  1161. temp = temp2:findFirstChild("Torso")
  1162. human = temp2:findFirstChild("Humanoid")
  1163. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1164. if (temp.Position - pos).magnitude < dist then
  1165. torso = temp
  1166. dist = (temp.Position - pos).magnitude
  1167. end
  1168. end
  1169. end
  1170. end
  1171. return torso
  1172. end
  1173.  
  1174. while true do
  1175. wait(0.1)
  1176. local target = findNearestTorso(script.Parent.Torso.Position)
  1177. if target ~= nil then
  1178. script.Parent.Humanoid:MoveTo(target.Position, target)
  1179. end
  1180. end
  1181. end))
  1182. Weld123.Name = "Virus"
  1183. Weld123.Parent = Script122
  1184. Script124.Name = "Move"
  1185. Script124.Parent = Model4
  1186. table.insert(cors,sandbox(Script124,function()
  1187. local CurrentPart = nil
  1188. local MaxInc = 5
  1189.  
  1190. function onTouched(hit)
  1191. if hit.Parent == nil then
  1192. return
  1193. end
  1194.  
  1195. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1196.  
  1197. if humanoid == nil then
  1198. CurrentPart = hit
  1199. end
  1200. end
  1201.  
  1202. function waitForChild(parent, childName)
  1203. local child = parent:findFirstChild(childName)
  1204.  
  1205. if child then
  1206. return child
  1207. end
  1208.  
  1209. while true do
  1210. print(childName)
  1211.  
  1212. child = parent.ChildAdded:wait()
  1213.  
  1214. if child.Name==childName then
  1215. return child
  1216. end
  1217. end
  1218. end
  1219.  
  1220. local Figure = script.Parent
  1221. local Humanoid = waitForChild(Figure, "Humanoid")
  1222. local Torso = waitForChild(Figure, "Torso")
  1223. local Left = waitForChild(Figure, "Left Leg")
  1224. local Right = waitForChild(Figure, "Right Leg")
  1225.  
  1226. Humanoid.Jump = true
  1227.  
  1228. Left.Touched:connect(onTouched)
  1229. Right.Touched:connect(onTouched)
  1230.  
  1231. while true do
  1232. wait(math.random(2, 6))
  1233.  
  1234. if CurrentPart ~= nil then
  1235. if math.random(1, 2) == 1 then
  1236. Humanoid.Jump = False
  1237. end
  1238.  
  1239. Humanoid:MoveTo(Torso.Position + Vector3.new(math.random(-MaxInc, MaxInc), 0, math.random(-MaxInc, MaxInc)), CurrentPart)
  1240. end
  1241. end
  1242. end))
  1243. Humanoid125.Parent = Model4
  1244. Humanoid125.NameOcclusion = Enum.NameOcclusion.NoOcclusion
  1245. Humanoid125.RightLeg = Part6
  1246. Humanoid125.LeftLeg = Part5
  1247. Humanoid125.Torso = Part7
  1248. Humanoid125.Health = 40
  1249. Humanoid125.MaxHealth = 40
  1250. Humanoid125.WalkSpeed = 20
  1251. Script126.Name = "Follow"
  1252. Script126.Parent = Model4
  1253. table.insert(cors,sandbox(Script126,function()
  1254. local larm = script.Parent:FindFirstChild("Left Arm")
  1255. local rarm = script.Parent:FindFirstChild("Right Arm")
  1256.  
  1257. function findNearestTorso(pos)
  1258. local list = game.Workspace:children()
  1259. local torso = nil
  1260. local dist = 13
  1261. local temp = nil
  1262. local human = nil
  1263. local temp2 = nil
  1264. for x = 1, #list do
  1265. temp2 = list[x]
  1266. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  1267. temp = temp2:findFirstChild("Torso")
  1268. human = temp2:findFirstChild("Humanoid")
  1269. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1270. if (temp.Position - pos).magnitude < dist then
  1271. torso = temp
  1272. dist = (temp.Position - pos).magnitude
  1273. end
  1274. end
  1275. end
  1276. end
  1277. return torso
  1278. end
  1279.  
  1280. while true do
  1281. wait(0.1)
  1282. local target = findNearestTorso(script.Parent.Torso.Position)
  1283. if target ~= nil then
  1284. script.Parent.Humanoid:MoveTo(target.Position, target)
  1285. end
  1286. end
  1287. end))
  1288. Weld127.Name = "Virus"
  1289. Weld127.Parent = Script126
  1290. Script128.Name = "Move"
  1291. Script128.Parent = Model4
  1292. table.insert(cors,sandbox(Script128,function()
  1293. local CurrentPart = nil
  1294. local MaxInc = 5
  1295.  
  1296. function onTouched(hit)
  1297. if hit.Parent == nil then
  1298. return
  1299. end
  1300.  
  1301. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1302.  
  1303. if humanoid == nil then
  1304. CurrentPart = hit
  1305. end
  1306. end
  1307.  
  1308. function waitForChild(parent, childName)
  1309. local child = parent:findFirstChild(childName)
  1310.  
  1311. if child then
  1312. return child
  1313. end
  1314.  
  1315. while true do
  1316. print(childName)
  1317.  
  1318. child = parent.ChildAdded:wait()
  1319.  
  1320. if child.Name==childName then
  1321. return child
  1322. end
  1323. end
  1324. end
  1325.  
  1326. local Figure = script.Parent
  1327. local Humanoid = waitForChild(Figure, "Humanoid")
  1328. local Torso = waitForChild(Figure, "Torso")
  1329. local Left = waitForChild(Figure, "Left Leg")
  1330. local Right = waitForChild(Figure, "Right Leg")
  1331.  
  1332. Humanoid.Jump = true
  1333.  
  1334. Left.Touched:connect(onTouched)
  1335. Right.Touched:connect(onTouched)
  1336.  
  1337. while true do
  1338. wait(math.random(2, 6))
  1339.  
  1340. if CurrentPart ~= nil then
  1341. if math.random(1, 2) == 1 then
  1342. Humanoid.Jump = False
  1343. end
  1344.  
  1345. Humanoid:MoveTo(Torso.Position + Vector3.new(math.random(-MaxInc, MaxInc), 0, math.random(-MaxInc, MaxInc)), CurrentPart)
  1346. end
  1347. end
  1348. end))
  1349. Script129.Name = "Move"
  1350. Script129.Parent = Model4
  1351. table.insert(cors,sandbox(Script129,function()
  1352. local CurrentPart = nil
  1353. local MaxInc = 5
  1354.  
  1355. function onTouched(hit)
  1356. if hit.Parent == nil then
  1357. return
  1358. end
  1359.  
  1360. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1361.  
  1362. if humanoid == nil then
  1363. CurrentPart = hit
  1364. end
  1365. end
  1366.  
  1367. function waitForChild(parent, childName)
  1368. local child = parent:findFirstChild(childName)
  1369.  
  1370. if child then
  1371. return child
  1372. end
  1373.  
  1374. while true do
  1375. print(childName)
  1376.  
  1377. child = parent.ChildAdded:wait()
  1378.  
  1379. if child.Name==childName then
  1380. return child
  1381. end
  1382. end
  1383. end
  1384.  
  1385. local Figure = script.Parent
  1386. local Humanoid = waitForChild(Figure, "Humanoid")
  1387. local Torso = waitForChild(Figure, "Torso")
  1388. local Left = waitForChild(Figure, "Left Leg")
  1389. local Right = waitForChild(Figure, "Right Leg")
  1390.  
  1391. Humanoid.Jump = true
  1392.  
  1393. Left.Touched:connect(onTouched)
  1394. Right.Touched:connect(onTouched)
  1395.  
  1396. while true do
  1397. wait(math.random(2, 6))
  1398.  
  1399. if CurrentPart ~= nil then
  1400. if math.random(1, 2) == 1 then
  1401. Humanoid.Jump = False
  1402. end
  1403.  
  1404. Humanoid:MoveTo(Torso.Position + Vector3.new(math.random(-MaxInc, MaxInc), 0, math.random(-MaxInc, MaxInc)), CurrentPart)
  1405. end
  1406. end
  1407. end))
  1408. Script130.Name = "Move"
  1409. Script130.Parent = Model4
  1410. table.insert(cors,sandbox(Script130,function()
  1411. local CurrentPart = nil
  1412. local MaxInc = 5
  1413.  
  1414. function onTouched(hit)
  1415. if hit.Parent == nil then
  1416. return
  1417. end
  1418.  
  1419. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1420.  
  1421. if humanoid == nil then
  1422. CurrentPart = hit
  1423. end
  1424. end
  1425.  
  1426. function waitForChild(parent, childName)
  1427. local child = parent:findFirstChild(childName)
  1428.  
  1429. if child then
  1430. return child
  1431. end
  1432.  
  1433. while true do
  1434. print(childName)
  1435.  
  1436. child = parent.ChildAdded:wait()
  1437.  
  1438. if child.Name==childName then
  1439. return child
  1440. end
  1441. end
  1442. end
  1443.  
  1444. local Figure = script.Parent
  1445. local Humanoid = waitForChild(Figure, "Humanoid")
  1446. local Torso = waitForChild(Figure, "Torso")
  1447. local Left = waitForChild(Figure, "Left Leg")
  1448. local Right = waitForChild(Figure, "Right Leg")
  1449.  
  1450. Humanoid.Jump = true
  1451.  
  1452. Left.Touched:connect(onTouched)
  1453. Right.Touched:connect(onTouched)
  1454.  
  1455. while true do
  1456. wait(math.random(2, 6))
  1457.  
  1458. if CurrentPart ~= nil then
  1459. if math.random(1, 2) == 1 then
  1460. Humanoid.Jump = False
  1461. end
  1462.  
  1463. Humanoid:MoveTo(Torso.Position + Vector3.new(math.random(-MaxInc, MaxInc), 0, math.random(-MaxInc, MaxInc)), CurrentPart)
  1464. end
  1465. end
  1466. end))
  1467. Script131.Name = "Follow"
  1468. Script131.Parent = Model4
  1469. table.insert(cors,sandbox(Script131,function()
  1470. local larm = script.Parent:FindFirstChild("Left Arm")
  1471. local rarm = script.Parent:FindFirstChild("Right Arm")
  1472.  
  1473. function findNearestTorso(pos)
  1474. local list = game.Workspace:children()
  1475. local torso = nil
  1476. local dist = 13
  1477. local temp = nil
  1478. local human = nil
  1479. local temp2 = nil
  1480. for x = 1, #list do
  1481. temp2 = list[x]
  1482. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  1483. temp = temp2:findFirstChild("Torso")
  1484. human = temp2:findFirstChild("Humanoid")
  1485. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1486. if (temp.Position - pos).magnitude < dist then
  1487. torso = temp
  1488. dist = (temp.Position - pos).magnitude
  1489. end
  1490. end
  1491. end
  1492. end
  1493. return torso
  1494. end
  1495.  
  1496. while true do
  1497. wait(0.1)
  1498. local target = findNearestTorso(script.Parent.Torso.Position)
  1499. if target ~= nil then
  1500. script.Parent.Humanoid:MoveTo(target.Position, target)
  1501. end
  1502. end
  1503. end))
  1504. Weld132.Name = "Virus"
  1505. Weld132.Parent = Script131
  1506. Script133.Name = "Follow"
  1507. Script133.Parent = Model4
  1508. table.insert(cors,sandbox(Script133,function()
  1509. local larm = script.Parent:FindFirstChild("Left Arm")
  1510. local rarm = script.Parent:FindFirstChild("Right Arm")
  1511.  
  1512. function findNearestTorso(pos)
  1513. local list = game.Workspace:children()
  1514. local torso = nil
  1515. local dist = 14
  1516. local temp = nil
  1517. local human = nil
  1518. local temp2 = nil
  1519. for x = 1, #list do
  1520. temp2 = list[x]
  1521. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  1522. temp = temp2:findFirstChild("Torso")
  1523. human = temp2:findFirstChild("Humanoid")
  1524. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1525. if (temp.Position - pos).magnitude < dist then
  1526. torso = temp
  1527. dist = (temp.Position - pos).magnitude
  1528. end
  1529. end
  1530. end
  1531. end
  1532. return torso
  1533. end
  1534.  
  1535. while true do
  1536. wait(0.1)
  1537. local target = findNearestTorso(script.Parent.Torso.Position)
  1538. if target ~= nil then
  1539. script.Parent.Humanoid:MoveTo(target.Position, target)
  1540. end
  1541. end
  1542. end))
  1543. Weld134.Name = "Virus"
  1544. Weld134.Parent = Script133
  1545. Script135.Name = "Move"
  1546. Script135.Parent = Model4
  1547. table.insert(cors,sandbox(Script135,function()
  1548. local CurrentPart = nil
  1549. local MaxInc = 1000000
  1550.  
  1551. function onTouched(hit)
  1552. if hit.Parent == nil then
  1553. return
  1554. end
  1555.  
  1556. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1557.  
  1558. if humanoid == nil then
  1559. CurrentPart = hit
  1560. end
  1561. end
  1562.  
  1563. function waitForChild(parent, childName)
  1564. local child = parent:findFirstChild(childName)
  1565.  
  1566. if child then
  1567. return child
  1568. end
  1569.  
  1570. while true do
  1571. print(childName)
  1572.  
  1573. child = parent.ChildAdded:wait()
  1574.  
  1575. if child.Name==childName then
  1576. return child
  1577. end
  1578. end
  1579. end
  1580.  
  1581. local Figure = script.Parent
  1582. local Humanoid = waitForChild(Figure, "Humanoid")
  1583. local Torso = waitForChild(Figure, "Torso")
  1584. local Left = waitForChild(Figure, "Left Leg")
  1585. local Right = waitForChild(Figure, "Right Leg")
  1586.  
  1587. Humanoid.Jump = true
  1588.  
  1589. Left.Touched:connect(onTouched)
  1590. Right.Touched:connect(onTouched)
  1591.  
  1592. while true do
  1593. wait(math.random(2, 6))
  1594.  
  1595. if CurrentPart ~= nil then
  1596. if math.random(1, 2) == 1 then
  1597. Humanoid.Jump = False
  1598. end
  1599.  
  1600. Humanoid:MoveTo(Torso.Position + Vector3.new(math.random(-MaxInc, MaxInc), 0, math.random(-MaxInc, MaxInc)), CurrentPart)
  1601. end
  1602. end
  1603. end))
  1604. Script136.Name = "Animate"
  1605. Script136.Parent = Model4
  1606. table.insert(cors,sandbox(Script136,function()
  1607. --Simple Easy Animations, credit to miked for the joint config.
  1608.  
  1609. miked=script.Parent
  1610.  
  1611. itlh=miked.Torso:findFirstChild("Left Hip")
  1612. itlh.Part0=miked.Torso
  1613. itlh.Part1=miked:findFirstChild("Left Leg")
  1614. --itlh.C0=CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1615.  
  1616. itrh=miked.Torso:findFirstChild("Right Hip")
  1617. itrh.Part0=miked.Torso
  1618. itrh.Part1=miked:findFirstChild("Right Leg")
  1619. --itrh.C0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1620.  
  1621. itls=miked.Torso:findFirstChild("Left Shoulder")
  1622. itls.Part1=miked.Torso
  1623. --itls.C0=CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1624. itls.Part0=miked:findFirstChild("Left Arm")
  1625.  
  1626. itrs=miked.Torso:findFirstChild("Right Shoulder")
  1627. itrs.Part1=miked.Torso
  1628. --itrs.C0=CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1629. itrs.Part0=miked:findFirstChild("Right Arm")
  1630.  
  1631.  
  1632. function waitForChild(parent, childName)
  1633. local child = parent:findFirstChild(childName)
  1634. if child then return child end
  1635. while true do
  1636. child = parent.ChildAdded:wait()
  1637. if child.Name==childName then return child end
  1638. end
  1639. end
  1640.  
  1641. -- ANIMATION
  1642.  
  1643. -- declarations
  1644.  
  1645. local Figure = script.Parent
  1646. local Torso = waitForChild(Figure, "Torso")
  1647. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  1648. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  1649. local RightHip = waitForChild(Torso, "Right Hip")
  1650. local LeftHip = waitForChild(Torso, "Left Hip")
  1651. local Neck = waitForChild(Torso, "Neck")
  1652. local Humanoid = waitForChild(Figure, "Humanoid")
  1653. local pose = "Standing"
  1654.  
  1655. local toolAnim = "None"
  1656. local toolAnimTime = 0
  1657.  
  1658. -- functions
  1659.  
  1660. function onRunning(speed)
  1661. if speed>0 then
  1662. pose = "Running"
  1663. else
  1664. pose = "Standing"
  1665. end
  1666. end
  1667.  
  1668. function onDied()
  1669. pose = "Dead"
  1670. end
  1671.  
  1672. function onJumping()
  1673. pose = "Jumping"
  1674. end
  1675.  
  1676. function onClimbing()
  1677. pose = "Climbing"
  1678. end
  1679.  
  1680. function onGettingUp()
  1681. pose = "GettingUp"
  1682. end
  1683.  
  1684. function onFreeFall()
  1685. pose = "FreeFall"
  1686. end
  1687.  
  1688. function onFallingDown()
  1689. pose = "FallingDown"
  1690. end
  1691.  
  1692. function onSeated()
  1693. pose = "Seated"
  1694. end
  1695.  
  1696. function onPlatformStanding()
  1697. pose = "PlatformStanding"
  1698. end
  1699.  
  1700. function moveJump()
  1701. RightShoulder.MaxVelocity = 0.5
  1702. LeftShoulder.MaxVelocity = 0.5
  1703. RightShoulder.DesiredAngle = 3.14
  1704. LeftShoulder.DesiredAngle = -3.14
  1705. RightHip.DesiredAngle = 0
  1706. LeftHip.DesiredAngle = 0
  1707. end
  1708.  
  1709.  
  1710. -- same as jump for now
  1711.  
  1712. function moveFreeFall()
  1713. RightShoulder.MaxVelocity = 0.5
  1714. LeftShoulder.MaxVelocity = 0.5
  1715. RightShoulder.DesiredAngle = 3.14
  1716. LeftShoulder.DesiredAngle = -3.14
  1717. RightHip.DesiredAngle = 0
  1718. LeftHip.DesiredAngle = 0
  1719. end
  1720.  
  1721. function moveSit()
  1722. RightShoulder.MaxVelocity = 0.15
  1723. LeftShoulder.MaxVelocity = 0.15
  1724. RightShoulder.DesiredAngle = 3.14 /2
  1725. LeftShoulder.DesiredAngle = -3.14 /2
  1726. RightHip.DesiredAngle = 3.14 /2
  1727. LeftHip.DesiredAngle = -3.14 /2
  1728. end
  1729.  
  1730. function getTool()
  1731. for _, kid in ipairs(Figure:GetChildren()) do
  1732. if kid.className == "Tool" then return kid end
  1733. end
  1734. return nil
  1735. end
  1736.  
  1737. function getToolAnim(tool)
  1738. for _, c in ipairs(tool:GetChildren()) do
  1739. if c.Name == "toolanim" and c.className == "StringValue" then
  1740. return c
  1741. end
  1742. end
  1743. return nil
  1744. end
  1745.  
  1746. function animateTool()
  1747.  
  1748. if (toolAnim == "None") then
  1749. RightShoulder.DesiredAngle = 1.57
  1750. return
  1751. end
  1752.  
  1753. if (toolAnim == "Slash") then
  1754. RightShoulder.MaxVelocity = 0.5
  1755. RightShoulder.DesiredAngle = 0
  1756. return
  1757. end
  1758.  
  1759. if (toolAnim == "Lunge") then
  1760. RightShoulder.MaxVelocity = 0.5
  1761. LeftShoulder.MaxVelocity = 0.5
  1762. RightHip.MaxVelocity = 0.5
  1763. LeftHip.MaxVelocity = 0.5
  1764. RightShoulder.DesiredAngle = 1.57
  1765. LeftShoulder.DesiredAngle = 1.0
  1766. RightHip.DesiredAngle = 1.57
  1767. LeftHip.DesiredAngle = 1.0
  1768. return
  1769. end
  1770. end
  1771.  
  1772. function move(time)
  1773. local amplitude
  1774. local frequency
  1775.  
  1776. if (pose == "Jumping") then
  1777. moveJump()
  1778. return
  1779. end
  1780.  
  1781. if (pose == "FreeFall") then
  1782. moveFreeFall()
  1783. return
  1784. end
  1785.  
  1786. if (pose == "Seated") then
  1787. moveSit()
  1788. return
  1789. end
  1790.  
  1791. local climbFudge = 0
  1792.  
  1793. if (pose == "Running") then
  1794. RightShoulder.MaxVelocity = 0.15
  1795. LeftShoulder.MaxVelocity = 0.15
  1796. amplitude = 1
  1797. frequency = 9
  1798. elseif (pose == "Climbing") then
  1799. RightShoulder.MaxVelocity = 0.5
  1800. LeftShoulder.MaxVelocity = 0.5
  1801. amplitude = 1
  1802. frequency = 9
  1803. climbFudge = 3.14
  1804. else
  1805. amplitude = 0.1
  1806. frequency = 1
  1807. end
  1808.  
  1809. desiredAngle = amplitude * math.sin(time*frequency)
  1810.  
  1811. RightShoulder.DesiredAngle = desiredAngle + climbFudge
  1812. LeftShoulder.DesiredAngle = desiredAngle - climbFudge
  1813. RightHip.DesiredAngle = -desiredAngle
  1814. LeftHip.DesiredAngle = -desiredAngle
  1815.  
  1816.  
  1817. local tool = getTool()
  1818.  
  1819. if tool then
  1820.  
  1821. animStringValueObject = getToolAnim(tool)
  1822.  
  1823. if animStringValueObject then
  1824. toolAnim = animStringValueObject.Value
  1825. -- message recieved, delete StringValue
  1826. animStringValueObject.Parent = nil
  1827. toolAnimTime = time + .3
  1828. end
  1829.  
  1830. if time > toolAnimTime then
  1831. toolAnimTime = 0
  1832. toolAnim = "None"
  1833. end
  1834.  
  1835. animateTool()
  1836.  
  1837.  
  1838. else
  1839. toolAnim = "None"
  1840. toolAnimTime = 0
  1841. end
  1842. end
  1843.  
  1844.  
  1845. -- connect events
  1846.  
  1847. Humanoid.Died:connect(onDied)
  1848. Humanoid.Running:connect(onRunning)
  1849. Humanoid.Jumping:connect(onJumping)
  1850. Humanoid.Climbing:connect(onClimbing)
  1851. Humanoid.GettingUp:connect(onGettingUp)
  1852. Humanoid.FreeFalling:connect(onFreeFall)
  1853. Humanoid.FallingDown:connect(onFallingDown)
  1854. Humanoid.Seated:connect(onSeated)
  1855. Humanoid.PlatformStanding:connect(onPlatformStanding)
  1856.  
  1857. -- main program
  1858.  
  1859. local runService = game:service("RunService");
  1860.  
  1861. while Figure.Parent~=nil do
  1862. local _, time = wait(0.1)
  1863. move(time)
  1864. end
  1865.  
  1866. end))
  1867. Script137.Name = "Move"
  1868. Script137.Parent = Model4
  1869. table.insert(cors,sandbox(Script137,function()
  1870. local CurrentPart = nil
  1871. local MaxInc = 1000000
  1872.  
  1873. function onTouched(hit)
  1874. if hit.Parent == nil then
  1875. return
  1876. end
  1877.  
  1878. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1879.  
  1880. if humanoid == nil then
  1881. CurrentPart = hit
  1882. end
  1883. end
  1884.  
  1885. function waitForChild(parent, childName)
  1886. local child = parent:findFirstChild(childName)
  1887.  
  1888. if child then
  1889. return child
  1890. end
  1891.  
  1892. while true do
  1893. print(childName)
  1894.  
  1895. child = parent.ChildAdded:wait()
  1896.  
  1897. if child.Name==childName then
  1898. return child
  1899. end
  1900. end
  1901. end
  1902.  
  1903. local Figure = script.Parent
  1904. local Humanoid = waitForChild(Figure, "Humanoid")
  1905. local Torso = waitForChild(Figure, "Torso")
  1906. local Left = waitForChild(Figure, "Left Leg")
  1907. local Right = waitForChild(Figure, "Right Leg")
  1908.  
  1909. Humanoid.Jump = true
  1910.  
  1911. Left.Touched:connect(onTouched)
  1912. Right.Touched:connect(onTouched)
  1913.  
  1914. while true do
  1915. wait(math.random(2, 6))
  1916.  
  1917. if CurrentPart ~= nil then
  1918. if math.random(1, 2) == 1 then
  1919. Humanoid.Jump = False
  1920. end
  1921.  
  1922. Humanoid:MoveTo(Torso.Position + Vector3.new(math.random(-MaxInc, MaxInc), 0, math.random(-MaxInc, MaxInc)), CurrentPart)
  1923. end
  1924. end
  1925. end))
  1926. Script138.Name = "Move"
  1927. Script138.Parent = Model4
  1928. table.insert(cors,sandbox(Script138,function()
  1929. local CurrentPart = nil
  1930. local MaxInc = 1000000
  1931.  
  1932. function onTouched(hit)
  1933. if hit.Parent == nil then
  1934. return
  1935. end
  1936.  
  1937. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1938.  
  1939. if humanoid == nil then
  1940. CurrentPart = hit
  1941. end
  1942. end
  1943.  
  1944. function waitForChild(parent, childName)
  1945. local child = parent:findFirstChild(childName)
  1946.  
  1947. if child then
  1948. return child
  1949. end
  1950.  
  1951. while true do
  1952. print(childName)
  1953.  
  1954. child = parent.ChildAdded:wait()
  1955.  
  1956. if child.Name==childName then
  1957. return child
  1958. end
  1959. end
  1960. end
  1961.  
  1962. local Figure = script.Parent
  1963. local Humanoid = waitForChild(Figure, "Humanoid")
  1964. local Torso = waitForChild(Figure, "Torso")
  1965. local Left = waitForChild(Figure, "Left Leg")
  1966. local Right = waitForChild(Figure, "Right Leg")
  1967.  
  1968. Humanoid.Jump = true
  1969.  
  1970. Left.Touched:connect(onTouched)
  1971. Right.Touched:connect(onTouched)
  1972.  
  1973. while true do
  1974. wait(math.random(2, 6))
  1975.  
  1976. if CurrentPart ~= nil then
  1977. if math.random(1, 2) == 1 then
  1978. Humanoid.Jump = False
  1979. end
  1980.  
  1981. Humanoid:MoveTo(Torso.Position + Vector3.new(math.random(-MaxInc, MaxInc), 0, math.random(-MaxInc, MaxInc)), CurrentPart)
  1982. end
  1983. end
  1984. end))
  1985. Script139.Name = "Animate"
  1986. Script139.Parent = Model4
  1987. table.insert(cors,sandbox(Script139,function()
  1988. --Simple Easy Animations, credit to miked for the joint config.
  1989.  
  1990. miked=script.Parent
  1991.  
  1992. itlh=miked.Torso:findFirstChild("Left Hip")
  1993. itlh.Part0=miked.Torso
  1994. itlh.Part1=miked:findFirstChild("Left Leg")
  1995. --itlh.C0=CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1996.  
  1997. itrh=miked.Torso:findFirstChild("Right Hip")
  1998. itrh.Part0=miked.Torso
  1999. itrh.Part1=miked:findFirstChild("Right Leg")
  2000. --itrh.C0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2001.  
  2002. itls=miked.Torso:findFirstChild("Left Shoulder")
  2003. itls.Part1=miked.Torso
  2004. --itls.C0=CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2005. itls.Part0=miked:findFirstChild("Left Arm")
  2006.  
  2007. itrs=miked.Torso:findFirstChild("Right Shoulder")
  2008. itrs.Part1=miked.Torso
  2009. --itrs.C0=CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2010. itrs.Part0=miked:findFirstChild("Right Arm")
  2011.  
  2012.  
  2013. function waitForChild(parent, childName)
  2014. local child = parent:findFirstChild(childName)
  2015. if child then return child end
  2016. while true do
  2017. child = parent.ChildAdded:wait()
  2018. if child.Name==childName then return child end
  2019. end
  2020. end
  2021.  
  2022. -- ANIMATION
  2023.  
  2024. -- declarations
  2025.  
  2026. local Figure = script.Parent
  2027. local Torso = waitForChild(Figure, "Torso")
  2028. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  2029. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  2030. local RightHip = waitForChild(Torso, "Right Hip")
  2031. local LeftHip = waitForChild(Torso, "Left Hip")
  2032. local Neck = waitForChild(Torso, "Neck")
  2033. local Humanoid = waitForChild(Figure, "Humanoid")
  2034. local pose = "Standing"
  2035.  
  2036. local toolAnim = "None"
  2037. local toolAnimTime = 0
  2038.  
  2039. -- functions
  2040.  
  2041. function onRunning(speed)
  2042. if speed>0 then
  2043. pose = "Running"
  2044. else
  2045. pose = "Standing"
  2046. end
  2047. end
  2048.  
  2049. function onDied()
  2050. pose = "Dead"
  2051. end
  2052.  
  2053. function onJumping()
  2054. pose = "Jumping"
  2055. end
  2056.  
  2057. function onClimbing()
  2058. pose = "Climbing"
  2059. end
  2060.  
  2061. function onGettingUp()
  2062. pose = "GettingUp"
  2063. end
  2064.  
  2065. function onFreeFall()
  2066. pose = "FreeFall"
  2067. end
  2068.  
  2069. function onFallingDown()
  2070. pose = "FallingDown"
  2071. end
  2072.  
  2073. function onSeated()
  2074. pose = "Seated"
  2075. end
  2076.  
  2077. function onPlatformStanding()
  2078. pose = "PlatformStanding"
  2079. end
  2080.  
  2081. function moveJump()
  2082. RightShoulder.MaxVelocity = 0.5
  2083. LeftShoulder.MaxVelocity = 0.5
  2084. RightShoulder.DesiredAngle = 3.14
  2085. LeftShoulder.DesiredAngle = -3.14
  2086. RightHip.DesiredAngle = 0
  2087. LeftHip.DesiredAngle = 0
  2088. end
  2089.  
  2090.  
  2091. -- same as jump for now
  2092.  
  2093. function moveFreeFall()
  2094. RightShoulder.MaxVelocity = 0.5
  2095. LeftShoulder.MaxVelocity = 0.5
  2096. RightShoulder.DesiredAngle = 3.14
  2097. LeftShoulder.DesiredAngle = -3.14
  2098. RightHip.DesiredAngle = 0
  2099. LeftHip.DesiredAngle = 0
  2100. end
  2101.  
  2102. function moveSit()
  2103. RightShoulder.MaxVelocity = 0.15
  2104. LeftShoulder.MaxVelocity = 0.15
  2105. RightShoulder.DesiredAngle = 3.14 /2
  2106. LeftShoulder.DesiredAngle = -3.14 /2
  2107. RightHip.DesiredAngle = 3.14 /2
  2108. LeftHip.DesiredAngle = -3.14 /2
  2109. end
  2110.  
  2111. function getTool()
  2112. for _, kid in ipairs(Figure:GetChildren()) do
  2113. if kid.className == "Tool" then return kid end
  2114. end
  2115. return nil
  2116. end
  2117.  
  2118. function getToolAnim(tool)
  2119. for _, c in ipairs(tool:GetChildren()) do
  2120. if c.Name == "toolanim" and c.className == "StringValue" then
  2121. return c
  2122. end
  2123. end
  2124. return nil
  2125. end
  2126.  
  2127. function animateTool()
  2128.  
  2129. if (toolAnim == "None") then
  2130. RightShoulder.DesiredAngle = 1.57
  2131. return
  2132. end
  2133.  
  2134. if (toolAnim == "Slash") then
  2135. RightShoulder.MaxVelocity = 0.5
  2136. RightShoulder.DesiredAngle = 0
  2137. return
  2138. end
  2139.  
  2140. if (toolAnim == "Lunge") then
  2141. RightShoulder.MaxVelocity = 0.5
  2142. LeftShoulder.MaxVelocity = 0.5
  2143. RightHip.MaxVelocity = 0.5
  2144. LeftHip.MaxVelocity = 0.5
  2145. RightShoulder.DesiredAngle = 1.57
  2146. LeftShoulder.DesiredAngle = 1.0
  2147. RightHip.DesiredAngle = 1.57
  2148. LeftHip.DesiredAngle = 1.0
  2149. return
  2150. end
  2151. end
  2152.  
  2153. function move(time)
  2154. local amplitude
  2155. local frequency
  2156.  
  2157. if (pose == "Jumping") then
  2158. moveJump()
  2159. return
  2160. end
  2161.  
  2162. if (pose == "FreeFall") then
  2163. moveFreeFall()
  2164. return
  2165. end
  2166.  
  2167. if (pose == "Seated") then
  2168. moveSit()
  2169. return
  2170. end
  2171.  
  2172. local climbFudge = 0
  2173.  
  2174. if (pose == "Running") then
  2175. RightShoulder.MaxVelocity = 0.15
  2176. LeftShoulder.MaxVelocity = 0.15
  2177. amplitude = 1
  2178. frequency = 9
  2179. elseif (pose == "Climbing") then
  2180. RightShoulder.MaxVelocity = 0.5
  2181. LeftShoulder.MaxVelocity = 0.5
  2182. amplitude = 1
  2183. frequency = 9
  2184. climbFudge = 3.14
  2185. else
  2186. amplitude = 0.1
  2187. frequency = 1
  2188. end
  2189.  
  2190. desiredAngle = amplitude * math.sin(time*frequency)
  2191.  
  2192. RightShoulder.DesiredAngle = desiredAngle + climbFudge
  2193. LeftShoulder.DesiredAngle = desiredAngle - climbFudge
  2194. RightHip.DesiredAngle = -desiredAngle
  2195. LeftHip.DesiredAngle = -desiredAngle
  2196.  
  2197.  
  2198. local tool = getTool()
  2199.  
  2200. if tool then
  2201.  
  2202. animStringValueObject = getToolAnim(tool)
  2203.  
  2204. if animStringValueObject then
  2205. toolAnim = animStringValueObject.Value
  2206. -- message recieved, delete StringValue
  2207. animStringValueObject.Parent = nil
  2208. toolAnimTime = time + .3
  2209. end
  2210.  
  2211. if time > toolAnimTime then
  2212. toolAnimTime = 0
  2213. toolAnim = "None"
  2214. end
  2215.  
  2216. animateTool()
  2217.  
  2218.  
  2219. else
  2220. toolAnim = "None"
  2221. toolAnimTime = 0
  2222. end
  2223. end
  2224.  
  2225.  
  2226. -- connect events
  2227.  
  2228. Humanoid.Died:connect(onDied)
  2229. Humanoid.Running:connect(onRunning)
  2230. Humanoid.Jumping:connect(onJumping)
  2231. Humanoid.Climbing:connect(onClimbing)
  2232. Humanoid.GettingUp:connect(onGettingUp)
  2233. Humanoid.FreeFalling:connect(onFreeFall)
  2234. Humanoid.FallingDown:connect(onFallingDown)
  2235. Humanoid.Seated:connect(onSeated)
  2236. Humanoid.PlatformStanding:connect(onPlatformStanding)
  2237.  
  2238. -- main program
  2239.  
  2240. local runService = game:service("RunService");
  2241.  
  2242. while Figure.Parent~=nil do
  2243. local _, time = wait(0.1)
  2244. move(time)
  2245. end
  2246.  
  2247. end))
  2248. Script140.Name = "Animate"
  2249. Script140.Parent = Model4
  2250. table.insert(cors,sandbox(Script140,function()
  2251. --Simple Easy Animations, credit to miked for the joint config.
  2252.  
  2253. miked=script.Parent
  2254.  
  2255. itlh=miked.Torso:findFirstChild("Left Hip")
  2256. itlh.Part0=miked.Torso
  2257. itlh.Part1=miked:findFirstChild("Left Leg")
  2258. --itlh.C0=CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2259.  
  2260. itrh=miked.Torso:findFirstChild("Right Hip")
  2261. itrh.Part0=miked.Torso
  2262. itrh.Part1=miked:findFirstChild("Right Leg")
  2263. --itrh.C0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2264.  
  2265. itls=miked.Torso:findFirstChild("Left Shoulder")
  2266. itls.Part1=miked.Torso
  2267. --itls.C0=CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2268. itls.Part0=miked:findFirstChild("Left Arm")
  2269.  
  2270. itrs=miked.Torso:findFirstChild("Right Shoulder")
  2271. itrs.Part1=miked.Torso
  2272. --itrs.C0=CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2273. itrs.Part0=miked:findFirstChild("Right Arm")
  2274.  
  2275.  
  2276. function waitForChild(parent, childName)
  2277. local child = parent:findFirstChild(childName)
  2278. if child then return child end
  2279. while true do
  2280. child = parent.ChildAdded:wait()
  2281. if child.Name==childName then return child end
  2282. end
  2283. end
  2284.  
  2285. -- ANIMATION
  2286.  
  2287. -- declarations
  2288.  
  2289. local Figure = script.Parent
  2290. local Torso = waitForChild(Figure, "Torso")
  2291. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  2292. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  2293. local RightHip = waitForChild(Torso, "Right Hip")
  2294. local LeftHip = waitForChild(Torso, "Left Hip")
  2295. local Neck = waitForChild(Torso, "Neck")
  2296. local Humanoid = waitForChild(Figure, "Humanoid")
  2297. local pose = "Standing"
  2298.  
  2299. local toolAnim = "None"
  2300. local toolAnimTime = 0
  2301.  
  2302. -- functions
  2303.  
  2304. function onRunning(speed)
  2305. if speed>0 then
  2306. pose = "Running"
  2307. else
  2308. pose = "Standing"
  2309. end
  2310. end
  2311.  
  2312. function onDied()
  2313. pose = "Dead"
  2314. end
  2315.  
  2316. function onJumping()
  2317. pose = "Jumping"
  2318. end
  2319.  
  2320. function onClimbing()
  2321. pose = "Climbing"
  2322. end
  2323.  
  2324. function onGettingUp()
  2325. pose = "GettingUp"
  2326. end
  2327.  
  2328. function onFreeFall()
  2329. pose = "FreeFall"
  2330. end
  2331.  
  2332. function onFallingDown()
  2333. pose = "FallingDown"
  2334. end
  2335.  
  2336. function onSeated()
  2337. pose = "Seated"
  2338. end
  2339.  
  2340. function onPlatformStanding()
  2341. pose = "PlatformStanding"
  2342. end
  2343.  
  2344. function moveJump()
  2345. RightShoulder.MaxVelocity = 0.5
  2346. LeftShoulder.MaxVelocity = 0.5
  2347. RightShoulder.DesiredAngle = 3.14
  2348. LeftShoulder.DesiredAngle = -3.14
  2349. RightHip.DesiredAngle = 0
  2350. LeftHip.DesiredAngle = 0
  2351. end
  2352.  
  2353.  
  2354. -- same as jump for now
  2355.  
  2356. function moveFreeFall()
  2357. RightShoulder.MaxVelocity = 0.5
  2358. LeftShoulder.MaxVelocity = 0.5
  2359. RightShoulder.DesiredAngle = 3.14
  2360. LeftShoulder.DesiredAngle = -3.14
  2361. RightHip.DesiredAngle = 0
  2362. LeftHip.DesiredAngle = 0
  2363. end
  2364.  
  2365. function moveSit()
  2366. RightShoulder.MaxVelocity = 0.15
  2367. LeftShoulder.MaxVelocity = 0.15
  2368. RightShoulder.DesiredAngle = 3.14 /2
  2369. LeftShoulder.DesiredAngle = -3.14 /2
  2370. RightHip.DesiredAngle = 3.14 /2
  2371. LeftHip.DesiredAngle = -3.14 /2
  2372. end
  2373.  
  2374. function getTool()
  2375. for _, kid in ipairs(Figure:GetChildren()) do
  2376. if kid.className == "Tool" then return kid end
  2377. end
  2378. return nil
  2379. end
  2380.  
  2381. function getToolAnim(tool)
  2382. for _, c in ipairs(tool:GetChildren()) do
  2383. if c.Name == "toolanim" and c.className == "StringValue" then
  2384. return c
  2385. end
  2386. end
  2387. return nil
  2388. end
  2389.  
  2390. function animateTool()
  2391.  
  2392. if (toolAnim == "None") then
  2393. RightShoulder.DesiredAngle = 1.57
  2394. return
  2395. end
  2396.  
  2397. if (toolAnim == "Slash") then
  2398. RightShoulder.MaxVelocity = 0.5
  2399. RightShoulder.DesiredAngle = 0
  2400. return
  2401. end
  2402.  
  2403. if (toolAnim == "Lunge") then
  2404. RightShoulder.MaxVelocity = 0.5
  2405. LeftShoulder.MaxVelocity = 0.5
  2406. RightHip.MaxVelocity = 0.5
  2407. LeftHip.MaxVelocity = 0.5
  2408. RightShoulder.DesiredAngle = 1.57
  2409. LeftShoulder.DesiredAngle = 1.0
  2410. RightHip.DesiredAngle = 1.57
  2411. LeftHip.DesiredAngle = 1.0
  2412. return
  2413. end
  2414. end
  2415.  
  2416. function move(time)
  2417. local amplitude
  2418. local frequency
  2419.  
  2420. if (pose == "Jumping") then
  2421. moveJump()
  2422. return
  2423. end
  2424.  
  2425. if (pose == "FreeFall") then
  2426. moveFreeFall()
  2427. return
  2428. end
  2429.  
  2430. if (pose == "Seated") then
  2431. moveSit()
  2432. return
  2433. end
  2434.  
  2435. local climbFudge = 0
  2436.  
  2437. if (pose == "Running") then
  2438. RightShoulder.MaxVelocity = 0.15
  2439. LeftShoulder.MaxVelocity = 0.15
  2440. amplitude = 1
  2441. frequency = 9
  2442. elseif (pose == "Climbing") then
  2443. RightShoulder.MaxVelocity = 0.5
  2444. LeftShoulder.MaxVelocity = 0.5
  2445. amplitude = 1
  2446. frequency = 9
  2447. climbFudge = 3.14
  2448. else
  2449. amplitude = 0.1
  2450. frequency = 1
  2451. end
  2452.  
  2453. desiredAngle = amplitude * math.sin(time*frequency)
  2454.  
  2455. RightShoulder.DesiredAngle = desiredAngle + climbFudge
  2456. LeftShoulder.DesiredAngle = desiredAngle - climbFudge
  2457. RightHip.DesiredAngle = -desiredAngle
  2458. LeftHip.DesiredAngle = -desiredAngle
  2459.  
  2460.  
  2461. local tool = getTool()
  2462.  
  2463. if tool then
  2464.  
  2465. animStringValueObject = getToolAnim(tool)
  2466.  
  2467. if animStringValueObject then
  2468. toolAnim = animStringValueObject.Value
  2469. -- message recieved, delete StringValue
  2470. animStringValueObject.Parent = nil
  2471. toolAnimTime = time + .3
  2472. end
  2473.  
  2474. if time > toolAnimTime then
  2475. toolAnimTime = 0
  2476. toolAnim = "None"
  2477. end
  2478.  
  2479. animateTool()
  2480.  
  2481.  
  2482. else
  2483. toolAnim = "None"
  2484. toolAnimTime = 0
  2485. end
  2486. end
  2487.  
  2488.  
  2489. -- connect events
  2490.  
  2491. Humanoid.Died:connect(onDied)
  2492. Humanoid.Running:connect(onRunning)
  2493. Humanoid.Jumping:connect(onJumping)
  2494. Humanoid.Climbing:connect(onClimbing)
  2495. Humanoid.GettingUp:connect(onGettingUp)
  2496. Humanoid.FreeFalling:connect(onFreeFall)
  2497. Humanoid.FallingDown:connect(onFallingDown)
  2498. Humanoid.Seated:connect(onSeated)
  2499. Humanoid.PlatformStanding:connect(onPlatformStanding)
  2500.  
  2501. -- main program
  2502.  
  2503. local runService = game:service("RunService");
  2504.  
  2505. while Figure.Parent~=nil do
  2506. local _, time = wait(0.1)
  2507. move(time)
  2508. end
  2509.  
  2510. end))
  2511. Script141.Name = "Animate"
  2512. Script141.Parent = Model4
  2513. table.insert(cors,sandbox(Script141,function()
  2514. --Simple Easy Animations, credit to miked for the joint config.
  2515.  
  2516. miked=script.Parent
  2517.  
  2518. itlh=miked.Torso:findFirstChild("Left Hip")
  2519. itlh.Part0=miked.Torso
  2520. itlh.Part1=miked:findFirstChild("Left Leg")
  2521. --itlh.C0=CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2522.  
  2523. itrh=miked.Torso:findFirstChild("Right Hip")
  2524. itrh.Part0=miked.Torso
  2525. itrh.Part1=miked:findFirstChild("Right Leg")
  2526. --itrh.C0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2527.  
  2528. itls=miked.Torso:findFirstChild("Left Shoulder")
  2529. itls.Part1=miked.Torso
  2530. --itls.C0=CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2531. itls.Part0=miked:findFirstChild("Left Arm")
  2532.  
  2533. itrs=miked.Torso:findFirstChild("Right Shoulder")
  2534. itrs.Part1=miked.Torso
  2535. --itrs.C0=CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2536. itrs.Part0=miked:findFirstChild("Right Arm")
  2537.  
  2538.  
  2539. function waitForChild(parent, childName)
  2540. local child = parent:findFirstChild(childName)
  2541. if child then return child end
  2542. while true do
  2543. child = parent.ChildAdded:wait()
  2544. if child.Name==childName then return child end
  2545. end
  2546. end
  2547.  
  2548. -- ANIMATION
  2549.  
  2550. -- declarations
  2551.  
  2552. local Figure = script.Parent
  2553. local Torso = waitForChild(Figure, "Torso")
  2554. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  2555. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  2556. local RightHip = waitForChild(Torso, "Right Hip")
  2557. local LeftHip = waitForChild(Torso, "Left Hip")
  2558. local Neck = waitForChild(Torso, "Neck")
  2559. local Humanoid = waitForChild(Figure, "Humanoid")
  2560. local pose = "Standing"
  2561.  
  2562. local toolAnim = "None"
  2563. local toolAnimTime = 0
  2564.  
  2565. -- functions
  2566.  
  2567. function onRunning(speed)
  2568. if speed>0 then
  2569. pose = "Running"
  2570. else
  2571. pose = "Standing"
  2572. end
  2573. end
  2574.  
  2575. function onDied()
  2576. pose = "Dead"
  2577. end
  2578.  
  2579. function onJumping()
  2580. pose = "Jumping"
  2581. end
  2582.  
  2583. function onClimbing()
  2584. pose = "Climbing"
  2585. end
  2586.  
  2587. function onGettingUp()
  2588. pose = "GettingUp"
  2589. end
  2590.  
  2591. function onFreeFall()
  2592. pose = "FreeFall"
  2593. end
  2594.  
  2595. function onFallingDown()
  2596. pose = "FallingDown"
  2597. end
  2598.  
  2599. function onSeated()
  2600. pose = "Seated"
  2601. end
  2602.  
  2603. function onPlatformStanding()
  2604. pose = "PlatformStanding"
  2605. end
  2606.  
  2607. function moveJump()
  2608. RightShoulder.MaxVelocity = 0.5
  2609. LeftShoulder.MaxVelocity = 0.5
  2610. RightShoulder.DesiredAngle = 3.14
  2611. LeftShoulder.DesiredAngle = -3.14
  2612. RightHip.DesiredAngle = 0
  2613. LeftHip.DesiredAngle = 0
  2614. end
  2615.  
  2616.  
  2617. -- same as jump for now
  2618.  
  2619. function moveFreeFall()
  2620. RightShoulder.MaxVelocity = 0.5
  2621. LeftShoulder.MaxVelocity = 0.5
  2622. RightShoulder.DesiredAngle = 3.14
  2623. LeftShoulder.DesiredAngle = -3.14
  2624. RightHip.DesiredAngle = 0
  2625. LeftHip.DesiredAngle = 0
  2626. end
  2627.  
  2628. function moveSit()
  2629. RightShoulder.MaxVelocity = 0.15
  2630. LeftShoulder.MaxVelocity = 0.15
  2631. RightShoulder.DesiredAngle = 3.14 /2
  2632. LeftShoulder.DesiredAngle = -3.14 /2
  2633. RightHip.DesiredAngle = 3.14 /2
  2634. LeftHip.DesiredAngle = -3.14 /2
  2635. end
  2636.  
  2637. function getTool()
  2638. for _, kid in ipairs(Figure:GetChildren()) do
  2639. if kid.className == "Tool" then return kid end
  2640. end
  2641. return nil
  2642. end
  2643.  
  2644. function getToolAnim(tool)
  2645. for _, c in ipairs(tool:GetChildren()) do
  2646. if c.Name == "toolanim" and c.className == "StringValue" then
  2647. return c
  2648. end
  2649. end
  2650. return nil
  2651. end
  2652.  
  2653. function animateTool()
  2654.  
  2655. if (toolAnim == "None") then
  2656. RightShoulder.DesiredAngle = 1.57
  2657. return
  2658. end
  2659.  
  2660. if (toolAnim == "Slash") then
  2661. RightShoulder.MaxVelocity = 0.5
  2662. RightShoulder.DesiredAngle = 0
  2663. return
  2664. end
  2665.  
  2666. if (toolAnim == "Lunge") then
  2667. RightShoulder.MaxVelocity = 0.5
  2668. LeftShoulder.MaxVelocity = 0.5
  2669. RightHip.MaxVelocity = 0.5
  2670. LeftHip.MaxVelocity = 0.5
  2671. RightShoulder.DesiredAngle = 1.57
  2672. LeftShoulder.DesiredAngle = 1.0
  2673. RightHip.DesiredAngle = 1.57
  2674. LeftHip.DesiredAngle = 1.0
  2675. return
  2676. end
  2677. end
  2678.  
  2679. function move(time)
  2680. local amplitude
  2681. local frequency
  2682.  
  2683. if (pose == "Jumping") then
  2684. moveJump()
  2685. return
  2686. end
  2687.  
  2688. if (pose == "FreeFall") then
  2689. moveFreeFall()
  2690. return
  2691. end
  2692.  
  2693. if (pose == "Seated") then
  2694. moveSit()
  2695. return
  2696. end
  2697.  
  2698. local climbFudge = 0
  2699.  
  2700. if (pose == "Running") then
  2701. RightShoulder.MaxVelocity = 0.15
  2702. LeftShoulder.MaxVelocity = 0.15
  2703. amplitude = 1
  2704. frequency = 9
  2705. elseif (pose == "Climbing") then
  2706. RightShoulder.MaxVelocity = 0.5
  2707. LeftShoulder.MaxVelocity = 0.5
  2708. amplitude = 1
  2709. frequency = 9
  2710. climbFudge = 3.14
  2711. else
  2712. amplitude = 0.1
  2713. frequency = 1
  2714. end
  2715.  
  2716. desiredAngle = amplitude * math.sin(time*frequency)
  2717.  
  2718. RightShoulder.DesiredAngle = desiredAngle + climbFudge
  2719. LeftShoulder.DesiredAngle = desiredAngle - climbFudge
  2720. RightHip.DesiredAngle = -desiredAngle
  2721. LeftHip.DesiredAngle = -desiredAngle
  2722.  
  2723.  
  2724. local tool = getTool()
  2725.  
  2726. if tool then
  2727.  
  2728. animStringValueObject = getToolAnim(tool)
  2729.  
  2730. if animStringValueObject then
  2731. toolAnim = animStringValueObject.Value
  2732. -- message recieved, delete StringValue
  2733. animStringValueObject.Parent = nil
  2734. toolAnimTime = time + .3
  2735. end
  2736.  
  2737. if time > toolAnimTime then
  2738. toolAnimTime = 0
  2739. toolAnim = "None"
  2740. end
  2741.  
  2742. animateTool()
  2743.  
  2744.  
  2745. else
  2746. toolAnim = "None"
  2747. toolAnimTime = 0
  2748. end
  2749. end
  2750.  
  2751.  
  2752. -- connect events
  2753.  
  2754. Humanoid.Died:connect(onDied)
  2755. Humanoid.Running:connect(onRunning)
  2756. Humanoid.Jumping:connect(onJumping)
  2757. Humanoid.Climbing:connect(onClimbing)
  2758. Humanoid.GettingUp:connect(onGettingUp)
  2759. Humanoid.FreeFalling:connect(onFreeFall)
  2760. Humanoid.FallingDown:connect(onFallingDown)
  2761. Humanoid.Seated:connect(onSeated)
  2762. Humanoid.PlatformStanding:connect(onPlatformStanding)
  2763.  
  2764. -- main program
  2765.  
  2766. local runService = game:service("RunService");
  2767.  
  2768. while Figure.Parent~=nil do
  2769. local _, time = wait(0.1)
  2770. move(time)
  2771. end
  2772.  
  2773. end))
  2774. Script142.Name = "Animate"
  2775. Script142.Parent = Model4
  2776. table.insert(cors,sandbox(Script142,function()
  2777. --Simple Easy Animations, credit to miked for the joint config.
  2778.  
  2779. miked=script.Parent
  2780.  
  2781. itlh=miked.Torso:findFirstChild("Left Hip")
  2782. itlh.Part0=miked.Torso
  2783. itlh.Part1=miked:findFirstChild("Left Leg")
  2784. --itlh.C0=CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2785.  
  2786. itrh=miked.Torso:findFirstChild("Right Hip")
  2787. itrh.Part0=miked.Torso
  2788. itrh.Part1=miked:findFirstChild("Right Leg")
  2789. --itrh.C0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2790.  
  2791. itls=miked.Torso:findFirstChild("Left Shoulder")
  2792. itls.Part1=miked.Torso
  2793. --itls.C0=CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2794. itls.Part0=miked:findFirstChild("Left Arm")
  2795.  
  2796. itrs=miked.Torso:findFirstChild("Right Shoulder")
  2797. itrs.Part1=miked.Torso
  2798. --itrs.C0=CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2799. itrs.Part0=miked:findFirstChild("Right Arm")
  2800.  
  2801.  
  2802. function waitForChild(parent, childName)
  2803. local child = parent:findFirstChild(childName)
  2804. if child then return child end
  2805. while true do
  2806. child = parent.ChildAdded:wait()
  2807. if child.Name==childName then return child end
  2808. end
  2809. end
  2810.  
  2811. -- ANIMATION
  2812.  
  2813. -- declarations
  2814.  
  2815. local Figure = script.Parent
  2816. local Torso = waitForChild(Figure, "Torso")
  2817. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  2818. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  2819. local RightHip = waitForChild(Torso, "Right Hip")
  2820. local LeftHip = waitForChild(Torso, "Left Hip")
  2821. local Neck = waitForChild(Torso, "Neck")
  2822. local Humanoid = waitForChild(Figure, "Humanoid")
  2823. local pose = "Standing"
  2824.  
  2825. local toolAnim = "None"
  2826. local toolAnimTime = 0
  2827.  
  2828. -- functions
  2829.  
  2830. function onRunning(speed)
  2831. if speed>0 then
  2832. pose = "Running"
  2833. else
  2834. pose = "Standing"
  2835. end
  2836. end
  2837.  
  2838. function onDied()
  2839. pose = "Dead"
  2840. end
  2841.  
  2842. function onJumping()
  2843. pose = "Jumping"
  2844. end
  2845.  
  2846. function onClimbing()
  2847. pose = "Climbing"
  2848. end
  2849.  
  2850. function onGettingUp()
  2851. pose = "GettingUp"
  2852. end
  2853.  
  2854. function onFreeFall()
  2855. pose = "FreeFall"
  2856. end
  2857.  
  2858. function onFallingDown()
  2859. pose = "FallingDown"
  2860. end
  2861.  
  2862. function onSeated()
  2863. pose = "Seated"
  2864. end
  2865.  
  2866. function onPlatformStanding()
  2867. pose = "PlatformStanding"
  2868. end
  2869.  
  2870. function moveJump()
  2871. RightShoulder.MaxVelocity = 0.5
  2872. LeftShoulder.MaxVelocity = 0.5
  2873. RightShoulder.DesiredAngle = 3.14
  2874. LeftShoulder.DesiredAngle = -3.14
  2875. RightHip.DesiredAngle = 0
  2876. LeftHip.DesiredAngle = 0
  2877. end
  2878.  
  2879.  
  2880. -- same as jump for now
  2881.  
  2882. function moveFreeFall()
  2883. RightShoulder.MaxVelocity = 0.5
  2884. LeftShoulder.MaxVelocity = 0.5
  2885. RightShoulder.DesiredAngle = 3.14
  2886. LeftShoulder.DesiredAngle = -3.14
  2887. RightHip.DesiredAngle = 0
  2888. LeftHip.DesiredAngle = 0
  2889. end
  2890.  
  2891. function moveSit()
  2892. RightShoulder.MaxVelocity = 0.15
  2893. LeftShoulder.MaxVelocity = 0.15
  2894. RightShoulder.DesiredAngle = 3.14 /2
  2895. LeftShoulder.DesiredAngle = -3.14 /2
  2896. RightHip.DesiredAngle = 3.14 /2
  2897. LeftHip.DesiredAngle = -3.14 /2
  2898. end
  2899.  
  2900. function getTool()
  2901. for _, kid in ipairs(Figure:GetChildren()) do
  2902. if kid.className == "Tool" then return kid end
  2903. end
  2904. return nil
  2905. end
  2906.  
  2907. function getToolAnim(tool)
  2908. for _, c in ipairs(tool:GetChildren()) do
  2909. if c.Name == "toolanim" and c.className == "StringValue" then
  2910. return c
  2911. end
  2912. end
  2913. return nil
  2914. end
  2915.  
  2916. function animateTool()
  2917.  
  2918. if (toolAnim == "None") then
  2919. RightShoulder.DesiredAngle = 1.57
  2920. return
  2921. end
  2922.  
  2923. if (toolAnim == "Slash") then
  2924. RightShoulder.MaxVelocity = 0.5
  2925. RightShoulder.DesiredAngle = 0
  2926. return
  2927. end
  2928.  
  2929. if (toolAnim == "Lunge") then
  2930. RightShoulder.MaxVelocity = 0.5
  2931. LeftShoulder.MaxVelocity = 0.5
  2932. RightHip.MaxVelocity = 0.5
  2933. LeftHip.MaxVelocity = 0.5
  2934. RightShoulder.DesiredAngle = 1.57
  2935. LeftShoulder.DesiredAngle = 1.0
  2936. RightHip.DesiredAngle = 1.57
  2937. LeftHip.DesiredAngle = 1.0
  2938. return
  2939. end
  2940. end
  2941.  
  2942. function move(time)
  2943. local amplitude
  2944. local frequency
  2945.  
  2946. if (pose == "Jumping") then
  2947. moveJump()
  2948. return
  2949. end
  2950.  
  2951. if (pose == "FreeFall") then
  2952. moveFreeFall()
  2953. return
  2954. end
  2955.  
  2956. if (pose == "Seated") then
  2957. moveSit()
  2958. return
  2959. end
  2960.  
  2961. local climbFudge = 0
  2962.  
  2963. if (pose == "Running") then
  2964. RightShoulder.MaxVelocity = 0.15
  2965. LeftShoulder.MaxVelocity = 0.15
  2966. amplitude = 1
  2967. frequency = 9
  2968. elseif (pose == "Climbing") then
  2969. RightShoulder.MaxVelocity = 0.5
  2970. LeftShoulder.MaxVelocity = 0.5
  2971. amplitude = 1
  2972. frequency = 9
  2973. climbFudge = 3.14
  2974. else
  2975. amplitude = 0.1
  2976. frequency = 1
  2977. end
  2978.  
  2979. desiredAngle = amplitude * math.sin(time*frequency)
  2980.  
  2981. RightShoulder.DesiredAngle = desiredAngle + climbFudge
  2982. LeftShoulder.DesiredAngle = desiredAngle - climbFudge
  2983. RightHip.DesiredAngle = -desiredAngle
  2984. LeftHip.DesiredAngle = -desiredAngle
  2985.  
  2986.  
  2987. local tool = getTool()
  2988.  
  2989. if tool then
  2990.  
  2991. animStringValueObject = getToolAnim(tool)
  2992.  
  2993. if animStringValueObject then
  2994. toolAnim = animStringValueObject.Value
  2995. -- message recieved, delete StringValue
  2996. animStringValueObject.Parent = nil
  2997. toolAnimTime = time + .3
  2998. end
  2999.  
  3000. if time > toolAnimTime then
  3001. toolAnimTime = 0
  3002. toolAnim = "None"
  3003. end
  3004.  
  3005. animateTool()
  3006.  
  3007.  
  3008. else
  3009. toolAnim = "None"
  3010. toolAnimTime = 0
  3011. end
  3012. end
  3013.  
  3014.  
  3015. -- connect events
  3016.  
  3017. Humanoid.Died:connect(onDied)
  3018. Humanoid.Running:connect(onRunning)
  3019. Humanoid.Jumping:connect(onJumping)
  3020. Humanoid.Climbing:connect(onClimbing)
  3021. Humanoid.GettingUp:connect(onGettingUp)
  3022. Humanoid.FreeFalling:connect(onFreeFall)
  3023. Humanoid.FallingDown:connect(onFallingDown)
  3024. Humanoid.Seated:connect(onSeated)
  3025. Humanoid.PlatformStanding:connect(onPlatformStanding)
  3026.  
  3027. -- main program
  3028.  
  3029. local runService = game:service("RunService");
  3030.  
  3031. while Figure.Parent~=nil do
  3032. local _, time = wait(0.1)
  3033. move(time)
  3034. end
  3035.  
  3036. end))
  3037. NumberValue143.Name = "Damage"
  3038. NumberValue143.Parent = Model4
  3039. NumberValue143.Value = 2
  3040. IntValue144.Name = "BotFriend"
  3041. IntValue144.Parent = Model4
  3042. BoolValue145.Name = "Deathmatch"
  3043. BoolValue145.Parent = Model4
  3044. BoolValue145.Value = true
  3045. NumberValue146.Name = "Distance"
  3046. NumberValue146.Parent = Model4
  3047. NumberValue146.Value = 2000
  3048. Script147.Name = "FellCheck"
  3049. Script147.Parent = Model4
  3050. table.insert(cors,sandbox(Script147,function()
  3051. hits = script.Parent.hit --This keeps track of how much "hp" the tree has left
  3052. local newtree = script.Parent:clone() --for inserting a new tree later
  3053.  
  3054. while true do --infinite loop
  3055. if hits.Value < 1 then --if the tree has less than 1 "hp" then
  3056. script.Parent:BreakJoints() --make tree able to fall over.
  3057. wait(3) --wait a while
  3058. script.Parent:remove() --remove the tree
  3059. wait(10) --wait a while
  3060. newtree.Parent = game.Workspace --insert a new tree
  3061. newtree:MakeJoints() --make tree unable to fall over
  3062. end
  3063. wait(1) --wait a while before checking trees hp again
  3064. end
  3065.  
  3066. end))
  3067. Script148.Name = "Follow"
  3068. Script148.Parent = Model4
  3069. table.insert(cors,sandbox(Script148,function()
  3070. local larm = script.Parent:FindFirstChild("Left Arm")
  3071. local rarm = script.Parent:FindFirstChild("Right Arm")
  3072.  
  3073. function findNearestTorso(pos)
  3074. local list = game.Workspace:children()
  3075. local torso = nil
  3076. local dist = 14
  3077. local temp = nil
  3078. local human = nil
  3079. local temp2 = nil
  3080. for x = 1, #list do
  3081. temp2 = list[x]
  3082. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  3083. temp = temp2:findFirstChild("Torso")
  3084. human = temp2:findFirstChild("Humanoid")
  3085. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  3086. if (temp.Position - pos).magnitude < dist then
  3087. torso = temp
  3088. dist = (temp.Position - pos).magnitude
  3089. end
  3090. end
  3091. end
  3092. end
  3093. return torso
  3094. end
  3095.  
  3096. while true do
  3097. wait(0.1)
  3098. local target = findNearestTorso(script.Parent.Torso.Position)
  3099. if target ~= nil then
  3100. script.Parent.Humanoid:MoveTo(target.Position, target)
  3101. end
  3102. end
  3103. end))
  3104. Weld149.Name = "Virus"
  3105. Weld149.Parent = Script148
  3106. Script150.Name = "Follow"
  3107. Script150.Parent = Model4
  3108. table.insert(cors,sandbox(Script150,function()
  3109. local larm = script.Parent:FindFirstChild("Left Arm")
  3110. local rarm = script.Parent:FindFirstChild("Right Arm")
  3111.  
  3112. function findNearestTorso(pos)
  3113. local list = game.Workspace:children()
  3114. local torso = nil
  3115. local dist = 13
  3116. local temp = nil
  3117. local human = nil
  3118. local temp2 = nil
  3119. for x = 1, #list do
  3120. temp2 = list[x]
  3121. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  3122. temp = temp2:findFirstChild("Torso")
  3123. human = temp2:findFirstChild("Humanoid")
  3124. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  3125. if (temp.Position - pos).magnitude < dist then
  3126. torso = temp
  3127. dist = (temp.Position - pos).magnitude
  3128. end
  3129. end
  3130. end
  3131. end
  3132. return torso
  3133. end
  3134.  
  3135. while true do
  3136. wait(0.1)
  3137. local target = findNearestTorso(script.Parent.Torso.Position)
  3138. if target ~= nil then
  3139. script.Parent.Humanoid:MoveTo(target.Position, target)
  3140. end
  3141. end
  3142. end))
  3143. Weld151.Name = "Virus"
  3144. Weld151.Parent = Script150
  3145. Script152.Name = "Follow"
  3146. Script152.Parent = Model4
  3147. table.insert(cors,sandbox(Script152,function()
  3148. local larm = script.Parent:FindFirstChild("Left Arm")
  3149. local rarm = script.Parent:FindFirstChild("Right Arm")
  3150.  
  3151. function findNearestTorso(pos)
  3152. local list = game.Workspace:children()
  3153. local torso = nil
  3154. local dist = 13
  3155. local temp = nil
  3156. local human = nil
  3157. local temp2 = nil
  3158. for x = 1, #list do
  3159. temp2 = list[x]
  3160. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  3161. temp = temp2:findFirstChild("Torso")
  3162. human = temp2:findFirstChild("Humanoid")
  3163. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  3164. if (temp.Position - pos).magnitude < dist then
  3165. torso = temp
  3166. dist = (temp.Position - pos).magnitude
  3167. end
  3168. end
  3169. end
  3170. end
  3171. return torso
  3172. end
  3173.  
  3174. while true do
  3175. wait(0.1)
  3176. local target = findNearestTorso(script.Parent.Torso.Position)
  3177. if target ~= nil then
  3178. script.Parent.Humanoid:MoveTo(target.Position, target)
  3179. end
  3180. end
  3181. end))
  3182. Weld153.Name = "Virus"
  3183. Weld153.Parent = Script152
  3184. Script154.Name = "Follow"
  3185. Script154.Parent = Model4
  3186. table.insert(cors,sandbox(Script154,function()
  3187. local larm = script.Parent:FindFirstChild("Left Arm")
  3188. local rarm = script.Parent:FindFirstChild("Right Arm")
  3189.  
  3190. function findNearestTorso(pos)
  3191. local list = game.Workspace:children()
  3192. local torso = nil
  3193. local dist = 25
  3194. local temp = nil
  3195. local human = nil
  3196. local temp2 = nil
  3197. for x = 1, #list do
  3198. temp2 = list[x]
  3199. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  3200. temp = temp2:findFirstChild("Torso")
  3201. human = temp2:findFirstChild("Humanoid")
  3202. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  3203. if (temp.Position - pos).magnitude < dist then
  3204. torso = temp
  3205. dist = (temp.Position - pos).magnitude
  3206. end
  3207. end
  3208. end
  3209. end
  3210. return torso
  3211. end
  3212.  
  3213. while true do
  3214. wait(0.1)
  3215. local target = findNearestTorso(script.Parent.Torso.Position)
  3216. if target ~= nil then
  3217. script.Parent.Humanoid:MoveTo(target.Position, target)
  3218. end
  3219. end
  3220. end))
  3221. Weld155.Name = "Virus"
  3222. Weld155.Parent = Script154
  3223. Script156.Name = "Health"
  3224. Script156.Parent = Model4
  3225. table.insert(cors,sandbox(Script156,function()
  3226. script.Parent.Humanoid.Health = script.Parent.Humanoid.MaxHealth
  3227.  
  3228. while true do
  3229. wait(0.1)
  3230. if script.Parent.Humanoid.Health ~= script.Parent.Humanoid.MaxHealth then
  3231. script.Parent.Humanoid.Health = script.Parent.Humanoid.Health + 1
  3232. end
  3233. end
  3234.  
  3235. end))
  3236. Script157.Name = "Move"
  3237. Script157.Parent = Model4
  3238. table.insert(cors,sandbox(Script157,function()
  3239. local CurrentPart = nil
  3240. local MaxInc = 5
  3241.  
  3242. function onTouched(hit)
  3243. if hit.Parent == nil then
  3244. return
  3245. end
  3246.  
  3247. local humanoid = hit.Parent:findFirstChild("Humanoid")
  3248.  
  3249. if humanoid == nil then
  3250. CurrentPart = hit
  3251. end
  3252. end
  3253.  
  3254. function waitForChild(parent, childName)
  3255. local child = parent:findFirstChild(childName)
  3256.  
  3257. if child then
  3258. return child
  3259. end
  3260.  
  3261. while true do
  3262. print(childName)
  3263.  
  3264. child = parent.ChildAdded:wait()
  3265.  
  3266. if child.Name==childName then
  3267. return child
  3268. end
  3269. end
  3270. end
  3271.  
  3272. local Figure = script.Parent
  3273. local Humanoid = waitForChild(Figure, "Humanoid")
  3274. local Torso = waitForChild(Figure, "Torso")
  3275. local Left = waitForChild(Figure, "Left Leg")
  3276. local Right = waitForChild(Figure, "Right Leg")
  3277.  
  3278. Humanoid.Jump = true
  3279.  
  3280. Left.Touched:connect(onTouched)
  3281. Right.Touched:connect(onTouched)
  3282.  
  3283. while true do
  3284. wait(math.random(2, 6))
  3285.  
  3286. if CurrentPart ~= nil then
  3287. if math.random(1, 2) == 1 then
  3288. Humanoid.Jump = False
  3289. end
  3290.  
  3291. Humanoid:MoveTo(Torso.Position + Vector3.new(math.random(-MaxInc, MaxInc), 0, math.random(-MaxInc, MaxInc)), CurrentPart)
  3292. end
  3293. end
  3294. end))
  3295. Script158.Name = "Move"
  3296. Script158.Parent = Model4
  3297. table.insert(cors,sandbox(Script158,function()
  3298. local CurrentPart = nil
  3299. local MaxInc = 5
  3300.  
  3301. function onTouched(hit)
  3302. if hit.Parent == nil then
  3303. return
  3304. end
  3305.  
  3306. local humanoid = hit.Parent:findFirstChild("Humanoid")
  3307.  
  3308. if humanoid == nil then
  3309. CurrentPart = hit
  3310. end
  3311. end
  3312.  
  3313. function waitForChild(parent, childName)
  3314. local child = parent:findFirstChild(childName)
  3315.  
  3316. if child then
  3317. return child
  3318. end
  3319.  
  3320. while true do
  3321. print(childName)
  3322.  
  3323. child = parent.ChildAdded:wait()
  3324.  
  3325. if child.Name==childName then
  3326. return child
  3327. end
  3328. end
  3329. end
  3330.  
  3331. local Figure = script.Parent
  3332. local Humanoid = waitForChild(Figure, "Humanoid")
  3333. local Torso = waitForChild(Figure, "Torso")
  3334. local Left = waitForChild(Figure, "Left Leg")
  3335. local Right = waitForChild(Figure, "Right Leg")
  3336.  
  3337. Humanoid.Jump = true
  3338.  
  3339. Left.Touched:connect(onTouched)
  3340. Right.Touched:connect(onTouched)
  3341.  
  3342. while true do
  3343. wait(math.random(2, 6))
  3344.  
  3345. if CurrentPart ~= nil then
  3346. if math.random(1, 2) == 1 then
  3347. Humanoid.Jump = False
  3348. end
  3349.  
  3350. Humanoid:MoveTo(Torso.Position + Vector3.new(math.random(-MaxInc, MaxInc), 0, math.random(-MaxInc, MaxInc)), CurrentPart)
  3351. end
  3352. end
  3353. end))
  3354. Script159.Name = "Move"
  3355. Script159.Parent = Model4
  3356. table.insert(cors,sandbox(Script159,function()
  3357. local CurrentPart = nil
  3358. local MaxInc = 5
  3359.  
  3360. function onTouched(hit)
  3361. if hit.Parent == nil then
  3362. return
  3363. end
  3364.  
  3365. local humanoid = hit.Parent:findFirstChild("Humanoid")
  3366.  
  3367. if humanoid == nil then
  3368. CurrentPart = hit
  3369. end
  3370. end
  3371.  
  3372. function waitForChild(parent, childName)
  3373. local child = parent:findFirstChild(childName)
  3374.  
  3375. if child then
  3376. return child
  3377. end
  3378.  
  3379. while true do
  3380. print(childName)
  3381.  
  3382. child = parent.ChildAdded:wait()
  3383.  
  3384. if child.Name==childName then
  3385. return child
  3386. end
  3387. end
  3388. end
  3389.  
  3390. local Figure = script.Parent
  3391. local Humanoid = waitForChild(Figure, "Humanoid")
  3392. local Torso = waitForChild(Figure, "Torso")
  3393. local Left = waitForChild(Figure, "Left Leg")
  3394. local Right = waitForChild(Figure, "Right Leg")
  3395.  
  3396. Humanoid.Jump = true
  3397.  
  3398. Left.Touched:connect(onTouched)
  3399. Right.Touched:connect(onTouched)
  3400.  
  3401. while true do
  3402. wait(math.random(2, 6))
  3403.  
  3404. if CurrentPart ~= nil then
  3405. if math.random(1, 2) == 1 then
  3406. Humanoid.Jump = False
  3407. end
  3408.  
  3409. Humanoid:MoveTo(Torso.Position + Vector3.new(math.random(-MaxInc, MaxInc), 0, math.random(-MaxInc, MaxInc)), CurrentPart)
  3410. end
  3411. end
  3412. end))
  3413. Script160.Name = "Move"
  3414. Script160.Parent = Model4
  3415. table.insert(cors,sandbox(Script160,function()
  3416. local CurrentPart = nil
  3417. local MaxInc = 5
  3418.  
  3419. function onTouched(hit)
  3420. if hit.Parent == nil then
  3421. return
  3422. end
  3423.  
  3424. local humanoid = hit.Parent:findFirstChild("Humanoid")
  3425.  
  3426. if humanoid == nil then
  3427. CurrentPart = hit
  3428. end
  3429. end
  3430.  
  3431. function waitForChild(parent, childName)
  3432. local child = parent:findFirstChild(childName)
  3433.  
  3434. if child then
  3435. return child
  3436. end
  3437.  
  3438. while true do
  3439. print(childName)
  3440.  
  3441. child = parent.ChildAdded:wait()
  3442.  
  3443. if child.Name==childName then
  3444. return child
  3445. end
  3446. end
  3447. end
  3448.  
  3449. local Figure = script.Parent
  3450. local Humanoid = waitForChild(Figure, "Humanoid")
  3451. local Torso = waitForChild(Figure, "Torso")
  3452. local Left = waitForChild(Figure, "Left Leg")
  3453. local Right = waitForChild(Figure, "Right Leg")
  3454.  
  3455. Humanoid.Jump = true
  3456.  
  3457. Left.Touched:connect(onTouched)
  3458. Right.Touched:connect(onTouched)
  3459.  
  3460. while true do
  3461. wait(math.random(2, 6))
  3462.  
  3463. if CurrentPart ~= nil then
  3464. if math.random(1, 2) == 1 then
  3465. Humanoid.Jump = False
  3466. end
  3467.  
  3468. Humanoid:MoveTo(Torso.Position + Vector3.new(math.random(-MaxInc, MaxInc), 0, math.random(-MaxInc, MaxInc)), CurrentPart)
  3469. end
  3470. end
  3471. end))
  3472. Script161.Name = "Move"
  3473. Script161.Parent = Model4
  3474. table.insert(cors,sandbox(Script161,function()
  3475. local CurrentPart = nil
  3476. local MaxInc = 1000000
  3477.  
  3478. function onTouched(hit)
  3479. if hit.Parent == nil then
  3480. return
  3481. end
  3482.  
  3483. local humanoid = hit.Parent:findFirstChild("Humanoid")
  3484.  
  3485. if humanoid == nil then
  3486. CurrentPart = hit
  3487. end
  3488. end
  3489.  
  3490. function waitForChild(parent, childName)
  3491. local child = parent:findFirstChild(childName)
  3492.  
  3493. if child then
  3494. return child
  3495. end
  3496.  
  3497. while true do
  3498. print(childName)
  3499.  
  3500. child = parent.ChildAdded:wait()
  3501.  
  3502. if child.Name==childName then
  3503. return child
  3504. end
  3505. end
  3506. end
  3507.  
  3508. local Figure = script.Parent
  3509. local Humanoid = waitForChild(Figure, "Humanoid")
  3510. local Torso = waitForChild(Figure, "Torso")
  3511. local Left = waitForChild(Figure, "Left Leg")
  3512. local Right = waitForChild(Figure, "Right Leg")
  3513.  
  3514. Humanoid.Jump = true
  3515.  
  3516. Left.Touched:connect(onTouched)
  3517. Right.Touched:connect(onTouched)
  3518.  
  3519. while true do
  3520. wait(math.random(2, 6))
  3521.  
  3522. if CurrentPart ~= nil then
  3523. if math.random(1, 2) == 1 then
  3524. Humanoid.Jump = False
  3525. end
  3526.  
  3527. Humanoid:MoveTo(Torso.Position + Vector3.new(math.random(-MaxInc, MaxInc), 0, math.random(-MaxInc, MaxInc)), CurrentPart)
  3528. end
  3529. end
  3530. end))
  3531. Script162.Name = "Move"
  3532. Script162.Parent = Model4
  3533. table.insert(cors,sandbox(Script162,function()
  3534. local CurrentPart = nil
  3535. local MaxInc = 1000000
  3536.  
  3537. function onTouched(hit)
  3538. if hit.Parent == nil then
  3539. return
  3540. end
  3541.  
  3542. local humanoid = hit.Parent:findFirstChild("Humanoid")
  3543.  
  3544. if humanoid == nil then
  3545. CurrentPart = hit
  3546. end
  3547. end
  3548.  
  3549. function waitForChild(parent, childName)
  3550. local child = parent:findFirstChild(childName)
  3551.  
  3552. if child then
  3553. return child
  3554. end
  3555.  
  3556. while true do
  3557. print(childName)
  3558.  
  3559. child = parent.ChildAdded:wait()
  3560.  
  3561. if child.Name==childName then
  3562. return child
  3563. end
  3564. end
  3565. end
  3566.  
  3567. local Figure = script.Parent
  3568. local Humanoid = waitForChild(Figure, "Humanoid")
  3569. local Torso = waitForChild(Figure, "Torso")
  3570. local Left = waitForChild(Figure, "Left Leg")
  3571. local Right = waitForChild(Figure, "Right Leg")
  3572.  
  3573. Humanoid.Jump = true
  3574.  
  3575. Left.Touched:connect(onTouched)
  3576. Right.Touched:connect(onTouched)
  3577.  
  3578. while true do
  3579. wait(math.random(2, 6))
  3580.  
  3581. if CurrentPart ~= nil then
  3582. if math.random(1, 2) == 1 then
  3583. Humanoid.Jump = False
  3584. end
  3585.  
  3586. Humanoid:MoveTo(Torso.Position + Vector3.new(math.random(-MaxInc, MaxInc), 0, math.random(-MaxInc, MaxInc)), CurrentPart)
  3587. end
  3588. end
  3589. end))
  3590. Script163.Name = "Move"
  3591. Script163.Parent = Model4
  3592. table.insert(cors,sandbox(Script163,function()
  3593. local CurrentPart = nil
  3594. local MaxInc = 1000000
  3595.  
  3596. function onTouched(hit)
  3597. if hit.Parent == nil then
  3598. return
  3599. end
  3600.  
  3601. local humanoid = hit.Parent:findFirstChild("Humanoid")
  3602.  
  3603. if humanoid == nil then
  3604. CurrentPart = hit
  3605. end
  3606. end
  3607.  
  3608. function waitForChild(parent, childName)
  3609. local child = parent:findFirstChild(childName)
  3610.  
  3611. if child then
  3612. return child
  3613. end
  3614.  
  3615. while true do
  3616. print(childName)
  3617.  
  3618. child = parent.ChildAdded:wait()
  3619.  
  3620. if child.Name==childName then
  3621. return child
  3622. end
  3623. end
  3624. end
  3625.  
  3626. local Figure = script.Parent
  3627. local Humanoid = waitForChild(Figure, "Humanoid")
  3628. local Torso = waitForChild(Figure, "Torso")
  3629. local Left = waitForChild(Figure, "Left Leg")
  3630. local Right = waitForChild(Figure, "Right Leg")
  3631.  
  3632. Humanoid.Jump = true
  3633.  
  3634. Left.Touched:connect(onTouched)
  3635. Right.Touched:connect(onTouched)
  3636.  
  3637. while true do
  3638. wait(math.random(2, 6))
  3639.  
  3640. if CurrentPart ~= nil then
  3641. if math.random(1, 2) == 1 then
  3642. Humanoid.Jump = False
  3643. end
  3644.  
  3645. Humanoid:MoveTo(Torso.Position + Vector3.new(math.random(-MaxInc, MaxInc), 0, math.random(-MaxInc, MaxInc)), CurrentPart)
  3646. end
  3647. end
  3648. end))
  3649. Script164.Name = "README"
  3650. Script164.Parent = Model4
  3651. table.insert(cors,sandbox(Script164,function()
  3652. --Sword Bot v.2 Manual
  3653.  
  3654. --Sword Bot v.2 can be set on deathmatch mode, or can be set to simply target a single person without harming anthing else.
  3655.  
  3656. --Sword Bot v.2 CANNOT kill humanoids named Zombie!
  3657.  
  3658. --Toggle Deathmatch value on and off to change if the bot attacks all or just one person.
  3659.  
  3660. --Change Target to the name of the thing you want the bot to follow and blox.
  3661.  
  3662. --Change Target to nothing if you want it to just stand around.
  3663.  
  3664. --Change Distance to how far your bot will see
  3665.  
  3666. --Delete the value called BotFriend if you want your Bot to be killed by other bots in deathmatch.
  3667.  
  3668. --Copy and paste the value called BotFriend into whatever you do not want the bot to attack.
  3669.  
  3670. --Toggle Twirl on and off to change if the bot will twirl it's sword on touch, twirling does more damage, but also takes alot.
  3671.  
  3672. --And Damage is the amount of damage the sword will inflict.
  3673.  
  3674. --Coming Soon = Team Mode
  3675. end))
  3676. Script165.Name = "KO"
  3677. Script165.Parent = Model4
  3678. table.insert(cors,sandbox(Script165,function()
  3679. Humanoid = script.Parent.Humanoid -- Or Zombie Or Whatever
  3680.  
  3681. function PwntX_X()
  3682.  
  3683. local tag = Humanoid:findFirstChild("creator")
  3684.  
  3685. if tag ~= nil then
  3686.  
  3687. if tag.Value ~= nil then
  3688.  
  3689. local Leaderstats = tag.Value:findFirstChild("leaderstats")
  3690.  
  3691. if Leaderstats ~= nil then
  3692.  
  3693. Leaderstats.Xp.Value = Leaderstats.EXP.Value + 100
  3694.  
  3695. wait(0.1)
  3696.  
  3697. script:remove()
  3698.  
  3699. end
  3700.  
  3701. end
  3702.  
  3703. end
  3704.  
  3705. end
  3706.  
  3707. Humanoid.Died:connect(PwntX_X)
  3708. end))
  3709. IntValue166.Name = "Mode"
  3710. IntValue166.Parent = Model4
  3711. Script167.Name = "SwordCarrier"
  3712. Script167.Parent = Model4
  3713. table.insert(cors,sandbox(Script167,function()
  3714. possibleAnims = { "Lunge", "Slash", "Slash" }
  3715.  
  3716. ------------------
  3717. --SPAWNING--
  3718. ------------------
  3719. -- credit to miked
  3720. miked=script.Parent
  3721.  
  3722. itlh=miked.Torso:findFirstChild("Left Hip")
  3723. itlh.Part0=miked.Torso
  3724. itlh.Part1=miked:findFirstChild("Left Leg")
  3725. itlh.C0=CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  3726.  
  3727. itrh=miked.Torso:findFirstChild("Right Hip")
  3728. itrh.Part0=miked.Torso
  3729. itrh.Part1=miked:findFirstChild("Right Leg")
  3730. itrh.C0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  3731.  
  3732. itls=miked.Torso:findFirstChild("Left Shoulder")
  3733. itls.Part1=miked.Torso
  3734. itls.C0=CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  3735. itls.Part0=miked:findFirstChild("Left Arm")
  3736.  
  3737. itrs=miked.Torso:findFirstChild("Right Shoulder")
  3738. itrs.Part1=miked.Torso
  3739. itrs.C0=CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  3740. itrs.Part0=miked:findFirstChild("Right Arm")
  3741.  
  3742. miked.Head:makeJoints()
  3743. ------------------
  3744. ------------------
  3745.  
  3746.  
  3747. while true do
  3748. local p = game.Players:GetChildren()
  3749. for i = 1,#p do
  3750. if p[i].Character~=nil then
  3751. if p[i].Character:findFirstChild("Torso")~=nil then
  3752. if (p[i].Character.Torso.Position - script.Parent.Torso.Position).magnitude < 5 then
  3753. local anim = Instance.new("StringValue")
  3754. anim.Value = possibleAnims[math.random(1, #possibleAnims)]
  3755. anim.Name = "toolanim"
  3756. anim.Parent = script.Parent.LinkedSword
  3757. end
  3758. end
  3759. end
  3760. end
  3761. wait(0.5)
  3762. end
  3763.  
  3764. end))
  3765. Script168.Name = "Animate"
  3766. Script168.Parent = Model4
  3767. table.insert(cors,sandbox(Script168,function()
  3768. function waitForChild(parent, childName)
  3769. while true do
  3770. local child = parent:findFirstChild(childName)
  3771. if child then
  3772. return child
  3773. end
  3774. parent.ChildAdded:wait()
  3775. end
  3776. end
  3777. local Figure = script.Parent
  3778. local Torso = waitForChild(Figure, "Torso")
  3779. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  3780. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  3781. local RightHip = waitForChild(Torso, "Right Hip")
  3782. local LeftHip = waitForChild(Torso, "Left Hip")
  3783. local Neck = waitForChild(Torso, "Neck")
  3784. local Humanoid = waitForChild(Figure, "Enemy")
  3785. local pose = "Standing"
  3786. local toolAnim = "None"
  3787. local toolAnimTime = 0
  3788. local isSeated = false
  3789. function onRunning(speed)
  3790. if isSeated then return end
  3791. if speed>0 then
  3792. pose = "Running"
  3793. else
  3794. pose = "Standing"
  3795. end
  3796. end
  3797. function onDied()
  3798. pose = "Dead"
  3799. end
  3800. function onJumping()
  3801. isSeated = false
  3802. pose = "Jumping"
  3803. end
  3804. function onClimbing()
  3805. pose = "Climbing"
  3806. end
  3807. function onGettingUp()
  3808. pose = "GettingUp"
  3809. end
  3810. function onFreeFall()
  3811. pose = "FreeFall"
  3812. end
  3813. function onFallingDown()
  3814. pose = "FallingDown"
  3815. end
  3816. function onSeated()
  3817. isSeated = true
  3818. pose = "Seated"
  3819. print("Seated")
  3820. end
  3821. function moveJump()
  3822. RightShoulder.MaxVelocity = 0.5
  3823. LeftShoulder.MaxVelocity = 0.5
  3824. RightShoulder.DesiredAngle = 3.14
  3825. LeftShoulder.DesiredAngle = -3.14
  3826. RightHip.DesiredAngle = 0
  3827. LeftHip.DesiredAngle = 0
  3828. end
  3829. function moveFreeFall()
  3830. RightShoulder.MaxVelocity = 0.5
  3831. LeftShoulder.MaxVelocity = 0.5
  3832. RightShoulder.DesiredAngle = 1
  3833. LeftShoulder.DesiredAngle = -1
  3834. RightHip.DesiredAngle = 0
  3835. LeftHip.DesiredAngle = 0
  3836. end
  3837. function moveClimb()
  3838. RightShoulder.MaxVelocity = 0.5
  3839. LeftShoulder.MaxVelocity = 0.5
  3840. RightShoulder.DesiredAngle = -3.14
  3841. LeftShoulder.DesiredAngle = 3.14
  3842. RightHip.DesiredAngle = 0
  3843. LeftHip.DesiredAngle = 0
  3844. end
  3845. function moveSit()
  3846. print("Move Sit")
  3847. RightShoulder.MaxVelocity = 0.15
  3848. LeftShoulder.MaxVelocity = 0.15
  3849. RightShoulder.DesiredAngle = 3.14 /2
  3850. LeftShoulder.DesiredAngle = -3.14 /2
  3851. RightHip.DesiredAngle = 3.14 /2
  3852. LeftHip.DesiredAngle = -3.14 /2
  3853. end
  3854. function getTool()
  3855. kidTable = Figure:children()
  3856. if (kidTable ~= nil) then
  3857. numKids = #kidTable
  3858. for i=1,numKids do
  3859. if (kidTable[i].className == "Tool") then return kidTable[i] end
  3860. end
  3861. end
  3862. return nil
  3863. end
  3864. function getToolAnim(tool)
  3865. c = tool:children()
  3866. for i=1,#c do
  3867. if (c[i].Name == "toolanim" and c[i].className == "StringValue") then
  3868. return c[i]
  3869. end
  3870. end
  3871. return nil
  3872. end
  3873. function animateTool()
  3874. if (toolAnim == "None") then
  3875. RightShoulder.DesiredAngle = 1.57
  3876. return
  3877. end
  3878. if (toolAnim == "Slash") then
  3879. script.Parent.LinkedSword.Handle.Slash:Play()
  3880. RightShoulder.MaxVelocity = 0.5
  3881. RightShoulder.DesiredAngle = 0
  3882. return
  3883. end
  3884. if (toolAnim == "Lunge") then
  3885. RightShoulder.MaxVelocity = 0.5
  3886. LeftShoulder.MaxVelocity = 0.5
  3887. RightHip.MaxVelocity = 0.5
  3888. LeftHip.MaxVelocity = 0.5
  3889. RightShoulder.DesiredAngle = 1.57
  3890. LeftShoulder.DesiredAngle = 1.0
  3891. RightHip.DesiredAngle = 1.57
  3892. LeftHip.DesiredAngle = 1.0
  3893. return
  3894. end
  3895. end
  3896. function move(time)
  3897. local amplitude
  3898. local frequency
  3899. if (pose == "Jumping") then
  3900. moveJump()
  3901. return
  3902. end
  3903. if (pose == "FreeFall") then
  3904. moveFreeFall()
  3905. return
  3906. end
  3907. if (pose == "Climbing") then
  3908. moveClimb()
  3909. return
  3910. end
  3911. if (pose == "Seated") then
  3912. moveSit()
  3913. return
  3914. end
  3915. RightShoulder.MaxVelocity = 0.15
  3916. LeftShoulder.MaxVelocity = 0.15
  3917. if (pose == "Running") then
  3918. amplitude = 1
  3919. frequency = 9
  3920. else
  3921. amplitude = 0.1
  3922. frequency = 1
  3923. end
  3924. desiredAngle = amplitude * math.sin(time*frequency)
  3925. RightShoulder.DesiredAngle = desiredAngle
  3926. LeftShoulder.DesiredAngle = desiredAngle
  3927. RightHip.DesiredAngle = -desiredAngle
  3928. LeftHip.DesiredAngle = -desiredAngle
  3929. local tool = getTool()
  3930. if tool ~= nil then
  3931. animStringValueObject = getToolAnim(tool)
  3932. if animStringValueObject ~= nil then
  3933. toolAnim = animStringValueObject.Value
  3934. animStringValueObject.Parent = nil
  3935. toolAnimTime = time + .3
  3936. end
  3937. if time > toolAnimTime then
  3938. toolAnimTime = 0
  3939. toolAnim = "None"
  3940. end
  3941. animateTool()
  3942. else
  3943. toolAnim = "None"
  3944. toolAnimTime = 0
  3945. end
  3946. end
  3947. Humanoid.Died:connect(onDied)
  3948. Humanoid.Running:connect(onRunning)
  3949. Humanoid.Jumping:connect(onJumping)
  3950. Humanoid.Climbing:connect(onClimbing)
  3951. Humanoid.GettingUp:connect(onGettingUp)
  3952. Humanoid.FreeFalling:connect(onFreeFall)
  3953. Humanoid.FallingDown:connect(onFallingDown)
  3954. Humanoid.Seated:connect(onSeated)
  3955. local nextTime = 0
  3956. local runService = game:service("RunService");
  3957. while Figure.Parent~=nil do
  3958. time = runService.Stepped:wait()
  3959. if time > nextTime then
  3960. move(time)
  3961. nextTime = time + 0.1
  3962. end
  3963. end
  3964. end))
  3965. Script169.Name = "Follow"
  3966. Script169.Parent = Model4
  3967. table.insert(cors,sandbox(Script169,function()
  3968. local larm = script.Parent:FindFirstChild("Left Arm")
  3969. local rarm = script.Parent:FindFirstChild("Right Arm")
  3970. function findNearestTorso(pos)
  3971. local list = game.Workspace:children()
  3972. local torso = nil
  3973. local dist = 15
  3974. local temp = nil
  3975. local human = nil
  3976. local temp2 = nil
  3977. for x = 1, #list do
  3978. temp2 = list[x]
  3979. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  3980. temp = temp2:findFirstChild("Torso")
  3981. human = temp2:findFirstChild("Humanoid")
  3982. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  3983. if (temp.Position - pos).magnitude < dist then
  3984. torso = temp
  3985. dist = (temp.Position - pos).magnitude
  3986. end
  3987. end
  3988. end
  3989. end
  3990. return torso
  3991. end
  3992. while true do
  3993. wait(0.1)
  3994. local target = findNearestTorso(script.Parent.Torso.Position)
  3995. if target ~= nil then
  3996. script.Parent.Enemy:MoveTo(target.Position, target)
  3997. end
  3998. end
  3999. end))
  4000. Script170.Name = "Updater"
  4001. Script170.Parent = Model4
  4002. table.insert(cors,sandbox(Script170,function()
  4003. h = script.Parent
  4004. while true do
  4005. h.Name = h.EnemySettings.EnemyName.Value .. " LV." .. h.EnemySettings.EnemyLevel.Value .. " (" .. h.Enemy.Health .. "%)"
  4006. Wait(0)
  4007. end
  4008. end))
  4009. IntValue171.Name = "Mode"
  4010. IntValue171.Parent = Model4
  4011. Script172.Name = "Respawn"
  4012. Script172.Parent = Model4
  4013. table.insert(cors,sandbox(Script172,function()
  4014. name="Enemy"
  4015. robo=script.Parent:clone()
  4016. while true do
  4017. wait(script.Parent.EnemySettings.RespawnTime.Value)
  4018. if script.Parent.Enemy.Health<1 then
  4019. robot=robo:clone()
  4020. robot.Parent=script.Parent.Parent
  4021. robot:makeJoints()
  4022. script.Parent:Destroy()
  4023. end
  4024. end
  4025. end))
  4026. Script173.Name = "StatsGiven"
  4027. Script173.Parent = Model4
  4028. table.insert(cors,sandbox(Script173,function()
  4029. local Humanoid = script.Parent.Enemy
  4030. local max1 = script.Parent.EnemySettings.MaxGOLD.Value
  4031. local max2 = script.Parent.EnemySettings.MaxXP.Value
  4032. local min1 = script.Parent.EnemySettings.MinGOLD.Value
  4033. local min2 = script.Parent.EnemySettings.MinXP.Value
  4034. function PwntX_X()
  4035. local tag = Humanoid:findFirstChild("creator")
  4036. if tag ~= nil then
  4037. if tag.Value ~= nil then
  4038. local Leaderstats = tag.Value:findFirstChild("leaderstats")
  4039. if Leaderstats ~= nil then
  4040. Leaderstats.GOLD.Value = Leaderstats.GOLD.Value + math.random(min1,max1)
  4041. Leaderstats.XP.Value = Leaderstats.XP.Value + math.random(min2,max2)
  4042. script:Destroy()
  4043. end
  4044. end
  4045. end
  4046. end
  4047. Humanoid.Died:connect(PwntX_X)
  4048. end))
  4049. Script174.Name = "SwordCarrier"
  4050. Script174.Parent = Model4
  4051. table.insert(cors,sandbox(Script174,function()
  4052. possibleAnims = { "Lunge", "Slash", "Slash" }
  4053. miked=script.Parent
  4054. itlh=miked.Torso:findFirstChild("Left Hip")
  4055. itlh.Part0=miked.Torso
  4056. itlh.Part1=miked:findFirstChild("Left Leg")
  4057. itlh.C0=CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  4058. itrh=miked.Torso:findFirstChild("Right Hip")
  4059. itrh.Part0=miked.Torso
  4060. itrh.Part1=miked:findFirstChild("Right Leg")
  4061. itrh.C0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  4062. itls=miked.Torso:findFirstChild("Left Shoulder")
  4063. itls.Part1=miked.Torso
  4064. itls.C0=CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  4065. itls.Part0=miked:findFirstChild("Left Arm")
  4066. itrs=miked.Torso:findFirstChild("Right Shoulder")
  4067. itrs.Part1=miked.Torso
  4068. itrs.C0=CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  4069. itrs.Part0=miked:findFirstChild("Right Arm")
  4070. miked.Head:makeJoints()
  4071. while true do
  4072. local p = game.Players:GetChildren()
  4073. for i = 1,#p do
  4074. if p[i].Character~=nil then
  4075. if p[i].Character:findFirstChild("Torso")~=nil then
  4076. if (p[i].Character.Torso.Position - script.Parent.Torso.Position).magnitude < 5 then
  4077. local anim = Instance.new("StringValue")
  4078. anim.Value = possibleAnims[math.random(1, #possibleAnims)]
  4079. anim.Name = "toolanim"
  4080. anim.Parent = script.Parent.LinkedSword
  4081. end
  4082. end
  4083. end
  4084. end
  4085. wait(0.5)
  4086. end
  4087. end))
  4088. for i,v in pairs(mas:GetChildren()) do
  4089. v.Parent = workspace
  4090. pcall(function() v:MakeJoints() end)
  4091. end
  4092. mas:Destroy()
  4093. for i,v in pairs(cors) do
  4094. spawn(function()
  4095. pcall(v)
  4096. end)
  4097. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement