sawgamer1

Untitled

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