sawgamer1

Untitled

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