Advertisement
Guest User

Untitled

a guest
Jul 21st, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.42 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Part1 = Instance.new("Part")
  21. SpecialMesh2 = Instance.new("SpecialMesh")
  22. Decal3 = Instance.new("Decal")
  23. ParticleEmitter4 = Instance.new("ParticleEmitter")
  24. ParticleEmitter5 = Instance.new("ParticleEmitter")
  25. Weld6 = Instance.new("Weld")
  26. Part7 = Instance.new("Part")
  27. Decal8 = Instance.new("Decal")
  28. Motor6D9 = Instance.new("Motor6D")
  29. Motor6D10 = Instance.new("Motor6D")
  30. Motor6D11 = Instance.new("Motor6D")
  31. Motor6D12 = Instance.new("Motor6D")
  32. Motor6D13 = Instance.new("Motor6D")
  33. Part14 = Instance.new("Part")
  34. Part15 = Instance.new("Part")
  35. Part16 = Instance.new("Part")
  36. Part17 = Instance.new("Part")
  37. Humanoid18 = Instance.new("Humanoid")
  38. Model19 = Instance.new("Model")
  39. Model20 = Instance.new("Model")
  40. Part21 = Instance.new("Part")
  41. Motor6D22 = Instance.new("Motor6D")
  42. Script23 = Instance.new("Script")
  43. LocalScript24 = Instance.new("LocalScript")
  44. BodyColors25 = Instance.new("BodyColors")
  45. Script26 = Instance.new("Script")
  46. StringValue27 = Instance.new("StringValue")
  47. Animation28 = Instance.new("Animation")
  48. StringValue29 = Instance.new("StringValue")
  49. Animation30 = Instance.new("Animation")
  50. StringValue31 = Instance.new("StringValue")
  51. Animation32 = Instance.new("Animation")
  52. NumberValue33 = Instance.new("NumberValue")
  53. Animation34 = Instance.new("Animation")
  54. NumberValue35 = Instance.new("NumberValue")
  55. StringValue36 = Instance.new("StringValue")
  56. Animation37 = Instance.new("Animation")
  57. StringValue38 = Instance.new("StringValue")
  58. Animation39 = Instance.new("Animation")
  59. StringValue40 = Instance.new("StringValue")
  60. Animation41 = Instance.new("Animation")
  61. StringValue42 = Instance.new("StringValue")
  62. Animation43 = Instance.new("Animation")
  63. StringValue44 = Instance.new("StringValue")
  64. Animation45 = Instance.new("Animation")
  65. Pants46 = Instance.new("Pants")
  66. Script47 = Instance.new("Script")
  67. Script48 = Instance.new("Script")
  68. CharacterMesh49 = Instance.new("CharacterMesh")
  69. CharacterMesh50 = Instance.new("CharacterMesh")
  70. CharacterMesh51 = Instance.new("CharacterMesh")
  71. CharacterMesh52 = Instance.new("CharacterMesh")
  72. CharacterMesh53 = Instance.new("CharacterMesh")
  73. Hat54 = Instance.new("Hat")
  74. Part55 = Instance.new("Part")
  75. SpecialMesh56 = Instance.new("SpecialMesh")
  76. Script57 = Instance.new("Script")
  77. LocalScript58 = Instance.new("LocalScript")
  78. Script59 = Instance.new("Script")
  79. Camera60 = Instance.new("Camera")
  80. Model0.Name = "Laina"
  81. Model0.Parent = Model0
  82. Model0.PrimaryPart = Part1
  83. Part1.Name = "Head"
  84. Part1.Parent = Model0
  85. Part1.CFrame = CFrame.new(6.10009718, 12.638236, -3.32999802, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  86. Part1.Position = Vector3.new(6.10009718, 12.638236, -3.32999802)
  87. Part1.Color = Color3.new(0.992157, 0.917647, 0.552941)
  88. Part1.Size = Vector3.new(2, 1, 1)
  89. Part1.BackParamA = -99999
  90. Part1.BackParamB = 99999
  91. Part1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  92. Part1.BottomParamA = -99999
  93. Part1.BottomParamB = 99999
  94. Part1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  95. Part1.BrickColor = BrickColor.new("Cool yellow")
  96. Part1.CanCollide = false
  97. Part1.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  98. Part1.Elasticity = 0
  99. Part1.Friction = 2
  100. Part1.FrontParamA = -99999
  101. Part1.FrontParamB = 99999
  102. Part1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  103. Part1.LeftParamA = -99999
  104. Part1.LeftParamB = 99999
  105. Part1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  106. Part1.Material = Enum.Material.SmoothPlastic
  107. Part1.RightParamA = -99999
  108. Part1.RightParamB = 99999
  109. Part1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  110. Part1.TopParamA = -99999
  111. Part1.TopParamB = 99999
  112. Part1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  113. Part1.brickColor = BrickColor.new("Cool yellow")
  114. Part1.FormFactor = Enum.FormFactor.Symmetric
  115. Part1.formFactor = Enum.FormFactor.Symmetric
  116. SpecialMesh2.Parent = Part1
  117. SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
  118. Decal3.Name = "face"
  119. Decal3.Parent = Part1
  120. Decal3.Texture = "rbxassetid://116690930"
  121. ParticleEmitter4.Name = "Hearts"
  122. ParticleEmitter4.Parent = Part1
  123. ParticleEmitter4.Speed = NumberRange.new(1, 1)
  124. ParticleEmitter4.Enabled = false
  125. ParticleEmitter4.Texture = "rbxassetid://332222673"
  126. ParticleEmitter4.Size = NumberSequence.new(0,0.30000001192093,1,0.30000001192093,0.3125,1.3749998807907,0.30000001192093,0)
  127. ParticleEmitter4.Lifetime = NumberRange.new(2, 2)
  128. ParticleEmitter4.Rate = 10
  129. ParticleEmitter4.RotSpeed = NumberRange.new(-100, 100)
  130. ParticleEmitter4.SpreadAngle = Vector2.new(50, 50)
  131. ParticleEmitter4.VelocitySpread = 50
  132. ParticleEmitter5.Name = "BrokenHearts"
  133. ParticleEmitter5.Parent = Part1
  134. ParticleEmitter5.Speed = NumberRange.new(3, 3)
  135. ParticleEmitter5.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(0, 0, 0))
  136. ParticleEmitter5.Enabled = false
  137. ParticleEmitter5.Texture = "rbxassetid://11476663"
  138. ParticleEmitter5.Size = NumberSequence.new(0,0.30000001192093,1,0.30000001192093,0.30000001192093,0)
  139. ParticleEmitter5.Lifetime = NumberRange.new(1, 1)
  140. ParticleEmitter5.Rate = 10
  141. ParticleEmitter5.RotSpeed = NumberRange.new(-100, 100)
  142. Weld6.Name = "HeadWeld"
  143. Weld6.Parent = Part1
  144. Weld6.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  145. Weld6.C1 = CFrame.new(0, 0.899999976, 0, 1, 0, 0, 0, 0.995037198, 0.0995037183, 0, -0.0995037183, 0.995037198)
  146. Weld6.Part0 = Part1
  147. Weld6.Part1 = Part55
  148. Weld6.part1 = Part55
  149. Part7.Name = "Torso"
  150. Part7.Parent = Model0
  151. Part7.CFrame = CFrame.new(6.10009718, 11.138236, -3.32999802, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  152. Part7.Position = Vector3.new(6.10009718, 11.138236, -3.32999802)
  153. Part7.Color = Color3.new(0.156863, 0.498039, 0.278431)
  154. Part7.Size = Vector3.new(2, 2, 1)
  155. Part7.BackParamA = -99999
  156. Part7.BackParamB = 99999
  157. Part7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  158. Part7.BottomParamA = -99999
  159. Part7.BottomParamB = 99999
  160. Part7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  161. Part7.BrickColor = BrickColor.new("Dark green")
  162. Part7.CanCollide = false
  163. Part7.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  164. Part7.Elasticity = 0
  165. Part7.Friction = 2
  166. Part7.FrontParamA = -99999
  167. Part7.FrontParamB = 99999
  168. Part7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  169. Part7.LeftParamA = -99999
  170. Part7.LeftParamB = 99999
  171. Part7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  172. Part7.Material = Enum.Material.SmoothPlastic
  173. Part7.RightParamA = -99999
  174. Part7.RightParamB = 99999
  175. Part7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  176. Part7.TopParamA = -99999
  177. Part7.TopParamB = 99999
  178. Part7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  179. Part7.brickColor = BrickColor.new("Dark green")
  180. Part7.FormFactor = Enum.FormFactor.Symmetric
  181. Part7.formFactor = Enum.FormFactor.Symmetric
  182. Decal8.Name = "roblox"
  183. Decal8.Parent = Part7
  184. Motor6D9.Name = "Right Shoulder"
  185. Motor6D9.Parent = Part7
  186. Motor6D9.MaxVelocity = 0.10000000149012
  187. Motor6D9.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  188. Motor6D9.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  189. Motor6D9.Part0 = Part7
  190. Motor6D9.Part1 = Part15
  191. Motor6D9.part1 = Part15
  192. Motor6D9.DesiredAngle = -0.071469336748123
  193. Motor6D10.Name = "Left Shoulder"
  194. Motor6D10.Parent = Part7
  195. Motor6D10.MaxVelocity = 0.10000000149012
  196. Motor6D10.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  197. Motor6D10.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  198. Motor6D10.Part0 = Part7
  199. Motor6D10.Part1 = Part14
  200. Motor6D10.part1 = Part14
  201. Motor6D10.DesiredAngle = -0.071469336748123
  202. Motor6D11.Name = "Right Hip"
  203. Motor6D11.Parent = Part7
  204. Motor6D11.MaxVelocity = 0.10000000149012
  205. Motor6D11.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  206. Motor6D11.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  207. Motor6D11.Part0 = Part7
  208. Motor6D11.Part1 = Part17
  209. Motor6D11.part1 = Part17
  210. Motor6D11.DesiredAngle = 0.071469336748123
  211. Motor6D12.Name = "Left Hip"
  212. Motor6D12.Parent = Part7
  213. Motor6D12.MaxVelocity = 0.10000000149012
  214. Motor6D12.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  215. Motor6D12.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  216. Motor6D12.Part0 = Part7
  217. Motor6D12.Part1 = Part16
  218. Motor6D12.part1 = Part16
  219. Motor6D12.DesiredAngle = 0.071469336748123
  220. Motor6D13.Name = "Neck"
  221. Motor6D13.Parent = Part7
  222. Motor6D13.MaxVelocity = 0.10000000149012
  223. Motor6D13.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  224. Motor6D13.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  225. Motor6D13.Part0 = Part7
  226. Motor6D13.Part1 = Part1
  227. Motor6D13.part1 = Part1
  228. Part14.Name = "Left Arm"
  229. Part14.Parent = Model0
  230. Part14.CFrame = CFrame.new(4.60009718, 11.138236, -3.32999802, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  231. Part14.Position = Vector3.new(4.60009718, 11.138236, -3.32999802)
  232. Part14.Color = Color3.new(0.992157, 0.917647, 0.552941)
  233. Part14.Size = Vector3.new(1, 2, 1)
  234. Part14.BackParamA = -99999
  235. Part14.BackParamB = 99999
  236. Part14.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  237. Part14.BottomParamA = -99999
  238. Part14.BottomParamB = 99999
  239. Part14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  240. Part14.BrickColor = BrickColor.new("Cool yellow")
  241. Part14.CanCollide = false
  242. Part14.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  243. Part14.Elasticity = 0
  244. Part14.Friction = 2
  245. Part14.FrontParamA = -99999
  246. Part14.FrontParamB = 99999
  247. Part14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  248. Part14.LeftParamA = -99999
  249. Part14.LeftParamB = 99999
  250. Part14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  251. Part14.Material = Enum.Material.SmoothPlastic
  252. Part14.RightParamA = -99999
  253. Part14.RightParamB = 99999
  254. Part14.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  255. Part14.TopParamA = -99999
  256. Part14.TopParamB = 99999
  257. Part14.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  258. Part14.brickColor = BrickColor.new("Cool yellow")
  259. Part14.FormFactor = Enum.FormFactor.Symmetric
  260. Part14.formFactor = Enum.FormFactor.Symmetric
  261. Part15.Name = "Right Arm"
  262. Part15.Parent = Model0
  263. Part15.CFrame = CFrame.new(7.60009718, 11.138236, -3.32999802, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  264. Part15.Position = Vector3.new(7.60009718, 11.138236, -3.32999802)
  265. Part15.Color = Color3.new(0.992157, 0.917647, 0.552941)
  266. Part15.Size = Vector3.new(1, 2, 1)
  267. Part15.BackParamA = -99999
  268. Part15.BackParamB = 99999
  269. Part15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  270. Part15.BottomParamA = -99999
  271. Part15.BottomParamB = 99999
  272. Part15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  273. Part15.BrickColor = BrickColor.new("Cool yellow")
  274. Part15.CanCollide = false
  275. Part15.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  276. Part15.Elasticity = 0
  277. Part15.Friction = 2
  278. Part15.FrontParamA = -99999
  279. Part15.FrontParamB = 99999
  280. Part15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  281. Part15.LeftParamA = -99999
  282. Part15.LeftParamB = 99999
  283. Part15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  284. Part15.Material = Enum.Material.SmoothPlastic
  285. Part15.RightParamA = -99999
  286. Part15.RightParamB = 99999
  287. Part15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  288. Part15.TopParamA = -99999
  289. Part15.TopParamB = 99999
  290. Part15.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  291. Part15.brickColor = BrickColor.new("Cool yellow")
  292. Part15.FormFactor = Enum.FormFactor.Symmetric
  293. Part15.formFactor = Enum.FormFactor.Symmetric
  294. Part16.Name = "Left Leg"
  295. Part16.Parent = Model0
  296. Part16.CFrame = CFrame.new(5.60009718, 9.13823605, -3.32999802, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  297. Part16.Position = Vector3.new(5.60009718, 9.13823605, -3.32999802)
  298. Part16.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  299. Part16.Size = Vector3.new(1, 2, 1)
  300. Part16.BackParamA = -99999
  301. Part16.BackParamB = 99999
  302. Part16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  303. Part16.BottomParamA = -99999
  304. Part16.BottomParamB = 99999
  305. Part16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  306. Part16.BrickColor = BrickColor.new("Bright blue")
  307. Part16.CanCollide = false
  308. Part16.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  309. Part16.Elasticity = 0
  310. Part16.Friction = 2
  311. Part16.FrontParamA = -99999
  312. Part16.FrontParamB = 99999
  313. Part16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  314. Part16.LeftParamA = -99999
  315. Part16.LeftParamB = 99999
  316. Part16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  317. Part16.Material = Enum.Material.SmoothPlastic
  318. Part16.RightParamA = -99999
  319. Part16.RightParamB = 99999
  320. Part16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  321. Part16.TopParamA = -99999
  322. Part16.TopParamB = 99999
  323. Part16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  324. Part16.brickColor = BrickColor.new("Bright blue")
  325. Part16.FormFactor = Enum.FormFactor.Symmetric
  326. Part16.formFactor = Enum.FormFactor.Symmetric
  327. Part17.Name = "Right Leg"
  328. Part17.Parent = Model0
  329. Part17.CFrame = CFrame.new(6.60009718, 9.13823605, -3.32999802, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  330. Part17.Position = Vector3.new(6.60009718, 9.13823605, -3.32999802)
  331. Part17.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  332. Part17.Size = Vector3.new(1, 2, 1)
  333. Part17.BackParamA = -99999
  334. Part17.BackParamB = 99999
  335. Part17.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  336. Part17.BottomParamA = -99999
  337. Part17.BottomParamB = 99999
  338. Part17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  339. Part17.BrickColor = BrickColor.new("Bright blue")
  340. Part17.CanCollide = false
  341. Part17.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  342. Part17.Elasticity = 0
  343. Part17.Friction = 2
  344. Part17.FrontParamA = -99999
  345. Part17.FrontParamB = 99999
  346. Part17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  347. Part17.LeftParamA = -99999
  348. Part17.LeftParamB = 99999
  349. Part17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  350. Part17.Material = Enum.Material.SmoothPlastic
  351. Part17.RightParamA = -99999
  352. Part17.RightParamB = 99999
  353. Part17.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  354. Part17.TopParamA = -99999
  355. Part17.TopParamB = 99999
  356. Part17.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  357. Part17.brickColor = BrickColor.new("Bright blue")
  358. Part17.FormFactor = Enum.FormFactor.Symmetric
  359. Part17.formFactor = Enum.FormFactor.Symmetric
  360. Humanoid18.Parent = Model0
  361. Humanoid18.Health = 200
  362. Humanoid18.JumpPower = 60
  363. Humanoid18.LeftLeg = Part16
  364. Humanoid18.MaxHealth = 200
  365. Humanoid18.NameOcclusion = Enum.NameOcclusion.NoOcclusion
  366. Humanoid18.RightLeg = Part17
  367. Humanoid18.Torso = Part21
  368. Humanoid18.WalkSpeed = 18
  369. Humanoid18.maxHealth = 200
  370. Model19.Name = "Status"
  371. Model19.Parent = Humanoid18
  372. Model20.Name = "AvalibleSpawns"
  373. Model20.Parent = Model19
  374. Part21.Name = "HumanoidRootPart"
  375. Part21.Parent = Model0
  376. Part21.CFrame = CFrame.new(6.10009718, 11.138236, -3.32999802, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  377. Part21.Position = Vector3.new(6.10009718, 11.138236, -3.32999802)
  378. Part21.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  379. Part21.Transparency = 1
  380. Part21.Size = Vector3.new(2, 2, 1)
  381. Part21.BackParamA = -99999
  382. Part21.BackParamB = 99999
  383. Part21.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  384. Part21.BottomParamA = -99999
  385. Part21.BottomParamB = 99999
  386. Part21.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  387. Part21.BrickColor = BrickColor.new("Bright blue")
  388. Part21.CanCollide = false
  389. Part21.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
  390. Part21.Elasticity = 0
  391. Part21.Friction = 2
  392. Part21.FrontParamA = -99999
  393. Part21.FrontParamB = 99999
  394. Part21.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  395. Part21.LeftParamA = -99999
  396. Part21.LeftParamB = 99999
  397. Part21.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  398. Part21.Material = Enum.Material.SmoothPlastic
  399. Part21.RightParamA = -99999
  400. Part21.RightParamB = 99999
  401. Part21.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  402. Part21.TopParamA = -99999
  403. Part21.TopParamB = 99999
  404. Part21.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  405. Part21.brickColor = BrickColor.new("Bright blue")
  406. Part21.FormFactor = Enum.FormFactor.Symmetric
  407. Part21.formFactor = Enum.FormFactor.Symmetric
  408. Motor6D22.Name = "RootJoint"
  409. Motor6D22.Parent = Part21
  410. Motor6D22.MaxVelocity = 0.10000000149012
  411. Motor6D22.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  412. Motor6D22.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  413. Motor6D22.Part0 = Part21
  414. Motor6D22.Part1 = Part7
  415. Motor6D22.part1 = Part7
  416. Script23.Name = "Sound"
  417. Script23.Parent = Model0
  418. table.insert(cors,sandbox(Script23,function()
  419. ---This server script creates the sounds and also exists so that it can be easily copied into an NPC and create sounds for that NPC.
  420. --Remove the local script if you copy this into an NPC.
  421. function waitForChild(parent, childName)
  422. local child = parent:findFirstChild(childName)
  423. if child then return child end
  424. while true do
  425. child = parent.ChildAdded:wait()
  426. if child.Name==childName then return child end
  427. end
  428. end
  429. function newSound(name, id)
  430. local sound = Instance.new("Sound")
  431. sound.SoundId = id
  432. sound.Name = name
  433. sound.archivable = false
  434. sound.Parent = script.Parent.Head
  435. return sound
  436. end
  437. -- declarations
  438. local sGettingUp = newSound("GettingUp", "rbxasset://sounds/action_get_up.mp3")
  439. local sDied = newSound("Died", "rbxasset://sounds/uuhhh.mp3")
  440. local sFreeFalling = newSound("FreeFalling", "rbxasset://sounds/action_falling.mp3")
  441. local sJumping = newSound("Jumping", "rbxasset://sounds/action_jump.mp3")
  442. local sLanding = newSound("Landing", "rbxasset://sounds/action_jump_land.mp3")
  443. local sSplash = newSound("Splash", "rbxasset://sounds/impact_water.mp3")
  444. local sRunning = newSound("Running", "rbxasset://sounds/action_footsteps_plastic.mp3")
  445. sRunning.Looped = true
  446. local sSwimming = newSound("Swimming", "rbxasset://sounds/action_swim.mp3")
  447. sSwimming.Looped = true
  448. local sClimbing = newSound("Climbing", "rbxasset://sounds/action_footsteps_plastic.mp3")
  449. sClimbing.Looped = true
  450.  
  451. local Figure = script.Parent
  452. local Head = waitForChild(Figure, "Head")
  453. local Humanoid;
  454. for _,Child in pairs(Figure:GetChildren())do
  455. if Child and Child.ClassName=="Humanoid"then
  456. Humanoid=Child;
  457. end;
  458. end;
  459. local hasPlayer = game.Players:GetPlayerFromCharacter(script.Parent)
  460. local filteringEnabled = game.Workspace.FilteringEnabled
  461.  
  462. local prevState = "None"
  463.  
  464. -- functions
  465.  
  466. function onDied()
  467. stopLoopedSounds()
  468. for _,Child in pairs(Figure:FindFirstChild("Head"):GetChildren())do
  469. if Child and Child.ClassName=="Sound"then
  470. Child.Volume=0
  471. Child:Stop()
  472. end
  473. end
  474. sDied.Volume=1;
  475. sDied:Play();
  476. end
  477.  
  478. local fallCount = 0
  479. local fallSpeed = 0
  480. function onStateFall(state, sound)
  481. fallCount = fallCount + 1
  482. if state then
  483. sound.Volume = 0
  484. sound:Play()
  485. Spawn( function()
  486. local t = 0
  487. local thisFall = fallCount
  488. while t < 1.5 and fallCount == thisFall do
  489. local vol = math.max(t - 0.3 , 0)
  490. sound.Volume = vol
  491. wait(0.1)
  492. t = t + 0.1
  493. end
  494. end)
  495. else
  496. sound:Stop()
  497. end
  498. fallSpeed = math.max(fallSpeed, math.abs(Head.Velocity.Y))
  499. end
  500.  
  501.  
  502. function onStateNoStop(state, sound)
  503. if state then
  504. sound:Play()
  505. end
  506. end
  507.  
  508.  
  509. function onRunning(speed)
  510. sClimbing:Stop()
  511. sSwimming:Stop()
  512. if (prevState == "FreeFall" and fallSpeed > 0.1) then
  513. local vol = math.min(1.0, math.max(0.0, (fallSpeed - 50) / 110))
  514. sLanding.Volume = vol
  515. sLanding:Play()
  516. fallSpeed = 0
  517. end
  518. if speed>0.5 then
  519. sRunning:Play()
  520. sRunning.Pitch = speed / 8.0
  521. else
  522. sRunning:Stop()
  523. end
  524. prevState = "Run"
  525. end
  526.  
  527. function onSwimming(speed)
  528. if (prevState ~= "Swim" and speed > 0.1) then
  529. local volume = math.min(1.0, speed / 350)
  530. sSplash.Volume = volume
  531. sSplash:Play()
  532. prevState = "Swim"
  533. end
  534. sClimbing:Stop()
  535. sRunning:Stop()
  536. sSwimming.Pitch = 1.6
  537. sSwimming:Play()
  538. end
  539.  
  540. function onClimbing(speed)
  541. sRunning:Stop()
  542. sSwimming:Stop()
  543. if speed>0.01 then
  544. sClimbing:Play()
  545. sClimbing.Pitch = speed / 5.5
  546. else
  547. sClimbing:Stop()
  548. end
  549. prevState = "Climb"
  550. end
  551. -- connect up
  552.  
  553. function stopLoopedSounds()
  554. sRunning:Stop()
  555. sClimbing:Stop()
  556. sSwimming:Stop()
  557. end
  558.  
  559. if hasPlayer == nil then
  560. Humanoid.Died:connect(onDied)
  561. Humanoid.Running:connect(onRunning)
  562. Humanoid.Swimming:connect(onSwimming)
  563. Humanoid.Climbing:connect(onClimbing)
  564. Humanoid.Jumping:connect(function(state) onStateNoStop(state, sJumping) prevState = "Jump" end)
  565. Humanoid.GettingUp:connect(function(state) stopLoopedSounds() onStateNoStop(state, sGettingUp) prevState = "GetUp" end)
  566. Humanoid.FreeFalling:connect(function(state) stopLoopedSounds() onStateFall(state, sFreeFalling) prevState = "FreeFall" end)
  567. Humanoid.FallingDown:connect(function(state) stopLoopedSounds() end)
  568. Humanoid.StateChanged:connect(function(old, new)
  569. if not (new.Name == "Dead" or
  570. new.Name == "Running" or
  571. new.Name == "RunningNoPhysics" or
  572. new.Name == "Swimming" or
  573. new.Name == "Jumping" or
  574. new.Name == "GettingUp" or
  575. new.Name == "Freefall" or
  576. new.Name == "FallingDown") then
  577. stopLoopedSounds()
  578. end
  579. end)
  580. end
  581.  
  582. end))
  583. LocalScript24.Name = "LocalSound"
  584. LocalScript24.Parent = Script23
  585. table.insert(cors,sandbox(LocalScript24,function()
  586. --This local script will run only for the player whos character it is in. It's changes to the sounds will replicate as they are changes to the character.
  587. -- util
  588.  
  589. function waitForChild(parent, childName)
  590. local child = parent:findFirstChild(childName)
  591. if child then return child end
  592. while true do
  593. child = parent.ChildAdded:wait()
  594. if child.Name==childName then return child end
  595. end
  596. end
  597.  
  598.  
  599. -- declarations
  600.  
  601. local Figure = script.Parent.Parent
  602. local Head = waitForChild(Figure, "Head")
  603. local Humanoid = waitForChild(Figure, "Humanoid")
  604.  
  605. local sGettingUp = waitForChild(Head, "GettingUp")
  606. local sDied = waitForChild(Head, "Died")
  607. local sFreeFalling = waitForChild(Head, "FreeFalling")
  608. local sJumping = waitForChild(Head, "Jumping")
  609. local sLanding = waitForChild(Head, "Landing")
  610. local sSplash = waitForChild(Head, "Splash")
  611. local sRunning = waitForChild(Head, "Running")
  612. sRunning.Looped = true
  613. local sSwimming = waitForChild(Head, "Swimming")
  614. sSwimming.Looped = true
  615. local sClimbing =waitForChild(Head, "Climbing")
  616. sClimbing.Looped = true
  617.  
  618. local prevState = "None"
  619.  
  620. -- functions
  621.  
  622. function onDied()
  623. stopLoopedSounds()
  624. sDied:Play()
  625. end
  626.  
  627. local fallCount = 0
  628. local fallSpeed = 0
  629. function onStateFall(state, sound)
  630. fallCount = fallCount + 1
  631. if state then
  632. sound.Volume = 0
  633. sound:Play()
  634. Spawn( function()
  635. local t = 0
  636. local thisFall = fallCount
  637. while t < 1.5 and fallCount == thisFall do
  638. local vol = math.max(t - 0.3 , 0)
  639. sound.Volume = vol
  640. wait(0.1)
  641. t = t + 0.1
  642. end
  643. end)
  644. else
  645. sound:Stop()
  646. end
  647. fallSpeed = math.max(fallSpeed, math.abs(Head.Velocity.Y))
  648. end
  649.  
  650.  
  651. function onStateNoStop(state, sound)
  652. if state then
  653. sound:Play()
  654. end
  655. end
  656.  
  657.  
  658. function onRunning(speed)
  659. sClimbing:Stop()
  660. sSwimming:Stop()
  661. if (prevState == "FreeFall" and fallSpeed > 0.1) then
  662. local vol = math.min(1.0, math.max(0.0, (fallSpeed - 50) / 110))
  663. sLanding.Volume = vol
  664. sLanding:Play()
  665. fallSpeed = 0
  666. end
  667. if speed>0.5 then
  668. sRunning:Play()
  669. sRunning.Pitch = speed / 8.0
  670. else
  671. sRunning:Stop()
  672. end
  673. prevState = "Run"
  674. end
  675.  
  676. function onSwimming(speed)
  677. if (prevState ~= "Swim" and speed > 0.1) then
  678. local volume = math.min(1.0, speed / 350)
  679. sSplash.Volume = volume
  680. sSplash:Play()
  681. prevState = "Swim"
  682. end
  683. sClimbing:Stop()
  684. sRunning:Stop()
  685. sSwimming.Pitch = 1.6
  686. sSwimming:Play()
  687. end
  688.  
  689. function onClimbing(speed)
  690. sRunning:Stop()
  691. sSwimming:Stop()
  692. if speed>0.01 then
  693. sClimbing:Play()
  694. sClimbing.Pitch = speed / 5.5
  695. else
  696. sClimbing:Stop()
  697. end
  698. prevState = "Climb"
  699. end
  700. -- connect up
  701.  
  702. function stopLoopedSounds()
  703. sRunning:Stop()
  704. sClimbing:Stop()
  705. sSwimming:Stop()
  706. end
  707.  
  708. Humanoid.Died:connect(onDied)
  709. Humanoid.Running:connect(onRunning)
  710. Humanoid.Swimming:connect(onSwimming)
  711. Humanoid.Climbing:connect(onClimbing)
  712. Humanoid.Jumping:connect(function(state) onStateNoStop(state, sJumping) prevState = "Jump" end)
  713. Humanoid.GettingUp:connect(function(state) stopLoopedSounds() onStateNoStop(state, sGettingUp) prevState = "GetUp" end)
  714. Humanoid.FreeFalling:connect(function(state) stopLoopedSounds() onStateFall(state, sFreeFalling) prevState = "FreeFall" end)
  715. Humanoid.FallingDown:connect(function(state) stopLoopedSounds() end)
  716. Humanoid.StateChanged:connect(function(old, new)
  717. if not (new.Name == "Dead" or
  718. new.Name == "Running" or
  719. new.Name == "RunningNoPhysics" or
  720. new.Name == "Swimming" or
  721. new.Name == "Jumping" or
  722. new.Name == "GettingUp" or
  723. new.Name == "Freefall" or
  724. new.Name == "FallingDown") then
  725. stopLoopedSounds()
  726. end
  727. end)
  728.  
  729.  
  730. end))
  731. LocalScript24.Disabled = true
  732. BodyColors25.Parent = Model0
  733. BodyColors25.HeadColor = BrickColor.new("Institutional white")
  734. BodyColors25.HeadColor3 = Color3.new(0.972549, 0.972549, 0.972549)
  735. BodyColors25.LeftArmColor = BrickColor.new("Institutional white")
  736. BodyColors25.LeftArmColor3 = Color3.new(0.972549, 0.972549, 0.972549)
  737. BodyColors25.LeftLegColor = BrickColor.new("Institutional white")
  738. BodyColors25.LeftLegColor3 = Color3.new(0.972549, 0.972549, 0.972549)
  739. BodyColors25.RightArmColor = BrickColor.new("Institutional white")
  740. BodyColors25.RightArmColor3 = Color3.new(0.972549, 0.972549, 0.972549)
  741. BodyColors25.RightLegColor = BrickColor.new("Institutional white")
  742. BodyColors25.RightLegColor3 = Color3.new(0.972549, 0.972549, 0.972549)
  743. BodyColors25.TorsoColor = BrickColor.new("Institutional white")
  744. BodyColors25.TorsoColor3 = Color3.new(0.972549, 0.972549, 0.972549)
  745. Script26.Name = "AnimateSauce"
  746. Script26.Parent = Model0
  747. table.insert(cors,sandbox(Script26,function()
  748. function waitForChild(parent, childName)
  749. local child = parent:findFirstChild(childName)
  750. if child then return child end
  751. while true do
  752. child = parent.ChildAdded:wait()
  753. if child.Name==childName then return child end
  754. end
  755. end
  756. local Figure = script.Parent
  757. local Torso = waitForChild(Figure, "Torso")
  758. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  759. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  760. local RightHip = waitForChild(Torso, "Right Hip")
  761. local LeftHip = waitForChild(Torso, "Left Hip")
  762. local Neck = waitForChild(Torso, "Neck")
  763. local Humanoid;
  764. for _,Child in pairs(Figure:GetChildren())do
  765. if Child and Child.ClassName=="Humanoid"then
  766. Humanoid=Child;
  767. end;
  768. end;
  769. local pose = "Standing"
  770. local currentAnim = ""
  771. local currentAnimInstance = nil
  772. local currentAnimTrack = nil
  773. local currentAnimKeyframeHandler = nil
  774. local currentAnimSpeed = 1.0
  775. local animTable = {}
  776. local animNames = {
  777. idle = {
  778. { id = "http://www.roblox.com/asset/?id=180435571", weight = 9 },
  779. { id = "http://www.roblox.com/asset/?id=180435792", weight = 1 }
  780. },
  781. walk = {
  782. { id = "http://www.roblox.com/asset/?id=180426354", weight = 10 }
  783. },
  784. run = {
  785. { id = "run.xml", weight = 10 }
  786. },
  787. jump = {
  788. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  789. },
  790. fall = {
  791. { id = "http://www.roblox.com/asset/?id=180436148", weight = 10 }
  792. },
  793. climb = {
  794. { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
  795. },
  796. sit = {
  797. { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
  798. },
  799. toolnone = {
  800. { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 }
  801. },
  802. toolslash = {
  803. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  804. --{ id = "slash.xml", weight = 10 }
  805. },
  806. toollunge = {
  807. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  808. },
  809. wave = {
  810. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  811. },
  812. point = {
  813. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  814. },
  815. dance1 = {
  816. { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 },
  817. { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 },
  818. { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 }
  819. },
  820. dance2 = {
  821. { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 },
  822. { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 },
  823. { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 }
  824. },
  825. dance3 = {
  826. { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 },
  827. { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 },
  828. { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 }
  829. },
  830. laugh = {
  831. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  832. },
  833. cheer = {
  834. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  835. },
  836. }
  837. local dances = {"dance1", "dance2", "dance3"}
  838.  
  839. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  840. local emoteNames = { wave = false, point = false, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  841.  
  842. function configureAnimationSet(name, fileList)
  843. if (animTable[name] ~= nil) then
  844. for _, connection in pairs(animTable[name].connections) do
  845. connection:disconnect()
  846. end
  847. end
  848. animTable[name] = {}
  849. animTable[name].count = 0
  850. animTable[name].totalWeight = 0
  851. animTable[name].connections = {}
  852.  
  853. -- check for config values
  854. local config = script:FindFirstChild(name)
  855. if (config ~= nil) then
  856. --print("Loading anims " .. name)
  857. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  858. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  859. local idx = 1
  860. for _, childPart in pairs(config:GetChildren()) do
  861. if (childPart:IsA("Animation")) then
  862. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  863. animTable[name][idx] = {}
  864. animTable[name][idx].anim = childPart
  865. local weightObject = childPart:FindFirstChild("Weight")
  866. if (weightObject == nil) then
  867. animTable[name][idx].weight = 1
  868. else
  869. animTable[name][idx].weight = weightObject.Value
  870. end
  871. animTable[name].count = animTable[name].count + 1
  872. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  873. --print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  874. idx = idx + 1
  875. end
  876. end
  877. end
  878.  
  879. -- fallback to defaults
  880. if (animTable[name].count <= 0) then
  881. for idx, anim in pairs(fileList) do
  882. animTable[name][idx] = {}
  883. animTable[name][idx].anim = Instance.new("Animation")
  884. animTable[name][idx].anim.Name = name
  885. animTable[name][idx].anim.AnimationId = anim.id
  886. animTable[name][idx].weight = anim.weight
  887. animTable[name].count = animTable[name].count + 1
  888. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  889. --print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  890. end
  891. end
  892. end
  893.  
  894. -- Setup animation objects
  895. function scriptChildModified(child)
  896. local fileList = animNames[child.Name]
  897. if (fileList ~= nil) then
  898. configureAnimationSet(child.Name, fileList)
  899. end
  900. end
  901.  
  902. script.ChildAdded:connect(scriptChildModified)
  903. script.ChildRemoved:connect(scriptChildModified)
  904.  
  905.  
  906. for name, fileList in pairs(animNames) do
  907. configureAnimationSet(name, fileList)
  908. end
  909.  
  910. -- ANIMATION
  911.  
  912. -- declarations
  913. local toolAnim = "None"
  914. local toolAnimTime = 0
  915.  
  916. local jumpAnimTime = 0
  917. local jumpAnimDuration = 0.3
  918.  
  919. local toolTransitionTime = 0.1
  920. local fallTransitionTime = 0.3
  921. local jumpMaxLimbVelocity = 0.75
  922.  
  923. -- functions
  924.  
  925. function stopAllAnimations()
  926. local oldAnim = currentAnim
  927.  
  928. -- return to idle if finishing an emote
  929. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  930. oldAnim = "idle"
  931. end
  932.  
  933. currentAnim = ""
  934. currentAnimInstance = nil
  935. if (currentAnimKeyframeHandler ~= nil) then
  936. currentAnimKeyframeHandler:disconnect()
  937. end
  938.  
  939. if (currentAnimTrack ~= nil) then
  940. currentAnimTrack:Stop()
  941. currentAnimTrack:Destroy()
  942. currentAnimTrack = nil
  943. end
  944. return oldAnim
  945. end
  946.  
  947. function setAnimationSpeed(speed)
  948. if speed ~= currentAnimSpeed then
  949. currentAnimSpeed = speed
  950. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  951. end
  952. end
  953.  
  954. function keyFrameReachedFunc(frameName)
  955. if (frameName == "End") then
  956.  
  957. local repeatAnim = currentAnim
  958. -- return to idle if finishing an emote
  959. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  960. repeatAnim = "idle"
  961. end
  962.  
  963. local animSpeed = currentAnimSpeed
  964. playAnimation(repeatAnim, 0.0, Humanoid)
  965. setAnimationSpeed(animSpeed)
  966. end
  967. end
  968.  
  969. -- Preload animations
  970. function playAnimation(animName, transitionTime, humanoid)
  971.  
  972. local roll = math.random(1, animTable[animName].totalWeight)
  973. local origRoll = roll
  974. local idx = 1
  975. while (roll > animTable[animName][idx].weight) do
  976. roll = roll - animTable[animName][idx].weight
  977. idx = idx + 1
  978. end
  979. --print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  980. local anim = animTable[animName][idx].anim
  981. -- switch animation
  982. if (anim ~= currentAnimInstance) then
  983. if (currentAnimTrack ~= nil) then
  984. currentAnimTrack:Stop(transitionTime)
  985. currentAnimTrack:Destroy()
  986. end
  987. currentAnimSpeed = 1.0
  988. -- load it to the humanoid; get AnimationTrack
  989. currentAnimTrack = humanoid:LoadAnimation(anim)
  990. -- play the animation
  991. currentAnimTrack:Play(transitionTime)
  992. currentAnim = animName
  993. currentAnimInstance = anim
  994. -- set up keyframe name triggers
  995. if (currentAnimKeyframeHandler ~= nil) then
  996. currentAnimKeyframeHandler:disconnect()
  997. end
  998. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  999. end
  1000. end
  1001. -------------------------------------------------------------------------------------------
  1002. -------------------------------------------------------------------------------------------
  1003. local toolAnimName = ""
  1004. local toolAnimTrack = nil
  1005. local toolAnimInstance = nil
  1006. local currentToolAnimKeyframeHandler = nil
  1007. function toolKeyFrameReachedFunc(frameName)
  1008. if (frameName == "End") then
  1009. --print("Keyframe : ".. frameName)
  1010. playToolAnimation(toolAnimName, 0.0, Humanoid)
  1011. end
  1012. end
  1013. function playToolAnimation(animName, transitionTime, humanoid)
  1014. local roll = math.random(1, animTable[animName].totalWeight)
  1015. local origRoll = roll
  1016. local idx = 1
  1017. while (roll > animTable[animName][idx].weight) do
  1018. roll = roll - animTable[animName][idx].weight
  1019. idx = idx + 1
  1020. end
  1021. --print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  1022. local anim = animTable[animName][idx].anim
  1023. if (toolAnimInstance ~= anim) then
  1024. if (toolAnimTrack ~= nil) then
  1025. toolAnimTrack:Stop()
  1026. toolAnimTrack:Destroy()
  1027. transitionTime = 0
  1028. end
  1029. -- load it to the humanoid; get AnimationTrack
  1030. toolAnimTrack = humanoid:LoadAnimation(anim)
  1031. -- play the animation
  1032. toolAnimTrack:Play(transitionTime)
  1033. toolAnimName = animName
  1034. toolAnimInstance = anim
  1035. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  1036. end
  1037. end
  1038. function stopToolAnimations()
  1039. local oldAnim = toolAnimName
  1040. if (currentToolAnimKeyframeHandler ~= nil) then
  1041. currentToolAnimKeyframeHandler:disconnect()
  1042. end
  1043. toolAnimName = ""
  1044. toolAnimInstance = nil
  1045. if (toolAnimTrack ~= nil) then
  1046. toolAnimTrack:Stop()
  1047. toolAnimTrack:Destroy()
  1048. toolAnimTrack = nil
  1049. end
  1050. return oldAnim
  1051. end
  1052. -------------------------------------------------------------------------------------------
  1053. -------------------------------------------------------------------------------------------
  1054. function onRunning(speed)
  1055. if speed>0.01 then
  1056. playAnimation("walk", 0.1, Humanoid)
  1057. if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
  1058. setAnimationSpeed(speed / 14.5)
  1059. end
  1060. pose = "Running"
  1061. else
  1062. playAnimation("idle", 0.1, Humanoid)
  1063. pose = "Standing"
  1064. end
  1065. end
  1066. function onDied()
  1067. pose = "Dead"
  1068. end
  1069. function onJumping()
  1070. playAnimation("jump", 0.1, Humanoid)
  1071. jumpAnimTime = jumpAnimDuration
  1072. pose = "Jumping"
  1073. end
  1074. function onClimbing(speed)
  1075. playAnimation("climb", 0.1, Humanoid)
  1076. setAnimationSpeed(speed / 12.0)
  1077. pose = "Climbing"
  1078. end
  1079. function onGettingUp()
  1080. pose = "GettingUp"
  1081. end
  1082. function onFreeFall()
  1083. if (jumpAnimTime <= 0) then
  1084. playAnimation("fall", fallTransitionTime, Humanoid)
  1085. end
  1086. pose = "FreeFall"
  1087. end
  1088. function onFallingDown()
  1089. pose = "FallingDown"
  1090. end
  1091. function onSeated()
  1092. pose = "Seated"
  1093. end
  1094. function onPlatformStanding()
  1095. pose = "PlatformStanding"
  1096. end
  1097. function onSwimming(speed)
  1098. if speed>0 then
  1099. pose = "Running"
  1100. else
  1101. pose = "Standing"
  1102. end
  1103. end
  1104.  
  1105. function getTool()
  1106. for _, kid in ipairs(Figure:GetChildren()) do
  1107. if kid.className == "Tool" then return kid end
  1108. end
  1109. return nil
  1110. end
  1111.  
  1112. function getToolAnim(tool)
  1113. for _, c in ipairs(tool:GetChildren()) do
  1114. if c.Name == "toolanim" and c.className == "StringValue" then
  1115. return c
  1116. end
  1117. end
  1118. return nil
  1119. end
  1120.  
  1121. function animateTool()
  1122.  
  1123. if (toolAnim == "None") then
  1124. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  1125. return
  1126. end
  1127.  
  1128. if (toolAnim == "Slash") then
  1129. playToolAnimation("toolslash", 0, Humanoid)
  1130. return
  1131. end
  1132.  
  1133. if (toolAnim == "Lunge") then
  1134. playToolAnimation("toollunge", 0, Humanoid)
  1135. return
  1136. end
  1137. end
  1138.  
  1139. function moveSit()
  1140. RightShoulder.MaxVelocity = 0.15
  1141. LeftShoulder.MaxVelocity = 0.15
  1142. RightShoulder:SetDesiredAngle(3.14 /2)
  1143. LeftShoulder:SetDesiredAngle(-3.14 /2)
  1144. RightHip:SetDesiredAngle(3.14 /2)
  1145. LeftHip:SetDesiredAngle(-3.14 /2)
  1146. end
  1147.  
  1148. local lastTick = 0
  1149.  
  1150. function move(time)
  1151. local amplitude = 1
  1152. local frequency = 1
  1153. local deltaTime = time - lastTick
  1154. lastTick = time
  1155.  
  1156. local climbFudge = 0
  1157. local setAngles = false
  1158.  
  1159. if (jumpAnimTime > 0) then
  1160. jumpAnimTime = jumpAnimTime - deltaTime
  1161. end
  1162.  
  1163. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  1164. playAnimation("fall", fallTransitionTime, Humanoid)
  1165. elseif (pose == "Seated") then
  1166. playAnimation("sit", 0.5, Humanoid)
  1167. return
  1168. elseif (pose == "Running") then
  1169. playAnimation("walk", 0.1, Humanoid)
  1170. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  1171. stopAllAnimations()
  1172. amplitude = 0.1
  1173. frequency = 1
  1174. setAngles = true
  1175. end
  1176. if (setAngles) then
  1177. local desiredAngle = amplitude * math.sin(time * frequency)
  1178. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  1179. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  1180. RightHip:SetDesiredAngle(-desiredAngle)
  1181. LeftHip:SetDesiredAngle(-desiredAngle)
  1182. end
  1183. -- Tool Animation handling
  1184. local tool = getTool()
  1185. if tool and tool:FindFirstChild("Handle") then
  1186. local animStringValueObject = getToolAnim(tool)
  1187. if animStringValueObject then
  1188. toolAnim = animStringValueObject.Value
  1189. -- message recieved, delete StringValue
  1190. animStringValueObject.Parent = nil
  1191. toolAnimTime = time + .3
  1192. end
  1193. if time > toolAnimTime then
  1194. toolAnimTime = 0
  1195. toolAnim = "None"
  1196. end
  1197. animateTool()
  1198. else
  1199. stopToolAnimations()
  1200. toolAnim = "None"
  1201. toolAnimInstance = nil
  1202. toolAnimTime = 0
  1203. end
  1204. end
  1205. -- connect events
  1206. Humanoid.Died:connect(onDied)
  1207. Humanoid.Running:connect(onRunning)
  1208. Humanoid.Jumping:connect(onJumping)
  1209. Humanoid.Climbing:connect(onClimbing)
  1210. Humanoid.GettingUp:connect(onGettingUp)
  1211. Humanoid.FreeFalling:connect(onFreeFall)
  1212. Humanoid.FallingDown:connect(onFallingDown)
  1213. Humanoid.Seated:connect(onSeated)
  1214. Humanoid.PlatformStanding:connect(onPlatformStanding)
  1215. Humanoid.Swimming:connect(onSwimming)
  1216. local runService = game:GetService("RunService");
  1217. playAnimation("idle", 0.1, Humanoid)
  1218. pose = "Standing"
  1219. while Wait(0)do
  1220. local _,time=wait(0)
  1221. move(time)
  1222. end
  1223. end))
  1224. StringValue27.Name = "climb"
  1225. StringValue27.Parent = Script26
  1226. Animation28.Name = "ClimbAnim"
  1227. Animation28.Parent = StringValue27
  1228. Animation28.AnimationId = "http://www.roblox.com/asset/?id=180436334"
  1229. StringValue29.Name = "fall"
  1230. StringValue29.Parent = Script26
  1231. Animation30.Name = "FallAnim"
  1232. Animation30.Parent = StringValue29
  1233. Animation30.AnimationId = "http://www.roblox.com/asset/?id=180436148"
  1234. StringValue31.Name = "idle"
  1235. StringValue31.Parent = Script26
  1236. Animation32.Name = "Animation1"
  1237. Animation32.Parent = StringValue31
  1238. Animation32.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1239. NumberValue33.Name = "Weight"
  1240. NumberValue33.Parent = Animation32
  1241. NumberValue33.Value = 9
  1242. Animation34.Name = "Animation2"
  1243. Animation34.Parent = StringValue31
  1244. Animation34.AnimationId = "http://www.roblox.com/asset/?id=180435792"
  1245. NumberValue35.Name = "Weight"
  1246. NumberValue35.Parent = Animation34
  1247. NumberValue35.Value = 1
  1248. StringValue36.Name = "jump"
  1249. StringValue36.Parent = Script26
  1250. Animation37.Name = "JumpAnim"
  1251. Animation37.Parent = StringValue36
  1252. Animation37.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  1253. StringValue38.Name = "run"
  1254. StringValue38.Parent = Script26
  1255. Animation39.Name = "RunAnim"
  1256. Animation39.Parent = StringValue38
  1257. Animation39.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  1258. StringValue40.Name = "sit"
  1259. StringValue40.Parent = Script26
  1260. Animation41.Name = "SitAnim"
  1261. Animation41.Parent = StringValue40
  1262. Animation41.AnimationId = "http://www.roblox.com/asset/?id=178130996"
  1263. StringValue42.Name = "toolnone"
  1264. StringValue42.Parent = Script26
  1265. Animation43.Name = "ToolNoneAnim"
  1266. Animation43.Parent = StringValue42
  1267. Animation43.AnimationId = "http://www.roblox.com/asset/?id=182393478"
  1268. StringValue44.Name = "walk"
  1269. StringValue44.Parent = Script26
  1270. Animation45.Name = "WalkAnim"
  1271. Animation45.Parent = StringValue44
  1272. Animation45.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  1273. Pants46.Name = "Pants"
  1274. Pants46.Parent = Model0
  1275. Pants46.PantsTemplate = "rbxassetid://36299419"
  1276. Script47.Name = "Health"
  1277. Script47.Parent = Model0
  1278. table.insert(cors,sandbox(Script47,function()
  1279. --Responsible for regening a player's humanoid's health
  1280.  
  1281. -- declarations
  1282. local Figure = script.Parent
  1283. local Head = Figure:WaitForChild("Head")
  1284. local Humanoid = Figure:WaitForChild("Humanoid")
  1285. local regening = false
  1286.  
  1287. -- regeneration
  1288. function regenHealth()
  1289. if regening then return end
  1290. regening = true
  1291.  
  1292. while Humanoid.Health < Humanoid.MaxHealth do
  1293. local s = wait(1)
  1294. local health = Humanoid.Health
  1295. if health > 0 and health < Humanoid.MaxHealth then
  1296. local newHealthDelta = 0.01 * s * Humanoid.MaxHealth
  1297. health = health + newHealthDelta
  1298. Humanoid.Health = math.min(health,Humanoid.MaxHealth)
  1299. end
  1300. end
  1301.  
  1302. if Humanoid.Health > Humanoid.MaxHealth then
  1303. Humanoid.Health = Humanoid.MaxHealth
  1304. end
  1305.  
  1306. regening = false
  1307. end
  1308.  
  1309. Humanoid.HealthChanged:connect(regenHealth)
  1310.  
  1311. end))
  1312. Script48.Name = "Respawn"
  1313. Script48.Parent = Model0
  1314. table.insert(cors,sandbox(Script48,function()
  1315. --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
  1316. local AdvancedRespawnScript=script;
  1317. local Laina=AdvancedRespawnScript.Parent;
  1318. local GameDerbis=Game:GetService("Debris");
  1319. repeat Wait(0)until script and script.Parent and script.Parent.ClassName=="Model";
  1320. local LainaHumanoid;
  1321. for _,Child in pairs(Laina:GetChildren())do
  1322. if Child and Child.ClassName=="Humanoid"and Child.Health>0.001 then
  1323. LainaHumanoid=Child;
  1324. end;
  1325. end;
  1326. local Respawndant=Laina:Clone();
  1327. coroutine.resume(coroutine.create(function()
  1328. if not Laina.Humanoid.Status:FindFirstChild("AvalibleSpawns")then
  1329. SpawnModel=Instance.new("Model");
  1330. SpawnModel.Parent=Laina.Humanoid.Status;
  1331. SpawnModel.Name="AvalibleSpawns";
  1332. else
  1333. SpawnModel=Laina.Humanoid.Status:FindFirstChild("AvalibleSpawns");
  1334. end;
  1335. function FindSpawn(SearchValue)
  1336. local PartsArchivable=SearchValue:GetChildren();
  1337. for AreaSearch=1,#PartsArchivable do
  1338. if PartsArchivable[AreaSearch].className=="SpawnLocation"then
  1339. local PositionValue=Instance.new("Vector3Value",SpawnModel);
  1340. PositionValue.Value=PartsArchivable[AreaSearch].Position;
  1341. PositionValue.Name=PartsArchivable[AreaSearch].Duration;
  1342. end;
  1343. FindSpawn(PartsArchivable[AreaSearch]);
  1344. end;
  1345. end;
  1346. FindSpawn(Game.Workspace);
  1347. local SpawnChilden=SpawnModel:GetChildren();
  1348. if#SpawnChilden>0 then
  1349. local SpawnItself=SpawnChilden[math.random(1,#SpawnChilden)];
  1350. local RespawningForceField=Instance.new("ForceField");
  1351. RespawningForceField.Parent=Laina;
  1352. RespawningForceField.Name="SpawnForceField";
  1353. GameDerbis:AddItem(RespawningForceField,SpawnItself.Name);
  1354. Laina:MoveTo(SpawnItself.Value+Vector3.new(0,3.5,0));
  1355. else
  1356. if Laina:FindFirstChild("SpawnForceField")then
  1357. Laina:FindFirstChild("SpawnForceField"):Destroy();
  1358. end;
  1359. Laina:MoveTo(Vector3.new(0,115,0));
  1360. end;
  1361. end));
  1362. function Respawn()
  1363. Wait(5);
  1364. Respawndant.Parent=Laina.Parent;
  1365. Respawndant:makeJoints();
  1366. Respawndant:FindFirstChild("Head"):MakeJoints();
  1367. Respawndant:FindFirstChild("Torso"):MakeJoints();
  1368. Laina:remove();
  1369. end;
  1370. LainaHumanoid.Died:connect(Respawn);
  1371. --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
  1372. end))
  1373. CharacterMesh49.Name = "3.0 Female Left Arm"
  1374. CharacterMesh49.Parent = Model0
  1375. CharacterMesh49.BodyPart = Enum.BodyPart.LeftArm
  1376. CharacterMesh49.MeshId = 83001137
  1377. CharacterMesh50.Name = "3.0 Female Left Leg"
  1378. CharacterMesh50.Parent = Model0
  1379. CharacterMesh50.BodyPart = Enum.BodyPart.LeftLeg
  1380. CharacterMesh50.MeshId = 81628361
  1381. CharacterMesh51.Name = "3.0 Female Right Arm"
  1382. CharacterMesh51.Parent = Model0
  1383. CharacterMesh51.BodyPart = Enum.BodyPart.RightArm
  1384. CharacterMesh51.MeshId = 83001181
  1385. CharacterMesh52.Name = "3.0 Female Right Leg"
  1386. CharacterMesh52.Parent = Model0
  1387. CharacterMesh52.BodyPart = Enum.BodyPart.RightLeg
  1388. CharacterMesh52.MeshId = 81628308
  1389. CharacterMesh53.Name = "3.0 Female Torso"
  1390. CharacterMesh53.Parent = Model0
  1391. CharacterMesh53.BodyPart = Enum.BodyPart.Torso
  1392. CharacterMesh53.MeshId = 82987757
  1393. Hat54.Name = "LongHairHeadBand Black"
  1394. Hat54.Parent = Model0
  1395. Hat54.AttachmentForward = Vector3.new(-0, -0.0995037183, -0.995037198)
  1396. Hat54.AttachmentPoint = CFrame.new(0, 0.899999976, 0, 1, 0, 0, 0, 0.995037198, 0.0995037183, 0, -0.0995037183, 0.995037198)
  1397. Hat54.AttachmentPos = Vector3.new(0, 0.899999976, 0)
  1398. Hat54.AttachmentUp = Vector3.new(0, 0.995037198, -0.0995037183)
  1399. Part55.Name = "Handle"
  1400. Part55.Parent = Hat54
  1401. Part55.CFrame = CFrame.new(6.10009718, 12.2427025, -3.41955137, 1, 0, 0, 0, 0.995037198, -0.0995037183, 0, 0.0995037183, 0.995037198)
  1402. Part55.Orientation = Vector3.new(5.71000004, 0, 0)
  1403. Part55.Position = Vector3.new(6.10009718, 12.2427025, -3.41955137)
  1404. Part55.Rotation = Vector3.new(5.71000004, 0, 0)
  1405. Part55.Size = Vector3.new(1, 2.4000001, 2)
  1406. Part55.BottomSurface = Enum.SurfaceType.Smooth
  1407. Part55.CanCollide = false
  1408. Part55.TopSurface = Enum.SurfaceType.Smooth
  1409. Part55.FormFactor = Enum.FormFactor.Plate
  1410. Part55.formFactor = Enum.FormFactor.Plate
  1411. SpecialMesh56.Parent = Part55
  1412. SpecialMesh56.MeshId = "rbxassetid://13070796"
  1413. SpecialMesh56.TextureId = "rbxassetid://14765363"
  1414. SpecialMesh56.MeshType = Enum.MeshType.FileMesh
  1415. Script57.Name = "LainaMain"
  1416. Script57.Parent = Model0
  1417. table.insert(cors,sandbox(Script57,function()
  1418. --[[ By: Brutez. ]]--
  1419. local LainaScript=script;
  1420. repeat Wait(0)until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso");
  1421. local Laina=LainaScript.Parent;
  1422. local LainaHumanoid;
  1423. for _,Child in pairs(Laina:GetChildren())do
  1424. if Child and Child.ClassName=="Humanoid"and Child.Health>0.001 then
  1425. LainaHumanoid=Child;
  1426. end;
  1427. end;
  1428. local LainaWeld;
  1429. local LainaBodyGyro;
  1430. RecreateThingies=function()
  1431. LainaWeld=Instance.new("Weld");
  1432. LainaWeld.Name="LainaWeld";
  1433. LainaBodyGyro=Instance.new("BodyGyro");
  1434. LainaBodyGyro.Name="LainaBodyGyro";
  1435. LainaBodyGyro.cframe=CFrame.new(Vector3.new(0,0,0),Vector3.new(0,5000000,0));
  1436. LainaBodyGyro.D=300;
  1437. LainaBodyGyro.maxTorque=Vector3.new(99999e99999,99999e99999,0);
  1438. LainaBodyGyro.P=7000;
  1439. end;
  1440. RecreateThingies();
  1441. local IsOnTop=false;
  1442. function RayCast(Position, Direction, MaxDistance, IgnoreList)
  1443. return Game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
  1444. end;
  1445. while Wait(0)do
  1446. if LainaScript and Laina and Laina:FindFirstChild("Torso") and LainaHumanoid and LainaHumanoid.Health>0.001 then
  1447. local TargetPoint=LainaHumanoid.TargetPoint;
  1448. 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})
  1449. local Jumpable=false;
  1450. if Blockage then
  1451. Jumpable=true;
  1452. if Blockage and Blockage.Parent and Blockage.Parent.ClassName~="Workspace"then
  1453. local BlockageHumanoid;
  1454. for _,Child in pairs(Blockage.Parent:GetChildren())do
  1455. if Child and Child.ClassName=="Humanoid"and Child.Health>0.001 then
  1456. BlockageHumanoid=Child;
  1457. end;
  1458. end;
  1459. if Blockage and Blockage:IsA("Terrain")then
  1460. local CellPos=Blockage:WorldToCellPreferSolid((BlockagePos-Vector3.new(0,2,0)));
  1461. local CellMaterial,CellShape,CellOrientation=Blockage:GetCell(CellPos.X,CellPos.Y,CellPos.Z);
  1462. if CellMaterial==Enum.CellMaterial.Water then
  1463. Jumpable=false;
  1464. end;
  1465. elseif BlockageHumanoid or Blockage.ClassName=="TrussPart"or Blockage.ClassName=="WedgePart"then
  1466. Jumpable=false;
  1467. end;
  1468. end;
  1469. if Jumpable and LainaScript and Laina and LainaHumanoid and LainaHumanoid.Health>0.001 and not LainaHumanoid.Sit and not IsOnTop then
  1470. LainaHumanoid.Jump=true;
  1471. end;
  1472. end;
  1473. end;
  1474. if Laina and LainaHumanoid and LainaHumanoid.Health<0.001 and Laina:FindFirstChild("Head") and Laina:FindFirstChild("Head"):FindFirstChild("face")and Laina:FindFirstChild("Head"):FindFirstChild("Hearts")and Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts")then
  1475. Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://116692982";
  1476. Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=false;
  1477. Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=true;
  1478. end;
  1479. if Laina and LainaHumanoid and LainaHumanoid.Health>0.001 and Laina:FindFirstChild("Head") and Laina:FindFirstChild("Head"):FindFirstChild("face")and Laina:FindFirstChild("Head"):FindFirstChild("Hearts")and Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts")and not IsOnTop then
  1480. Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://116690930";
  1481. Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=false;
  1482. Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=false;
  1483. elseif Laina and LainaHumanoid and LainaHumanoid.Health>0.001 and Laina:FindFirstChild("Head") and Laina:FindFirstChild("Head"):FindFirstChild("face")and Laina:FindFirstChild("Head"):FindFirstChild("Hearts")and Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts")and IsOnTop then
  1484. Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://116649842";
  1485. Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=true;
  1486. Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=false;
  1487. end;
  1488. if Laina and LainaHumanoid and LainaHumanoid.Health>0.001 and not LainaHumanoid.AutoJumpEnabled then
  1489. LainaHumanoid.AutoJumpEnabled=true;
  1490. end;
  1491. if Laina and LainaHumanoid and LainaHumanoid.Health>0.001 and not LainaHumanoid.AutoRotate then
  1492. LainaHumanoid.AutoRotate=true;
  1493. end;
  1494. if Laina and LainaHumanoid and LainaHumanoid.Health>0.001 and LainaHumanoid.PlatformStand then
  1495. LainaHumanoid.PlatformStand=false;
  1496. end;
  1497. if Laina and LainaHumanoid and LainaHumanoid.Health>0.001 and LainaHumanoid.Sit and not IsOnTop then
  1498. LainaHumanoid.Sit=false;
  1499. end;
  1500. if Laina and LainaHumanoid and LainaHumanoid.Health>0.001 then
  1501. LainaHumanoid.JumpPower=70;
  1502. LainaHumanoid.WalkSpeed=20;
  1503. end;
  1504. local JumpChance=math.random(1,300);
  1505. if Laina and LainaHumanoid and LainaHumanoid.Health>0.001 and JumpChance==1 and not IsOnTop then
  1506. LainaHumanoid.Jump=true;
  1507. end;
  1508. local NoticeDistance=99999e99999;
  1509. for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
  1510. if TargetModel and TargetModel.className=="Model"and TargetModel~=Laina and TargetModel:FindFirstChild("Torso")and TargetModel:FindFirstChild("Head")then
  1511. local TargetPart=TargetModel:FindFirstChild("Torso");
  1512. local FoundHumanoid;
  1513. for _,Child in pairs(TargetModel:GetChildren())do
  1514. if Child.ClassName=="Humanoid"then
  1515. FoundHumanoid=Child;
  1516. end;
  1517. end;
  1518. if Laina and Laina:FindFirstChild("HumanoidRootPart")and LainaHumanoid and LainaHumanoid.Health>0.001 and TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-Laina:FindFirstChild("HumanoidRootPart").Position).magnitude<NoticeDistance and not IsOnTop then
  1519. NoticeDistance=(TargetPart.Position-Laina:FindFirstChild("HumanoidRootPart").Position).magnitude;
  1520. if Laina and Laina:FindFirstChild("HumanoidRootPart")and LainaHumanoid and LainaHumanoid.Health>0.001 and TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and FoundHumanoid.Jump and not IsOnTop then
  1521. LainaHumanoid.Jump=true;
  1522. end;
  1523. LainaHumanoid:MoveTo(TargetPart.Position+(TargetPart.Position-Laina:FindFirstChild("Torso").Position).unit*2,Game:GetService("Workspace"):FindFirstChild("Terrain"));
  1524. if TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-Laina:FindFirstChild("HumanoidRootPart").Position).magnitude<5 and not IsOnTop then
  1525. IsOnTop=true;
  1526. LainaWeld.Parent=Laina:FindFirstChild("Torso");
  1527. LainaWeld.Part1=Laina:FindFirstChild("Torso");
  1528. LainaWeld.C0=CFrame.new(0,-0.1,-1.4)*CFrame.fromEulerAnglesXYZ(-0.7+math.sin(tick()*10)*0.3,math.pi,0);
  1529. LainaWeld.Part0=TargetPart;
  1530. LainaBodyGyro.Parent=TargetPart;
  1531. 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.001 and Laina and LainaHumanoid and LainaHumanoid.Health>0.001 then
  1532. if TargetModel and FoundHumanoid and FoundHumanoid.Health>0.001 and FoundHumanoid:FindFirstChild("Status")and FoundHumanoid:FindFirstChild("Status").ClassName=="Status"then
  1533. local JumpOk=LainaScript:FindFirstChild("JumpOk"):Clone();
  1534. JumpOk.Parent=TargetModel;
  1535. JumpOk.Disabled=false;
  1536. elseif TargetModel and FoundHumanoid and FoundHumanoid.Health>0.001 and FoundHumanoid:FindFirstChild("Status")and FoundHumanoid:FindFirstChild("Status").ClassName=="Model"or TargetModel and FoundHumanoid and FoundHumanoid.Health>0.001 and not FoundHumanoid:FindFirstChild("Status")then
  1537. local JumpOkNPC=LainaScript:FindFirstChild("JumpOkNPC"):Clone();
  1538. JumpOkNPC.Parent=TargetModel;
  1539. JumpOkNPC.Disabled=false;
  1540. end;
  1541. end;
  1542. coroutine.resume(coroutine.create(function()
  1543. while Wait(0)do
  1544. if TargetModel.Parent~=nil and TargetPart.Parent~=nil and FoundHumanoid.Parent~=nil and LainaWeld.Parent~=nil and LainaBodyGyro.Parent~=nil and FoundHumanoid.Health>0.001 and Laina and LainaHumanoid and LainaHumanoid.Health>0.001 then
  1545. LainaHumanoid.Sit=true;
  1546. if Laina and LainaHumanoid and LainaHumanoid.Health>0.001 and Laina:FindFirstChild("Torso")and LainaWeld then
  1547. LainaWeld.C0=CFrame.new(0,-0.1,-1.4)*CFrame.fromEulerAnglesXYZ(-0.7+math.sin(tick()*10)*0.3,math.pi,0);
  1548. end;
  1549. if TargetModel~=nil and TargetPart~=nil and FoundHumanoid~=nil and FoundHumanoid.Health>0.001 then
  1550. FoundHumanoid.Jump=false;
  1551. FoundHumanoid.Sit=true;
  1552. end;
  1553. else
  1554. IsOnTop=false;
  1555. if LainaWeld then
  1556. LainaWeld:Destroy();
  1557. end;
  1558. if LainaBodyGyro then
  1559. LainaBodyGyro:Destroy();
  1560. end;
  1561. RecreateThingies();
  1562. break
  1563. end;
  1564. end;
  1565. end));
  1566. end;
  1567. end;
  1568. end;
  1569. end;
  1570. end;
  1571. --[[ By: Brutez. ]]--
  1572. end))
  1573. LocalScript58.Name = "JumpOk"
  1574. LocalScript58.Parent = Script57
  1575. table.insert(cors,sandbox(LocalScript58,function()
  1576. --[[ By: Brutez. ]]--
  1577. local JumpScript=script;
  1578. repeat Wait(0);until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso");
  1579. local ROBLOXian=JumpScript.Parent;
  1580. local ROBLOXianHumanoid;
  1581. for _,Child in pairs(ROBLOXian:GetChildren())do
  1582. if Child and Child.ClassName=="Humanoid"and Child.Health>0.001 then
  1583. ROBLOXianHumanoid=Child;
  1584. end;
  1585. end;
  1586. if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 then
  1587. ROBLOXianHumanoid.Changed:connect(function()
  1588. 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
  1589. ROBLOXianHumanoid.Jump=false;
  1590. end;
  1591. end);
  1592. end;
  1593. while Wait(0)do
  1594. 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
  1595. JumpScript.Disabled=true;
  1596. JumpScript:Destroy();
  1597. break
  1598. end;
  1599. end;
  1600. --[[ By: Brutez. ]]--
  1601. end))
  1602. LocalScript58.Disabled = true
  1603. Script59.Name = "JumpOkNPC"
  1604. Script59.Parent = Script57
  1605. table.insert(cors,sandbox(Script59,function()
  1606. --[[ By: Brutez. ]]--
  1607. local JumpScript=script;
  1608. repeat Wait(0);until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso");
  1609. local ROBLOXian=JumpScript.Parent;
  1610. local ROBLOXianHumanoid;
  1611. for _,Child in pairs(ROBLOXian:GetChildren())do
  1612. if Child and Child.ClassName=="Humanoid"and Child.Health>0.001 then
  1613. ROBLOXianHumanoid=Child;
  1614. end;
  1615. end;
  1616. if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 then
  1617. ROBLOXianHumanoid.Changed:connect(function()
  1618. 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
  1619. ROBLOXianHumanoid.Jump=false;
  1620. end;
  1621. end);
  1622. end;
  1623. while Wait(0)do
  1624. 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
  1625. JumpScript.Disabled=true;
  1626. JumpScript:Destroy();
  1627. break
  1628. end;
  1629. end;
  1630. --[[ By: Brutez. ]]--
  1631. end))
  1632. Script59.Disabled = true
  1633. Camera60.Name = "ThumbnailCamera"
  1634. Camera60.Parent = Model0
  1635. Camera60.CFrame = CFrame.new(-1.4118109e-06, 1.5, -9.34999943, -1, -0, -1.50995788e-07, -0, 1, -0, 1.50995788e-07, 0, -1)
  1636. Camera60.CoordinateFrame = CFrame.new(-1.4118109e-06, 1.5, -9.34999943, -1, -0, -1.50995788e-07, -0, 1, -0, 1.50995788e-07, 0, -1)
  1637. Camera60.FieldOfView = 19.999999651642
  1638. Camera60.Focus = CFrame.new(-1.10981932e-06, 1.5, -7.34999943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1639. Camera60.focus = CFrame.new(-1.10981932e-06, 1.5, -7.34999943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1640. for i,v in pairs(mas:GetChildren()) do
  1641. v.Parent = workspace
  1642. pcall(function() v:MakeJoints() end)
  1643. end
  1644. mas:Destroy()
  1645. for i,v in pairs(cors) do
  1646. spawn(function()
  1647. pcall(v)
  1648. end)
  1649. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement