sawgamer1

Untitled

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