sawgamer1

Untitled

Jun 26th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.57 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,Camera,Animator
  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("Sound")
  47. o34 = Instance.new("Sound")
  48. o35 = Instance.new("Sound")
  49. o36 = Instance.new("Sound")
  50. o37 = Instance.new("Sound")
  51. o38 = Instance.new("Sound")
  52. o39 = Instance.new("Sound")
  53. o40 = Instance.new("Sound")
  54. o41 = Instance.new("Sound")
  55. o43 = Instance.new("Part")
  56. o45 = Instance.new("Part")
  57. o46 = Instance.new("Part")
  58. o47 = Instance.new("Humanoid")
  59. o48 = Instance.new("Model")
  60. o49 = Instance.new("Model")
  61. o51 = Instance.new("Script")
  62. o52 = Instance.new("BodyColors")
  63. o53 = Instance.new("Pants")
  64. o54 = Instance.new("Script")
  65. o55 = Instance.new("LocalScript")
  66. o56 = Instance.new("Script")
  67. o57 = Instance.new("Decal")
  68. o58 = Instance.new("CharacterMesh")
  69. o59 = Instance.new("CharacterMesh")
  70. o60 = Instance.new("CharacterMesh")
  71. o61 = Instance.new("CharacterMesh")
  72. o62 = Instance.new("CharacterMesh")
  73. o63 = Instance.new("Script")
  74. o64 = Instance.new("Script")
  75. o65 = Instance.new("StringValue")
  76. o66 = Instance.new("Animation")
  77. o67 = Instance.new("StringValue")
  78. o68 = Instance.new("Animation")
  79. o69 = Instance.new("StringValue")
  80. o70 = Instance.new("Animation")
  81. o71 = Instance.new("NumberValue")
  82. o72 = Instance.new("Animation")
  83. o73 = Instance.new("NumberValue")
  84. o74 = Instance.new("StringValue")
  85. o75 = Instance.new("Animation")
  86. o76 = Instance.new("StringValue")
  87. o77 = Instance.new("Animation")
  88. o78 = Instance.new("StringValue")
  89. o79 = Instance.new("Animation")
  90. o80 = Instance.new("StringValue")
  91. o81 = Instance.new("Animation")
  92. o82 = Instance.new("StringValue")
  93. o83 = Instance.new("Animation")
  94. o84 = Instance.new("Script")
  95. o1.Name = "Laina"
  96. o1.Parent = mas
  97. o1.PrimaryPart = o22
  98. o2.Name = "Torso"
  99. o2.Parent = o1
  100. o2.Material = Enum.Material.SmoothPlastic
  101. o2.BrickColor = BrickColor.new("Institutional white")
  102. o2.Position = Vector3.new(19.9799995, 2.96770334, 17.5)
  103. o2.Locked = true
  104. o2.Elasticity = 0
  105. o2.FormFactor = Enum.FormFactor.Symmetric
  106. o2.Friction = 2
  107. o2.Size = Vector3.new(2, 2, 1)
  108. o2.CFrame = CFrame.new(19.9799995, 2.96770334, 17.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  109. o2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  110. o2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  111. o2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  112. o2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  113. o2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  114. o2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  115. o2.Color = Color3.new(0.972549, 0.972549, 0.972549)
  116. o2.Position = Vector3.new(19.9799995, 2.96770334, 17.5)
  117. o3.Name = "roblox"
  118. o3.Parent = o2
  119. o4.Name = "Right Shoulder"
  120. o4.Parent = o2
  121. o4.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  122. o4.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  123. o4.Part0 = o2
  124. o4.Part1 = o43
  125. o4.CurrentAngle = 0.0084122782573104
  126. o4.MaxVelocity = 0.10000000149012
  127. o5.Name = "Left Shoulder"
  128. o5.Parent = o2
  129. o5.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  130. o5.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  131. o5.Part0 = o2
  132. o5.Part1 = o20
  133. o5.CurrentAngle = -0.0061256932094693
  134. o5.MaxVelocity = 0.10000000149012
  135. o6.Name = "Right Hip"
  136. o6.Parent = o2
  137. o6.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  138. o6.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  139. o6.Part0 = o2
  140. o6.Part1 = o45
  141. o6.MaxVelocity = 0.10000000149012
  142. o7.Name = "Left Hip"
  143. o7.Parent = o2
  144. o7.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  145. o7.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  146. o7.Part0 = o2
  147. o7.Part1 = o46
  148. o7.MaxVelocity = 0.10000000149012
  149. o8.Name = "Neck"
  150. o8.Parent = o2
  151. o8.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  152. o8.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  153. o8.Part0 = o2
  154. o8.Part1 = o22
  155. o8.CurrentAngle = 0.0016054655425251
  156. o8.MaxVelocity = 0.10000000149012
  157. o18.Name = "HumanoidRootPart"
  158. o18.Parent = o1
  159. o18.Material = Enum.Material.SmoothPlastic
  160. o18.Transparency = 1
  161. o18.Position = Vector3.new(19.9799995, 3, 17.5)
  162. o18.CanCollide = false
  163. o18.Locked = true
  164. o18.Elasticity = 0
  165. o18.FormFactor = Enum.FormFactor.Symmetric
  166. o18.Friction = 2
  167. o18.Size = Vector3.new(2, 2, 1)
  168. o18.CFrame = CFrame.new(19.9799995, 3, 17.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  169. o18.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  170. o18.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  171. o18.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  172. o18.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  173. o18.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  174. o18.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  175. o18.Position = Vector3.new(19.9799995, 3, 17.5)
  176. o19.Name = "RootJoint"
  177. o19.Parent = o18
  178. o19.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  179. o19.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  180. o19.Part0 = o18
  181. o19.Part1 = o2
  182. o19.MaxVelocity = 0.10000000149012
  183. o20.Name = "Left Arm"
  184. o20.Parent = o1
  185. o20.Material = Enum.Material.SmoothPlastic
  186. o20.BrickColor = BrickColor.new("Institutional white")
  187. o20.Position = Vector3.new(18.4797688, 3.00012374, 17.4971962)
  188. o20.Rotation = Vector3.new(0.00999999978, -0.310000002, -0.0299999993)
  189. o20.CanCollide = false
  190. o20.Locked = true
  191. o20.Elasticity = 0
  192. o20.FormFactor = Enum.FormFactor.Symmetric
  193. o20.Friction = 2
  194. o20.Size = Vector3.new(1, 2, 1)
  195. o20.CFrame = CFrame.new(18.4797688, 3.00012374, 17.4971962, 0.999985278, 0.00047646559, -0.0053998786, -0.00047757072, 0.999999881, -0.000203252188, 0.00539978081, 0.000205829507, 0.999985397)
  196. o20.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  197. o20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  198. o20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  199. o20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  200. o20.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  201. o20.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  202. o20.Color = Color3.new(0.972549, 0.972549, 0.972549)
  203. o20.Position = Vector3.new(18.4797688, 3.00012374, 17.4971962)
  204. o22.Name = "Head"
  205. o22.Parent = o1
  206. o22.Material = Enum.Material.SmoothPlastic
  207. o22.BrickColor = BrickColor.new("Institutional white")
  208. o22.Position = Vector3.new(19.9799995, 4.49676847, 17.5016251)
  209. o22.Rotation = Vector3.new(0.189999998, -0.0299999993, 0)
  210. o22.Locked = true
  211. o22.Elasticity = 0
  212. o22.FormFactor = Enum.FormFactor.Symmetric
  213. o22.Friction = 2
  214. o22.Size = Vector3.new(2, 1, 1)
  215. o22.CFrame = CFrame.new(19.9799995, 4.49676847, 17.5016251, 0.999999881, -3.60915919e-08, -0.000516487518, -1.64474602e-06, 0.999994695, -0.00325133093, 0.000516484957, 0.00325133139, 0.999994576)
  216. o22.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  217. o22.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  218. o22.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  219. o22.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  220. o22.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  221. o22.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  222. o22.Color = Color3.new(0.972549, 0.972549, 0.972549)
  223. o22.Position = Vector3.new(19.9799995, 4.49676847, 17.5016251)
  224. o23.Name = "3.0 Female Head Mesh"
  225. o23.Parent = o22
  226. o23.MeshId = "rbxassetid://82992952"
  227. o23.Scale = Vector3.new(1.25, 1.25, 1.25)
  228. o23.MeshType = Enum.MeshType.FileMesh
  229. o24.Name = "face"
  230. o24.Parent = o22
  231. o24.Texture = "rbxassetid://912935344"
  232. o25.Name = "HairWeld"
  233. o25.Parent = o22
  234. o25.C1 = CFrame.new(-0.0288670063, 0.110000014, 0.00816631317, 0.962253213, 0, 0.27215606, 0, 1, 0, -0.27215606, 0, 0.962253213)
  235. o25.Part0 = o22
  236. o25.Part1 = mas
  237. o26.Name = "PlasticCreak"
  238. o26.Parent = o22
  239. o26.SoundId = "rbxassetid://913163726"
  240. o26.Volume = 1
  241. o26.Looped = true
  242. o27.Name = "BrokenHearts"
  243. o27.Parent = o22
  244. 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)
  245. o27.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(0, 0, 0))
  246. o27.Enabled = false
  247. o27.Texture = "rbxassetid://912982766"
  248. o27.Acceleration = Vector3.new(0, -10, 0)
  249. o27.Lifetime = NumberRange.new(1.5,1.5)
  250. o27.Rate = 10
  251. o27.RotSpeed = NumberRange.new(-100,100)
  252. o27.VelocitySpread = -99999
  253. o28.Name = "Hearts"
  254. o28.Parent = o22
  255. 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)
  256. o28.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(1, 0, 0))
  257. o28.Enabled = false
  258. o28.Texture = "rbxassetid://912982665"
  259. o28.Acceleration = Vector3.new(0, -2, 0)
  260. o28.Lifetime = NumberRange.new(2,2)
  261. o28.Rate = 10
  262. o28.RotSpeed = NumberRange.new(-100,100)
  263. o28.VelocitySpread = -99999
  264. o33.Name = "GettingUp"
  265. o33.Parent = o22
  266. o33.Archivable = false
  267. o33.SoundId = "rbxasset://sounds/action_get_up.mp3"
  268. o33.Volume = 1
  269. o34.Name = "Died"
  270. o34.Parent = o22
  271. o34.Archivable = false
  272. o34.SoundId = "rbxasset://sounds/uuhhh.mp3"
  273. o34.Volume = 1
  274. o35.Name = "FreeFalling"
  275. o35.Parent = o22
  276. o35.Archivable = false
  277. o35.SoundId = "rbxasset://sounds/action_falling.mp3"
  278. o35.Volume = 1
  279. o35.Looped = true
  280. o36.Name = "Jumping"
  281. o36.Parent = o22
  282. o36.Archivable = false
  283. o36.SoundId = "rbxasset://sounds/action_jump.mp3"
  284. o36.Volume = 1
  285. o37.Name = "Landing"
  286. o37.Parent = o22
  287. o37.Archivable = false
  288. o37.SoundId = "rbxasset://sounds/action_jump_land.mp3"
  289. o37.Volume = 1
  290. o38.Name = "Splash"
  291. o38.Parent = o22
  292. o38.Archivable = false
  293. o38.SoundId = "rbxasset://sounds/impact_water.mp3"
  294. o38.Volume = 1
  295. o39.Name = "Running"
  296. o39.Parent = o22
  297. o39.Archivable = false
  298. o39.Pitch = 1.8500000238419
  299. o39.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
  300. o39.Volume = 1
  301. o39.Looped = true
  302. o40.Name = "Swimming"
  303. o40.Parent = o22
  304. o40.Archivable = false
  305. o40.Pitch = 1.6000000238419
  306. o40.SoundId = "rbxasset://sounds/action_swim.mp3"
  307. o40.Volume = 1
  308. o40.Looped = true
  309. o41.Name = "Climbing"
  310. o41.Parent = o22
  311. o41.Archivable = false
  312. o41.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
  313. o41.Volume = 1
  314. o41.Looped = true
  315. o43.Name = "Right Arm"
  316. o43.Parent = o1
  317. o43.Material = Enum.Material.SmoothPlastic
  318. o43.BrickColor = BrickColor.new("Institutional white")
  319. o43.Position = Vector3.new(21.4802246, 2.99726868, 17.4985752)
  320. o43.Rotation = Vector3.new(0.0700000003, 0.0899999961, 0.0299999993)
  321. o43.CanCollide = false
  322. o43.Locked = true
  323. o43.Elasticity = 0
  324. o43.FormFactor = Enum.FormFactor.Symmetric
  325. o43.Friction = 2
  326. o43.Size = Vector3.new(1, 2, 1)
  327. o43.CFrame = CFrame.new(21.4802246, 2.99726868, 17.4985752, 0.999998689, -0.000450493681, 0.00155354757, 0.000452503999, 0.999999046, -0.00129395083, -0.00155296316, 0.00129465212, 0.999997973)
  328. o43.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  329. o43.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  330. o43.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  331. o43.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  332. o43.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  333. o43.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  334. o43.Color = Color3.new(0.972549, 0.972549, 0.972549)
  335. o43.Position = Vector3.new(21.4802246, 2.99726868, 17.4985752)
  336. o45.Name = "Right Leg"
  337. o45.Parent = o1
  338. o45.Material = Enum.Material.SmoothPlastic
  339. o45.BrickColor = BrickColor.new("Institutional white")
  340. o45.Position = Vector3.new(20.4799995, 0.999999762, 17.5)
  341. o45.CanCollide = false
  342. o45.Locked = true
  343. o45.Elasticity = 0
  344. o45.FormFactor = Enum.FormFactor.Symmetric
  345. o45.Friction = 2
  346. o45.Size = Vector3.new(1, 2, 1)
  347. o45.CFrame = CFrame.new(20.4799995, 0.999999762, 17.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  348. o45.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  349. o45.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  350. o45.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  351. o45.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  352. o45.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  353. o45.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  354. o45.Color = Color3.new(0.972549, 0.972549, 0.972549)
  355. o45.Position = Vector3.new(20.4799995, 0.999999762, 17.5)
  356. o46.Name = "Left Leg"
  357. o46.Parent = o1
  358. o46.Material = Enum.Material.SmoothPlastic
  359. o46.BrickColor = BrickColor.new("Institutional white")
  360. o46.Position = Vector3.new(19.4799995, 0.999910355, 17.5)
  361. o46.CanCollide = false
  362. o46.Locked = true
  363. o46.Elasticity = 0
  364. o46.FormFactor = Enum.FormFactor.Symmetric
  365. o46.Friction = 2
  366. o46.Size = Vector3.new(1, 2, 1)
  367. o46.CFrame = CFrame.new(19.4799995, 0.999910355, 17.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  368. o46.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  369. o46.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  370. o46.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  371. o46.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  372. o46.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  373. o46.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  374. o46.Color = Color3.new(0.972549, 0.972549, 0.972549)
  375. o46.Position = Vector3.new(19.4799995, 0.999910355, 17.5)
  376. o47.Name = "SeductiveWoman"
  377. o47.Parent = o1
  378. o47.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  379. o47.HealthDisplayDistance = 0
  380. o47.NameDisplayDistance = 0
  381. o47.NameOcclusion = Enum.NameOcclusion.EnemyOcclusion
  382. o47.RightLeg = o45
  383. o47.LeftLeg = o46
  384. o47.Torso = o18
  385. o47.Health = inf
  386. o47.MaxHealth = inf
  387. o47.WalkSpeed = 20
  388. o48.Name = "Status"
  389. o48.Parent = o47
  390. o49.Name = "AvalibleSpawns"
  391. o49.Parent = o48
  392. o51.Name = "Respawn"
  393. o51.Parent = o1
  394. table.insert(cors,coroutine.create(function()
  395. wait()
  396. runDummyScript(function()
  397. --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
  398. 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. ]]--
  399. local AdvancedRespawnScript=script;
  400. repeat Wait(0)until script and script.Parent and script.Parent.ClassName=="Model";
  401. local Laina=AdvancedRespawnScript.Parent;
  402. if AdvancedRespawnScript and Laina and Laina:FindFirstChild("Thumbnail")then
  403. Laina:FindFirstChild("Thumbnail"):Destroy();
  404. end;
  405. local GameDerbis=Game:GetService("Debris");
  406. local LainaHumanoid;
  407. for _,Child in pairs(Laina:GetChildren())do
  408. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  409. LainaHumanoid=Child;
  410. end;
  411. end;
  412. local Respawndant=Laina:Clone();
  413. if PlayerSpawning then --[[ LOOK AT LINE: 2. ]]--
  414. coroutine.resume(coroutine.create(function()
  415. if Laina and LainaHumanoid and LainaHumanoid:FindFirstChild("Status")and not LainaHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns")then
  416. SpawnModel=Instance.new("Model");
  417. SpawnModel.Parent=LainaHumanoid.Status;
  418. SpawnModel.Name="AvalibleSpawns";
  419. else
  420. SpawnModel=LainaHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns");
  421. end;
  422. function FindSpawn(SearchValue)
  423. local PartsArchivable=SearchValue:GetChildren();
  424. for AreaSearch=1,#PartsArchivable do
  425. if PartsArchivable[AreaSearch].className=="SpawnLocation"then
  426. local PositionValue=Instance.new("Vector3Value",SpawnModel);
  427. PositionValue.Value=PartsArchivable[AreaSearch].Position;
  428. PositionValue.Name=PartsArchivable[AreaSearch].Duration;
  429. end;
  430. FindSpawn(PartsArchivable[AreaSearch]);
  431. end;
  432. end;
  433. FindSpawn(Game:GetService("Workspace"));
  434. local SpawnChilden=SpawnModel:GetChildren();
  435. if#SpawnChilden>0 then
  436. local SpawnItself=SpawnChilden[math.random(1,#SpawnChilden)];
  437. local RespawningForceField=Instance.new("ForceField");
  438. RespawningForceField.Parent=Laina;
  439. RespawningForceField.Name="SpawnForceField";
  440. GameDerbis:AddItem(RespawningForceField,SpawnItself.Name);
  441. Laina:MoveTo(SpawnItself.Value+Vector3.new(0,3.5,0));
  442. else
  443. if Laina:FindFirstChild("SpawnForceField")then
  444. Laina:FindFirstChild("SpawnForceField"):Destroy();
  445. end;
  446. Laina:MoveTo(Vector3.new(0,115,0));
  447. end;
  448. end));
  449. end;
  450. function Respawn()
  451. Wait(5);
  452. Respawndant.Parent=Laina.Parent;
  453. Respawndant:makeJoints();
  454. Respawndant:FindFirstChild("Head"):MakeJoints();
  455. Respawndant:FindFirstChild("Torso"):MakeJoints();
  456. Laina:remove();
  457. end;
  458. if AdvancedRespawnScript and Laina and LainaHumanoid then
  459. LainaHumanoid.Died:connect(Respawn);
  460. end;
  461. --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
  462. end,o51)
  463. end))
  464. o52.Parent = o1
  465. o52.HeadColor = BrickColor.new("Institutional white")
  466. o52.LeftArmColor = BrickColor.new("Institutional white")
  467. o52.LeftLegColor = BrickColor.new("Institutional white")
  468. o52.RightArmColor = BrickColor.new("Institutional white")
  469. o52.RightLegColor = BrickColor.new("Institutional white")
  470. o52.TorsoColor = BrickColor.new("Institutional white")
  471. o53.Name = "Dress"
  472. o53.Parent = o1
  473. o53.PantsTemplate = "rbxassetid://912935270"
  474. o54.Name = "LainaMain"
  475. o54.Parent = o1
  476. table.insert(cors,coroutine.create(function()
  477. wait()
  478. runDummyScript(function()
  479. --[[ By: Brutez. ]]--
  480. local LainaScript=script;
  481. repeat Wait(0)until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso");
  482. local Laina=LainaScript.Parent;
  483. local LainaHumanoid;
  484. for _,Child in pairs(Laina:GetChildren())do
  485. if Child and Child:IsA("Humanoid")and Child.Health~=0 then
  486. LainaHumanoid=Child;
  487. end;
  488. end;
  489. 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);
  490. local LainaWeld;
  491. local LainaBodyGyro;
  492. RecreateThingies=function()
  493. LainaWeld=Instance.new("Weld");
  494. LainaWeld.Name="LainaWeld";
  495. LainaBodyGyro=Instance.new("BodyGyro");
  496. LainaBodyGyro.Name="LainaBodyGyro";
  497. LainaBodyGyro.cframe=CFrame.new(Vector3.new(0,0,0),Vector3.new(0,5000000,0));
  498. LainaBodyGyro.D=300;
  499. LainaBodyGyro.maxTorque=Vector3.new(99999e99999,99999e99999,0);
  500. LainaBodyGyro.P=7000;
  501. end;
  502. RecreateThingies();
  503. local IsOnTop=false;
  504. function RayCast(Position,Direction,MaxDistance,IgnoreList)
  505. return Game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position,Direction.unit * (MaxDistance or 999.8699)),IgnoreList)
  506. end;
  507. while Wait(0)do
  508. if LainaScript and Laina and Laina:FindFirstChild("Torso") and LainaHumanoid and LainaHumanoid.Health~=0 then
  509. local TargetPoint=LainaHumanoid.TargetPoint;
  510. 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})
  511. local Jumpable=false;
  512. if Blockage then
  513. Jumpable=true;
  514. if Blockage and Blockage.Parent and Blockage.Parent.ClassName~="Workspace"then
  515. local BlockageHumanoid;
  516. for _,Child in pairs(Blockage.Parent:GetChildren())do
  517. if Child and Child:IsA("Humanoid")and Child.Health~=0 then
  518. BlockageHumanoid=Child;
  519. end;
  520. end;
  521. if Blockage and Blockage:IsA("Terrain")then
  522. local CellPos=Blockage:WorldToCellPreferSolid((BlockagePos-Vector3.new(0,2,0)));
  523. local CellMaterial,CellShape,CellOrientation=Blockage:GetCell(CellPos.X,CellPos.Y,CellPos.Z);
  524. if CellMaterial==Enum.CellMaterial.Water then
  525. Jumpable=false;
  526. end;
  527. elseif BlockageHumanoid or Blockage.ClassName=="TrussPart"or Blockage.ClassName=="WedgePart"then
  528. Jumpable=false;
  529. end;
  530. end;
  531. if Jumpable and LainaScript and Laina and LainaHumanoid and LainaHumanoid.Health~=0 and not LainaHumanoid.Sit and not IsOnTop then
  532. LainaHumanoid.Jump=true;
  533. end;
  534. end;
  535. end;
  536. 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
  537. Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://912935337";
  538. Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=false;
  539. Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=true;
  540. 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
  541. Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak"):Stop();
  542. end;
  543. 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
  544. Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip").C0=LeftLegC0;
  545. Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder").C0=LeftArmC0;
  546. Laina:FindFirstChild("Torso"):FindFirstChild("Neck").C0=HeadC0;
  547. Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip").C0=RightLegC0;
  548. Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder").C0=RightArmC0;
  549. end;
  550. end;
  551. 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
  552. Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://912935344";
  553. Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=false;
  554. Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=false;
  555. 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
  556. Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak"):Stop();
  557. end;
  558. 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
  559. Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip").C0=LeftLegC0;
  560. Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder").C0=LeftArmC0;
  561. Laina:FindFirstChild("Torso"):FindFirstChild("Neck").C0=HeadC0;
  562. Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip").C0=RightLegC0;
  563. Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder").C0=RightArmC0;
  564. end;
  565. 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
  566. Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://912935342";
  567. Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=true;
  568. Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=false;
  569. 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
  570. Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak"):Play();
  571. end;
  572. 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
  573. 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
  574. Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip").C0=LeftLegC02*CFrame.fromEulerAnglesXYZ(1.5,1.5-LRotation,-1);
  575. Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder").C0=LeftArmC0*CFrame.fromEulerAnglesXYZ(0,0,0.3+LARotation);
  576. Laina:FindFirstChild("Torso"):FindFirstChild("Neck").C0=HeadC0*CFrame.fromEulerAnglesXYZ(0.5+HRotation,0,0);
  577. Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip").C0=RightLegC02*CFrame.fromEulerAnglesXYZ(1.5,-1.5+RRotation,1);
  578. Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder").C0=RightArmC0*CFrame.fromEulerAnglesXYZ(0,0,-0.3-RARotation);
  579. end;
  580. end;
  581. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and not LainaHumanoid.AutoJumpEnabled then
  582. LainaHumanoid.AutoJumpEnabled=true;
  583. end;
  584. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and not LainaHumanoid.AutoRotate then
  585. LainaHumanoid.AutoRotate=true;
  586. end;
  587. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and LainaHumanoid.PlatformStand then
  588. LainaHumanoid.PlatformStand=false;
  589. end;
  590. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and LainaHumanoid.Sit and not IsOnTop then
  591. LainaHumanoid.Sit=false;
  592. end;
  593. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 then
  594. LainaHumanoid.JumpPower=60;
  595. LainaHumanoid.WalkSpeed=20;
  596. end;
  597. local NoticeDistance=99999e99999;
  598. for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
  599. if TargetModel and TargetModel:IsA("Model")and TargetModel~=Laina and TargetModel:FindFirstChild("Torso")and TargetModel:FindFirstChild("Head")then
  600. local TargetPart=TargetModel:FindFirstChild("Torso");
  601. local FoundHumanoid;
  602. for _,Child in pairs(TargetModel:GetChildren())do
  603. if Child~=nil and Child:IsA("Humanoid")and Child.Health~=0 then
  604. FoundHumanoid=Child;
  605. end;
  606. end;
  607. 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
  608. NoticeDistance=(TargetPart.Position-Laina:FindFirstChild("HumanoidRootPart").Position).magnitude;
  609. 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
  610. LainaHumanoid.Jump=true;
  611. end;
  612. LainaHumanoid:MoveTo(TargetPart.Position+(TargetPart.Position-Laina:FindFirstChild("Torso").Position).unit*2,Game:GetService("Workspace"):FindFirstChild("Terrain"));
  613. if TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-Laina:FindFirstChild("HumanoidRootPart").Position).magnitude<5 and not IsOnTop then
  614. IsOnTop=true;
  615. LainaWeld.Parent=Laina:FindFirstChild("Torso");
  616. LainaWeld.Part1=Laina:FindFirstChild("Torso");
  617. LainaWeld.C0=CFrame.new(0,-0.1,-1.4)*CFrame.fromEulerAnglesXYZ(-0.7+math.sin(tick()*9.86)*0.3,math.pi,0);
  618. LainaWeld.Part0=TargetPart;
  619. LainaBodyGyro.Parent=TargetPart;
  620. 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
  621. if TargetModel and FoundHumanoid and FoundHumanoid.Health~=0 and FoundHumanoid:FindFirstChild("Status")and FoundHumanoid:FindFirstChild("Status").ClassName=="Status"then
  622. local JumpOk=LainaScript:FindFirstChild("JumpOk"):Clone();
  623. JumpOk.Parent=TargetModel;
  624. JumpOk.Disabled=false;
  625. 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
  626. local JumpOkNPC=LainaScript:FindFirstChild("JumpOkNPC"):Clone();
  627. JumpOkNPC.Parent=TargetModel;
  628. JumpOkNPC.Disabled=false;
  629. end;
  630. end;
  631. Spawn(function()
  632. while Wait(0)do
  633. 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
  634. LainaHumanoid.Sit=true;
  635. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and Laina:FindFirstChild("Torso")and LainaWeld then
  636. LainaWeld.C0=CFrame.new(0,-0.1,-1.4)*CFrame.fromEulerAnglesXYZ(-0.7+math.sin(tick()*9.86)*0.3,math.pi,0);
  637. end;
  638. if TargetModel~=nil and TargetPart~=nil and FoundHumanoid~=nil and FoundHumanoid.Health~=0 then
  639. FoundHumanoid.Jump=false;
  640. FoundHumanoid.Sit=true;
  641. end;
  642. else
  643. IsOnTop=false;
  644. if LainaWeld then
  645. LainaWeld:Destroy();
  646. end;
  647. if LainaBodyGyro then
  648. LainaBodyGyro:Destroy();
  649. end;
  650. RecreateThingies();
  651. break
  652. end;
  653. end;
  654. end)
  655. end;
  656. end;
  657. end;
  658. end;
  659. end;
  660. --[[ By: Brutez. ]]--
  661. end,o54)
  662. end))
  663. o55.Name = "JumpOk"
  664. o55.Parent = o54
  665. o55.Disabled = true
  666. table.insert(cors,coroutine.create(function()
  667. wait()
  668. runDummyScript(function()
  669. --[[ By: Brutez. ]]--
  670. local JumpScript=script;
  671. repeat Wait(0);until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso");
  672. local ROBLOXian=JumpScript.Parent;
  673. local ROBLOXianHumanoid;
  674. for _,Child in pairs(ROBLOXian:GetChildren())do
  675. if Child and Child.ClassName=="Humanoid"and Child.Health>0.001 then
  676. ROBLOXianHumanoid=Child;
  677. end;
  678. end;
  679. if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 then
  680. ROBLOXianHumanoid.Changed:connect(function()
  681. 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
  682. ROBLOXianHumanoid.Jump=false;
  683. end;
  684. end);
  685. end;
  686. while Wait(0)do
  687. 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
  688. JumpScript.Disabled=true;
  689. JumpScript:Destroy();
  690. break
  691. end;
  692. end;
  693. --[[ By: Brutez. ]]--
  694. end,o55)
  695. end))
  696. o56.Name = "JumpOkNPC"
  697. o56.Parent = o54
  698. o56.Disabled = true
  699. table.insert(cors,coroutine.create(function()
  700. wait()
  701. runDummyScript(function()
  702. --[[ By: Brutez. ]]--
  703. local JumpScript=script;
  704. repeat Wait(0);until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso");
  705. local ROBLOXian=JumpScript.Parent;
  706. local ROBLOXianHumanoid;
  707. for _,Child in pairs(ROBLOXian:GetChildren())do
  708. if Child and Child.ClassName=="Humanoid"and Child.Health>0.001 then
  709. ROBLOXianHumanoid=Child;
  710. end;
  711. end;
  712. if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 then
  713. ROBLOXianHumanoid.Changed:connect(function()
  714. 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
  715. ROBLOXianHumanoid.Jump=false;
  716. end;
  717. end);
  718. end;
  719. while Wait(0)do
  720. 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
  721. JumpScript.Disabled=true;
  722. JumpScript:Destroy();
  723. break
  724. end;
  725. end;
  726. --[[ By: Brutez. ]]--
  727. end,o56)
  728. end))
  729. o57.Parent = o54
  730. o57.Texture = "http://www.roblox.com/asset/?id=912935342"
  731. o58.Name = "3.0 Female Left Arm"
  732. o58.Parent = o1
  733. o58.MeshId = 83001137
  734. o58.BodyPart = Enum.BodyPart.LeftArm
  735. o59.Name = "3.0 Female Left Leg"
  736. o59.Parent = o1
  737. o59.MeshId = 81628361
  738. o59.BodyPart = Enum.BodyPart.LeftLeg
  739. o60.Name = "3.0 Female Right Arm"
  740. o60.Parent = o1
  741. o60.MeshId = 83001181
  742. o60.BodyPart = Enum.BodyPart.RightArm
  743. o61.Name = "3.0 Female Right Leg"
  744. o61.Parent = o1
  745. o61.MeshId = 81628308
  746. o61.BodyPart = Enum.BodyPart.RightLeg
  747. o62.Name = "3.0 Female Torso"
  748. o62.Parent = o1
  749. o62.MeshId = 82987757
  750. o62.BodyPart = Enum.BodyPart.Torso
  751. o63.Name = "SoundNew"
  752. o63.Parent = o1
  753. table.insert(cors,coroutine.create(function()
  754. wait()
  755. runDummyScript(function()
  756. --[[ Compact mode by: Brutez. ]]--
  757. Spawn(function()
  758. 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,{};
  759. 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");
  760. 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;};
  761. 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;
  762. end);
  763. --[[ Compact mode by: Brutez. ]]--
  764. function CreateNewSound(name,id,looped,pitch,parent)
  765. local sound=Instance.new("Sound");
  766. sound.SoundId=id;
  767. sound.Name=name;
  768. sound.archivable=false;
  769. sound.Parent=parent;
  770. sound.Pitch=pitch;
  771. sound.Looped=looped;
  772. sound.MinDistance=20;
  773. sound.MaxDistance=10000;
  774. sound.Volume=1;
  775. return sound;
  776. end;
  777. local head=script.Parent:FindFirstChild("Head");
  778. CreateNewSound("GettingUp","rbxasset://sounds/action_get_up.mp3",false,1,head);
  779. CreateNewSound("Died","rbxasset://sounds/uuhhh.mp3",false,1,head);
  780. CreateNewSound("FreeFalling","rbxasset://sounds/action_falling.mp3",true,1,head);
  781. CreateNewSound("Jumping","rbxasset://sounds/action_jump.mp3",false,1,head);
  782. CreateNewSound("Landing","rbxasset://sounds/action_jump_land.mp3",false,1,head);
  783. CreateNewSound("Splash","rbxasset://sounds/impact_water.mp3",false,1,head);
  784. CreateNewSound("Running","rbxasset://sounds/action_footsteps_plastic.mp3",true,1.85,head);
  785. CreateNewSound("Swimming","rbxasset://sounds/action_swim.mp3",true,1.6,head);
  786. CreateNewSound("Climbing","rbxasset://sounds/action_footsteps_plastic.mp3",true,1,head);
  787. end,o63)
  788. end))
  789. o64.Name = "AnimateNew"
  790. o64.Parent = o1
  791. table.insert(cors,coroutine.create(function()
  792. wait()
  793. runDummyScript(function()
  794. local Figure = script.Parent
  795. local Torso = Figure:FindFirstChild("Torso")
  796. local RightShoulder = Torso:FindFirstChild("Right Shoulder")
  797. local LeftShoulder = Torso:FindFirstChild("Left Shoulder")
  798. local RightHip = Torso:FindFirstChild("Right Hip")
  799. local LeftHip = Torso:FindFirstChild("Left Hip")
  800. local Neck = Torso:FindFirstChild("Neck")
  801. local Humanoid;
  802. for _,Child in pairs(Figure:GetChildren())do
  803. if Child~=nil and Child:IsA("Humanoid")and Child.Health~=0 then
  804. Humanoid=Child;
  805. end;
  806. end;
  807. local pose = "Standing"
  808.  
  809. local currentAnim = ""
  810. local currentAnimInstance = nil
  811. local currentAnimTrack = nil
  812. local currentAnimKeyframeHandler = nil
  813. local currentAnimSpeed = 1.0
  814. local animTable = {}
  815. local animNames = {
  816. idle = {
  817. { id = "http://www.roblox.com/asset/?id=180435571", weight = 9 },
  818. { id = "http://www.roblox.com/asset/?id=180435792", weight = 1 }
  819. },
  820. walk = {
  821. { id = "http://www.roblox.com/asset/?id=180426354", weight = 10 }
  822. },
  823. run = {
  824. { id = "run.xml", weight = 10 }
  825. },
  826. jump = {
  827. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  828. },
  829. fall = {
  830. { id = "http://www.roblox.com/asset/?id=180436148", weight = 10 }
  831. },
  832. climb = {
  833. { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
  834. },
  835. sit = {
  836. { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
  837. },
  838. toolnone = {
  839. { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 }
  840. },
  841. toolslash = {
  842. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  843. -- { id = "slash.xml", weight = 10 }
  844. },
  845. toollunge = {
  846. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  847. },
  848. wave = {
  849. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  850. },
  851. point = {
  852. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  853. },
  854. dance1 = {
  855. { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 },
  856. { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 },
  857. { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 }
  858. },
  859. dance2 = {
  860. { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 },
  861. { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 },
  862. { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 }
  863. },
  864. dance3 = {
  865. { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 },
  866. { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 },
  867. { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 }
  868. },
  869. laugh = {
  870. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  871. },
  872. cheer = {
  873. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  874. },
  875. }
  876. local dances = {"dance1", "dance2", "dance3"}
  877.  
  878. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  879. local emoteNames = { wave = false, point = false, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  880.  
  881. function configureAnimationSet(name, fileList)
  882. if (animTable[name] ~= nil) then
  883. for _, connection in pairs(animTable[name].connections) do
  884. connection:disconnect()
  885. end
  886. end
  887. animTable[name] = {}
  888. animTable[name].count = 0
  889. animTable[name].totalWeight = 0
  890. animTable[name].connections = {}
  891.  
  892. -- check for config values
  893. local config = script:FindFirstChild(name)
  894. if (config ~= nil) then
  895. -- print("Loading anims " .. name)
  896. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  897. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  898. local idx = 1
  899. for _, childPart in pairs(config:GetChildren()) do
  900. if (childPart:IsA("Animation")) then
  901. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  902. animTable[name][idx] = {}
  903. animTable[name][idx].anim = childPart
  904. local weightObject = childPart:FindFirstChild("Weight")
  905. if (weightObject == nil) then
  906. animTable[name][idx].weight = 1
  907. else
  908. animTable[name][idx].weight = weightObject.Value
  909. end
  910. animTable[name].count = animTable[name].count + 1
  911. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  912. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  913. idx = idx + 1
  914. end
  915. end
  916. end
  917.  
  918. -- fallback to defaults
  919. if (animTable[name].count <= 0) then
  920. for idx, anim in pairs(fileList) do
  921. animTable[name][idx] = {}
  922. animTable[name][idx].anim = Instance.new("Animation")
  923. animTable[name][idx].anim.Name = name
  924. animTable[name][idx].anim.AnimationId = anim.id
  925. animTable[name][idx].weight = anim.weight
  926. animTable[name].count = animTable[name].count + 1
  927. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  928. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  929. end
  930. end
  931. end
  932.  
  933. -- Setup animation objects
  934. function scriptChildModified(child)
  935. local fileList = animNames[child.Name]
  936. if (fileList ~= nil) then
  937. configureAnimationSet(child.Name, fileList)
  938. end
  939. end
  940.  
  941. script.ChildAdded:connect(scriptChildModified)
  942. script.ChildRemoved:connect(scriptChildModified)
  943.  
  944.  
  945. for name, fileList in pairs(animNames) do
  946. configureAnimationSet(name, fileList)
  947. end
  948.  
  949. -- ANIMATION
  950.  
  951. -- declarations
  952. local toolAnim = "None"
  953. local toolAnimTime = 0
  954.  
  955. local jumpAnimTime = 0
  956. local jumpAnimDuration = 0.3
  957.  
  958. local toolTransitionTime = 0.1
  959. local fallTransitionTime = 0.3
  960. local jumpMaxLimbVelocity = 0.75
  961.  
  962. -- functions
  963.  
  964. function stopAllAnimations()
  965. local oldAnim = currentAnim
  966.  
  967. -- return to idle if finishing an emote
  968. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  969. oldAnim = "idle"
  970. end
  971.  
  972. currentAnim = ""
  973. currentAnimInstance = nil
  974. if (currentAnimKeyframeHandler ~= nil) then
  975. currentAnimKeyframeHandler:disconnect()
  976. end
  977.  
  978. if (currentAnimTrack ~= nil) then
  979. currentAnimTrack:Stop()
  980. currentAnimTrack:Destroy()
  981. currentAnimTrack = nil
  982. end
  983. return oldAnim
  984. end
  985.  
  986. function setAnimationSpeed(speed)
  987. if speed ~= currentAnimSpeed then
  988. currentAnimSpeed = speed
  989. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  990. end
  991. end
  992.  
  993. function keyFrameReachedFunc(frameName)
  994. if (frameName == "End") then
  995.  
  996. local repeatAnim = currentAnim
  997. -- return to idle if finishing an emote
  998. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  999. repeatAnim = "idle"
  1000. end
  1001.  
  1002. local animSpeed = currentAnimSpeed
  1003. playAnimation(repeatAnim, 0.0, Humanoid)
  1004. setAnimationSpeed(animSpeed)
  1005. end
  1006. end
  1007.  
  1008. -- Preload animations
  1009. function playAnimation(animName, transitionTime, humanoid)
  1010.  
  1011. local roll = math.random(1, animTable[animName].totalWeight)
  1012. local origRoll = roll
  1013. local idx = 1
  1014. while (roll > animTable[animName][idx].weight) do
  1015. roll = roll - animTable[animName][idx].weight
  1016. idx = idx + 1
  1017. end
  1018. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  1019. local anim = animTable[animName][idx].anim
  1020.  
  1021. -- switch animation
  1022. if (anim ~= currentAnimInstance) then
  1023.  
  1024. if (currentAnimTrack ~= nil) then
  1025. currentAnimTrack:Stop(transitionTime)
  1026. currentAnimTrack:Destroy()
  1027. end
  1028.  
  1029. currentAnimSpeed = 1.0
  1030.  
  1031. -- load it to the humanoid; get AnimationTrack
  1032. currentAnimTrack = humanoid:LoadAnimation(anim)
  1033. currentAnimTrack.Priority = Enum.AnimationPriority.Core
  1034.  
  1035. -- play the animation
  1036. currentAnimTrack:Play(transitionTime)
  1037. currentAnim = animName
  1038. currentAnimInstance = anim
  1039.  
  1040. -- set up keyframe name triggers
  1041. if (currentAnimKeyframeHandler ~= nil) then
  1042. currentAnimKeyframeHandler:disconnect()
  1043. end
  1044. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  1045.  
  1046. end
  1047.  
  1048. end
  1049.  
  1050. -------------------------------------------------------------------------------------------
  1051. -------------------------------------------------------------------------------------------
  1052.  
  1053. local toolAnimName = ""
  1054. local toolAnimTrack = nil
  1055. local toolAnimInstance = nil
  1056. local currentToolAnimKeyframeHandler = nil
  1057.  
  1058. function toolKeyFrameReachedFunc(frameName)
  1059. if (frameName == "End") then
  1060. -- print("Keyframe : ".. frameName)
  1061. playToolAnimation(toolAnimName, 0.0, Humanoid)
  1062. end
  1063. end
  1064.  
  1065.  
  1066. function playToolAnimation(animName, transitionTime, humanoid, priority)
  1067.  
  1068. local roll = math.random(1, animTable[animName].totalWeight)
  1069. local origRoll = roll
  1070. local idx = 1
  1071. while (roll > animTable[animName][idx].weight) do
  1072. roll = roll - animTable[animName][idx].weight
  1073. idx = idx + 1
  1074. end
  1075. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  1076. local anim = animTable[animName][idx].anim
  1077.  
  1078. if (toolAnimInstance ~= anim) then
  1079.  
  1080. if (toolAnimTrack ~= nil) then
  1081. toolAnimTrack:Stop()
  1082. toolAnimTrack:Destroy()
  1083. transitionTime = 0
  1084. end
  1085.  
  1086. -- load it to the humanoid; get AnimationTrack
  1087. toolAnimTrack = humanoid:LoadAnimation(anim)
  1088. if priority then
  1089. toolAnimTrack.Priority = priority
  1090. end
  1091.  
  1092. -- play the animation
  1093. toolAnimTrack:Play(transitionTime)
  1094. toolAnimName = animName
  1095. toolAnimInstance = anim
  1096.  
  1097. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  1098. end
  1099. end
  1100.  
  1101. function stopToolAnimations()
  1102. local oldAnim = toolAnimName
  1103.  
  1104. if (currentToolAnimKeyframeHandler ~= nil) then
  1105. currentToolAnimKeyframeHandler:disconnect()
  1106. end
  1107.  
  1108. toolAnimName = ""
  1109. toolAnimInstance = nil
  1110. if (toolAnimTrack ~= nil) then
  1111. toolAnimTrack:Stop()
  1112. toolAnimTrack:Destroy()
  1113. toolAnimTrack = nil
  1114. end
  1115.  
  1116.  
  1117. return oldAnim
  1118. end
  1119.  
  1120. -------------------------------------------------------------------------------------------
  1121. -------------------------------------------------------------------------------------------
  1122.  
  1123.  
  1124. function onRunning(speed)
  1125. if speed > 0.01 then
  1126. playAnimation("walk", 0.1, Humanoid)
  1127. if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
  1128. setAnimationSpeed(speed / 14.5)
  1129. end
  1130. pose = "Running"
  1131. else
  1132. if emoteNames[currentAnim] == nil then
  1133. playAnimation("idle", 0.1, Humanoid)
  1134. pose = "Standing"
  1135. end
  1136. end
  1137. end
  1138.  
  1139. function onDied()
  1140. pose = "Dead"
  1141. end
  1142.  
  1143. function onJumping()
  1144. playAnimation("jump", 0.1, Humanoid)
  1145. jumpAnimTime = jumpAnimDuration
  1146. pose = "Jumping"
  1147. end
  1148.  
  1149. function onClimbing(speed)
  1150. playAnimation("climb", 0.1, Humanoid)
  1151. setAnimationSpeed(speed / 12.0)
  1152. pose = "Climbing"
  1153. end
  1154.  
  1155. function onGettingUp()
  1156. pose = "GettingUp"
  1157. end
  1158.  
  1159. function onFreeFall()
  1160. if (jumpAnimTime <= 0) then
  1161. playAnimation("fall", fallTransitionTime, Humanoid)
  1162. end
  1163. pose = "FreeFall"
  1164. end
  1165.  
  1166. function onFallingDown()
  1167. pose = "FallingDown"
  1168. end
  1169.  
  1170. function onSeated()
  1171. pose = "Seated"
  1172. end
  1173.  
  1174. function onPlatformStanding()
  1175. pose = "PlatformStanding"
  1176. end
  1177.  
  1178. function onSwimming(speed)
  1179. if speed > 0 then
  1180. pose = "Running"
  1181. else
  1182. pose = "Standing"
  1183. end
  1184. end
  1185.  
  1186. function getTool()
  1187. for _, kid in ipairs(Figure:GetChildren()) do
  1188. if kid.className == "Tool" then return kid end
  1189. end
  1190. return nil
  1191. end
  1192.  
  1193. function getToolAnim(tool)
  1194. for _, c in ipairs(tool:GetChildren()) do
  1195. if c.Name == "toolanim" and c.className == "StringValue" then
  1196. return c
  1197. end
  1198. end
  1199. return nil
  1200. end
  1201.  
  1202. function animateTool()
  1203.  
  1204. if (toolAnim == "None") then
  1205. playToolAnimation("toolnone", toolTransitionTime, Humanoid, Enum.AnimationPriority.Idle)
  1206. return
  1207. end
  1208.  
  1209. if (toolAnim == "Slash") then
  1210. playToolAnimation("toolslash", 0, Humanoid, Enum.AnimationPriority.Action)
  1211. return
  1212. end
  1213.  
  1214. if (toolAnim == "Lunge") then
  1215. playToolAnimation("toollunge", 0, Humanoid, Enum.AnimationPriority.Action)
  1216. return
  1217. end
  1218. end
  1219.  
  1220. function moveSit()
  1221. RightShoulder.MaxVelocity = 0.15
  1222. LeftShoulder.MaxVelocity = 0.15
  1223. RightShoulder:SetDesiredAngle(3.14 /2)
  1224. LeftShoulder:SetDesiredAngle(-3.14 /2)
  1225. RightHip:SetDesiredAngle(3.14 /2)
  1226. LeftHip:SetDesiredAngle(-3.14 /2)
  1227. end
  1228.  
  1229. local lastTick = 0
  1230.  
  1231. function move(time)
  1232. local amplitude = 1
  1233. local frequency = 1
  1234. local deltaTime = time - lastTick
  1235. lastTick = time
  1236.  
  1237. local climbFudge = 0
  1238. local setAngles = false
  1239.  
  1240. if (jumpAnimTime > 0) then
  1241. jumpAnimTime = jumpAnimTime - deltaTime
  1242. end
  1243.  
  1244. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  1245. playAnimation("fall", fallTransitionTime, Humanoid)
  1246. elseif (pose == "Seated") then
  1247. playAnimation("sit", 0.5, Humanoid)
  1248. return
  1249. elseif (pose == "Running") then
  1250. playAnimation("walk", 0.1, Humanoid)
  1251. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  1252. -- print("Wha " .. pose)
  1253. stopAllAnimations()
  1254. amplitude = 0.1
  1255. frequency = 1
  1256. setAngles = true
  1257. end
  1258.  
  1259. if (setAngles) then
  1260. local desiredAngle = amplitude * math.sin(time * frequency)
  1261.  
  1262. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  1263. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  1264. RightHip:SetDesiredAngle(-desiredAngle)
  1265. LeftHip:SetDesiredAngle(-desiredAngle)
  1266. end
  1267.  
  1268. -- Tool Animation handling
  1269. local tool = getTool()
  1270. if tool and tool:FindFirstChild("Handle") then
  1271.  
  1272. local animStringValueObject = getToolAnim(tool)
  1273.  
  1274. if animStringValueObject then
  1275. toolAnim = animStringValueObject.Value
  1276. -- message recieved, delete StringValue
  1277. animStringValueObject.Parent = nil
  1278. toolAnimTime = time + .3
  1279. end
  1280.  
  1281. if time > toolAnimTime then
  1282. toolAnimTime = 0
  1283. toolAnim = "None"
  1284. end
  1285.  
  1286. animateTool()
  1287. else
  1288. stopToolAnimations()
  1289. toolAnim = "None"
  1290. toolAnimInstance = nil
  1291. toolAnimTime = 0
  1292. end
  1293. end
  1294.  
  1295. -- connect events
  1296. Humanoid.Died:connect(onDied)
  1297. Humanoid.Running:connect(onRunning)
  1298. Humanoid.Jumping:connect(onJumping)
  1299. Humanoid.Climbing:connect(onClimbing)
  1300. Humanoid.GettingUp:connect(onGettingUp)
  1301. Humanoid.FreeFalling:connect(onFreeFall)
  1302. Humanoid.FallingDown:connect(onFallingDown)
  1303. Humanoid.Seated:connect(onSeated)
  1304. Humanoid.PlatformStanding:connect(onPlatformStanding)
  1305. Humanoid.Swimming:connect(onSwimming)
  1306. playAnimation("idle", 0.1, Humanoid)
  1307. pose = "Standing"
  1308. while Figure.Parent ~= nil do
  1309. local _, time = wait(0.1)
  1310. move(time)
  1311. end
  1312. end,o64)
  1313. end))
  1314. o65.Name = "climb"
  1315. o65.Parent = o64
  1316. o66.Name = "ClimbAnim"
  1317. o66.Parent = o65
  1318. o66.AnimationId = "http://www.roblox.com/asset/?id=180436334"
  1319. o67.Name = "fall"
  1320. o67.Parent = o64
  1321. o68.Name = "FallAnim"
  1322. o68.Parent = o67
  1323. o68.AnimationId = "http://www.roblox.com/asset/?id=180436148"
  1324. o69.Name = "idle"
  1325. o69.Parent = o64
  1326. o70.Name = "Animation1"
  1327. o70.Parent = o69
  1328. o70.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1329. o71.Name = "Weight"
  1330. o71.Parent = o70
  1331. o71.Value = 9
  1332. o72.Name = "Animation2"
  1333. o72.Parent = o69
  1334. o72.AnimationId = "http://www.roblox.com/asset/?id=180435792"
  1335. o73.Name = "Weight"
  1336. o73.Parent = o72
  1337. o73.Value = 1
  1338. o74.Name = "jump"
  1339. o74.Parent = o64
  1340. o75.Name = "JumpAnim"
  1341. o75.Parent = o74
  1342. o75.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  1343. o76.Name = "run"
  1344. o76.Parent = o64
  1345. o77.Name = "RunAnim"
  1346. o77.Parent = o76
  1347. o77.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  1348. o78.Name = "sit"
  1349. o78.Parent = o64
  1350. o79.Name = "SitAnim"
  1351. o79.Parent = o78
  1352. o79.AnimationId = "http://www.roblox.com/asset/?id=178130996"
  1353. o80.Name = "toolnone"
  1354. o80.Parent = o64
  1355. o81.Name = "ToolNoneAnim"
  1356. o81.Parent = o80
  1357. o81.AnimationId = "http://www.roblox.com/asset/?id=182393478"
  1358. o82.Name = "walk"
  1359. o82.Parent = o64
  1360. o83.Name = "WalkAnim"
  1361. o83.Parent = o82
  1362. o83.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  1363. o84.Name = "HealthNew"
  1364. o84.Parent = o1
  1365. table.insert(cors,coroutine.create(function()
  1366. wait()
  1367. runDummyScript(function()
  1368. --[[ By: Brutez. ]]--
  1369. local LainaHealthScript=script;
  1370. local Laina=LainaHealthScript.Parent;
  1371. local LainaHumanoid;
  1372. for _,Child in pairs(Laina:GetChildren())do
  1373. if Child~=nil and Child:IsA("Humanoid")and Child.Health~=0 then
  1374. LainaHumanoid=Child;
  1375. end;
  1376. end;
  1377. local Regenerating=false;
  1378. function UpdateHealth()
  1379. if not Regenerating then
  1380. Regenerating=true;
  1381. Spawn(function()
  1382. while LainaHumanoid.Health<LainaHumanoid.MaxHealth do
  1383. local StoredHealth=LainaHumanoid.Health;
  1384. if StoredHealth>0 and StoredHealth<LainaHumanoid.MaxHealth then
  1385. local AdditionalHealth=0.01*LainaHumanoid.MaxHealth;
  1386. StoredHealth=StoredHealth+AdditionalHealth;
  1387. LainaHumanoid.Health=math.min(StoredHealth,LainaHumanoid.MaxHealth);
  1388. end;
  1389. Wait(0.3);
  1390. end;
  1391. if LainaHumanoid.Health>LainaHumanoid.MaxHealth then
  1392. LainaHumanoid.Health=LainaHumanoid.MaxHealth;
  1393. end;
  1394. Regenerating=false;
  1395. end);
  1396. end;
  1397. end;
  1398. LainaHumanoid.HealthChanged:connect(UpdateHealth);
  1399. --[[ By: Brutez. ]]--
  1400. end,o84)
  1401. end))
  1402. mas.Parent = workspace
  1403. mas:MakeJoints()
  1404. local mas1 = mas:GetChildren()
  1405. for i=1,#mas1 do
  1406. mas1[i].Parent = workspace
  1407. ypcall(function() mas1[i]:MakeJoints() end)
  1408. end
  1409. mas:Destroy()
  1410. for i=1,#cors do
  1411. coroutine.resume(cors[i])
  1412. end
Advertisement
Add Comment
Please, Sign In to add comment