sawgamer1

Untitled

Jun 27th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 67.41 KB | None | 0 0
  1. --Created with PenguinAnonymous's compiler
  2. --PenguinAnonymous is not responsible for damages caused to your game
  3. --This plugin does not remove things
  4. --PenguinAnonymous cannot be held resonsible for manual deletion for the purpose of testing
  5. --Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments
  6. --Thank you for using my plugin and enjoy :)
  7. --It is free to use
  8. --If you use this plugin to create your own, please give me credit
  9. --Z_V edited my plugin to look like his own and published it without giving me credit, and that makes me very angry
  10. --Errors: Attachment,MeshPart,Animator,Camera
  11. local runDummyScript = function(f,scri)
  12. local oldenv = getfenv(f)
  13. local newenv = setmetatable({}, {
  14. __index = function(_, k)
  15. if k:lower() == 'script' then
  16. return scri
  17. else
  18. return oldenv[k]
  19. end
  20. end
  21. })
  22. setfenv(f, newenv)
  23. ypcall(function() f() end)
  24. end
  25. cors = {}
  26. mas = Instance.new("Model",game:GetService("Lighting"))
  27. mas.Name = "CompiledModel"
  28. o1 = Instance.new("Model")
  29. o2 = Instance.new("Part")
  30. o3 = Instance.new("Decal")
  31. o4 = Instance.new("Motor6D")
  32. o5 = Instance.new("Motor6D")
  33. o6 = Instance.new("Motor6D")
  34. o7 = Instance.new("Motor6D")
  35. o8 = Instance.new("Motor6D")
  36. o18 = Instance.new("Part")
  37. o19 = Instance.new("Motor6D")
  38. o20 = Instance.new("Part")
  39. o22 = Instance.new("Part")
  40. o23 = Instance.new("SpecialMesh")
  41. o24 = Instance.new("Decal")
  42. o25 = Instance.new("ManualWeld")
  43. o26 = Instance.new("Sound")
  44. o27 = Instance.new("ParticleEmitter")
  45. o28 = Instance.new("ParticleEmitter")
  46. o33 = Instance.new("Model")
  47. o34 = Instance.new("Part")
  48. o35 = Instance.new("Part")
  49. o37 = Instance.new("Part")
  50. o38 = Instance.new("Motor6D")
  51. o40 = Instance.new("Part")
  52. o41 = Instance.new("Part")
  53. o43 = Instance.new("Part")
  54. o44 = Instance.new("SpecialMesh")
  55. o45 = Instance.new("Decal")
  56. o46 = Instance.new("ManualWeld")
  57. o51 = Instance.new("Part")
  58. o52 = Instance.new("Decal")
  59. o53 = Instance.new("Motor6D")
  60. o54 = Instance.new("Motor6D")
  61. o55 = Instance.new("Motor6D")
  62. o56 = Instance.new("Motor6D")
  63. o57 = Instance.new("Motor6D")
  64. o66 = Instance.new("Humanoid")
  65. o67 = Instance.new("Model")
  66. o68 = Instance.new("Model")
  67. o70 = Instance.new("BodyColors")
  68. o71 = Instance.new("Pants")
  69. o72 = Instance.new("CharacterMesh")
  70. o73 = Instance.new("CharacterMesh")
  71. o74 = Instance.new("CharacterMesh")
  72. o75 = Instance.new("CharacterMesh")
  73. o76 = Instance.new("CharacterMesh")
  74. o78 = Instance.new("Part")
  75. o80 = Instance.new("Part")
  76. o81 = Instance.new("Part")
  77. o82 = Instance.new("Humanoid")
  78. o83 = Instance.new("Model")
  79. o84 = Instance.new("Model")
  80. o86 = Instance.new("Script")
  81. o87 = Instance.new("BodyColors")
  82. o88 = Instance.new("Pants")
  83. o89 = Instance.new("Script")
  84. o90 = Instance.new("LocalScript")
  85. o91 = Instance.new("Script")
  86. o92 = Instance.new("Decal")
  87. o93 = Instance.new("CharacterMesh")
  88. o94 = Instance.new("CharacterMesh")
  89. o95 = Instance.new("CharacterMesh")
  90. o96 = Instance.new("CharacterMesh")
  91. o97 = Instance.new("CharacterMesh")
  92. o98 = Instance.new("Script")
  93. o99 = Instance.new("Script")
  94. o100 = Instance.new("StringValue")
  95. o101 = Instance.new("Animation")
  96. o102 = Instance.new("StringValue")
  97. o103 = Instance.new("Animation")
  98. o104 = Instance.new("StringValue")
  99. o105 = Instance.new("Animation")
  100. o106 = Instance.new("NumberValue")
  101. o107 = Instance.new("Animation")
  102. o108 = Instance.new("NumberValue")
  103. o109 = Instance.new("StringValue")
  104. o110 = Instance.new("Animation")
  105. o111 = Instance.new("StringValue")
  106. o112 = Instance.new("Animation")
  107. o113 = Instance.new("StringValue")
  108. o114 = Instance.new("Animation")
  109. o115 = Instance.new("StringValue")
  110. o116 = Instance.new("Animation")
  111. o117 = Instance.new("StringValue")
  112. o118 = Instance.new("Animation")
  113. o119 = Instance.new("Script")
  114. o1.Name = "Laina"
  115. o1.Parent = mas
  116. o1.PrimaryPart = o22
  117. o2.Name = "Torso"
  118. o2.Parent = o1
  119. o2.Material = Enum.Material.SmoothPlastic
  120. o2.BrickColor = BrickColor.new("Institutional white")
  121. o2.Position = Vector3.new(27.5499992, 5.16122484, 17.1499901)
  122. o2.CanCollide = false
  123. o2.Locked = true
  124. o2.Elasticity = 0
  125. o2.FormFactor = Enum.FormFactor.Symmetric
  126. o2.Friction = 2
  127. o2.Size = Vector3.new(2, 2, 1)
  128. o2.CFrame = CFrame.new(27.5499992, 5.16122484, 17.1499901, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  129. o2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  130. o2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  131. o2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  132. o2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  133. o2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  134. o2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  135. o2.Color = Color3.new(0.972549, 0.972549, 0.972549)
  136. o2.Position = Vector3.new(27.5499992, 5.16122484, 17.1499901)
  137. o3.Name = "roblox"
  138. o3.Parent = o2
  139. o4.Name = "Right Shoulder"
  140. o4.Parent = o2
  141. o4.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  142. o4.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  143. o4.Part0 = o2
  144. o4.Part1 = o78
  145. o4.MaxVelocity = 0.10000000149012
  146. o5.Name = "Left Shoulder"
  147. o5.Parent = o2
  148. o5.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  149. o5.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  150. o5.Part0 = o2
  151. o5.Part1 = o20
  152. o5.MaxVelocity = 0.10000000149012
  153. o6.Name = "Right Hip"
  154. o6.Parent = o2
  155. o6.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  156. o6.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  157. o6.Part0 = o2
  158. o6.Part1 = o80
  159. o6.MaxVelocity = 0.10000000149012
  160. o7.Name = "Left Hip"
  161. o7.Parent = o2
  162. o7.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  163. o7.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  164. o7.Part0 = o2
  165. o7.Part1 = o81
  166. o7.MaxVelocity = 0.10000000149012
  167. o8.Name = "Neck"
  168. o8.Parent = o2
  169. o8.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  170. o8.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  171. o8.Part0 = o2
  172. o8.Part1 = o22
  173. o8.MaxVelocity = 0.10000000149012
  174. o18.Name = "HumanoidRootPart"
  175. o18.Parent = o1
  176. o18.Material = Enum.Material.SmoothPlastic
  177. o18.Transparency = 1
  178. o18.Position = Vector3.new(27.5499992, 5.16122484, 17.1499901)
  179. o18.CanCollide = false
  180. o18.Locked = true
  181. o18.Elasticity = 0
  182. o18.FormFactor = Enum.FormFactor.Symmetric
  183. o18.Friction = 2
  184. o18.Size = Vector3.new(2, 2, 1)
  185. o18.CFrame = CFrame.new(27.5499992, 5.16122484, 17.1499901, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  186. o18.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  187. o18.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  188. o18.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  189. o18.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  190. o18.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  191. o18.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  192. o18.Position = Vector3.new(27.5499992, 5.16122484, 17.1499901)
  193. o19.Name = "RootJoint"
  194. o19.Parent = o18
  195. o19.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  196. o19.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  197. o19.Part0 = o18
  198. o19.Part1 = o2
  199. o19.MaxVelocity = 0.10000000149012
  200. o20.Name = "Left Arm"
  201. o20.Parent = o1
  202. o20.Material = Enum.Material.SmoothPlastic
  203. o20.BrickColor = BrickColor.new("Institutional white")
  204. o20.Position = Vector3.new(26.0499992, 5.16122484, 17.1499901)
  205. o20.CanCollide = false
  206. o20.Locked = true
  207. o20.Elasticity = 0
  208. o20.FormFactor = Enum.FormFactor.Symmetric
  209. o20.Friction = 2
  210. o20.Size = Vector3.new(1, 2, 1)
  211. o20.CFrame = CFrame.new(26.0499992, 5.16122484, 17.1499901, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  212. o20.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  213. o20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  214. o20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  215. o20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  216. o20.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  217. o20.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  218. o20.Color = Color3.new(0.972549, 0.972549, 0.972549)
  219. o20.Position = Vector3.new(26.0499992, 5.16122484, 17.1499901)
  220. o22.Name = "Head"
  221. o22.Parent = o1
  222. o22.Material = Enum.Material.SmoothPlastic
  223. o22.BrickColor = BrickColor.new("Institutional white")
  224. o22.Position = Vector3.new(27.5499992, 6.66122484, 17.1499901)
  225. o22.CanCollide = false
  226. o22.Locked = true
  227. o22.Elasticity = 0
  228. o22.FormFactor = Enum.FormFactor.Symmetric
  229. o22.Friction = 2
  230. o22.Size = Vector3.new(2, 1, 1)
  231. o22.CFrame = CFrame.new(27.5499992, 6.66122484, 17.1499901, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  232. o22.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  233. o22.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  234. o22.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  235. o22.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  236. o22.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  237. o22.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  238. o22.Color = Color3.new(0.972549, 0.972549, 0.972549)
  239. o22.Position = Vector3.new(27.5499992, 6.66122484, 17.1499901)
  240. o23.Name = "3.0 Female Head Mesh"
  241. o23.Parent = o22
  242. o23.MeshId = "rbxassetid://82992952"
  243. o23.Scale = Vector3.new(1.25, 1.25, 1.25)
  244. o23.MeshType = Enum.MeshType.FileMesh
  245. o24.Name = "face"
  246. o24.Parent = o22
  247. o24.Texture = "rbxassetid://912935344"
  248. o25.Name = "HairWeld"
  249. o25.Parent = o22
  250. o25.C1 = CFrame.new(-0.0288670063, 0.110000014, 0.00816631317, 0.962253213, 0, 0.27215606, 0, 1, 0, -0.27215606, 0, 0.962253213)
  251. o25.Part0 = o22
  252. o25.Part1 = mas
  253. o26.Name = "PlasticCreak"
  254. o26.Parent = o22
  255. o26.SoundId = "rbxassetid://913163726"
  256. o26.Volume = 1
  257. o26.Looped = true
  258. o27.Name = "BrokenHearts"
  259. o27.Parent = o22
  260. o27.Size = NumberSequence.new(0,0.30000001192093,1,0.30000001192093,0.30000001192093,1,0.30000001192093,0.30000001192093,0.5,0.061728358268738,0.12345671653748,0.37037014961243,0.18518507480621,0.30000001192093,0)
  261. o27.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(0, 0, 0))
  262. o27.Enabled = false
  263. o27.Texture = "rbxassetid://912982766"
  264. o27.Acceleration = Vector3.new(0, -10, 0)
  265. o27.Lifetime = NumberRange.new(1.5,1.5)
  266. o27.Rate = 10
  267. o27.RotSpeed = NumberRange.new(-100,100)
  268. o27.VelocitySpread = -99999
  269. o28.Name = "Hearts"
  270. o28.Parent = o22
  271. o28.Size = NumberSequence.new(0,0.30000001192093,1,0.30000001192093,0.30000001192093,1,0.30000001192093,0.30000001192093,0.5,0.061728358268738,0.12345671653748,0.37037014961243,0.18518507480621,0.30000001192093,0)
  272. o28.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(1, 0, 0))
  273. o28.Enabled = false
  274. o28.Texture = "rbxassetid://912982665"
  275. o28.Acceleration = Vector3.new(0, -2, 0)
  276. o28.Lifetime = NumberRange.new(2,2)
  277. o28.Rate = 10
  278. o28.RotSpeed = NumberRange.new(-100,100)
  279. o28.VelocitySpread = -99999
  280. o33.Name = "Thumbnail"
  281. o33.Parent = o1
  282. o33.PrimaryPart = o43
  283. o34.Name = "Right Leg"
  284. o34.Parent = o33
  285. o34.Material = Enum.Material.SmoothPlastic
  286. o34.BrickColor = BrickColor.new("Institutional white")
  287. o34.Position = Vector3.new(28.2116528, 3.08001709, 27.4290524)
  288. o34.Rotation = Vector3.new(-0.529999971, 26.9699993, 8.67000008)
  289. o34.Anchored = true
  290. o34.CanCollide = false
  291. o34.Locked = true
  292. o34.Elasticity = 0
  293. o34.FormFactor = Enum.FormFactor.Symmetric
  294. o34.Friction = 2
  295. o34.Size = Vector3.new(1, 2, 1)
  296. o34.CFrame = CFrame.new(28.2116528, 3.08001709, 27.4290524, 0.881080627, -0.134276569, 0.45350498, 0.146537408, 0.989171326, 0.00818353891, -0.449692965, 0.05924505, 0.891216159)
  297. o34.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  298. o34.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  299. o34.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  300. o34.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  301. o34.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  302. o34.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  303. o34.Color = Color3.new(0.972549, 0.972549, 0.972549)
  304. o34.Position = Vector3.new(28.2116528, 3.08001709, 27.4290524)
  305. o35.Name = "Right Arm"
  306. o35.Parent = o33
  307. o35.Material = Enum.Material.SmoothPlastic
  308. o35.BrickColor = BrickColor.new("Institutional white")
  309. o35.Position = Vector3.new(28.7849979, 4.68301678, 27.3934078)
  310. o35.Rotation = Vector3.new(-19, 2.5, -30.7099991)
  311. o35.Anchored = true
  312. o35.CanCollide = false
  313. o35.Locked = true
  314. o35.Elasticity = 0
  315. o35.FormFactor = Enum.FormFactor.Symmetric
  316. o35.Friction = 2
  317. o35.Size = Vector3.new(1, 2, 1)
  318. o35.CFrame = CFrame.new(28.7849979, 4.68301678, 27.3934078, 0.858982503, 0.510150313, 0.0435399301, -0.494998544, 0.805707932, 0.325286269, 0.130864426, -0.300967425, 0.944612682)
  319. o35.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  320. o35.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  321. o35.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  322. o35.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  323. o35.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  324. o35.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  325. o35.Color = Color3.new(0.972549, 0.972549, 0.972549)
  326. o35.Position = Vector3.new(28.7849979, 4.68301678, 27.3934078)
  327. o37.Name = "HumanoidRootPart"
  328. o37.Parent = o33
  329. o37.Material = Enum.Material.SmoothPlastic
  330. o37.Transparency = 1
  331. o37.Position = Vector3.new(27.5499992, 5.16122484, 27.1499996)
  332. o37.Anchored = true
  333. o37.CanCollide = false
  334. o37.Locked = true
  335. o37.Elasticity = 0
  336. o37.FormFactor = Enum.FormFactor.Symmetric
  337. o37.Friction = 2
  338. o37.Size = Vector3.new(2, 2, 1)
  339. o37.CFrame = CFrame.new(27.5499992, 5.16122484, 27.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  340. o37.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  341. o37.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  342. o37.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  343. o37.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  344. o37.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  345. o37.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  346. o37.Position = Vector3.new(27.5499992, 5.16122484, 27.1499996)
  347. o38.Name = "RootJoint"
  348. o38.Parent = o37
  349. o38.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  350. o38.C1 = CFrame.new(0, 0.239140987, -0.0823602676, -1, 0, 0, 0, -0.282294095, 0.959327936, 0, 0.959327936, 0.282294095)
  351. o38.Part0 = o37
  352. o38.Part1 = o51
  353. o38.MaxVelocity = 0.10000000149012
  354. o40.Name = "Left Leg"
  355. o40.Parent = o33
  356. o40.Material = Enum.Material.SmoothPlastic
  357. o40.BrickColor = BrickColor.new("Institutional white")
  358. o40.Position = Vector3.new(26.883152, 3.05269909, 27.4112587)
  359. o40.Rotation = Vector3.new(-0.829999983, -34.829998, -7.4199996)
  360. o40.Anchored = true
  361. o40.CanCollide = false
  362. o40.Locked = true
  363. o40.Elasticity = 0
  364. o40.FormFactor = Enum.FormFactor.Symmetric
  365. o40.Friction = 2
  366. o40.Size = Vector3.new(1, 2, 1)
  367. o40.CFrame = CFrame.new(26.883152, 3.05269909, 27.4112587, 0.814022481, 0.105956487, -0.571087241, -0.120899379, 0.992594302, 0.0118318051, 0.568111598, 0.0594127476, 0.820804119)
  368. o40.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  369. o40.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  370. o40.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  371. o40.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  372. o40.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  373. o40.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  374. o40.Color = Color3.new(0.972549, 0.972549, 0.972549)
  375. o40.Position = Vector3.new(26.883152, 3.05269909, 27.4112587)
  376. o41.Name = "Left Arm"
  377. o41.Parent = o33
  378. o41.Material = Enum.Material.SmoothPlastic
  379. o41.BrickColor = BrickColor.new("Institutional white")
  380. o41.Position = Vector3.new(26.4211025, 4.70784283, 27.7788887)
  381. o41.Rotation = Vector3.new(-18.9099998, 35.6499977, 27.2199993)
  382. o41.Anchored = true
  383. o41.CanCollide = false
  384. o41.Locked = true
  385. o41.Elasticity = 0
  386. o41.FormFactor = Enum.FormFactor.Symmetric
  387. o41.Friction = 2
  388. o41.Size = Vector3.new(1, 2, 1)
  389. o41.CFrame = CFrame.new(26.4211025, 4.70784283, 27.7788887, 0.722645879, -0.371694505, 0.58277452, 0.264717102, 0.92765379, 0.26340729, -0.638520062, -0.0360797942, 0.768759072)
  390. o41.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  391. o41.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  392. o41.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  393. o41.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  394. o41.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  395. o41.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  396. o41.Color = Color3.new(0.972549, 0.972549, 0.972549)
  397. o41.Position = Vector3.new(26.4211025, 4.70784283, 27.7788887)
  398. o43.Name = "Head"
  399. o43.Parent = o33
  400. o43.Material = Enum.Material.SmoothPlastic
  401. o43.BrickColor = BrickColor.new("Institutional white")
  402. o43.Position = Vector3.new(27.48563, 6.40946579, 26.9870529)
  403. o43.Rotation = Vector3.new(-19.2600002, 64.9399948, 17.6999989)
  404. o43.Anchored = true
  405. o43.CanCollide = false
  406. o43.Locked = true
  407. o43.Elasticity = 0
  408. o43.FormFactor = Enum.FormFactor.Symmetric
  409. o43.Friction = 2
  410. o43.Size = Vector3.new(2, 1, 1)
  411. o43.CFrame = CFrame.new(27.48563, 6.40946579, 26.9870529, 0.40345639, -0.128739178, 0.905896902, 0.00224637985, 0.990188837, 0.139717638, -0.914996147, -0.054335013, 0.399787188)
  412. o43.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  413. o43.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  414. o43.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  415. o43.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  416. o43.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  417. o43.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  418. o43.Color = Color3.new(0.972549, 0.972549, 0.972549)
  419. o43.Position = Vector3.new(27.48563, 6.40946579, 26.9870529)
  420. o44.Name = "3.0 Female Head Mesh"
  421. o44.Parent = o43
  422. o44.MeshId = "rbxassetid://82992952"
  423. o44.Scale = Vector3.new(1.25, 1.25, 1.25)
  424. o44.MeshType = Enum.MeshType.FileMesh
  425. o45.Name = "face"
  426. o45.Parent = o43
  427. o45.Texture = "rbxassetid://912935344"
  428. o46.Name = "HairWeld"
  429. o46.Parent = o43
  430. o46.C1 = CFrame.new(-0.0288670063, 0.110000014, 0.00816631317, 0.962253213, 0, 0.27215606, 0, 1, 0, -0.27215606, 0, 0.962253213)
  431. o46.Part0 = o43
  432. o46.Part1 = mas
  433. o51.Name = "Torso"
  434. o51.Parent = o33
  435. o51.Material = Enum.Material.SmoothPlastic
  436. o51.BrickColor = BrickColor.new("Institutional white")
  437. o51.Position = Vector3.new(27.5499992, 4.95506477, 27.2965145)
  438. o51.Rotation = Vector3.new(-16.3999996, 0, 0)
  439. o51.Anchored = true
  440. o51.CanCollide = false
  441. o51.Locked = true
  442. o51.Elasticity = 0
  443. o51.FormFactor = Enum.FormFactor.Symmetric
  444. o51.Friction = 2
  445. o51.Size = Vector3.new(2, 2, 1)
  446. o51.CFrame = CFrame.new(27.5499992, 4.95506477, 27.2965145, 1, 0, 0, 0, 0.959327936, 0.282294095, 0, -0.282294095, 0.959327936)
  447. o51.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  448. o51.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  449. o51.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  450. o51.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  451. o51.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  452. o51.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  453. o51.Color = Color3.new(0.972549, 0.972549, 0.972549)
  454. o51.Position = Vector3.new(27.5499992, 4.95506477, 27.2965145)
  455. o52.Name = "roblox"
  456. o52.Parent = o51
  457. o53.Name = "Right Shoulder"
  458. o53.Parent = o51
  459. o53.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  460. o53.C1 = CFrame.new(-0.605104446, 0.557415009, 0.00943374634, 0.0141932666, -0.511808157, 0.858982503, 0.0612798631, 0.857899427, 0.510150313, -0.998019695, 0.0453976318, 0.0435399301)
  461. o53.Part0 = o51
  462. o53.Part1 = o35
  463. o53.MaxVelocity = 0.10000000149012
  464. o54.Name = "Left Shoulder"
  465. o54.Parent = o51
  466. o54.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  467. o54.C1 = CFrame.new(0.683690548, 0.648880661, -0.212750435, -0.537822008, 0.434200943, -0.722645879, 0.227258816, 0.900109231, 0.371694505, 0.811850309, 0.0356778391, -0.58277452)
  468. o54.Part0 = o51
  469. o54.Part1 = o41
  470. o54.MaxVelocity = 0.10000000149012
  471. o55.Name = "Right Hip"
  472. o55.Parent = o51
  473. o55.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  474. o55.C1 = CFrame.new(0.364956856, 0.869245231, 0.294400215, 0.390036374, 0.26752308, 0.881080627, -0.336072654, 0.932215095, -0.134276569, -0.857278705, -0.24373436, 0.45350498)
  475. o55.Part0 = o51
  476. o55.Part1 = o34
  477. o55.MaxVelocity = 0.10000000149012
  478. o56.Name = "Left Hip"
  479. o56.Parent = o51
  480. o56.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  481. o56.C1 = CFrame.new(-0.290020466, 0.910706997, 0.338939667, 0.510876119, -0.276356697, -0.814022481, 0.337199807, 0.935451508, -0.105956487, 0.790760338, -0.220357567, 0.571087241)
  482. o56.Part0 = o51
  483. o56.Part1 = o40
  484. o56.MaxVelocity = 0.10000000149012
  485. o57.Name = "Neck"
  486. o57.Parent = o51
  487. o57.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  488. o57.C1 = CFrame.new(9.53674316e-07, -0.500000477, -9.53674316e-07, -0.40345639, -0.877147198, 0.260453016, 0.128739178, 0.227399379, 0.965254247, -0.905896902, 0.422968477, 0.0211774763)
  489. o57.Part0 = o51
  490. o57.Part1 = o43
  491. o57.MaxVelocity = 0.10000000149012
  492. o66.Name = "DisplayHumanoid"
  493. o66.Parent = o33
  494. o66.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  495. o66.HealthDisplayDistance = 0
  496. o66.NameDisplayDistance = 0
  497. o66.NameOcclusion = Enum.NameOcclusion.EnemyOcclusion
  498. o66.RightLeg = o34
  499. o66.LeftLeg = o40
  500. o66.Torso = o37
  501. o66.Health = inf
  502. o66.MaxHealth = inf
  503. o66.WalkSpeed = 0
  504. o67.Name = "Status"
  505. o67.Parent = o66
  506. o68.Name = "AvalibleSpawns"
  507. o68.Parent = o67
  508. o70.Parent = o33
  509. o70.HeadColor = BrickColor.new("Institutional white")
  510. o70.LeftArmColor = BrickColor.new("Institutional white")
  511. o70.LeftLegColor = BrickColor.new("Institutional white")
  512. o70.RightArmColor = BrickColor.new("Institutional white")
  513. o70.RightLegColor = BrickColor.new("Institutional white")
  514. o70.TorsoColor = BrickColor.new("Institutional white")
  515. o71.Name = "Dress"
  516. o71.Parent = o33
  517. o71.PantsTemplate = "rbxassetid://912935270"
  518. o72.Name = "3.0 Female Left Arm"
  519. o72.Parent = o33
  520. o72.MeshId = 83001137
  521. o72.BodyPart = Enum.BodyPart.LeftArm
  522. o73.Name = "3.0 Female Left Leg"
  523. o73.Parent = o33
  524. o73.MeshId = 81628361
  525. o73.BodyPart = Enum.BodyPart.LeftLeg
  526. o74.Name = "3.0 Female Right Arm"
  527. o74.Parent = o33
  528. o74.MeshId = 83001181
  529. o74.BodyPart = Enum.BodyPart.RightArm
  530. o75.Name = "3.0 Female Right Leg"
  531. o75.Parent = o33
  532. o75.MeshId = 81628308
  533. o75.BodyPart = Enum.BodyPart.RightLeg
  534. o76.Name = "3.0 Female Torso"
  535. o76.Parent = o33
  536. o76.MeshId = 82987757
  537. o76.BodyPart = Enum.BodyPart.Torso
  538. o78.Name = "Right Arm"
  539. o78.Parent = o1
  540. o78.Material = Enum.Material.SmoothPlastic
  541. o78.BrickColor = BrickColor.new("Institutional white")
  542. o78.Position = Vector3.new(29.0499992, 5.16122484, 17.1499901)
  543. o78.CanCollide = false
  544. o78.Locked = true
  545. o78.Elasticity = 0
  546. o78.FormFactor = Enum.FormFactor.Symmetric
  547. o78.Friction = 2
  548. o78.Size = Vector3.new(1, 2, 1)
  549. o78.CFrame = CFrame.new(29.0499992, 5.16122484, 17.1499901, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  550. o78.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  551. o78.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  552. o78.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  553. o78.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  554. o78.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  555. o78.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  556. o78.Color = Color3.new(0.972549, 0.972549, 0.972549)
  557. o78.Position = Vector3.new(29.0499992, 5.16122484, 17.1499901)
  558. o80.Name = "Right Leg"
  559. o80.Parent = o1
  560. o80.Material = Enum.Material.SmoothPlastic
  561. o80.BrickColor = BrickColor.new("Institutional white")
  562. o80.Position = Vector3.new(28.0499992, 3.16122484, 17.1499901)
  563. o80.CanCollide = false
  564. o80.Locked = true
  565. o80.Elasticity = 0
  566. o80.FormFactor = Enum.FormFactor.Symmetric
  567. o80.Friction = 2
  568. o80.Size = Vector3.new(1, 2, 1)
  569. o80.CFrame = CFrame.new(28.0499992, 3.16122484, 17.1499901, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  570. o80.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  571. o80.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  572. o80.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  573. o80.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  574. o80.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  575. o80.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  576. o80.Color = Color3.new(0.972549, 0.972549, 0.972549)
  577. o80.Position = Vector3.new(28.0499992, 3.16122484, 17.1499901)
  578. o81.Name = "Left Leg"
  579. o81.Parent = o1
  580. o81.Material = Enum.Material.SmoothPlastic
  581. o81.BrickColor = BrickColor.new("Institutional white")
  582. o81.Position = Vector3.new(27.0499992, 3.16122484, 17.1499901)
  583. o81.CanCollide = false
  584. o81.Locked = true
  585. o81.Elasticity = 0
  586. o81.FormFactor = Enum.FormFactor.Symmetric
  587. o81.Friction = 2
  588. o81.Size = Vector3.new(1, 2, 1)
  589. o81.CFrame = CFrame.new(27.0499992, 3.16122484, 17.1499901, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  590. o81.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  591. o81.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  592. o81.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  593. o81.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  594. o81.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  595. o81.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  596. o81.Color = Color3.new(0.972549, 0.972549, 0.972549)
  597. o81.Position = Vector3.new(27.0499992, 3.16122484, 17.1499901)
  598. o82.Name = "SeductiveWoman"
  599. o82.Parent = o1
  600. o82.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  601. o82.HealthDisplayDistance = 0
  602. o82.NameDisplayDistance = 0
  603. o82.NameOcclusion = Enum.NameOcclusion.EnemyOcclusion
  604. o82.RightLeg = o80
  605. o82.LeftLeg = o81
  606. o82.Torso = o18
  607. o82.Health = inf
  608. o82.MaxHealth = inf
  609. o82.WalkSpeed = 18
  610. o83.Name = "Status"
  611. o83.Parent = o82
  612. o84.Name = "AvalibleSpawns"
  613. o84.Parent = o83
  614. o86.Name = "Respawn"
  615. o86.Parent = o1
  616. table.insert(cors,coroutine.create(function()
  617. wait()
  618. runDummyScript(function()
  619. --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
  620. local PlayerSpawning=false; --[[ Change this to true if you want the NPC to spawn like a player, and change this to false if you want the NPC to spawn at it's current position. ]]--
  621. local AdvancedRespawnScript=script;
  622. repeat Wait(0)until script and script.Parent and script.Parent.ClassName=="Model";
  623. local Laina=AdvancedRespawnScript.Parent;
  624. if AdvancedRespawnScript and Laina and Laina:FindFirstChild("Thumbnail")then
  625. Laina:FindFirstChild("Thumbnail"):Destroy();
  626. end;
  627. local GameDerbis=Game:GetService("Debris");
  628. local LainaHumanoid;
  629. for _,Child in pairs(Laina:GetChildren())do
  630. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  631. LainaHumanoid=Child;
  632. end;
  633. end;
  634. local Respawndant=Laina:Clone();
  635. if PlayerSpawning then --[[ LOOK AT LINE: 2. ]]--
  636. coroutine.resume(coroutine.create(function()
  637. if Laina and LainaHumanoid and LainaHumanoid:FindFirstChild("Status")and not LainaHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns")then
  638. SpawnModel=Instance.new("Model");
  639. SpawnModel.Parent=LainaHumanoid.Status;
  640. SpawnModel.Name="AvalibleSpawns";
  641. else
  642. SpawnModel=LainaHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns");
  643. end;
  644. function FindSpawn(SearchValue)
  645. local PartsArchivable=SearchValue:GetChildren();
  646. for AreaSearch=1,#PartsArchivable do
  647. if PartsArchivable[AreaSearch].className=="SpawnLocation"then
  648. local PositionValue=Instance.new("Vector3Value",SpawnModel);
  649. PositionValue.Value=PartsArchivable[AreaSearch].Position;
  650. PositionValue.Name=PartsArchivable[AreaSearch].Duration;
  651. end;
  652. FindSpawn(PartsArchivable[AreaSearch]);
  653. end;
  654. end;
  655. FindSpawn(Game:GetService("Workspace"));
  656. local SpawnChilden=SpawnModel:GetChildren();
  657. if#SpawnChilden>0 then
  658. local SpawnItself=SpawnChilden[math.random(1,#SpawnChilden)];
  659. local RespawningForceField=Instance.new("ForceField");
  660. RespawningForceField.Parent=Laina;
  661. RespawningForceField.Name="SpawnForceField";
  662. GameDerbis:AddItem(RespawningForceField,SpawnItself.Name);
  663. Laina:MoveTo(SpawnItself.Value+Vector3.new(0,3.5,0));
  664. else
  665. if Laina:FindFirstChild("SpawnForceField")then
  666. Laina:FindFirstChild("SpawnForceField"):Destroy();
  667. end;
  668. Laina:MoveTo(Vector3.new(0,115,0));
  669. end;
  670. end));
  671. end;
  672. function Respawn()
  673. Wait(5);
  674. Respawndant.Parent=Laina.Parent;
  675. Respawndant:makeJoints();
  676. Respawndant:FindFirstChild("Head"):MakeJoints();
  677. Respawndant:FindFirstChild("Torso"):MakeJoints();
  678. Laina:remove();
  679. end;
  680. if AdvancedRespawnScript and Laina and LainaHumanoid then
  681. LainaHumanoid.Died:connect(Respawn);
  682. end;
  683. --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
  684. end,o86)
  685. end))
  686. o87.Parent = o1
  687. o87.HeadColor = BrickColor.new("Institutional white")
  688. o87.LeftArmColor = BrickColor.new("Institutional white")
  689. o87.LeftLegColor = BrickColor.new("Institutional white")
  690. o87.RightArmColor = BrickColor.new("Institutional white")
  691. o87.RightLegColor = BrickColor.new("Institutional white")
  692. o87.TorsoColor = BrickColor.new("Institutional white")
  693. o88.Name = "Dress"
  694. o88.Parent = o1
  695. o88.PantsTemplate = "rbxassetid://912935270"
  696. o89.Name = "LainaMain"
  697. o89.Parent = o1
  698. table.insert(cors,coroutine.create(function()
  699. wait()
  700. runDummyScript(function()
  701. --[[ By: Brutez. ]]--
  702. local LainaScript=script;
  703. repeat Wait(0)until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso");
  704. local Laina=LainaScript.Parent;
  705. local LainaHumanoid;
  706. for _,Child in pairs(Laina:GetChildren())do
  707. if Child and Child:IsA("Humanoid")and Child.Health~=0 then
  708. LainaHumanoid=Child;
  709. end;
  710. end;
  711. local LeftLegC0,RightLegC0,LeftArmC0,RightArmC0,HeadC0,LeftLegC02,RightLegC02=CFrame.new(-1,-1,0,0,0,-1,0,1,0,1,0,0),CFrame.new(1,-1,0,0,0,1,0,1,-0,-1,0,0),CFrame.new(-1,0.5,0,0,0,-1,0,1,0,1,0,0),CFrame.new(1,0.5,0,0,0,1,0,1,-0,-1,0,0),CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,-0),CFrame.new(-0.5,-1,0.5,0,0,-1,0,1,0,1,0,0),CFrame.new(0.5,-1,0.5,0,0,1,0,1,-0,-1,0,0);
  712. local LainaWeld;
  713. local LainaBodyGyro;
  714. RecreateThingies=function()
  715. LainaWeld=Instance.new("Weld");
  716. LainaWeld.Name="LainaWeld";
  717. LainaBodyGyro=Instance.new("BodyGyro");
  718. LainaBodyGyro.Name="LainaBodyGyro";
  719. LainaBodyGyro.cframe=CFrame.new(Vector3.new(0,0,0),Vector3.new(0,5000000,0));
  720. LainaBodyGyro.D=300;
  721. LainaBodyGyro.maxTorque=Vector3.new(99999e99999,99999e99999,0);
  722. LainaBodyGyro.P=7000;
  723. end;
  724. RecreateThingies();
  725. local IsOnTop=false;
  726. function RayCast(Position,Direction,MaxDistance,IgnoreList)
  727. return Game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position,Direction.unit * (MaxDistance or 999.8699)),IgnoreList)
  728. end;
  729. while Wait(0)do
  730. if LainaScript and Laina and Laina:FindFirstChild("Torso") and LainaHumanoid and LainaHumanoid.Health~=0 then
  731. local TargetPoint=LainaHumanoid.TargetPoint;
  732. local Blockage,BlockagePos=RayCast((Laina:FindFirstChild("Torso").CFrame+CFrame.new(Laina:FindFirstChild("Torso").Position,Vector3.new(TargetPoint.X,Laina:FindFirstChild("Torso").Position.Y,TargetPoint.Z)).lookVector*(Laina:FindFirstChild("Torso").Size.Z/2)).p,Laina:FindFirstChild("Torso").CFrame.lookVector,(Laina:FindFirstChild("Torso").Size.Z*2.5),{Laina,Laina})
  733. local Jumpable=false;
  734. if Blockage then
  735. Jumpable=true;
  736. if Blockage and Blockage.Parent and Blockage.Parent.ClassName~="Workspace"then
  737. local BlockageHumanoid;
  738. for _,Child in pairs(Blockage.Parent:GetChildren())do
  739. if Child and Child:IsA("Humanoid")and Child.Health~=0 then
  740. BlockageHumanoid=Child;
  741. end;
  742. end;
  743. if Blockage and Blockage:IsA("Terrain")then
  744. local CellPos=Blockage:WorldToCellPreferSolid((BlockagePos-Vector3.new(0,2,0)));
  745. local CellMaterial,CellShape,CellOrientation=Blockage:GetCell(CellPos.X,CellPos.Y,CellPos.Z);
  746. if CellMaterial==Enum.CellMaterial.Water then
  747. Jumpable=false;
  748. end;
  749. elseif BlockageHumanoid or Blockage.ClassName=="TrussPart"or Blockage.ClassName=="WedgePart"then
  750. Jumpable=false;
  751. end;
  752. end;
  753. if Jumpable and LainaScript and Laina and LainaHumanoid and LainaHumanoid.Health~=0 and not LainaHumanoid.Sit and not IsOnTop then
  754. LainaHumanoid.Jump=true;
  755. end;
  756. end;
  757. end;
  758. if Laina and LainaHumanoid and LainaHumanoid.Health==0 and Laina:FindFirstChild("Head") and Laina:FindFirstChild("Head"):FindFirstChild("face")and Laina:FindFirstChild("Head"):FindFirstChild("Hearts")and Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts")and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak")then
  759. Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://912935337";
  760. Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=false;
  761. Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=true;
  762. if LainaScript~=nil and Laina~=nil and Laina:FindFirstChild("Head")~=nil and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak")~=nil and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak").IsPlaying then
  763. Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak"):Stop();
  764. end;
  765. if LainaScript~=nil and Laina~=nil and Laina:FindFirstChild("Torso")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Neck")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder")~=nil then
  766. Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip").C0=LeftLegC0;
  767. Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder").C0=LeftArmC0;
  768. Laina:FindFirstChild("Torso"):FindFirstChild("Neck").C0=HeadC0;
  769. Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip").C0=RightLegC0;
  770. Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder").C0=RightArmC0;
  771. end;
  772. end;
  773. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and Laina:FindFirstChild("Head") and Laina:FindFirstChild("Head"):FindFirstChild("face")and Laina:FindFirstChild("Head"):FindFirstChild("Hearts")and Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts")and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak")and not IsOnTop then
  774. Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://912935344";
  775. Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=false;
  776. Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=false;
  777. if LainaScript~=nil and Laina~=nil and Laina:FindFirstChild("Head")~=nil and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak")~=nil and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak").IsPlaying then
  778. Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak"):Stop();
  779. end;
  780. if LainaScript~=nil and Laina~=nil and Laina:FindFirstChild("Torso")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Neck")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder")~=nil then
  781. Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip").C0=LeftLegC0;
  782. Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder").C0=LeftArmC0;
  783. Laina:FindFirstChild("Torso"):FindFirstChild("Neck").C0=HeadC0;
  784. Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip").C0=RightLegC0;
  785. Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder").C0=RightArmC0;
  786. end;
  787. elseif Laina and LainaHumanoid and LainaHumanoid.Health~=0 and Laina:FindFirstChild("Head") and Laina:FindFirstChild("Head"):FindFirstChild("face")and Laina:FindFirstChild("Head"):FindFirstChild("Hearts")and Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts")and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak")and IsOnTop then
  788. Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://912935342";
  789. Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=true;
  790. Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=false;
  791. if LainaScript~=nil and Laina~=nil and Laina:FindFirstChild("Head")~=nil and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak")~=nil and not Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak").IsPlaying then
  792. Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak"):Play();
  793. end;
  794. local LRotation,RRotation,LARotation,RARotation,HRotation=math.sin(tick()*9.86)*0.5,math.sin(tick()*9.86)*0.5,math.sin(tick()*9.86)*-0.3,math.sin(tick()*9.86)*-0.3,math.sin(tick()*9.86)*-0.3
  795. if LainaScript~=nil and Laina~=nil and Laina:FindFirstChild("Torso")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Neck")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder")~=nil then
  796. Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip").C0=LeftLegC02*CFrame.fromEulerAnglesXYZ(1.5,1.5-LRotation,-1);
  797. Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder").C0=LeftArmC0*CFrame.fromEulerAnglesXYZ(0,0,0.3+LARotation);
  798. Laina:FindFirstChild("Torso"):FindFirstChild("Neck").C0=HeadC0*CFrame.fromEulerAnglesXYZ(0.5+HRotation,0,0);
  799. Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip").C0=RightLegC02*CFrame.fromEulerAnglesXYZ(1.5,-1.5+RRotation,1);
  800. Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder").C0=RightArmC0*CFrame.fromEulerAnglesXYZ(0,0,-0.3-RARotation);
  801. end;
  802. end;
  803. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and not LainaHumanoid.AutoJumpEnabled then
  804. LainaHumanoid.AutoJumpEnabled=true;
  805. end;
  806. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and not LainaHumanoid.AutoRotate then
  807. LainaHumanoid.AutoRotate=true;
  808. end;
  809. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and LainaHumanoid.PlatformStand then
  810. LainaHumanoid.PlatformStand=false;
  811. end;
  812. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and LainaHumanoid.Sit and not IsOnTop then
  813. LainaHumanoid.Sit=false;
  814. end;
  815. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 then
  816. LainaHumanoid.JumpPower=60;
  817. LainaHumanoid.WalkSpeed=20;
  818. end;
  819. local NoticeDistance=99999e99999;
  820. for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
  821. if TargetModel and TargetModel:IsA("Model")and TargetModel~=Laina and TargetModel:FindFirstChild("Torso")and TargetModel:FindFirstChild("Head")then
  822. local TargetPart=TargetModel:FindFirstChild("Torso");
  823. local FoundHumanoid;
  824. for _,Child in pairs(TargetModel:GetChildren())do
  825. if Child~=nil and Child:IsA("Humanoid")and Child.Health~=0 then
  826. FoundHumanoid=Child;
  827. end;
  828. end;
  829. if Laina and Laina:FindFirstChild("HumanoidRootPart")and LainaHumanoid and LainaHumanoid.Health~=0 and TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-Laina:FindFirstChild("HumanoidRootPart").Position).magnitude<NoticeDistance and not IsOnTop then
  830. NoticeDistance=(TargetPart.Position-Laina:FindFirstChild("HumanoidRootPart").Position).magnitude;
  831. if Laina and Laina:FindFirstChild("HumanoidRootPart")and LainaHumanoid and LainaHumanoid.Health~=0 and TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and FoundHumanoid.Jump and not IsOnTop then
  832. LainaHumanoid.Jump=true;
  833. end;
  834. LainaHumanoid:MoveTo(TargetPart.Position+(TargetPart.Position-Laina:FindFirstChild("Torso").Position).unit*2,Game:GetService("Workspace"):FindFirstChild("Terrain"));
  835. if TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-Laina:FindFirstChild("HumanoidRootPart").Position).magnitude<5 and not IsOnTop then
  836. IsOnTop=true;
  837. LainaWeld.Parent=Laina:FindFirstChild("Torso");
  838. LainaWeld.Part1=Laina:FindFirstChild("Torso");
  839. LainaWeld.C0=CFrame.new(0,-0.1,-1.4)*CFrame.fromEulerAnglesXYZ(-0.7+math.sin(tick()*9.86)*0.3,math.pi,0);
  840. LainaWeld.Part0=TargetPart;
  841. LainaBodyGyro.Parent=TargetPart;
  842. if LainaScript and LainaScript:FindFirstChild("JumpOk")and LainaScript:FindFirstChild("JumpOkNPC")and TargetModel.Parent~=nil and TargetPart.Parent~=nil and LainaBodyGyro~=nil and FoundHumanoid.Parent~=nil and LainaWeld.Parent~=nil and LainaBodyGyro.Parent~=nil and FoundHumanoid.Health~=0 and Laina and LainaHumanoid and LainaHumanoid.Health~=0 then
  843. if TargetModel and FoundHumanoid and FoundHumanoid.Health~=0 and FoundHumanoid:FindFirstChild("Status")and FoundHumanoid:FindFirstChild("Status").ClassName=="Status"then
  844. local JumpOk=LainaScript:FindFirstChild("JumpOk"):Clone();
  845. JumpOk.Parent=TargetModel;
  846. JumpOk.Disabled=false;
  847. elseif TargetModel and FoundHumanoid and FoundHumanoid.Health~=0 and FoundHumanoid:FindFirstChild("Status")and FoundHumanoid:FindFirstChild("Status").ClassName=="Model"or TargetModel and FoundHumanoid and FoundHumanoid.Health~=0 and not FoundHumanoid:FindFirstChild("Status")then
  848. local JumpOkNPC=LainaScript:FindFirstChild("JumpOkNPC"):Clone();
  849. JumpOkNPC.Parent=TargetModel;
  850. JumpOkNPC.Disabled=false;
  851. end;
  852. end;
  853. Spawn(function()
  854. while Wait(0)do
  855. if TargetModel.Parent~=nil and TargetPart.Parent~=nil and FoundHumanoid.Parent~=nil and LainaWeld.Parent~=nil and LainaBodyGyro.Parent~=nil and FoundHumanoid.Health~=0 and Laina and LainaHumanoid and LainaHumanoid.Health~=0 then
  856. LainaHumanoid.Sit=true;
  857. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and Laina:FindFirstChild("Torso")and LainaWeld then
  858. LainaWeld.C0=CFrame.new(0,-0.1,-1.4)*CFrame.fromEulerAnglesXYZ(-0.7+math.sin(tick()*9.86)*0.3,math.pi,0);
  859. end;
  860. if TargetModel~=nil and TargetPart~=nil and FoundHumanoid~=nil and FoundHumanoid.Health~=0 then
  861. FoundHumanoid.Jump=false;
  862. FoundHumanoid.Sit=true;
  863. end;
  864. else
  865. IsOnTop=false;
  866. if LainaWeld then
  867. LainaWeld:Destroy();
  868. end;
  869. if LainaBodyGyro then
  870. LainaBodyGyro:Destroy();
  871. end;
  872. RecreateThingies();
  873. break
  874. end;
  875. end;
  876. end)
  877. end;
  878. end;
  879. end;
  880. end;
  881. end;
  882. --[[ By: Brutez. ]]--
  883. end,o89)
  884. end))
  885. o90.Name = "JumpOk"
  886. o90.Parent = o89
  887. o90.Disabled = true
  888. table.insert(cors,coroutine.create(function()
  889. wait()
  890. runDummyScript(function()
  891. --[[ By: Brutez. ]]--
  892. local JumpScript=script;
  893. repeat Wait(0);until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso");
  894. local ROBLOXian=JumpScript.Parent;
  895. local ROBLOXianHumanoid;
  896. for _,Child in pairs(ROBLOXian:GetChildren())do
  897. if Child and Child.ClassName=="Humanoid"and Child.Health>0.001 then
  898. ROBLOXianHumanoid=Child;
  899. end;
  900. end;
  901. if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 then
  902. ROBLOXianHumanoid.Changed:connect(function()
  903. if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 and ROBLOXianHumanoid.Jump then
  904. ROBLOXianHumanoid.Jump=false;
  905. end;
  906. end);
  907. end;
  908. while Wait(0)do
  909. if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 and not ROBLOXian:FindFirstChild("Torso"):FindFirstChild("LainaBodyGyro")then
  910. JumpScript.Disabled=true;
  911. JumpScript:Destroy();
  912. break
  913. end;
  914. end;
  915. --[[ By: Brutez. ]]--
  916. end,o90)
  917. end))
  918. o91.Name = "JumpOkNPC"
  919. o91.Parent = o89
  920. o91.Disabled = true
  921. table.insert(cors,coroutine.create(function()
  922. wait()
  923. runDummyScript(function()
  924. --[[ By: Brutez. ]]--
  925. local JumpScript=script;
  926. repeat Wait(0);until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso");
  927. local ROBLOXian=JumpScript.Parent;
  928. local ROBLOXianHumanoid;
  929. for _,Child in pairs(ROBLOXian:GetChildren())do
  930. if Child and Child.ClassName=="Humanoid"and Child.Health>0.001 then
  931. ROBLOXianHumanoid=Child;
  932. end;
  933. end;
  934. if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 then
  935. ROBLOXianHumanoid.Changed:connect(function()
  936. if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 and ROBLOXianHumanoid.Jump then
  937. ROBLOXianHumanoid.Jump=false;
  938. end;
  939. end);
  940. end;
  941. while Wait(0)do
  942. if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 and not ROBLOXian:FindFirstChild("Torso"):FindFirstChild("LainaBodyGyro")then
  943. JumpScript.Disabled=true;
  944. JumpScript:Destroy();
  945. break
  946. end;
  947. end;
  948. --[[ By: Brutez. ]]--
  949. end,o91)
  950. end))
  951. o92.Parent = o89
  952. o92.Texture = "http://www.roblox.com/asset/?id=912935342"
  953. o93.Name = "3.0 Female Left Arm"
  954. o93.Parent = o1
  955. o93.MeshId = 83001137
  956. o93.BodyPart = Enum.BodyPart.LeftArm
  957. o94.Name = "3.0 Female Left Leg"
  958. o94.Parent = o1
  959. o94.MeshId = 81628361
  960. o94.BodyPart = Enum.BodyPart.LeftLeg
  961. o95.Name = "3.0 Female Right Arm"
  962. o95.Parent = o1
  963. o95.MeshId = 83001181
  964. o95.BodyPart = Enum.BodyPart.RightArm
  965. o96.Name = "3.0 Female Right Leg"
  966. o96.Parent = o1
  967. o96.MeshId = 81628308
  968. o96.BodyPart = Enum.BodyPart.RightLeg
  969. o97.Name = "3.0 Female Torso"
  970. o97.Parent = o1
  971. o97.MeshId = 82987757
  972. o97.BodyPart = Enum.BodyPart.Torso
  973. o98.Name = "SoundNew"
  974. o98.Parent = o1
  975. table.insert(cors,coroutine.create(function()
  976. wait()
  977. runDummyScript(function()
  978. --[[ Compact mode by: Brutez. ]]--
  979. Spawn(function()
  980. local SFX,Humanoid,Head,Sounds={Died=0;Running=1;Swimming=2;Climbing=3,Jumping=4;GettingUp=5;FreeFalling=6;FallingDown=7;Landing=8;Splash=9;},nil,nil,{};
  981. local Figure=script.Parent;Head=Figure:FindFirstChild("Head");while not Humanoid do for _,NewHumanoid in pairs(Figure:GetChildren())do if NewHumanoid:IsA("Humanoid")then Humanoid=NewHumanoid;break;end;end;Figure.ChildAdded:wait();end;Sounds[SFX.Died]=Head:FindFirstChild("Died");Sounds[SFX.Running]=Head:FindFirstChild("Running");Sounds[SFX.Swimming]=Head:FindFirstChild("Swimming");Sounds[SFX.Climbing]=Head:FindFirstChild("Climbing");Sounds[SFX.Jumping]=Head:FindFirstChild("Jumping");Sounds[SFX.GettingUp]=Head:FindFirstChild("GettingUp");Sounds[SFX.FreeFalling]=Head:FindFirstChild("FreeFalling");Sounds[SFX.Landing]=Head:FindFirstChild("Landing");Sounds[SFX.Splash]=Head:FindFirstChild("Splash");
  982. local Util={YForLineGivenXAndTwoPts=function(x,pt1x,pt1y,pt2x,pt2y)local m=(pt1y-pt2y)/(pt1x-pt2x);local b=(pt1y-m*pt1x);return m*x+b;end;Clamp=function(val,min,max)return math.min(max,math.max(min,val));end;HorizontalSpeed=function(Head)local hVel=Head.Velocity+Vector3.new(0,-Head.Velocity.Y,0);return hVel.magnitude;end;VerticalSpeed=function(Head)return math.abs(Head.Velocity.Y);end;Play=function(sound)if sound.TimePosition~=0 then sound.TimePosition=0;end;if not sound.IsPlaying then sound.Playing=true;end;end;Pause=function(sound)if sound.IsPlaying then sound.Playing=false;end;end;Resume=function(sound)if not sound.IsPlaying then sound.Playing=true;end;end;Stop=function(sound)if sound.IsPlaying then sound.Playing=false;end;if sound.TimePosition~=0 then sound.TimePosition=0;end;end;};
  983. local playingLoopedSounds={};local activeState=nil;function setSoundInPlayingLoopedSounds(sound)for i=1,#playingLoopedSounds do if playingLoopedSounds[i]==sound then return;end;end;table.insert(playingLoopedSounds,sound);end;function stopPlayingLoopedSoundsExcept(except)for i=#playingLoopedSounds,1,-1 do if playingLoopedSounds[i]~=except then Util.Pause(playingLoopedSounds[i]);table.remove(playingLoopedSounds,i);end;end;end;local stateUpdateHandler={[Enum.HumanoidStateType.Dead]=function()stopPlayingLoopedSoundsExcept();local sound=Sounds[SFX.Died];Util.Play(sound);end;[Enum.HumanoidStateType.RunningNoPhysics]=function()stateUpdated(Enum.HumanoidStateType.Running);end;[Enum.HumanoidStateType.Running]=function()local sound=Sounds[SFX.Running];stopPlayingLoopedSoundsExcept(sound);if Util.HorizontalSpeed(Head)>0.5 then Util.Resume(sound);setSoundInPlayingLoopedSounds(sound);else stopPlayingLoopedSoundsExcept();end;end;[Enum.HumanoidStateType.Swimming]=function()if activeState~=Enum.HumanoidStateType.Swimming and Util.VerticalSpeed(Head)>0.1 then local splashSound=Sounds[SFX.Splash];splashSound.Volume=Util.Clamp(Util.YForLineGivenXAndTwoPts(Util.VerticalSpeed(Head),100,0.28,350,1),0,1);Util.Play(splashSound);end;do local sound=Sounds[SFX.Swimming];stopPlayingLoopedSoundsExcept(sound);Util.Resume(sound);setSoundInPlayingLoopedSounds(sound);end;end;[Enum.HumanoidStateType.Climbing]=function()local sound=Sounds[SFX.Climbing];if Util.VerticalSpeed(Head)>0.1 then Util.Resume(sound);stopPlayingLoopedSoundsExcept(sound);else stopPlayingLoopedSoundsExcept();end;setSoundInPlayingLoopedSounds(sound);end;[Enum.HumanoidStateType.Jumping]=function()if activeState==Enum.HumanoidStateType.Jumping then return;end;stopPlayingLoopedSoundsExcept();local sound=Sounds[SFX.Jumping];Util.Play(sound);end;[Enum.HumanoidStateType.GettingUp]=function()stopPlayingLoopedSoundsExcept();local sound=Sounds[SFX.GettingUp];Util.Play(sound);end;[Enum.HumanoidStateType.Freefall]=function()if activeState==Enum.HumanoidStateType.Freefall then return;end;local sound=Sounds[SFX.FreeFalling];sound.Volume=0;stopPlayingLoopedSoundsExcept();end;[Enum.HumanoidStateType.FallingDown]=function()stopPlayingLoopedSoundsExcept();end;[Enum.HumanoidStateType.Landed]=function()stopPlayingLoopedSoundsExcept();if Util.VerticalSpeed(Head)>75 then local landingSound=Sounds[SFX.Landing];landingSound.Volume=Util.Clamp(Util.YForLineGivenXAndTwoPts(Util.VerticalSpeed(Head),50,0,100,1),0,1);Util.Play(landingSound);end;end;[Enum.HumanoidStateType.Seated]=function()stopPlayingLoopedSoundsExcept();end;};function stateUpdated(state)if stateUpdateHandler[state]~=nil then stateUpdateHandler[state]();end;activeState=state;end;Humanoid.Died:connect(function()stateUpdated(Enum.HumanoidStateType.Dead);end);Humanoid.Running:connect(function()stateUpdated(Enum.HumanoidStateType.Running);end);Humanoid.Swimming:connect(function()stateUpdated(Enum.HumanoidStateType.Swimming);end);Humanoid.Climbing:connect(function()stateUpdated(Enum.HumanoidStateType.Climbing);end);Humanoid.Jumping:connect(function()stateUpdated(Enum.HumanoidStateType.Jumping);end);Humanoid.GettingUp:connect(function()stateUpdated(Enum.HumanoidStateType.GettingUp);end);Humanoid.FreeFalling:connect(function()stateUpdated(Enum.HumanoidStateType.Freefall);end);Humanoid.FallingDown:connect(function()stateUpdated(Enum.HumanoidStateType.FallingDown);end);Humanoid.StateChanged:connect(function(old,new)stateUpdated(new);end);function onUpdate(stepDeltaSeconds,tickSpeedSeconds)local stepScale=stepDeltaSeconds/tickSpeedSeconds;do local sound=Sounds[SFX.FreeFalling];if activeState==Enum.HumanoidStateType.Freefall then if Head.Velocity.Y<0 and Util.VerticalSpeed(Head)>75 then Util.Resume(sound);local ANIMATION_LENGTH_SECONDS=1.1;local normalizedIncrement=tickSpeedSeconds/ANIMATION_LENGTH_SECONDS;sound.Volume=Util.Clamp(sound.Volume+normalizedIncrement*stepScale,0,1);else sound.Volume=0;end;else Util.Pause(sound);end;end;do local sound=Sounds[SFX.Running];if activeState==Enum.HumanoidStateType.Running then if Util.HorizontalSpeed(Head)<0.5 then Util.Pause(sound);end;end;end;end;local lastTick=tick();local TICK_SPEED_SECONDS=0.25;while true do onUpdate(tick()-lastTick,TICK_SPEED_SECONDS);lastTick=tick();wait(TICK_SPEED_SECONDS);end;
  984. end);
  985. --[[ Compact mode by: Brutez. ]]--
  986. function CreateNewSound(name,id,looped,pitch,parent)
  987. local sound=Instance.new("Sound");
  988. sound.SoundId=id;
  989. sound.Name=name;
  990. sound.archivable=false;
  991. sound.Parent=parent;
  992. sound.Pitch=pitch;
  993. sound.Looped=looped;
  994. sound.MinDistance=20;
  995. sound.MaxDistance=10000;
  996. sound.Volume=1;
  997. return sound;
  998. end;
  999. local head=script.Parent:FindFirstChild("Head");
  1000. CreateNewSound("GettingUp","rbxasset://sounds/action_get_up.mp3",false,1,head);
  1001. CreateNewSound("Died","rbxasset://sounds/uuhhh.mp3",false,1,head);
  1002. CreateNewSound("FreeFalling","rbxasset://sounds/action_falling.mp3",true,1,head);
  1003. CreateNewSound("Jumping","rbxasset://sounds/action_jump.mp3",false,1,head);
  1004. CreateNewSound("Landing","rbxasset://sounds/action_jump_land.mp3",false,1,head);
  1005. CreateNewSound("Splash","rbxasset://sounds/impact_water.mp3",false,1,head);
  1006. CreateNewSound("Running","rbxasset://sounds/action_footsteps_plastic.mp3",true,1.85,head);
  1007. CreateNewSound("Swimming","rbxasset://sounds/action_swim.mp3",true,1.6,head);
  1008. CreateNewSound("Climbing","rbxasset://sounds/action_footsteps_plastic.mp3",true,1,head);
  1009. end,o98)
  1010. end))
  1011. o99.Name = "AnimateNew"
  1012. o99.Parent = o1
  1013. table.insert(cors,coroutine.create(function()
  1014. wait()
  1015. runDummyScript(function()
  1016. local Figure = script.Parent
  1017. local Torso = Figure:FindFirstChild("Torso")
  1018. local RightShoulder = Torso:FindFirstChild("Right Shoulder")
  1019. local LeftShoulder = Torso:FindFirstChild("Left Shoulder")
  1020. local RightHip = Torso:FindFirstChild("Right Hip")
  1021. local LeftHip = Torso:FindFirstChild("Left Hip")
  1022. local Neck = Torso:FindFirstChild("Neck")
  1023. local Humanoid;
  1024. for _,Child in pairs(Figure:GetChildren())do
  1025. if Child~=nil and Child:IsA("Humanoid")and Child.Health~=0 then
  1026. Humanoid=Child;
  1027. end;
  1028. end;
  1029. local pose = "Standing"
  1030.  
  1031. local currentAnim = ""
  1032. local currentAnimInstance = nil
  1033. local currentAnimTrack = nil
  1034. local currentAnimKeyframeHandler = nil
  1035. local currentAnimSpeed = 1.0
  1036. local animTable = {}
  1037. local animNames = {
  1038. idle = {
  1039. { id = "http://www.roblox.com/asset/?id=180435571", weight = 9 },
  1040. { id = "http://www.roblox.com/asset/?id=180435792", weight = 1 }
  1041. },
  1042. walk = {
  1043. { id = "http://www.roblox.com/asset/?id=180426354", weight = 10 }
  1044. },
  1045. run = {
  1046. { id = "run.xml", weight = 10 }
  1047. },
  1048. jump = {
  1049. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  1050. },
  1051. fall = {
  1052. { id = "http://www.roblox.com/asset/?id=180436148", weight = 10 }
  1053. },
  1054. climb = {
  1055. { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
  1056. },
  1057. sit = {
  1058. { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
  1059. },
  1060. toolnone = {
  1061. { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 }
  1062. },
  1063. toolslash = {
  1064. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  1065. -- { id = "slash.xml", weight = 10 }
  1066. },
  1067. toollunge = {
  1068. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  1069. },
  1070. wave = {
  1071. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  1072. },
  1073. point = {
  1074. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  1075. },
  1076. dance1 = {
  1077. { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 },
  1078. { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 },
  1079. { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 }
  1080. },
  1081. dance2 = {
  1082. { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 },
  1083. { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 },
  1084. { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 }
  1085. },
  1086. dance3 = {
  1087. { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 },
  1088. { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 },
  1089. { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 }
  1090. },
  1091. laugh = {
  1092. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  1093. },
  1094. cheer = {
  1095. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  1096. },
  1097. }
  1098. local dances = {"dance1", "dance2", "dance3"}
  1099.  
  1100. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  1101. local emoteNames = { wave = false, point = false, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  1102.  
  1103. function configureAnimationSet(name, fileList)
  1104. if (animTable[name] ~= nil) then
  1105. for _, connection in pairs(animTable[name].connections) do
  1106. connection:disconnect()
  1107. end
  1108. end
  1109. animTable[name] = {}
  1110. animTable[name].count = 0
  1111. animTable[name].totalWeight = 0
  1112. animTable[name].connections = {}
  1113.  
  1114. -- check for config values
  1115. local config = script:FindFirstChild(name)
  1116. if (config ~= nil) then
  1117. -- print("Loading anims " .. name)
  1118. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  1119. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  1120. local idx = 1
  1121. for _, childPart in pairs(config:GetChildren()) do
  1122. if (childPart:IsA("Animation")) then
  1123. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  1124. animTable[name][idx] = {}
  1125. animTable[name][idx].anim = childPart
  1126. local weightObject = childPart:FindFirstChild("Weight")
  1127. if (weightObject == nil) then
  1128. animTable[name][idx].weight = 1
  1129. else
  1130. animTable[name][idx].weight = weightObject.Value
  1131. end
  1132. animTable[name].count = animTable[name].count + 1
  1133. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  1134. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  1135. idx = idx + 1
  1136. end
  1137. end
  1138. end
  1139.  
  1140. -- fallback to defaults
  1141. if (animTable[name].count <= 0) then
  1142. for idx, anim in pairs(fileList) do
  1143. animTable[name][idx] = {}
  1144. animTable[name][idx].anim = Instance.new("Animation")
  1145. animTable[name][idx].anim.Name = name
  1146. animTable[name][idx].anim.AnimationId = anim.id
  1147. animTable[name][idx].weight = anim.weight
  1148. animTable[name].count = animTable[name].count + 1
  1149. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  1150. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  1151. end
  1152. end
  1153. end
  1154.  
  1155. -- Setup animation objects
  1156. function scriptChildModified(child)
  1157. local fileList = animNames[child.Name]
  1158. if (fileList ~= nil) then
  1159. configureAnimationSet(child.Name, fileList)
  1160. end
  1161. end
  1162.  
  1163. script.ChildAdded:connect(scriptChildModified)
  1164. script.ChildRemoved:connect(scriptChildModified)
  1165.  
  1166.  
  1167. for name, fileList in pairs(animNames) do
  1168. configureAnimationSet(name, fileList)
  1169. end
  1170.  
  1171. -- ANIMATION
  1172.  
  1173. -- declarations
  1174. local toolAnim = "None"
  1175. local toolAnimTime = 0
  1176.  
  1177. local jumpAnimTime = 0
  1178. local jumpAnimDuration = 0.3
  1179.  
  1180. local toolTransitionTime = 0.1
  1181. local fallTransitionTime = 0.3
  1182. local jumpMaxLimbVelocity = 0.75
  1183.  
  1184. -- functions
  1185.  
  1186. function stopAllAnimations()
  1187. local oldAnim = currentAnim
  1188.  
  1189. -- return to idle if finishing an emote
  1190. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  1191. oldAnim = "idle"
  1192. end
  1193.  
  1194. currentAnim = ""
  1195. currentAnimInstance = nil
  1196. if (currentAnimKeyframeHandler ~= nil) then
  1197. currentAnimKeyframeHandler:disconnect()
  1198. end
  1199.  
  1200. if (currentAnimTrack ~= nil) then
  1201. currentAnimTrack:Stop()
  1202. currentAnimTrack:Destroy()
  1203. currentAnimTrack = nil
  1204. end
  1205. return oldAnim
  1206. end
  1207.  
  1208. function setAnimationSpeed(speed)
  1209. if speed ~= currentAnimSpeed then
  1210. currentAnimSpeed = speed
  1211. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  1212. end
  1213. end
  1214.  
  1215. function keyFrameReachedFunc(frameName)
  1216. if (frameName == "End") then
  1217.  
  1218. local repeatAnim = currentAnim
  1219. -- return to idle if finishing an emote
  1220. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  1221. repeatAnim = "idle"
  1222. end
  1223.  
  1224. local animSpeed = currentAnimSpeed
  1225. playAnimation(repeatAnim, 0.0, Humanoid)
  1226. setAnimationSpeed(animSpeed)
  1227. end
  1228. end
  1229.  
  1230. -- Preload animations
  1231. function playAnimation(animName, transitionTime, humanoid)
  1232.  
  1233. local roll = math.random(1, animTable[animName].totalWeight)
  1234. local origRoll = roll
  1235. local idx = 1
  1236. while (roll > animTable[animName][idx].weight) do
  1237. roll = roll - animTable[animName][idx].weight
  1238. idx = idx + 1
  1239. end
  1240. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  1241. local anim = animTable[animName][idx].anim
  1242.  
  1243. -- switch animation
  1244. if (anim ~= currentAnimInstance) then
  1245.  
  1246. if (currentAnimTrack ~= nil) then
  1247. currentAnimTrack:Stop(transitionTime)
  1248. currentAnimTrack:Destroy()
  1249. end
  1250.  
  1251. currentAnimSpeed = 1.0
  1252.  
  1253. -- load it to the humanoid; get AnimationTrack
  1254. currentAnimTrack = humanoid:LoadAnimation(anim)
  1255. currentAnimTrack.Priority = Enum.AnimationPriority.Core
  1256.  
  1257. -- play the animation
  1258. currentAnimTrack:Play(transitionTime)
  1259. currentAnim = animName
  1260. currentAnimInstance = anim
  1261.  
  1262. -- set up keyframe name triggers
  1263. if (currentAnimKeyframeHandler ~= nil) then
  1264. currentAnimKeyframeHandler:disconnect()
  1265. end
  1266. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  1267.  
  1268. end
  1269.  
  1270. end
  1271.  
  1272. -------------------------------------------------------------------------------------------
  1273. -------------------------------------------------------------------------------------------
  1274.  
  1275. local toolAnimName = ""
  1276. local toolAnimTrack = nil
  1277. local toolAnimInstance = nil
  1278. local currentToolAnimKeyframeHandler = nil
  1279.  
  1280. function toolKeyFrameReachedFunc(frameName)
  1281. if (frameName == "End") then
  1282. -- print("Keyframe : ".. frameName)
  1283. playToolAnimation(toolAnimName, 0.0, Humanoid)
  1284. end
  1285. end
  1286.  
  1287.  
  1288. function playToolAnimation(animName, transitionTime, humanoid, priority)
  1289.  
  1290. local roll = math.random(1, animTable[animName].totalWeight)
  1291. local origRoll = roll
  1292. local idx = 1
  1293. while (roll > animTable[animName][idx].weight) do
  1294. roll = roll - animTable[animName][idx].weight
  1295. idx = idx + 1
  1296. end
  1297. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  1298. local anim = animTable[animName][idx].anim
  1299.  
  1300. if (toolAnimInstance ~= anim) then
  1301.  
  1302. if (toolAnimTrack ~= nil) then
  1303. toolAnimTrack:Stop()
  1304. toolAnimTrack:Destroy()
  1305. transitionTime = 0
  1306. end
  1307.  
  1308. -- load it to the humanoid; get AnimationTrack
  1309. toolAnimTrack = humanoid:LoadAnimation(anim)
  1310. if priority then
  1311. toolAnimTrack.Priority = priority
  1312. end
  1313.  
  1314. -- play the animation
  1315. toolAnimTrack:Play(transitionTime)
  1316. toolAnimName = animName
  1317. toolAnimInstance = anim
  1318.  
  1319. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  1320. end
  1321. end
  1322.  
  1323. function stopToolAnimations()
  1324. local oldAnim = toolAnimName
  1325.  
  1326. if (currentToolAnimKeyframeHandler ~= nil) then
  1327. currentToolAnimKeyframeHandler:disconnect()
  1328. end
  1329.  
  1330. toolAnimName = ""
  1331. toolAnimInstance = nil
  1332. if (toolAnimTrack ~= nil) then
  1333. toolAnimTrack:Stop()
  1334. toolAnimTrack:Destroy()
  1335. toolAnimTrack = nil
  1336. end
  1337.  
  1338.  
  1339. return oldAnim
  1340. end
  1341.  
  1342. -------------------------------------------------------------------------------------------
  1343. -------------------------------------------------------------------------------------------
  1344.  
  1345.  
  1346. function onRunning(speed)
  1347. if speed > 0.01 then
  1348. playAnimation("walk", 0.1, Humanoid)
  1349. if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
  1350. setAnimationSpeed(speed / 14.5)
  1351. end
  1352. pose = "Running"
  1353. else
  1354. if emoteNames[currentAnim] == nil then
  1355. playAnimation("idle", 0.1, Humanoid)
  1356. pose = "Standing"
  1357. end
  1358. end
  1359. end
  1360.  
  1361. function onDied()
  1362. pose = "Dead"
  1363. end
  1364.  
  1365. function onJumping()
  1366. playAnimation("jump", 0.1, Humanoid)
  1367. jumpAnimTime = jumpAnimDuration
  1368. pose = "Jumping"
  1369. end
  1370.  
  1371. function onClimbing(speed)
  1372. playAnimation("climb", 0.1, Humanoid)
  1373. setAnimationSpeed(speed / 12.0)
  1374. pose = "Climbing"
  1375. end
  1376.  
  1377. function onGettingUp()
  1378. pose = "GettingUp"
  1379. end
  1380.  
  1381. function onFreeFall()
  1382. if (jumpAnimTime <= 0) then
  1383. playAnimation("fall", fallTransitionTime, Humanoid)
  1384. end
  1385. pose = "FreeFall"
  1386. end
  1387.  
  1388. function onFallingDown()
  1389. pose = "FallingDown"
  1390. end
  1391.  
  1392. function onSeated()
  1393. pose = "Seated"
  1394. end
  1395.  
  1396. function onPlatformStanding()
  1397. pose = "PlatformStanding"
  1398. end
  1399.  
  1400. function onSwimming(speed)
  1401. if speed > 0 then
  1402. pose = "Running"
  1403. else
  1404. pose = "Standing"
  1405. end
  1406. end
  1407.  
  1408. function getTool()
  1409. for _, kid in ipairs(Figure:GetChildren()) do
  1410. if kid.className == "Tool" then return kid end
  1411. end
  1412. return nil
  1413. end
  1414.  
  1415. function getToolAnim(tool)
  1416. for _, c in ipairs(tool:GetChildren()) do
  1417. if c.Name == "toolanim" and c.className == "StringValue" then
  1418. return c
  1419. end
  1420. end
  1421. return nil
  1422. end
  1423.  
  1424. function animateTool()
  1425.  
  1426. if (toolAnim == "None") then
  1427. playToolAnimation("toolnone", toolTransitionTime, Humanoid, Enum.AnimationPriority.Idle)
  1428. return
  1429. end
  1430.  
  1431. if (toolAnim == "Slash") then
  1432. playToolAnimation("toolslash", 0, Humanoid, Enum.AnimationPriority.Action)
  1433. return
  1434. end
  1435.  
  1436. if (toolAnim == "Lunge") then
  1437. playToolAnimation("toollunge", 0, Humanoid, Enum.AnimationPriority.Action)
  1438. return
  1439. end
  1440. end
  1441.  
  1442. function moveSit()
  1443. RightShoulder.MaxVelocity = 0.15
  1444. LeftShoulder.MaxVelocity = 0.15
  1445. RightShoulder:SetDesiredAngle(3.14 /2)
  1446. LeftShoulder:SetDesiredAngle(-3.14 /2)
  1447. RightHip:SetDesiredAngle(3.14 /2)
  1448. LeftHip:SetDesiredAngle(-3.14 /2)
  1449. end
  1450.  
  1451. local lastTick = 0
  1452.  
  1453. function move(time)
  1454. local amplitude = 1
  1455. local frequency = 1
  1456. local deltaTime = time - lastTick
  1457. lastTick = time
  1458.  
  1459. local climbFudge = 0
  1460. local setAngles = false
  1461.  
  1462. if (jumpAnimTime > 0) then
  1463. jumpAnimTime = jumpAnimTime - deltaTime
  1464. end
  1465.  
  1466. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  1467. playAnimation("fall", fallTransitionTime, Humanoid)
  1468. elseif (pose == "Seated") then
  1469. playAnimation("sit", 0.5, Humanoid)
  1470. return
  1471. elseif (pose == "Running") then
  1472. playAnimation("walk", 0.1, Humanoid)
  1473. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  1474. -- print("Wha " .. pose)
  1475. stopAllAnimations()
  1476. amplitude = 0.1
  1477. frequency = 1
  1478. setAngles = true
  1479. end
  1480.  
  1481. if (setAngles) then
  1482. local desiredAngle = amplitude * math.sin(time * frequency)
  1483.  
  1484. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  1485. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  1486. RightHip:SetDesiredAngle(-desiredAngle)
  1487. LeftHip:SetDesiredAngle(-desiredAngle)
  1488. end
  1489.  
  1490. -- Tool Animation handling
  1491. local tool = getTool()
  1492. if tool and tool:FindFirstChild("Handle") then
  1493.  
  1494. local animStringValueObject = getToolAnim(tool)
  1495.  
  1496. if animStringValueObject then
  1497. toolAnim = animStringValueObject.Value
  1498. -- message recieved, delete StringValue
  1499. animStringValueObject.Parent = nil
  1500. toolAnimTime = time + .3
  1501. end
  1502.  
  1503. if time > toolAnimTime then
  1504. toolAnimTime = 0
  1505. toolAnim = "None"
  1506. end
  1507.  
  1508. animateTool()
  1509. else
  1510. stopToolAnimations()
  1511. toolAnim = "None"
  1512. toolAnimInstance = nil
  1513. toolAnimTime = 0
  1514. end
  1515. end
  1516.  
  1517. -- connect events
  1518. Humanoid.Died:connect(onDied)
  1519. Humanoid.Running:connect(onRunning)
  1520. Humanoid.Jumping:connect(onJumping)
  1521. Humanoid.Climbing:connect(onClimbing)
  1522. Humanoid.GettingUp:connect(onGettingUp)
  1523. Humanoid.FreeFalling:connect(onFreeFall)
  1524. Humanoid.FallingDown:connect(onFallingDown)
  1525. Humanoid.Seated:connect(onSeated)
  1526. Humanoid.PlatformStanding:connect(onPlatformStanding)
  1527. Humanoid.Swimming:connect(onSwimming)
  1528. playAnimation("idle", 0.1, Humanoid)
  1529. pose = "Standing"
  1530. while Figure.Parent ~= nil do
  1531. local _, time = wait(0.1)
  1532. move(time)
  1533. end
  1534. end,o99)
  1535. end))
  1536. o100.Name = "climb"
  1537. o100.Parent = o99
  1538. o101.Name = "ClimbAnim"
  1539. o101.Parent = o100
  1540. o101.AnimationId = "http://www.roblox.com/asset/?id=180436334"
  1541. o102.Name = "fall"
  1542. o102.Parent = o99
  1543. o103.Name = "FallAnim"
  1544. o103.Parent = o102
  1545. o103.AnimationId = "http://www.roblox.com/asset/?id=180436148"
  1546. o104.Name = "idle"
  1547. o104.Parent = o99
  1548. o105.Name = "Animation1"
  1549. o105.Parent = o104
  1550. o105.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1551. o106.Name = "Weight"
  1552. o106.Parent = o105
  1553. o106.Value = 9
  1554. o107.Name = "Animation2"
  1555. o107.Parent = o104
  1556. o107.AnimationId = "http://www.roblox.com/asset/?id=180435792"
  1557. o108.Name = "Weight"
  1558. o108.Parent = o107
  1559. o108.Value = 1
  1560. o109.Name = "jump"
  1561. o109.Parent = o99
  1562. o110.Name = "JumpAnim"
  1563. o110.Parent = o109
  1564. o110.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  1565. o111.Name = "run"
  1566. o111.Parent = o99
  1567. o112.Name = "RunAnim"
  1568. o112.Parent = o111
  1569. o112.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  1570. o113.Name = "sit"
  1571. o113.Parent = o99
  1572. o114.Name = "SitAnim"
  1573. o114.Parent = o113
  1574. o114.AnimationId = "http://www.roblox.com/asset/?id=178130996"
  1575. o115.Name = "toolnone"
  1576. o115.Parent = o99
  1577. o116.Name = "ToolNoneAnim"
  1578. o116.Parent = o115
  1579. o116.AnimationId = "http://www.roblox.com/asset/?id=182393478"
  1580. o117.Name = "walk"
  1581. o117.Parent = o99
  1582. o118.Name = "WalkAnim"
  1583. o118.Parent = o117
  1584. o118.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  1585. o119.Name = "HealthNew"
  1586. o119.Parent = o1
  1587. table.insert(cors,coroutine.create(function()
  1588. wait()
  1589. runDummyScript(function()
  1590. --[[ By: Brutez. ]]--
  1591. local LainaHealthScript=script;
  1592. local Laina=LainaHealthScript.Parent;
  1593. local LainaHumanoid;
  1594. for _,Child in pairs(Laina:GetChildren())do
  1595. if Child~=nil and Child:IsA("Humanoid")and Child.Health~=0 then
  1596. LainaHumanoid=Child;
  1597. end;
  1598. end;
  1599. local Regenerating=false;
  1600. function UpdateHealth()
  1601. if not Regenerating then
  1602. Regenerating=true;
  1603. Spawn(function()
  1604. while LainaHumanoid.Health<LainaHumanoid.MaxHealth do
  1605. local StoredHealth=LainaHumanoid.Health;
  1606. if StoredHealth>0 and StoredHealth<LainaHumanoid.MaxHealth then
  1607. local AdditionalHealth=0.01*LainaHumanoid.MaxHealth;
  1608. StoredHealth=StoredHealth+AdditionalHealth;
  1609. LainaHumanoid.Health=math.min(StoredHealth,LainaHumanoid.MaxHealth);
  1610. end;
  1611. Wait(0.3);
  1612. end;
  1613. if LainaHumanoid.Health>LainaHumanoid.MaxHealth then
  1614. LainaHumanoid.Health=LainaHumanoid.MaxHealth;
  1615. end;
  1616. Regenerating=false;
  1617. end);
  1618. end;
  1619. end;
  1620. LainaHumanoid.HealthChanged:connect(UpdateHealth);
  1621. --[[ By: Brutez. ]]--
  1622. end,o119)
  1623. end))
  1624. mas.Parent = workspace
  1625. mas:MakeJoints()
  1626. local mas1 = mas:GetChildren()
  1627. for i=1,#mas1 do
  1628. mas1[i].Parent = workspace
  1629. ypcall(function() mas1[i]:MakeJoints() end)
  1630. end
  1631. mas:Destroy()
  1632. for i=1,#cors do
  1633. coroutine.resume(cors[i])
  1634. end
Advertisement
Add Comment
Please, Sign In to add comment