Advertisement
Gamerulexerul

Untitled

Mar 23rd, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.02 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Model1 = Instance.new("Model")
  21. Part2 = Instance.new("Part")
  22. SpecialMesh3 = Instance.new("SpecialMesh")
  23. Sound4 = Instance.new("Sound")
  24. Decal5 = Instance.new("Decal")
  25. Sound6 = Instance.new("Sound")
  26. Sound7 = Instance.new("Sound")
  27. Weld8 = Instance.new("Weld")
  28. Part9 = Instance.new("Part")
  29. Decal10 = Instance.new("Decal")
  30. Motor6D11 = Instance.new("Motor6D")
  31. Motor6D12 = Instance.new("Motor6D")
  32. Motor6D13 = Instance.new("Motor6D")
  33. Motor6D14 = Instance.new("Motor6D")
  34. Motor6D15 = Instance.new("Motor6D")
  35. Part16 = Instance.new("Part")
  36. Part17 = Instance.new("Part")
  37. Weld18 = Instance.new("Weld")
  38. Part19 = Instance.new("Part")
  39. Part20 = Instance.new("Part")
  40. Humanoid21 = Instance.new("Humanoid")
  41. Model22 = Instance.new("Model")
  42. Model23 = Instance.new("Model")
  43. Part24 = Instance.new("Part")
  44. Motor6D25 = Instance.new("Motor6D")
  45. Sound26 = Instance.new("Sound")
  46. CharacterMesh27 = Instance.new("CharacterMesh")
  47. Script28 = Instance.new("Script")
  48. Script29 = Instance.new("Script")
  49. StringValue30 = Instance.new("StringValue")
  50. Animation31 = Instance.new("Animation")
  51. StringValue32 = Instance.new("StringValue")
  52. Animation33 = Instance.new("Animation")
  53. StringValue34 = Instance.new("StringValue")
  54. Animation35 = Instance.new("Animation")
  55. NumberValue36 = Instance.new("NumberValue")
  56. Animation37 = Instance.new("Animation")
  57. NumberValue38 = Instance.new("NumberValue")
  58. StringValue39 = Instance.new("StringValue")
  59. Animation40 = Instance.new("Animation")
  60. StringValue41 = Instance.new("StringValue")
  61. Animation42 = Instance.new("Animation")
  62. StringValue43 = Instance.new("StringValue")
  63. Animation44 = Instance.new("Animation")
  64. StringValue45 = Instance.new("StringValue")
  65. Animation46 = Instance.new("Animation")
  66. StringValue47 = Instance.new("StringValue")
  67. Animation48 = Instance.new("Animation")
  68. Animation49 = Instance.new("Animation")
  69. Part50 = Instance.new("Part")
  70. SpecialMesh51 = Instance.new("SpecialMesh")
  71. Sound52 = Instance.new("Sound")
  72. Sound53 = Instance.new("Sound")
  73. Sound54 = Instance.new("Sound")
  74. Sound55 = Instance.new("Sound")
  75. Pants56 = Instance.new("Pants")
  76. BodyColors57 = Instance.new("BodyColors")
  77. Hat58 = Instance.new("Hat")
  78. Part59 = Instance.new("Part")
  79. SpecialMesh60 = Instance.new("SpecialMesh")
  80. Script61 = Instance.new("Script")
  81. CharacterMesh62 = Instance.new("CharacterMesh")
  82. CharacterMesh63 = Instance.new("CharacterMesh")
  83. Script64 = Instance.new("Script")
  84. CharacterMesh65 = Instance.new("CharacterMesh")
  85. CharacterMesh66 = Instance.new("CharacterMesh")
  86. Model0.Name = "Laina"
  87. Model0.Parent = mas
  88. Model1.Name = "Laina The Killer"
  89. Model1.Parent = Model0
  90. Model1.PrimaryPart = Part2
  91. Part2.Name = "Head"
  92. Part2.Parent = Model1
  93. Part2.Material = Enum.Material.SmoothPlastic
  94. Part2.BrickColor = BrickColor.new("Institutional white")
  95. Part2.Rotation = Vector3.new(-0.00999999978, -0.74000001, 0)
  96. Part2.CanCollide = false
  97. Part2.Elasticity = 0
  98. Part2.FormFactor = Enum.FormFactor.Symmetric
  99. Part2.Friction = 0
  100. Part2.Size = Vector3.new(2, 1, 1)
  101. Part2.CFrame = CFrame.new(-69.1565018, 4.56325722, -6.80384684, 0.999915779, 5.62754358e-05, -0.0129821077, -5.48280223e-05, 1, 0.000111848916, 0.0129821151, -0.000111127709, 0.999915719)
  102. Part2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  103. Part2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  104. Part2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  105. Part2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  106. Part2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  107. Part2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  108. Part2.Color = Color3.new(0.972549, 0.972549, 0.972549)
  109. Part2.Position = Vector3.new(-69.1565018, 4.56325722, -6.80384684)
  110. Part2.Orientation = Vector3.new(-0.00999999978, -0.74000001, 0)
  111. Part2.Color = Color3.new(0.972549, 0.972549, 0.972549)
  112. SpecialMesh3.Parent = Part2
  113. SpecialMesh3.Scale = Vector3.new(1.25, 1.25, 1.25)
  114. SpecialMesh3.Scale = Vector3.new(1.25, 1.25, 1.25)
  115. Sound4.Name = "laina_Susto2"
  116. Sound4.Parent = Part2
  117. Sound4.Pitch = 2
  118. Sound4.SoundId = "rbxassetid://488485589"
  119. Sound4.Volume = 1
  120. Decal5.Name = "face"
  121. Decal5.Parent = Part2
  122. Decal5.Texture = "rbxassetid://116690930"
  123. Sound6.Name = "laina_Step"
  124. Sound6.Parent = Part2
  125. Sound6.Pitch = 1.7000000476837
  126. Sound6.SoundId = "rbxassetid://379611235"
  127. Sound6.Volume = 1
  128. Sound7.Name = "laina_Laugh"
  129. Sound7.Parent = Part2
  130. Sound7.Pitch = 1.3999999761581
  131. Sound7.Volume = 0
  132. Sound7.Looped = true
  133. Weld8.Name = "HeadWeld"
  134. Weld8.Parent = Part2
  135. Weld8.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  136. Weld8.C1 = CFrame.new(0, 0.899999976, 0, 1, 0, 0, 0, 0.995037198, 0.0995037183, 0, -0.0995037183, 0.995037198)
  137. Weld8.Part0 = Part2
  138. Weld8.Part1 = Part59
  139. Part9.Name = "Torso"
  140. Part9.Parent = Model1
  141. Part9.Material = Enum.Material.SmoothPlastic
  142. Part9.BrickColor = BrickColor.new("Institutional white")
  143. Part9.Rotation = Vector3.new(-0.00999999978, -0.74000001, 0)
  144. Part9.CanCollide = false
  145. Part9.Elasticity = 0
  146. Part9.FormFactor = Enum.FormFactor.Symmetric
  147. Part9.Friction = 2
  148. Part9.Size = Vector3.new(2, 2, 1)
  149. Part9.CFrame = CFrame.new(-69.1565857, 3.06325698, -6.80367994, 0.999915779, 5.62754358e-05, -0.0129821077, -5.48280223e-05, 1, 0.000111848916, 0.0129821151, -0.000111127709, 0.999915719)
  150. Part9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  151. Part9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  152. Part9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  153. Part9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  154. Part9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  155. Part9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  156. Part9.Color = Color3.new(0.972549, 0.972549, 0.972549)
  157. Part9.Position = Vector3.new(-69.1565857, 3.06325698, -6.80367994)
  158. Part9.Orientation = Vector3.new(-0.00999999978, -0.74000001, 0)
  159. Part9.Color = Color3.new(0.972549, 0.972549, 0.972549)
  160. Decal10.Name = "roblox"
  161. Decal10.Parent = Part9
  162. Motor6D11.Name = "Right Shoulder"
  163. Motor6D11.Parent = Part9
  164. Motor6D11.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  165. Motor6D11.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  166. Motor6D11.Part0 = Part9
  167. Motor6D11.Part1 = Part17
  168. Motor6D11.MaxVelocity = 0.10000000149012
  169. Motor6D12.Name = "Left Shoulder"
  170. Motor6D12.Parent = Part9
  171. Motor6D12.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  172. Motor6D12.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  173. Motor6D12.Part0 = Part9
  174. Motor6D12.Part1 = Part16
  175. Motor6D12.MaxVelocity = 0.10000000149012
  176. Motor6D13.Name = "Right Hip"
  177. Motor6D13.Parent = Part9
  178. Motor6D13.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  179. Motor6D13.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  180. Motor6D13.Part0 = Part9
  181. Motor6D13.Part1 = Part20
  182. Motor6D13.MaxVelocity = 0.10000000149012
  183. Motor6D14.Name = "Left Hip"
  184. Motor6D14.Parent = Part9
  185. Motor6D14.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  186. Motor6D14.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  187. Motor6D14.Part0 = Part9
  188. Motor6D14.Part1 = Part19
  189. Motor6D14.MaxVelocity = 0.10000000149012
  190. Motor6D15.Name = "Neck"
  191. Motor6D15.Parent = Part9
  192. Motor6D15.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  193. Motor6D15.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  194. Motor6D15.Part0 = Part9
  195. Motor6D15.Part1 = Part2
  196. Motor6D15.MaxVelocity = 0.10000000149012
  197. Part16.Name = "Left Arm"
  198. Part16.Parent = Model1
  199. Part16.Material = Enum.Material.SmoothPlastic
  200. Part16.BrickColor = BrickColor.new("Institutional white")
  201. Part16.Rotation = Vector3.new(-0.00999999978, -0.74000001, 0)
  202. Part16.CanCollide = false
  203. Part16.Elasticity = 0
  204. Part16.FormFactor = Enum.FormFactor.Symmetric
  205. Part16.Friction = 2
  206. Part16.Size = Vector3.new(1, 2, 1)
  207. Part16.CFrame = CFrame.new(-70.656456, 3.06333923, -6.82315302, 0.999915779, 5.62754358e-05, -0.0129821077, -5.48280223e-05, 1, 0.000111848916, 0.0129821151, -0.000111127709, 0.999915719)
  208. Part16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  209. Part16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  210. Part16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  211. Part16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  212. Part16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  213. Part16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  214. Part16.Color = Color3.new(0.972549, 0.972549, 0.972549)
  215. Part16.Position = Vector3.new(-70.656456, 3.06333923, -6.82315302)
  216. Part16.Orientation = Vector3.new(-0.00999999978, -0.74000001, 0)
  217. Part16.Color = Color3.new(0.972549, 0.972549, 0.972549)
  218. Part17.Name = "Right Arm"
  219. Part17.Parent = Model1
  220. Part17.Material = Enum.Material.SmoothPlastic
  221. Part17.BrickColor = BrickColor.new("Institutional white")
  222. Part17.Rotation = Vector3.new(-0.00999999978, -0.74000001, 0)
  223. Part17.CanCollide = false
  224. Part17.Elasticity = 0
  225. Part17.FormFactor = Enum.FormFactor.Symmetric
  226. Part17.Friction = 2
  227. Part17.Size = Vector3.new(1, 2, 1)
  228. Part17.CFrame = CFrame.new(-67.6567154, 3.06317472, -6.78420687, 0.999915779, 5.62754358e-05, -0.0129821077, -5.48280223e-05, 1, 0.000111848916, 0.0129821151, -0.000111127709, 0.999915719)
  229. Part17.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  230. Part17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  231. Part17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  232. Part17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  233. Part17.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  234. Part17.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  235. Part17.Color = Color3.new(0.972549, 0.972549, 0.972549)
  236. Part17.Position = Vector3.new(-67.6567154, 3.06317472, -6.78420687)
  237. Part17.Orientation = Vector3.new(-0.00999999978, -0.74000001, 0)
  238. Part17.Color = Color3.new(0.972549, 0.972549, 0.972549)
  239. Weld18.Name = "RightGripWeld"
  240. Weld18.Parent = Part17
  241. Weld18.C0 = CFrame.new(-1.29999995, 1.16840947, 0.750634551, 1, 0, 0, 0, 0.968409479, 0.249365434, 0, -0.249365434, 0.968409479)
  242. Weld18.C1 = CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  243. Weld18.Part0 = Part50
  244. Weld18.Part1 = Part17
  245. Part19.Name = "Left Leg"
  246. Part19.Parent = Model1
  247. Part19.Material = Enum.Material.SmoothPlastic
  248. Part19.BrickColor = BrickColor.new("Really black")
  249. Part19.Rotation = Vector3.new(-0.00999999978, -0.74000001, 0)
  250. Part19.CanCollide = false
  251. Part19.Elasticity = 0
  252. Part19.FormFactor = Enum.FormFactor.Symmetric
  253. Part19.Friction = 2
  254. Part19.Size = Vector3.new(1, 2, 1)
  255. Part19.CFrame = CFrame.new(-69.6566544, 1.0632844, -6.80994892, 0.999915779, 5.62754358e-05, -0.0129821077, -5.48280223e-05, 1, 0.000111848916, 0.0129821151, -0.000111127709, 0.999915719)
  256. Part19.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  257. Part19.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  258. Part19.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  259. Part19.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  260. Part19.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  261. Part19.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  262. Part19.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  263. Part19.Position = Vector3.new(-69.6566544, 1.0632844, -6.80994892)
  264. Part19.Orientation = Vector3.new(-0.00999999978, -0.74000001, 0)
  265. Part19.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  266. Part20.Name = "Right Leg"
  267. Part20.Parent = Model1
  268. Part20.Material = Enum.Material.SmoothPlastic
  269. Part20.BrickColor = BrickColor.new("Really black")
  270. Part20.Rotation = Vector3.new(-0.00999999978, -0.74000001, 0)
  271. Part20.CanCollide = false
  272. Part20.Elasticity = 0
  273. Part20.FormFactor = Enum.FormFactor.Symmetric
  274. Part20.Friction = 2
  275. Part20.Size = Vector3.new(1, 2, 1)
  276. Part20.CFrame = CFrame.new(-68.6567383, 1.06322956, -6.79696655, 0.999915779, 5.62754358e-05, -0.0129821077, -5.48280223e-05, 1, 0.000111848916, 0.0129821151, -0.000111127709, 0.999915719)
  277. Part20.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  278. Part20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  279. Part20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  280. Part20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  281. Part20.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  282. Part20.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  283. Part20.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  284. Part20.Position = Vector3.new(-68.6567383, 1.06322956, -6.79696655)
  285. Part20.Orientation = Vector3.new(-0.00999999978, -0.74000001, 0)
  286. Part20.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  287. Humanoid21.Name = "ColdBloodedKiller"
  288. Humanoid21.Parent = Model1
  289. Humanoid21.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  290. Humanoid21.HealthDisplayDistance = 0
  291. Humanoid21.NameDisplayDistance = 0
  292. Humanoid21.NameOcclusion = Enum.NameOcclusion.EnemyOcclusion
  293. Humanoid21.RightLeg = Part20
  294. Humanoid21.LeftLeg = Part19
  295. Humanoid21.Torso = Part24
  296. Humanoid21.Health = 500
  297. Humanoid21.MaxHealth = 5000
  298. Model22.Name = "Status"
  299. Model22.Parent = Humanoid21
  300. Model23.Name = "AvalibleSpawns"
  301. Model23.Parent = Model22
  302. Part24.Name = "HumanoidRootPart"
  303. Part24.Parent = Model1
  304. Part24.Material = Enum.Material.SmoothPlastic
  305. Part24.BrickColor = BrickColor.new("Bright blue")
  306. Part24.Transparency = 1
  307. Part24.Rotation = Vector3.new(-0.00999999978, -0.74000001, 0)
  308. Part24.CanCollide = false
  309. Part24.Elasticity = 0
  310. Part24.FormFactor = Enum.FormFactor.Symmetric
  311. Part24.Friction = 0
  312. Part24.Size = Vector3.new(2, 2, 1)
  313. Part24.CFrame = CFrame.new(-69.1565857, 3.06325698, -6.80367994, 0.999915779, 5.62754358e-05, -0.0129821077, -5.48280223e-05, 1, 0.000111848916, 0.0129821151, -0.000111127709, 0.999915719)
  314. Part24.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  315. Part24.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  316. Part24.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  317. Part24.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  318. Part24.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  319. Part24.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  320. Part24.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  321. Part24.Position = Vector3.new(-69.1565857, 3.06325698, -6.80367994)
  322. Part24.Orientation = Vector3.new(-0.00999999978, -0.74000001, 0)
  323. Part24.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  324. Motor6D25.Name = "RootJoint"
  325. Motor6D25.Parent = Part24
  326. Motor6D25.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  327. Motor6D25.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  328. Motor6D25.Part0 = Part24
  329. Motor6D25.Part1 = Part9
  330. Motor6D25.MaxVelocity = 0.10000000149012
  331. Sound26.Name = "Laina_Scene_Sound1"
  332. Sound26.Parent = Model1
  333. Sound26.SoundId = "rbxassetid://1372257"
  334. Sound26.Looped = true
  335. CharacterMesh27.Name = "3.0 Female Right Leg"
  336. CharacterMesh27.Parent = Model1
  337. CharacterMesh27.MeshId = 81628308
  338. CharacterMesh27.BodyPart = Enum.BodyPart.RightLeg
  339. Script28.Name = "Health"
  340. Script28.Parent = Model1
  341. table.insert(cors,sandbox(Script28,function()
  342. --Responsible for regening a player's humanoid's health
  343.  
  344. -- declarations
  345. local Figure = script.Parent
  346. local Head = Figure:WaitForChild("Head")
  347. local Humanoid;
  348. for _,Child in pairs(Figure:GetChildren())do
  349. if Child and Child.ClassName=="Humanoid"then
  350. Humanoid=Child;
  351. end;
  352. end;
  353. local regening = false
  354.  
  355. -- regeneration
  356. function regenHealth()
  357. if regening then return end
  358. regening = true
  359.  
  360. while Humanoid.Health < Humanoid.MaxHealth do
  361. local s = wait(1)
  362. local health = Humanoid.Health
  363. if health~=0 and health < Humanoid.MaxHealth then
  364. local newHealthDelta = 0.01 * s * Humanoid.MaxHealth
  365. health = health + newHealthDelta
  366. Humanoid.Health = math.min(health,Humanoid.MaxHealth)
  367. end
  368. end
  369.  
  370. if Humanoid.Health > Humanoid.MaxHealth then
  371. Humanoid.Health = Humanoid.MaxHealth
  372. end
  373.  
  374. regening = false
  375. end
  376.  
  377. Humanoid.HealthChanged:connect(regenHealth)
  378.  
  379. end))
  380. Script29.Name = "AnimateSauce"
  381. Script29.Parent = Model1
  382. table.insert(cors,sandbox(Script29,function()
  383. function waitForChild(parent, childName)
  384. local child = parent:findFirstChild(childName)
  385. if child then return child end
  386. while true do
  387. child = parent.ChildAdded:wait()
  388. if child.Name==childName then return child end
  389. end
  390. end
  391. local Figure = script.Parent
  392. local Torso = waitForChild(Figure, "Torso")
  393. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  394. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  395. local RightHip = waitForChild(Torso, "Right Hip")
  396. local LeftHip = waitForChild(Torso, "Left Hip")
  397. local Neck = waitForChild(Torso, "Neck")
  398. local Humanoid;
  399. for _,Child in pairs(Figure:GetChildren())do
  400. if Child and Child.ClassName=="Humanoid"then
  401. Humanoid=Child;
  402. end;
  403. end;
  404. local pose = "Standing"
  405. local currentAnim = ""
  406. local currentAnimInstance = nil
  407. local currentAnimTrack = nil
  408. local currentAnimKeyframeHandler = nil
  409. local currentAnimSpeed = 1.0
  410. local animTable = {}
  411. local animNames = {
  412. idle = {
  413. { id = "http://www.roblox.com/asset/?id=180435571", weight = 9 },
  414. { id = "http://www.roblox.com/asset/?id=180435792", weight = 1 }
  415. },
  416. walk = {
  417. { id = "http://www.roblox.com/asset/?id=180426354", weight = 10 }
  418. },
  419. run = {
  420. { id = "http://www.roblox.com/asset/?id=252557606", weight = 20 }
  421. },
  422. jump = {
  423. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  424. },
  425. fall = {
  426. { id = "http://www.roblox.com/asset/?id=180436148", weight = 10 }
  427. },
  428. climb = {
  429. { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
  430. },
  431. sit = {
  432. { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
  433. },
  434. toolnone = {
  435. { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 }
  436. },
  437. toolslash = {
  438. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  439. --{ id = "slash.xml", weight = 10 }
  440. },
  441. toollunge = {
  442. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  443. },
  444. wave = {
  445. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  446. },
  447. point = {
  448. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  449. },
  450. dance1 = {
  451. { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 },
  452. { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 },
  453. { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 }
  454. },
  455. dance2 = {
  456. { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 },
  457. { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 },
  458. { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 }
  459. },
  460. dance3 = {
  461. { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 },
  462. { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 },
  463. { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 }
  464. },
  465. laugh = {
  466. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  467. },
  468. cheer = {
  469. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  470. },
  471. }
  472. local dances = {"dance1", "dance2", "dance3"}
  473.  
  474. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  475. local emoteNames = { wave = false, point = false, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  476.  
  477. function configureAnimationSet(name, fileList)
  478. if (animTable[name] ~= nil) then
  479. for _, connection in pairs(animTable[name].connections) do
  480. connection:disconnect()
  481. end
  482. end
  483. animTable[name] = {}
  484. animTable[name].count = 0
  485. animTable[name].totalWeight = 0
  486. animTable[name].connections = {}
  487.  
  488. -- check for config values
  489. local config = script:FindFirstChild(name)
  490. if (config ~= nil) then
  491. --print("Loading anims " .. name)
  492. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  493. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  494. local idx = 1
  495. for _, childPart in pairs(config:GetChildren()) do
  496. if (childPart:IsA("Animation")) then
  497. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  498. animTable[name][idx] = {}
  499. animTable[name][idx].anim = childPart
  500. local weightObject = childPart:FindFirstChild("Weight")
  501. if (weightObject == nil) then
  502. animTable[name][idx].weight = 1
  503. else
  504. animTable[name][idx].weight = weightObject.Value
  505. end
  506. animTable[name].count = animTable[name].count + 1
  507. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  508. --print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  509. idx = idx + 1
  510. end
  511. end
  512. end
  513.  
  514. -- fallback to defaults
  515. if (animTable[name].count <= 0) then
  516. for idx, anim in pairs(fileList) do
  517. animTable[name][idx] = {}
  518. animTable[name][idx].anim = Instance.new("Animation")
  519. animTable[name][idx].anim.Name = name
  520. animTable[name][idx].anim.AnimationId = anim.id
  521. animTable[name][idx].weight = anim.weight
  522. animTable[name].count = animTable[name].count + 1
  523. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  524. --print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  525. end
  526. end
  527. end
  528.  
  529. -- Setup animation objects
  530. function scriptChildModified(child)
  531. local fileList = animNames[child.Name]
  532. if (fileList ~= nil) then
  533. configureAnimationSet(child.Name, fileList)
  534. end
  535. end
  536.  
  537. script.ChildAdded:connect(scriptChildModified)
  538. script.ChildRemoved:connect(scriptChildModified)
  539.  
  540.  
  541. for name, fileList in pairs(animNames) do
  542. configureAnimationSet(name, fileList)
  543. end
  544.  
  545. -- ANIMATION
  546.  
  547. -- declarations
  548. local toolAnim = "None"
  549. local toolAnimTime = 0
  550.  
  551. local jumpAnimTime = 0
  552. local jumpAnimDuration = 0.3
  553.  
  554. local toolTransitionTime = 0.1
  555. local fallTransitionTime = 0.3
  556. local jumpMaxLimbVelocity = 0.75
  557.  
  558. -- functions
  559.  
  560. function stopAllAnimations()
  561. local oldAnim = currentAnim
  562.  
  563. -- return to idle if finishing an emote
  564. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  565. oldAnim = "idle"
  566. end
  567.  
  568. currentAnim = ""
  569. currentAnimInstance = nil
  570. if (currentAnimKeyframeHandler ~= nil) then
  571. currentAnimKeyframeHandler:disconnect()
  572. end
  573.  
  574. if (currentAnimTrack ~= nil) then
  575. currentAnimTrack:Stop()
  576. currentAnimTrack:Destroy()
  577. currentAnimTrack = nil
  578. end
  579. return oldAnim
  580. end
  581.  
  582. function setAnimationSpeed(speed)
  583. if speed ~= currentAnimSpeed then
  584. currentAnimSpeed = speed
  585. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  586. end
  587. end
  588.  
  589. function keyFrameReachedFunc(frameName)
  590. if (frameName == "End") then
  591.  
  592. local repeatAnim = currentAnim
  593. -- return to idle if finishing an emote
  594. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  595. repeatAnim = "idle"
  596. end
  597.  
  598. local animSpeed = currentAnimSpeed
  599. playAnimation(repeatAnim, 0.0, Humanoid)
  600. setAnimationSpeed(animSpeed)
  601. end
  602. end
  603.  
  604. -- Preload animations
  605. function playAnimation(animName, transitionTime, humanoid)
  606.  
  607. local roll = math.random(1, animTable[animName].totalWeight)
  608. local origRoll = roll
  609. local idx = 1
  610. while (roll > animTable[animName][idx].weight) do
  611. roll = roll - animTable[animName][idx].weight
  612. idx = idx + 1
  613. end
  614. --print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  615. local anim = animTable[animName][idx].anim
  616. -- switch animation
  617. if (anim ~= currentAnimInstance) then
  618. if (currentAnimTrack ~= nil) then
  619. currentAnimTrack:Stop(transitionTime)
  620. currentAnimTrack:Destroy()
  621. end
  622. currentAnimSpeed = 1.0
  623. -- load it to the humanoid; get AnimationTrack
  624. currentAnimTrack = humanoid:LoadAnimation(anim)
  625. -- play the animation
  626. currentAnimTrack:Play(transitionTime)
  627. currentAnim = animName
  628. currentAnimInstance = anim
  629. -- set up keyframe name triggers
  630. if (currentAnimKeyframeHandler ~= nil) then
  631. currentAnimKeyframeHandler:disconnect()
  632. end
  633. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  634. end
  635. end
  636. -------------------------------------------------------------------------------------------
  637. -------------------------------------------------------------------------------------------
  638. local toolAnimName = ""
  639. local toolAnimTrack = nil
  640. local toolAnimInstance = nil
  641. local currentToolAnimKeyframeHandler = nil
  642. function toolKeyFrameReachedFunc(frameName)
  643. if (frameName == "End") then
  644. --print("Keyframe : ".. frameName)
  645. playToolAnimation(toolAnimName, 0.0, Humanoid)
  646. end
  647. end
  648. function playToolAnimation(animName, transitionTime, humanoid)
  649. local roll = math.random(1, animTable[animName].totalWeight)
  650. local origRoll = roll
  651. local idx = 1
  652. while (roll > animTable[animName][idx].weight) do
  653. roll = roll - animTable[animName][idx].weight
  654. idx = idx + 1
  655. end
  656. --print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  657. local anim = animTable[animName][idx].anim
  658. if (toolAnimInstance ~= anim) then
  659. if (toolAnimTrack ~= nil) then
  660. toolAnimTrack:Stop()
  661. toolAnimTrack:Destroy()
  662. transitionTime = 0
  663. end
  664. -- load it to the humanoid; get AnimationTrack
  665. toolAnimTrack = humanoid:LoadAnimation(anim)
  666. -- play the animation
  667. toolAnimTrack:Play(transitionTime)
  668. toolAnimName = animName
  669. toolAnimInstance = anim
  670. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  671. end
  672. end
  673. function stopToolAnimations()
  674. local oldAnim = toolAnimName
  675. if (currentToolAnimKeyframeHandler ~= nil) then
  676. currentToolAnimKeyframeHandler:disconnect()
  677. end
  678. toolAnimName = ""
  679. toolAnimInstance = nil
  680. if (toolAnimTrack ~= nil) then
  681. toolAnimTrack:Stop()
  682. toolAnimTrack:Destroy()
  683. toolAnimTrack = nil
  684. end
  685. return oldAnim
  686. end
  687. -------------------------------------------------------------------------------------------
  688. -------------------------------------------------------------------------------------------
  689. function onRunning(speed)
  690. if speed>0.01 then
  691. if Figure and Humanoid and Humanoid.WalkSpeed<17 then
  692. playAnimation("walk", 0.1, Humanoid);
  693. elseif Figure and Humanoid and Humanoid.WalkSpeed>17 then
  694. playAnimation("run", 0.1, Humanoid);
  695. end;
  696. if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
  697. setAnimationSpeed(speed / 14.5)
  698. end
  699. pose = "Running"
  700. else
  701. playAnimation("idle", 0.1, Humanoid)
  702. pose = "Standing"
  703. end
  704. end
  705. function onDied()
  706. pose = "Dead"
  707. end
  708. function onJumping()
  709. playAnimation("jump", 0.1, Humanoid)
  710. jumpAnimTime = jumpAnimDuration
  711. pose = "Jumping"
  712. end
  713. function onClimbing(speed)
  714. playAnimation("climb", 0.1, Humanoid)
  715. setAnimationSpeed(speed / 12.0)
  716. pose = "Climbing"
  717. end
  718. function onGettingUp()
  719. pose = "GettingUp"
  720. end
  721. function onFreeFall()
  722. if (jumpAnimTime <= 0) then
  723. playAnimation("fall", fallTransitionTime, Humanoid)
  724. end
  725. pose = "FreeFall"
  726. end
  727. function onFallingDown()
  728. pose = "FallingDown"
  729. end
  730. function onSeated()
  731. pose = "Seated"
  732. end
  733. function onPlatformStanding()
  734. pose = "PlatformStanding"
  735. end
  736. function onSwimming(speed)
  737. if speed>0 then
  738. pose = "Running"
  739. else
  740. pose = "Standing"
  741. end
  742. end
  743.  
  744. function getTool()
  745. for _, kid in ipairs(Figure:GetChildren()) do
  746. if kid.className == "Tool" then return kid end
  747. end
  748. return nil
  749. end
  750.  
  751. function getToolAnim(tool)
  752. for _, c in ipairs(tool:GetChildren()) do
  753. if c.Name == "toolanim" and c.className == "StringValue" then
  754. return c
  755. end
  756. end
  757. return nil
  758. end
  759.  
  760. function animateTool()
  761.  
  762. if (toolAnim == "None") then
  763. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  764. return
  765. end
  766.  
  767. if (toolAnim == "Slash") then
  768. playToolAnimation("toolslash", 0, Humanoid)
  769. return
  770. end
  771.  
  772. if (toolAnim == "Lunge") then
  773. playToolAnimation("toollunge", 0, Humanoid)
  774. return
  775. end
  776. end
  777.  
  778. function moveSit()
  779. RightShoulder.MaxVelocity = 0.15
  780. LeftShoulder.MaxVelocity = 0.15
  781. RightShoulder:SetDesiredAngle(3.14 /2)
  782. LeftShoulder:SetDesiredAngle(-3.14 /2)
  783. RightHip:SetDesiredAngle(3.14 /2)
  784. LeftHip:SetDesiredAngle(-3.14 /2)
  785. end
  786.  
  787. local lastTick = 0
  788.  
  789. function move(time)
  790. local amplitude = 1
  791. local frequency = 1
  792. local deltaTime = time - lastTick
  793. lastTick = time
  794.  
  795. local climbFudge = 0
  796. local setAngles = false
  797.  
  798. if (jumpAnimTime > 0) then
  799. jumpAnimTime = jumpAnimTime - deltaTime
  800. end
  801.  
  802. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  803. playAnimation("fall", fallTransitionTime, Humanoid)
  804. elseif (pose == "Seated") then
  805. playAnimation("sit", 0.5, Humanoid)
  806. return
  807. elseif (pose == "Running") then
  808. if Figure and Humanoid and Humanoid.WalkSpeed<17 then
  809. playAnimation("walk", 0.1, Humanoid);
  810. elseif Figure and Humanoid and Humanoid.WalkSpeed>17 then
  811. playAnimation("run", 0.1, Humanoid);
  812. end;
  813. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  814. stopAllAnimations()
  815. amplitude = 0.1
  816. frequency = 1
  817. setAngles = true
  818. end
  819. if (setAngles) then
  820. local desiredAngle = amplitude * math.sin(time * frequency)
  821. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  822. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  823. RightHip:SetDesiredAngle(-desiredAngle)
  824. LeftHip:SetDesiredAngle(-desiredAngle)
  825. end
  826. -- Tool Animation handling
  827. local tool = getTool()
  828. if tool and tool:FindFirstChild("Handle") then
  829. local animStringValueObject = getToolAnim(tool)
  830. if animStringValueObject then
  831. toolAnim = animStringValueObject.Value
  832. -- message recieved, delete StringValue
  833. animStringValueObject.Parent = nil
  834. toolAnimTime = time + .3
  835. end
  836. if time > toolAnimTime then
  837. toolAnimTime = 0
  838. toolAnim = "None"
  839. end
  840. animateTool()
  841. else
  842. stopToolAnimations()
  843. toolAnim = "None"
  844. toolAnimInstance = nil
  845. toolAnimTime = 0
  846. end
  847. end
  848. -- connect events
  849. Humanoid.Died:connect(onDied)
  850. Humanoid.Running:connect(onRunning)
  851. Humanoid.Jumping:connect(onJumping)
  852. Humanoid.Climbing:connect(onClimbing)
  853. Humanoid.GettingUp:connect(onGettingUp)
  854. Humanoid.FreeFalling:connect(onFreeFall)
  855. Humanoid.FallingDown:connect(onFallingDown)
  856. Humanoid.Seated:connect(onSeated)
  857. Humanoid.PlatformStanding:connect(onPlatformStanding)
  858. Humanoid.Swimming:connect(onSwimming)
  859. local runService = game:GetService("RunService");
  860. playAnimation("idle", 0.1, Humanoid)
  861. pose = "Standing"
  862. while Wait(0)do
  863. local _,time=wait(0)
  864. move(time)
  865. end
  866. end))
  867. StringValue30.Name = "climb"
  868. StringValue30.Parent = Script29
  869. Animation31.Name = "ClimbAnim"
  870. Animation31.Parent = StringValue30
  871. Animation31.AnimationId = "http://www.roblox.com/asset/?id=180436334"
  872. StringValue32.Name = "fall"
  873. StringValue32.Parent = Script29
  874. Animation33.Name = "FallAnim"
  875. Animation33.Parent = StringValue32
  876. Animation33.AnimationId = "http://www.roblox.com/asset/?id=180436148"
  877. StringValue34.Name = "idle"
  878. StringValue34.Parent = Script29
  879. Animation35.Name = "Animation1"
  880. Animation35.Parent = StringValue34
  881. Animation35.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  882. NumberValue36.Name = "Weight"
  883. NumberValue36.Parent = Animation35
  884. NumberValue36.Value = 9
  885. Animation37.Name = "Animation2"
  886. Animation37.Parent = StringValue34
  887. Animation37.AnimationId = "http://www.roblox.com/asset/?id=180435792"
  888. NumberValue38.Name = "Weight"
  889. NumberValue38.Parent = Animation37
  890. NumberValue38.Value = 1
  891. StringValue39.Name = "jump"
  892. StringValue39.Parent = Script29
  893. Animation40.Name = "JumpAnim"
  894. Animation40.Parent = StringValue39
  895. Animation40.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  896. StringValue41.Name = "run"
  897. StringValue41.Parent = Script29
  898. Animation42.Name = "RunAnim"
  899. Animation42.Parent = StringValue41
  900. Animation42.AnimationId = "http://www.roblox.com/asset/?id=252557606"
  901. StringValue43.Name = "sit"
  902. StringValue43.Parent = Script29
  903. Animation44.Name = "SitAnim"
  904. Animation44.Parent = StringValue43
  905. Animation44.AnimationId = "http://www.roblox.com/asset/?id=178130996"
  906. StringValue45.Name = "toolnone"
  907. StringValue45.Parent = Script29
  908. Animation46.Name = "ToolNoneAnim"
  909. Animation46.Parent = StringValue45
  910. Animation46.AnimationId = "http://www.roblox.com/asset/?id=182393478"
  911. StringValue47.Name = "walk"
  912. StringValue47.Parent = Script29
  913. Animation48.Name = "WalkAnim"
  914. Animation48.Parent = StringValue47
  915. Animation48.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  916. Animation49.Name = "Swing"
  917. Animation49.Parent = Model1
  918. Animation49.AnimationId = "rbxassetid://54584713"
  919. Part50.Name = "Knife"
  920. Part50.Parent = Model1
  921. Part50.Material = Enum.Material.Metal
  922. Part50.BrickColor = BrickColor.new("Mid gray")
  923. Part50.Rotation = Vector3.new(14.4299994, -0.719999969, 0.179999992)
  924. Part50.CanCollide = false
  925. Part50.Elasticity = 0
  926. Part50.FormFactor = Enum.FormFactor.Custom
  927. Part50.Friction = 2
  928. Part50.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  929. Part50.CFrame = CFrame.new(-67.8435287, 2.11875534, -7.80489492, 0.999915779, -0.00318279117, -0.0125860292, -5.48280223e-05, 0.968437374, -0.249257118, 0.0129821151, 0.249236807, 0.968355596)
  930. Part50.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  931. Part50.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  932. Part50.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  933. Part50.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  934. Part50.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  935. Part50.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  936. Part50.Color = Color3.new(0.803922, 0.803922, 0.803922)
  937. Part50.Position = Vector3.new(-67.8435287, 2.11875534, -7.80489492)
  938. Part50.Orientation = Vector3.new(14.4299994, -0.74000001, 0)
  939. Part50.Color = Color3.new(0.803922, 0.803922, 0.803922)
  940. SpecialMesh51.Name = "KnifeMesh"
  941. SpecialMesh51.Parent = Part50
  942. SpecialMesh51.MeshId = "rbxassetid://165710339"
  943. SpecialMesh51.Scale = Vector3.new(0.5, 0.5, 0.699999988)
  944. SpecialMesh51.TextureId = "rbxassetid://381626146"
  945. SpecialMesh51.MeshType = Enum.MeshType.FileMesh
  946. SpecialMesh51.Scale = Vector3.new(0.5, 0.5, 0.699999988)
  947. Sound52.Name = "Hit1"
  948. Sound52.Parent = Part50
  949. Sound52.Pitch = 1.0225422382355
  950. Sound52.SoundId = "rbxassetid://91154909"
  951. Sound52.Volume = 1
  952. Sound53.Name = "Hit2"
  953. Sound53.Parent = Part50
  954. Sound53.Pitch = 1.0092434883118
  955. Sound53.SoundId = "rbxassetid://91154932"
  956. Sound53.Volume = 1
  957. Sound54.Name = "Hit3"
  958. Sound54.Parent = Part50
  959. Sound54.Pitch = 1.0101846456528
  960. Sound54.SoundId = "rbxassetid://91154954"
  961. Sound54.Volume = 1
  962. Sound55.Name = "Swing"
  963. Sound55.Parent = Part50
  964. Sound55.SoundId = "rbxassetid://148196278"
  965. Sound55.Volume = 1
  966. Pants56.Name = "Pants"
  967. Pants56.Parent = Model1
  968. Pants56.PantsTemplate = "rbxassetid://36299419"
  969. BodyColors57.Parent = Model1
  970. BodyColors57.HeadColor = BrickColor.new("Institutional white")
  971. BodyColors57.LeftArmColor = BrickColor.new("Institutional white")
  972. BodyColors57.LeftLegColor = BrickColor.new("Really black")
  973. BodyColors57.RightArmColor = BrickColor.new("Institutional white")
  974. BodyColors57.RightLegColor = BrickColor.new("Really black")
  975. BodyColors57.TorsoColor = BrickColor.new("Institutional white")
  976. Hat58.Name = "LongHairHeadBand Black"
  977. Hat58.Parent = Model1
  978. Hat58.AttachmentForward = Vector3.new(-0, -0.0995037183, -0.995037198)
  979. Hat58.AttachmentPos = Vector3.new(0, 0.899999976, 0)
  980. Hat58.AttachmentUp = Vector3.new(0, 0.995037198, -0.0995037183)
  981. Part59.Name = "Handle"
  982. Part59.Parent = Hat58
  983. Part59.Rotation = Vector3.new(5.69999981, -0.74000001, 0.0700000003)
  984. Part59.CanCollide = false
  985. Part59.FormFactor = Enum.FormFactor.Plate
  986. Part59.Size = Vector3.new(1, 2.4000001, 2)
  987. Part59.CFrame = CFrame.new(-69.155365, 4.16771364, -6.89334869, 0.999915779, -0.00123577192, -0.0129232798, -5.48280223e-05, 0.995048344, -0.0993924215, 0.0129821151, 0.0993847549, 0.994964421)
  988. Part59.BottomSurface = Enum.SurfaceType.Smooth
  989. Part59.TopSurface = Enum.SurfaceType.Smooth
  990. Part59.Position = Vector3.new(-69.155365, 4.16771364, -6.89334869)
  991. Part59.Orientation = Vector3.new(5.69999981, -0.74000001, 0)
  992. SpecialMesh60.Parent = Part59
  993. SpecialMesh60.MeshId = "rbxassetid://13070796"
  994. SpecialMesh60.TextureId = "rbxassetid://14765363"
  995. SpecialMesh60.MeshType = Enum.MeshType.FileMesh
  996. Script61.Name = "Respawn"
  997. Script61.Parent = Model1
  998. table.insert(cors,sandbox(Script61,function()
  999. --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
  1000. local PlayerSpawning=false; --[[ Change this to true if you want the NPC to spawn like a player, and change this to false if you want the NPC to spawn at it's current position. ]]--
  1001. local AdvancedRespawnScript=script;
  1002. repeat Wait(0)until script and script.Parent and script.Parent.ClassName=="Model";
  1003. local JeffTheKiller=AdvancedRespawnScript.Parent;
  1004. if AdvancedRespawnScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Thumbnail")then
  1005. JeffTheKiller:FindFirstChild("Thumbnail"):Destroy();
  1006. end;
  1007. local GameDerbis=Game:GetService("Debris");
  1008. local JeffTheKillerHumanoid;
  1009. for _,Child in pairs(JeffTheKiller:GetChildren())do
  1010. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  1011. JeffTheKillerHumanoid=Child;
  1012. end;
  1013. end;
  1014. local Respawndant=JeffTheKiller:Clone();
  1015. if PlayerSpawning then --[[ LOOK AT LINE: 2. ]]--
  1016. coroutine.resume(coroutine.create(function()
  1017. if JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid:FindFirstChild("Status")and not JeffTheKillerHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns")then
  1018. SpawnModel=Instance.new("Model");
  1019. SpawnModel.Parent=JeffTheKillerHumanoid.Status;
  1020. SpawnModel.Name="AvalibleSpawns";
  1021. else
  1022. SpawnModel=JeffTheKillerHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns");
  1023. end;
  1024. function FindSpawn(SearchValue)
  1025. local PartsArchivable=SearchValue:GetChildren();
  1026. for AreaSearch=1,#PartsArchivable do
  1027. if PartsArchivable[AreaSearch].className=="SpawnLocation"then
  1028. local PositionValue=Instance.new("Vector3Value",SpawnModel);
  1029. PositionValue.Value=PartsArchivable[AreaSearch].Position;
  1030. PositionValue.Name=PartsArchivable[AreaSearch].Duration;
  1031. end;
  1032. FindSpawn(PartsArchivable[AreaSearch]);
  1033. end;
  1034. end;
  1035. FindSpawn(Game:GetService("Workspace"));
  1036. local SpawnChilden=SpawnModel:GetChildren();
  1037. if#SpawnChilden>0 then
  1038. local SpawnItself=SpawnChilden[math.random(1,#SpawnChilden)];
  1039. local RespawningForceField=Instance.new("ForceField");
  1040. RespawningForceField.Parent=JeffTheKiller;
  1041. RespawningForceField.Name="SpawnForceField";
  1042. GameDerbis:AddItem(RespawningForceField,SpawnItself.Name);
  1043. JeffTheKiller:MoveTo(SpawnItself.Value+Vector3.new(0,3.5,0));
  1044. else
  1045. if JeffTheKiller:FindFirstChild("SpawnForceField")then
  1046. JeffTheKiller:FindFirstChild("SpawnForceField"):Destroy();
  1047. end;
  1048. JeffTheKiller:MoveTo(Vector3.new(0,115,0));
  1049. end;
  1050. end));
  1051. end;
  1052. function Respawn()
  1053. Wait(5);
  1054. Respawndant.Parent=JeffTheKiller.Parent;
  1055. Respawndant:makeJoints();
  1056. Respawndant:FindFirstChild("Head"):MakeJoints();
  1057. Respawndant:FindFirstChild("Torso"):MakeJoints();
  1058. JeffTheKiller:remove();
  1059. end;
  1060. if AdvancedRespawnScript and JeffTheKiller and JeffTheKillerHumanoid then
  1061. JeffTheKillerHumanoid.Died:connect(Respawn);
  1062. end;
  1063. --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
  1064. end))
  1065. CharacterMesh62.Name = "3.0 Female Right Arm"
  1066. CharacterMesh62.Parent = Model1
  1067. CharacterMesh62.MeshId = 83001181
  1068. CharacterMesh62.BodyPart = Enum.BodyPart.RightArm
  1069. CharacterMesh63.Name = "3.0 Female Torso"
  1070. CharacterMesh63.Parent = Model1
  1071. CharacterMesh63.MeshId = 82987757
  1072. CharacterMesh63.BodyPart = Enum.BodyPart.Torso
  1073. Script64.Name = "LainaTheKillerMain"
  1074. Script64.Parent = Model1
  1075. table.insert(cors,sandbox(Script64,function()
  1076. --[[ By: iidog_omg. ]]--
  1077. local LainaTheKillerScript=script;
  1078. repeat Wait(0)until LainaTheKillerScript and LainaTheKillerScript.Parent and LainaTheKillerScript.Parent.ClassName=="Model"and LainaTheKillerScript.Parent:FindFirstChild("Head")and LainaTheKillerScript.Parent:FindFirstChild("Torso");
  1079. local LainaTheKiller=LainaTheKillerScript.Parent;
  1080. function raycast(Spos,vec,currentdist)
  1081. local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(Spos+(vec*.05),vec*currentdist),LainaTheKiller);
  1082. if hit2~=nil and pos2 then
  1083. if hit2.Name=="Handle" and not hit2.CanCollide or string.sub(hit2.Name,1,6)=="Effect"and not hit2.CanCollide then
  1084. local currentdist=currentdist-(pos2-Spos).magnitude;
  1085. return raycast(pos2,vec,currentdist);
  1086. end;
  1087. end;
  1088. return hit2,pos2;
  1089. end;
  1090. function RayCast(Position,Direction,MaxDistance,IgnoreList)
  1091. return Game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position,Direction.unit*(MaxDistance or 999.999)),IgnoreList);
  1092. end;
  1093. --[[if JeffTheKillerScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Thumbnail")then]]--
  1094. --[[LainaTheKiller:FindFirstChild("Thumbnail"):Destroy();]]--
  1095. --[[end;]]--
  1096. local LainaTheKillerHumanoid;
  1097. for _,Child in pairs(LainaTheKiller:GetChildren())do
  1098. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  1099. LainaTheKillerHumanoid=Child;
  1100. end;
  1101. end;
  1102. local AttackDebounce=false;
  1103. local LainaTheKillerKnife=LainaTheKiller:FindFirstChild("Knife");
  1104. local LainaTheKillerHead=LainaTheKiller:FindFirstChild("Head");
  1105. local LainaTheKillerHumanoidRootPart=LainaTheKiller:FindFirstChild("HumanoidRootPart");
  1106. local WalkDebounce=false;
  1107. local Notice=false;
  1108. local JeffLaughDebounce=false;
  1109. local MusicDebounce=false;
  1110. local NoticeDebounce=false;
  1111. local ChosenMusic;
  1112. LainaTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,-0);
  1113. local OriginalC0=LainaTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0;
  1114. function FindNearestBae()
  1115. local NoticeDistance=9999e9999;
  1116. local TargetMain;
  1117. for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
  1118. if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 and TargetModel.className=="Model"and TargetModel~=LainaTheKiller and TargetModel.Name~=LainaTheKiller.Name and TargetModel:FindFirstChild("Torso")and TargetModel:FindFirstChild("Head")then
  1119. local TargetPart=TargetModel:FindFirstChild("Torso");
  1120. local FoundHumanoid;
  1121. for _,Child in pairs(TargetModel:GetChildren())do
  1122. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  1123. FoundHumanoid=Child;
  1124. end;
  1125. end;
  1126. if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-LainaTheKillerHumanoidRootPart.Position).magnitude<NoticeDistance then
  1127. TargetMain=TargetPart;
  1128. NoticeDistance=(TargetPart.Position-LainaTheKillerHumanoidRootPart.Position).magnitude;
  1129. local hit,pos=raycast(LainaTheKillerHumanoidRootPart.Position,(TargetPart.Position-LainaTheKillerHumanoidRootPart.Position).unit,500)
  1130. if hit and hit.Parent and hit.Parent.ClassName=="Model"and hit.Parent:FindFirstChild("Torso")and hit.Parent:FindFirstChild("Head")then
  1131. if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-LainaTheKillerHumanoidRootPart.Position).magnitude<9 and not AttackDebounce then
  1132. Spawn(function()
  1133. AttackDebounce=true;
  1134. local SwingAnimation=LainaTheKillerHumanoid:LoadAnimation(LainaTheKiller:FindFirstChild("Swing"));
  1135. local SwingChoice=math.random(1,2);
  1136. local HitChoice=math.random(1,3);
  1137. SwingAnimation:Play();
  1138. SwingAnimation:AdjustSpeed(1.5+(math.random()*0.1));
  1139. if LainaTheKillerScript and LainaTheKiller and LainaTheKillerKnife and LainaTheKillerKnife:FindFirstChild("Swing")then
  1140. local SwingSound=LainaTheKillerKnife:FindFirstChild("Swing");
  1141. SwingSound.Pitch=1+(math.random()*0.04);
  1142. SwingSound:Play();
  1143. end;
  1144. Wait(0.3);
  1145. if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-LainaTheKillerHumanoidRootPart.Position).magnitude<8 then
  1146. FoundHumanoid:TakeDamage(30);
  1147. if HitChoice==1 and LainaTheKillerScript and LainaTheKiller and LainaTheKillerKnife and LainaTheKillerKnife:FindFirstChild("Hit1")then
  1148. local HitSound=LainaTheKillerKnife:FindFirstChild("Hit1");
  1149. HitSound.Pitch=1+(math.random()*0.04);
  1150. HitSound:Play();
  1151. elseif HitChoice==2 and LainaTheKillerScript and LainaTheKiller and LainaTheKillerKnife and LainaTheKillerKnife:FindFirstChild("Hit2")then
  1152. local HitSound=LainaTheKillerKnife:FindFirstChild("Hit2");
  1153. HitSound.Pitch=1+(math.random()*0.04);
  1154. HitSound:Play();
  1155. elseif HitChoice==3 and LainaTheKillerScript and LainaTheKiller and LainaTheKillerKnife and LainaTheKillerKnife:FindFirstChild("Hit3")then
  1156. local HitSound=LainaTheKillerKnife:FindFirstChild("Hit3");
  1157. HitSound.Pitch=1+(math.random()*0.04);
  1158. HitSound:Play();
  1159. end;
  1160. end;
  1161. Wait(0.1);
  1162. AttackDebounce=false;
  1163. end);
  1164. end;
  1165. end;
  1166. end;
  1167. end;
  1168. end;
  1169. return TargetMain;
  1170. end;
  1171. while Wait(0)do
  1172. local TargetPoint=LainaTheKillerHumanoid.TargetPoint;
  1173. local Blockage,BlockagePos=RayCast((LainaTheKillerHumanoidRootPart.CFrame+CFrame.new(LainaTheKillerHumanoidRootPart.Position,Vector3.new(TargetPoint.X,LainaTheKillerHumanoidRootPart.Position.Y,TargetPoint.Z)).lookVector*(LainaTheKillerHumanoidRootPart.Size.Z/2)).p,LainaTheKillerHumanoidRootPart.CFrame.lookVector,(LainaTheKillerHumanoidRootPart.Size.Z*2.5),{LainaTheKiller,LainaTheKiller})
  1174. local Jumpable=false;
  1175. if Blockage then
  1176. Jumpable=true;
  1177. if Blockage and Blockage.Parent and Blockage.Parent.ClassName~="Workspace"then
  1178. local BlockageHumanoid;
  1179. for _,Child in pairs(Blockage.Parent:GetChildren())do
  1180. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  1181. BlockageHumanoid=Child;
  1182. end;
  1183. end;
  1184. if Blockage and Blockage:IsA("Terrain")then
  1185. local CellPos=Blockage:WorldToCellPreferSolid((BlockagePos-Vector3.new(0,2,0)));
  1186. local CellMaterial,CellShape,CellOrientation=Blockage:GetCell(CellPos.X,CellPos.Y,CellPos.Z);
  1187. if CellMaterial==Enum.CellMaterial.Water then
  1188. Jumpable=false;
  1189. end;
  1190. elseif BlockageHumanoid or Blockage.ClassName=="TrussPart"or Blockage.ClassName=="WedgePart"or Blockage.Name=="Handle"and Blockage.Parent.ClassName=="Hat"or Blockage.Name=="Handle"and Blockage.Parent.ClassName=="Tool"then
  1191. Jumpable=false;
  1192. end;
  1193. end;
  1194. if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 and not LainaTheKillerHumanoid.Sit and Jumpable then
  1195. LainaTheKillerHumanoid.Jump=true;
  1196. end;
  1197. end;
  1198. if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHead and LainaTheKillerHumanoidRootPart and LainaTheKillerHead:FindFirstChild("Jeff_Step")and (LainaTheKillerHumanoidRootPart.Velocity-Vector3.new(0,LainaTheKillerHumanoidRootPart.Velocity.y,0)).magnitude>=5 and not WalkDebounce and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 then
  1199. Spawn(function()
  1200. WalkDebounce=true;
  1201. local FiredRay=Ray.new(LainaTheKillerHumanoidRootPart.Position,Vector3.new(0,-4,0));
  1202. local RayTarget,endPoint=Game:GetService("Workspace"):FindPartOnRay(FiredRay,LainaTheKiller);
  1203. if RayTarget then
  1204. local LainaTheKillerHeadFootStepClone=LainaTheKillerHead:FindFirstChild("Jeff_Step"):Clone();
  1205. LainaTheKillerHeadFootStepClone.Parent=LainaTheKillerHead;
  1206. LainaTheKillerHeadFootStepClone:Play();
  1207. LainaTheKillerHeadFootStepClone:Destroy();
  1208. if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 and LainaTheKillerHumanoid.WalkSpeed<17 then
  1209. Wait(0.4);
  1210. elseif LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 and LainaTheKillerHumanoid.WalkSpeed>17 then
  1211. Wait(0.15);
  1212. end
  1213. end;
  1214. WalkDebounce=false;
  1215. end);
  1216. end;
  1217. local MainTarget=FindNearestBae();
  1218. local FoundHumanoid;
  1219. if MainTarget then
  1220. for _,Child in pairs(MainTarget.Parent:GetChildren())do
  1221. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  1222. FoundHumanoid=Child;
  1223. end;
  1224. end;
  1225. end;
  1226. if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 and MainTarget and MainTarget.Parent and FoundHumanoid and FoundHumanoid.Jump then
  1227. LainaTheKillerHumanoid.Jump=true;
  1228. end;
  1229. if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-LainaTheKillerHumanoidRootPart.Position).magnitude<25 then
  1230. if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHead and LainaTheKillerHead:FindFirstChild("Laina_Laugh")and not LainaTheKillerHead:FindFirstChild("Laina_Laugh").IsPlaying then
  1231. LainaTheKillerHead:FindFirstChild("Laina_Laugh").Volume=1;
  1232. LainaTheKillerHead:FindFirstChild("Laina_Laugh"):Play();
  1233. end;
  1234. elseif LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-LainaTheKillerHumanoidRootPart.Position).magnitude>25 then
  1235. if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHead and LainaTheKillerHead:FindFirstChild("Laina_Laugh")and LainaTheKillerHead:FindFirstChild("Laina_Laugh").IsPlaying then
  1236. if not JeffLaughDebounce then
  1237. Spawn(function()
  1238. JeffLaughDebounce=true;
  1239. repeat Wait(0);if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHead and LainaTheKillerHead:FindFirstChild("Jeff_Laugh")then LainaTheKillerHead:FindFirstChild("Laina_Laugh").Volume=LainaTheKillerHead:FindFirstChild("Laina_Laugh").Volume-0.1;else break;end;until LainaTheKillerHead:FindFirstChild("Laina_Laugh").Volume==0 or LainaTheKillerHead:FindFirstChild("Laina_Laugh").Volume<0;
  1240. LainaTheKillerHead:FindFirstChild("Laina_Laugh").Volume=0;
  1241. LainaTheKillerHead:FindFirstChild("Laina_Laugh"):Stop();
  1242. JeffLaughDebounce=false;
  1243. end);
  1244. end;
  1245. end;
  1246. end;
  1247. if not ChosenMusic and LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-LainaTheKillerHumanoidRootPart.Position).magnitude<50 then
  1248. local MusicChoice=math.random(1,2);
  1249. if MusicChoice==1 and LainaTheKillerScript and LainaTheKiller and LainaTheKiller:FindFirstChild("Laina_Scene_Sound1")then
  1250. ChosenMusic=LainaTheKiller:FindFirstChild("Laina_Scene_Sound1");
  1251. end;
  1252. if LainaTheKillerScript and LainaTheKiller and ChosenMusic and not ChosenMusic.IsPlaying then
  1253. ChosenMusic.Volume=0.5;
  1254. ChosenMusic:Play();
  1255. end;
  1256. elseif LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-LainaTheKillerHumanoidRootPart.Position).magnitude>50 then
  1257. if LainaTheKillerScript and LainaTheKiller and ChosenMusic and ChosenMusic.IsPlaying then
  1258. if not MusicDebounce then
  1259. Spawn(function()
  1260. MusicDebounce=true;
  1261. repeat Wait(0);if LainaTheKillerScript and LainaTheKiller and ChosenMusic then ChosenMusic.Volume=ChosenMusic.Volume-0.01;else break;end;until ChosenMusic.Volume==0 or ChosenMusic.Volume<0;
  1262. if ChosenMusic then
  1263. ChosenMusic.Volume=0;
  1264. ChosenMusic:Stop();
  1265. end;
  1266. ChosenMusic=nil;
  1267. MusicDebounce=false;
  1268. end);
  1269. end;
  1270. end;
  1271. end;
  1272. if not MainTarget and not LainaLaughDebounce then
  1273. Spawn(function()
  1274. LainaLaughDebounce=true;
  1275. repeat Wait(0);if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHead and LainaTheKillerHead:FindFirstChild("Laina_Laugh")then LainaTheKillerHead:FindFirstChild("Laina_Laugh").Volume=LainaTheKillerHead:FindFirstChild("Laina_Laugh").Volume-0.1;else break;end;until LainaTheKillerHead:FindFirstChild("Laina_Laugh").Volume==0 or LainaTheKillerHead:FindFirstChild("Laina_Laugh").Volume<0;
  1276. LainaTheKillerHead:FindFirstChild("laina_Laugh").Volume=0;
  1277. LainaTheKillerHead:FindFirstChild("laina_Laugh"):Stop();
  1278. LainaLaughDebounce=false;
  1279. end);
  1280. end;
  1281. if not MainTarget and not MusicDebounce then
  1282. Spawn(function()
  1283. MusicDebounce=true;
  1284. repeat Wait(0);if LainaTheKillerScript and LainaTheKiller and ChosenMusic then ChosenMusic.Volume=ChosenMusic.Volume-0.01;else break;end;until ChosenMusic.Volume==0 or ChosenMusic.Volume<0;
  1285. if ChosenMusic then
  1286. ChosenMusic.Volume=0;
  1287. ChosenMusic:Stop();
  1288. end;
  1289. ChosenMusic=nil;
  1290. MusicDebounce=false;
  1291. end);
  1292. end;
  1293. if MainTarget then
  1294. Notice=true;
  1295. if Notice and not NoticeDebounce and LainaTheKillerScript and LainaTheKiller and LainaTheKillerHead and LainaTheKillerHead:FindFirstChild("Laina_Susto2")then
  1296. LainaTheKillerHead:FindFirstChild("Laina_Susto2"):Play();
  1297. NoticeDebounce=true;
  1298. end
  1299. if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 then
  1300. if MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-LainaTheKillerHumanoidRootPart.Position).magnitude>5 then
  1301. LainaTheKillerHumanoid.WalkSpeed=30;
  1302. elseif MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-LainaTheKillerHumanoidRootPart.Position).magnitude<5 then
  1303. LainaTheKillerHumanoid.WalkSpeed=0.004;
  1304. end;
  1305. LainaTheKillerHumanoid:MoveTo(MainTarget.Position+(MainTarget.Position-LainaTheKillerHumanoidRootPart.Position).unit*2,Game:GetService("Workspace"):FindFirstChild("Terrain"));
  1306. local NeckRotation=(LainaTheKiller:FindFirstChild("Torso").Position.Y-MainTarget.Parent:FindFirstChild("Head").Position.Y)/10;
  1307. if NeckRotation>-1.5 and NeckRotation<1.5 then
  1308. LainaTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=OriginalC0*CFrame.fromEulerAnglesXYZ(NeckRotation,0,0);
  1309. end;
  1310. if NeckRotation<-1.5 then
  1311. LainaTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,-0.993636549,0.112633869,0,0.112633869,0.993636549);
  1312. elseif NeckRotation>1.5 then
  1313. LainaTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0.996671617,0.081521146,0,0.081521146,-0.996671617);
  1314. end;
  1315. else
  1316. end;
  1317. else
  1318. Notice=false;
  1319. NoticeDebounce=false;
  1320. LainaTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,-0);
  1321. local RandomWalk=math.random(1,150);
  1322. if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 then
  1323. LainaTheKillerHumanoid.WalkSpeed=12;
  1324. if RandomWalk==1 then
  1325. LainaTheKillerHumanoid:MoveTo(Game:GetService("Workspace"):FindFirstChild("Terrain").Position+Vector3.new(math.random(-2048,2048),0,math.random(-2048,2048)),Game:GetService("Workspace"):FindFirstChild("Terrain"));
  1326. end;
  1327. end;
  1328. end;
  1329. if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid then
  1330. LainaTheKillerHumanoid.DisplayDistanceType="None";
  1331. LainaTheKillerHumanoid.HealthDisplayDistance=0;
  1332. LainaTheKillerHumanoid.Name="ColdBloodedKiller";
  1333. LainaTheKillerHumanoid.NameDisplayDistance=0;
  1334. LainaTheKillerHumanoid.NameOcclusion="EnemyOcclusion";
  1335. LainaTheKillerHumanoid.AutoJumpEnabled=true;
  1336. LainaTheKillerHumanoid.AutoRotate=true;
  1337. LainaTheKillerHumanoid.MaxHealth=5000;
  1338. LainaTheKillerHumanoid.JumpPower=65;
  1339. LainaTheKillerHumanoid.MaxSlopeAngle=89.9;
  1340. end;
  1341. if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and not LainaTheKillerHumanoid.AutoJumpEnabled then
  1342. LainaTheKillerHumanoid.AutoJumpEnabled=true;
  1343. end;
  1344. if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and not LainaTheKillerHumanoid.AutoRotate then
  1345. LainaTheKillerHumanoid.AutoRotate=true;
  1346. end;
  1347. if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.PlatformStand then
  1348. LainaTheKillerHumanoid.PlatformStand=false;
  1349. end;
  1350. if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Sit then
  1351. LainaTheKillerHumanoid.Sit=false;
  1352. end;
  1353. end;
  1354. --[[ By: iidog_omg. ]]--
  1355. end))
  1356. CharacterMesh65.Name = "3.0 Female Left Arm"
  1357. CharacterMesh65.Parent = Model1
  1358. CharacterMesh65.MeshId = 83001137
  1359. CharacterMesh65.BodyPart = Enum.BodyPart.LeftArm
  1360. CharacterMesh66.Name = "3.0 Female Left Leg"
  1361. CharacterMesh66.Parent = Model1
  1362. CharacterMesh66.MeshId = 81628361
  1363. CharacterMesh66.BodyPart = Enum.BodyPart.LeftLeg
  1364. for i,v in pairs(mas:GetChildren()) do
  1365. v.Parent = workspace
  1366. pcall(function() v:MakeJoints() end)
  1367. end
  1368. mas:Destroy()
  1369. for i,v in pairs(cors) do
  1370. spawn(function()
  1371. pcall(v)
  1372. end)
  1373. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement