Advertisement
lafur

Untitled

May 24th, 2020
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.97 KB | None | 0 0
  1. -- Converted using Mokiros's Model to Script plugin
  2. -- Converted string size: 2082
  3. local genv={}
  4. local Scripts = {
  5. function() function onPlayerDied(dead)
  6. local h = script.Parent.Humanoid
  7. if (h.Health==0) then
  8. local head = script.Parent.Head
  9. local blood1 = Instance.new("Part")
  10. blood1.BrickColor = BrickColor.new(21)
  11. blood1.formFactor = 2
  12. blood1.Size = Vector3.new(1, 0.4, 1)
  13. blood1.Position = head.Position
  14. blood1.Name = "Blood"
  15. blood1.Parent = script.Parent
  16. local blood2 = Instance.new("Part")
  17. blood2.BrickColor = BrickColor.new(21)
  18. blood2.formFactor = 2
  19. blood2.Size = Vector3.new(1, 0.4, 1)
  20. blood2.Position = head.Position
  21. blood2.Name = "Blood"
  22. blood2.Parent = script.Parent
  23. local blood3 = Instance.new("Part")
  24. blood3.BrickColor = BrickColor.new(21)
  25. blood3.formFactor = 2
  26. blood3.Size = Vector3.new(1, 0.4, 1)
  27. blood3.Position = head.Position
  28. blood3.Name = "Blood"
  29. blood3.Parent = script.Parent
  30. local blood4 = Instance.new("Part")
  31. blood4.BrickColor = BrickColor.new(21)
  32. blood4.formFactor = 2
  33. blood4.Size = Vector3.new(1, 0.4, 1)
  34. blood4.Position = head.Position
  35. blood4.Name = "Blood"
  36. blood4.Parent = script.Parent
  37.  
  38. end
  39. end
  40.  
  41. script.Parent.Humanoid.Died:connect(onPlayerDied)
  42. end;
  43. function() function onPlayerDied(dead)
  44. local h = script.Parent.Humanoid
  45. if (h.Health==0) then
  46. local head = script.Parent.Head
  47. local blood1 = Instance.new("Part")
  48. blood1.BrickColor = BrickColor.new(21)
  49. blood1.formFactor = 2
  50. blood1.Size = Vector3.new(1, 0.4, 1)
  51. blood1.Position = head.Position
  52. blood1.Name = "Blood"
  53. blood1.Parent = script.Parent
  54. local blood2 = Instance.new("Part")
  55. blood2.BrickColor = BrickColor.new(21)
  56. blood2.formFactor = 2
  57. blood2.Size = Vector3.new(1, 0.4, 1)
  58. blood2.Position = head.Position
  59. blood2.Name = "Blood"
  60. blood2.Parent = script.Parent
  61. local blood3 = Instance.new("Part")
  62. blood3.BrickColor = BrickColor.new(21)
  63. blood3.formFactor = 2
  64. blood3.Size = Vector3.new(1, 0.4, 1)
  65. blood3.Position = head.Position
  66. blood3.Name = "Blood"
  67. blood3.Parent = script.Parent
  68.  
  69. end
  70. end
  71.  
  72. script.Parent.Humanoid.Died:connect(onPlayerDied)
  73. end;
  74. function() function onPlayerDied(dead)
  75. local h = script.Parent.Humanoid
  76. if (h.Health==0) then
  77. local head = script.Parent.Head
  78. local blood1 = Instance.new("Part")
  79. blood1.BrickColor = BrickColor.new(21)
  80. blood1.formFactor = 2
  81. blood1.Size = Vector3.new(1, 0.4, 1)
  82. blood1.Position = head.Position
  83. blood1.Name = "Blood"
  84. blood1.Parent = script.Parent
  85. local blood2 = Instance.new("Part")
  86. blood2.BrickColor = BrickColor.new(21)
  87. blood2.formFactor = 2
  88. blood2.Size = Vector3.new(1, 0.4, 1)
  89. blood2.Position = head.Position
  90. blood2.Name = "Blood"
  91. blood2.Parent = script.Parent
  92. local blood3 = Instance.new("Part")
  93. blood3.BrickColor = BrickColor.new(21)
  94. blood3.formFactor = 2
  95. blood3.Size = Vector3.new(1, 0.4, 1)
  96. blood3.Position = head.Position
  97. blood3.Name = "Blood"
  98. blood3.Parent = script.Parent
  99.  
  100. end
  101. end
  102.  
  103. script.Parent.Humanoid.Died:connect(onPlayerDied)
  104. end;
  105. function() function onPlayerDied(dead)
  106. local h = script.Parent.Humanoid
  107. if (h.Health==0) then
  108. local head = script.Parent.Head
  109. local blood1 = Instance.new("Part")
  110. blood1.BrickColor = BrickColor.new(21)
  111. blood1.formFactor = 2
  112. blood1.Size = Vector3.new(1, 0.4, 1)
  113. blood1.Position = head.Position
  114. blood1.Name = "Blood"
  115. blood1.Parent = script.Parent
  116. local blood2 = Instance.new("Part")
  117. blood2.BrickColor = BrickColor.new(21)
  118. blood2.formFactor = 2
  119. blood2.Size = Vector3.new(1, 0.4, 1)
  120. blood2.Position = head.Position
  121. blood2.Name = "Blood"
  122. blood2.Parent = script.Parent
  123. local blood3 = Instance.new("Part")
  124. blood3.BrickColor = BrickColor.new(21)
  125. blood3.formFactor = 2
  126. blood3.Size = Vector3.new(1, 0.4, 1)
  127. blood3.Position = head.Position
  128. blood3.Name = "Blood"
  129. blood3.Parent = script.Parent
  130. local blood4 = Instance.new("Part")
  131. blood4.BrickColor = BrickColor.new(21)
  132. blood4.formFactor = 2
  133. blood4.Size = Vector3.new(1, 0.4, 1)
  134. blood4.Position = head.Position
  135. blood4.Name = "Blood"
  136. blood4.Parent = script.Parent
  137.  
  138. end
  139. end
  140.  
  141. script.Parent.Humanoid.Died:connect(onPlayerDied)
  142. end;
  143. function() name="Zombie"
  144.  
  145. robo=script.Parent:clone()
  146.  
  147. while true do
  148. wait(3)
  149. if script.Parent.Humanoid.Health<1 then
  150. robot=robo:clone()
  151. robot.Parent=script.Parent.Parent
  152. robot:makeJoints()
  153. script.Parent:remove()
  154. end
  155. end
  156.  
  157.  
  158.  
  159. end;
  160. function() local pose = "Standing"
  161. local Figure = script.Parent
  162. local head = script.Parent.Head
  163. local torso = script.Parent.Torso
  164. local rarm = script.Parent["Right Arm"]
  165. local larm = script.Parent["Left Arm"]
  166. local rleg = script.Parent["Right Leg"]
  167. local lleg = script.Parent["Left Leg"]
  168. local human = script.Parent.Humanoid
  169. human.MaxHealth = 280
  170. human.Health = 280
  171. human.WalkSpeed = 11
  172. local neck = Instance.new("Motor6D")
  173. neck.Parent = torso
  174. neck.Name = "Neck"
  175. neck.MaxVelocity = .1
  176. neck.DesiredAngle = 0
  177. neck.Part0 = torso
  178. local rshoulder = Instance.new("Motor6D")
  179. rshoulder.Parent = torso
  180. rshoulder.Name = "Right Shoulder"
  181. rshoulder.MaxVelocity = .15
  182. rshoulder.DesiredAngle = 0
  183. rshoulder.Part0 = torso
  184. local lshoulder = Instance.new("Motor6D")
  185. lshoulder.Parent = torso
  186. lshoulder.Name = "Left Shoulder"
  187. lshoulder.MaxVelocity = .15
  188. lshoulder.DesiredAngle = 0
  189. lshoulder.Part0 = torso
  190. local rhip = Instance.new("Motor6D")
  191. rhip.Parent = torso
  192. rhip.Name = "Right Hip"
  193. rhip.MaxVelocity = .1
  194. rhip.DesiredAngle = 0
  195. rhip.Part0 = torso
  196. local lhip = Instance.new("Motor6D")
  197. lhip.Parent = torso
  198. lhip.Name = "Left Hip"
  199. lhip.MaxVelocity = .1
  200. lhip.DesiredAngle = 0
  201. lhip.Part0 = torso
  202. neck.Part1 = head
  203. rshoulder.Part1 = rarm
  204. lshoulder.Part1 = larm
  205. rhip.Part1 = rleg
  206. lhip.Part1 = lleg
  207. neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  208. neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  209. rshoulder.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  210. rshoulder.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  211. lshoulder.C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  212. lshoulder.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  213. rhip.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  214. rhip.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  215. lhip.C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  216. lhip.C1 = CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  217. human.LeftLeg = lleg
  218. human.RightLeg = rleg
  219. human.Torso = torso
  220.  
  221. function onRunning(speed)
  222. if speed>0 then
  223. pose = "Running"
  224. else
  225. pose = "Standing"
  226. end
  227. end
  228.  
  229. function onJumping()
  230. pose = "Jumping"
  231. end
  232.  
  233. function onClimbing()
  234. pose = "Climbing"
  235. end
  236.  
  237. function onFreeFall()
  238. pose = "FreeFall"
  239. end
  240.  
  241. function onSeated()
  242. pose = "Seated"
  243. end
  244.  
  245. function moveJump()
  246. rshoulder.MaxVelocity = 0.5
  247. lshoulder.MaxVelocity = 0.5
  248. rshoulder:SetDesiredAngle(3.14)
  249. lshoulder:SetDesiredAngle(-3.14)
  250. rhip:SetDesiredAngle(0)
  251. lhip:SetDesiredAngle(0)
  252. end
  253.  
  254. function moveFreeFall()
  255. rshoulder.MaxVelocity = 0.5
  256. lshoulder.MaxVelocity = 0.5
  257. rshoulder:SetDesiredAngle(3.14)
  258. lshoulder:SetDesiredAngle(-3.14)
  259. rhip:SetDesiredAngle(0)
  260. lhip:SetDesiredAngle(0)
  261. end
  262.  
  263. function moveSit()
  264. rshoulder.MaxVelocity = 0.15
  265. lshoulder.MaxVelocity = 0.15
  266. rshoulder:SetDesiredAngle(3.14 /2)
  267. lshoulder:SetDesiredAngle(-3.14 /2)
  268. rhip:SetDesiredAngle(3.14 /2)
  269. lhip:SetDesiredAngle(-3.14 /2)
  270. end
  271.  
  272. function move(time)
  273. local amplitude
  274. local frequency
  275. if (pose == "Jumping") then
  276. moveJump()
  277. return
  278. end
  279. if (pose == "FreeFall") then
  280. moveFreeFall()
  281. return
  282. end
  283. if (pose == "Seated") then
  284. moveSit()
  285. return
  286. end
  287. local climbFudge = 0
  288. if (pose == "Running") then
  289. rshoulder.MaxVelocity = 0.15
  290. lshoulder.MaxVelocity = 0.15
  291. amplitude = 1
  292. frequency = 9
  293. elseif (pose == "Climbing") then
  294. rshoulder.MaxVelocity = 0.5
  295. lshoulder.MaxVelocity = 0.5
  296. amplitude = 1
  297. frequency = 9
  298. climbFudge = math.pi
  299. else
  300. amplitude = 0.1
  301. frequency = 1
  302. end
  303. desiredAngle = amplitude * math.sin(time*frequency)
  304. rshoulder:SetDesiredAngle(desiredAngle + climbFudge)
  305. lshoulder:SetDesiredAngle(desiredAngle - climbFudge)
  306. rhip:SetDesiredAngle(-desiredAngle)
  307. lhip:SetDesiredAngle(-desiredAngle)
  308. end
  309.  
  310. human.Running:connect(onRunning)
  311. human.Jumping:connect(onJumping)
  312. human.Climbing:connect(onClimbing)
  313. human.FreeFalling:connect(onFreeFall)
  314. human.Seated:connect(onSeated)
  315.  
  316. function kill(hit)
  317. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  318. if (player) then
  319. h = player.Character:FindFirstChild("Humanoid")
  320. if (h) then
  321. h.Health = h.Health - 5
  322. end
  323. end
  324. end
  325.  
  326. head.Touched:connect(kill)
  327. torso.Touched:connect(kill)
  328. rarm.Touched:connect(kill)
  329. larm.Touched:connect(kill)
  330. rleg.Touched:connect(kill)
  331. lleg.Touched:connect(kill)
  332.  
  333. function getTorso()
  334. local position = torso.Position
  335. local distance = 20
  336. local tor = nil
  337. for i,v in pairs(Workspace:GetChildren()) do
  338. local plyr = game.Players:GetPlayerFromCharacter(v)
  339. if plyr then
  340. tor = v:findFirstChild("Torso")
  341. humanoid = v:findFirstChild("Humanoid")
  342. if (tor ~= nil) and (humanoid ~= nil) and (humanoid.Health > 0) then
  343. if (tor.Position - position).magnitude < distance then
  344. distance = (tor.Position - position).magnitude
  345. end
  346. end
  347. end
  348. end
  349. return tor
  350. end
  351.  
  352. local runService = game:service("RunService");
  353.  
  354. while (Figure.Parent ~= nil) do
  355. local x, time = wait(0.1)
  356. move(time)
  357. local target = getTorso()
  358. if target ~= nil then
  359. unit = (torso.Position-target.Position).unit
  360. human:MoveTo(target.Position - unit, target)
  361. if (target.Position.Y - .5 > torso.Position.Y) then
  362. human.Jump = true
  363. end
  364. end
  365. end
  366. end;
  367. function() --[[ By: Brutez. ]]--
  368.  
  369. ------------Animations------------
  370. local Hum = script.Parent.SCP
  371. local Sit = Hum:LoadAnimation(script.Parent.Sit)
  372. local GetUp = Hum:LoadAnimation(script.Parent.GettingUp)
  373. local Angry = Hum:LoadAnimation(script.Parent.Angry)
  374. local Run = Hum:LoadAnimation(script.Parent.Run)
  375. local Kill = Hum:LoadAnimation(script.Parent.Kill)
  376. ----------------------------------
  377.  
  378. local SCP096Script=script;
  379. repeat wait(0);until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso")and script.Parent:FindFirstChild("HumanoidRootPart");
  380. local SCP096=SCP096Script.Parent;
  381. local Hush=SCP096:FindFirstChild("Hush");
  382. local Notice=SCP096:FindFirstChild("Notice");
  383. local SCP096Humanoid = SCP096:FindFirstChild("SCP")
  384. local CanSee=false;
  385. local Pathing=false;
  386. local SCP096Head=SCP096:FindFirstChild("Head");
  387. local Damage5=SCP096Head:FindFirstChild("Damage5");
  388. local Idle=SCP096Head:FindFirstChild("Idle");
  389. local Panic=SCP096:FindFirstChild("Panick")
  390. local Screaming=SCP096Head:FindFirstChild("Screaming");
  391. local SCP096HumanoidRootPart=SCP096:FindFirstChild("HumanoidRootPart");
  392. local SCP096Torso=SCP096:FindFirstChild("Torso");
  393. local AttackDebounce=false;
  394. local Chasing=false;
  395. function raycast(Spos,vec,currentdist)
  396. local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(Spos+(vec*.05),vec*currentdist),SCP096);
  397. if hit2~=nil and pos2 then
  398. if hit2.Name=="Handle" and not hit2.CanCollide or string.sub(hit2.Name,1,6)=="Effect"and not hit2.CanCollide then
  399. local currentdist=currentdist-(pos2-Spos).magnitude;
  400. return raycast(pos2,vec,currentdist);
  401. end;
  402. end;
  403. return hit2,pos2;
  404. end;
  405. function RayCast(Position,Direction,MaxDistance,IgnoreList)
  406. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position,Direction.unit*(MaxDistance or 999.999)),IgnoreList);
  407. end;
  408. spawn(function()
  409. while wait(0)do
  410. if SCP096Script and SCP096 and SCP096HumanoidRootPart and SCP096Head and SCP096Humanoid and SCP096Humanoid.Health~=0 then
  411. local TargetPoint=SCP096Humanoid.TargetPoint;
  412. local Blockage,BlockagePos=RayCast((SCP096HumanoidRootPart.CFrame+CFrame.new(SCP096HumanoidRootPart.Position,Vector3.new(TargetPoint.X,SCP096HumanoidRootPart.Position.Y,TargetPoint.Z)).lookVector*(SCP096HumanoidRootPart.Size.Z/2)).p,SCP096HumanoidRootPart.CFrame.lookVector,(SCP096HumanoidRootPart.Size.Z*2.5),{SCP096,SCP096})
  413. local Jumpable=false;
  414. if Blockage then
  415. Jumpable=false;
  416. if Blockage and Blockage.Parent and Blockage.Parent.ClassName~="Workspace"then
  417. local BlockageHumanoid;
  418. for _,Child in pairs(Blockage.Parent:GetChildren())do
  419. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  420. BlockageHumanoid=Child;
  421. end;
  422. end;
  423. if Blockage and Blockage:IsA("Terrain")then
  424. local CellPos=Blockage:WorldToCellPreferSolid((BlockagePos-Vector3.new(0,2,0)));
  425. local CellMaterial,CellShape,CellOrientation=Blockage:GetCell(CellPos.X,CellPos.Y,CellPos.Z);
  426. if CellMaterial==Enum.CellMaterial.Water then
  427. Jumpable=false;
  428. end;
  429. 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
  430. Jumpable=false;
  431. end;
  432. end;
  433. if SCP096Script and SCP096 and SCP096Humanoid and SCP096Humanoid.Health~=0 and not SCP096Humanoid.Sit and Jumpable then
  434. SCP096Humanoid.Jump=false;
  435. end;
  436. end;
  437. end;
  438. end;
  439. end);
  440. local DynamicWander=true;
  441. while wait(0)do
  442. if game~=nil and game:GetService("Workspace")~=nil and not game:GetService("Workspace"):FindFirstChild("BrutezCredit")then
  443. local BrutezCredit="WhaaPose";
  444. end
  445. if SCP096Script and SCP096 and SCP096Humanoid then
  446. SCP096Humanoid.CameraOffset=Vector3.new(0,0,0);
  447. SCP096Humanoid.DisplayDistanceType="None";
  448. SCP096Humanoid.HealthDisplayDistance=0;
  449. SCP096Humanoid.Name="SCP";
  450. SCP096Humanoid.NameDisplayDistance=0;
  451. SCP096Humanoid.NameOcclusion="EnemyOcclusion";
  452. SCP096Humanoid.Archivable=true;
  453. SCP096Humanoid.AutoRotate=true;
  454. SCP096Humanoid.MaxHealth=999e999;
  455. SCP096Humanoid.Health=999e999;
  456. SCP096Humanoid.JumpPower=0;
  457. SCP096Humanoid.MaxSlopeAngle=89.9;
  458. if not Chasing then
  459. local SwitchWander=math.random(1,2000);
  460. if SwitchWander==1 and not DynamicWander then
  461. DynamicWander=true;
  462. elseif SwitchWander==1 and DynamicWander then
  463. DynamicWander=false;
  464. end;
  465. local WalkChance=math.random(0,0);
  466. if WalkChance==1 and SCP096Script and SCP096 and SCP096:FindFirstChild("Torso")and SCP096:FindFirstChild("Head")and SCP096Humanoid and SCP096Humanoid.Health~=0 and not DynamicWander then
  467. --SCP096Humanoid:MoveTo(game:GetService("Workspace"):FindFirstChild("Terrain").Position+Vector3.new(math.random(-2048,2048),0,math.random(-2048,2048)),game:GetService("Workspace"):FindFirstChild("Terrain"));
  468. elseif SCP096Script and SCP096 and SCP096Torso and SCP096Head and SCP096Humanoid and SCP096Humanoid.Health~=0 and DynamicWander then
  469. local WanderAngle=(math.random()-0.5)*0;
  470. local RotatingLookVector=CFrame.Angles(0,WanderAngle,0)*SCP096Torso.CFrame.lookVector;
  471. --SCP096Humanoid:MoveTo(SCP096Torso.Position+6*RotatingLookVector,SCP096Torso);
  472. end;
  473. SCP096Humanoid.WalkSpeed=0;
  474. else
  475. SCP096Humanoid=45;
  476. end;
  477. end;
  478. if SCP096Script and SCP096 and Hush and Hush.IsPlaying then
  479. Hush:Stop();
  480. end;
  481. if SCP096Script and SCP096 and Idle and not Idle.IsPlaying then
  482. Idle:Play();
  483.  
  484. Sit:Play()
  485.  
  486. end;
  487. if SCP096Script and SCP096 and Panic and Panic.IsPlaying then
  488. Panic:Stop();
  489. end;
  490. if SCP096Script and SCP096 and Screaming and Screaming.IsPlaying then
  491. Screaming:Stop();
  492. end;
  493. local NoticeDistance=35;
  494. local TargetTorso;
  495. for _,TargetModel in pairs(game:GetService("Workspace"):GetChildren())do
  496. if TargetModel.className=="Model"and TargetModel~=SCP096 and TargetModel.Name~=SCP096.Name and TargetModel:FindFirstChild("HumanoidRootPart")and TargetModel:FindFirstChild("Head")then
  497. local TargetPart=TargetModel:FindFirstChild("HumanoidRootPart");
  498. local FoundHumanoid;
  499. for _,Child in pairs(TargetModel:GetChildren())do
  500. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  501. FoundHumanoid=Child;
  502. end;
  503. end;
  504. if TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-SCP096HumanoidRootPart.Position).magnitude<NoticeDistance then
  505. TargetTorso=TargetPart;
  506. NoticeDistance=(TargetPart.Position-SCP096HumanoidRootPart.Position).magnitude;
  507. AttackDebounce=true;
  508. spawn(function()
  509. Chasing=true;
  510.  
  511. Angry:Play()
  512. Sit:Stop()
  513. spawn(function()
  514. GetUp:Play()
  515. wait(9.5)
  516. GetUp:Stop()
  517. end)
  518.  
  519. if SCP096Script and SCP096 and Idle then
  520. Notice:Play();
  521. SCP096Humanoid.WalkSpeed=16; --try here
  522. end;
  523. if SCP096Script and SCP096 and Hush and Hush.IsPlaying then
  524. Hush:Stop();
  525. end;
  526. if SCP096Script and SCP096 and Idle and Idle.IsPlaying then
  527. Idle:Stop();
  528. end;
  529. if SCP096Script and SCP096 and Panic then
  530. Panic:Play();
  531. SCP096Humanoid.WalkSpeed=61;
  532. end;
  533. if SCP096Script and SCP096 and Screaming and Screaming.IsPlaying then
  534. Screaming:Stop();
  535. end;
  536. SCP096Humanoid.WalkSpeed=16;
  537. SCP096Humanoid:MoveTo(SCP096Torso.Position,game:GetService("Workspace"):FindFirstChild("Terrain"));
  538. wait(3);--panic time
  539. Angry:Stop()
  540.  
  541. Run:Play()
  542.  
  543. if SCP096Script and SCP096 and Hush and not Hush.IsPlaying then
  544. Hush:Play();
  545. end;
  546. if SCP096Script and SCP096 and Idle and Idle.IsPlaying then
  547. Idle:Stop();
  548. end;
  549. --[[ if SCP096Script and SCP096 and Panic and Panic.IsPlaying then
  550. Panic:Stop();
  551. end; ]]
  552. if SCP096Script and SCP096 and Screaming and not Screaming.IsPlaying then
  553. Screaming:Play();
  554. end;
  555. SCP096Humanoid.WalkSpeed=45;
  556. spawn(function()
  557. while wait(0)do
  558. local hit,pos=raycast(SCP096HumanoidRootPart.Position,(TargetPart.Position-SCP096HumanoidRootPart.Position).unit,500)
  559. if hit and hit.Parent and hit.Parent.ClassName=="Model"and hit.Parent:FindFirstChild("HumanoidRootPart")and hit.Parent:FindFirstChild("Head")then
  560. CanSee=true;
  561. else
  562. CanSee=false;
  563. end;
  564. end;
  565. end);
  566. repeat
  567. wait()
  568. if CanSee then
  569. SCP096Humanoid:MoveTo(TargetPart.Position+(TargetPart.Position-SCP096HumanoidRootPart.Position).unit*2,game:GetService("Workspace"):FindFirstChild("Terrain"));
  570. end;
  571. if not CanSee and not Pathing then
  572. spawn(function()
  573. Pathing=true;
  574. local RenderedPath=game:GetService("PathfindingService"):ComputeRawPathAsync(SCP096Torso.Position,TargetPart.Position,500);
  575. local RenderedPathCoordinates=RenderedPath:GetPointCoordinates();
  576. for _=1,#RenderedPathCoordinates do
  577. if not CanSee then
  578. local Point=RenderedPathCoordinates[_];
  579. local PathTimer=0;
  580. repeat wait(0);
  581. SCP096Humanoid:MoveTo(Point);PathTimer=PathTimer+1;
  582. if PathTimer>15 or CanSee then
  583. break;
  584. end;
  585. until(SCP096Torso.Position-Point).Magnitude<5 or PathTimer>15 or CanSee;
  586. if PathTimer>15 or CanSee then
  587. break;
  588. end;
  589. end;
  590. end;
  591. Pathing=false;
  592. end);
  593. end;
  594. if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and (TargetPart.Position-SCP096HumanoidRootPart.Position).magnitude<10 then
  595. Damage5:Play()
  596.  
  597. --[[
  598. spawn(function()
  599. while true do
  600. script:Clone().Parent = workspace
  601. end
  602. end)
  603. --]]
  604.  
  605. Run:Stop()
  606. Kill:Play()
  607.  
  608. FoundHumanoid:TakeDamage(9999e9999);
  609. end
  610. until TargetModel.Parent==nil or TargetPart.Parent==nil or FoundHumanoid.Parent==nil or TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health==0;
  611. Chasing=false;
  612. wait(3)
  613. end);
  614. repeat wait(0);until not Chasing;
  615. AttackDebounce=false
  616. wait(4)
  617. end;
  618. end;
  619. end;
  620. end;
  621. end;}local ActualScripts = {}
  622. function s(var)
  623. local func = table.remove(Scripts,1)
  624. setfenv(func,setmetatable({script=var,require=fake_require or require,global=genv},{
  625. __index = getfenv(func),
  626. }))
  627. table.insert(ActualScripts,coroutine.wrap(func))
  628. end
  629. Decode = function(str,t,props,classes,values,ICList,Model,CurPar,LastIns,split,RemoveAndSplit,InstanceList)
  630. local tonum,table_remove,inst,parnt,comma,table_foreach = tonumber,table.remove,Instance.new,"Parent",",",
  631. function(t,f)
  632. for a,b in pairs(t) do
  633. f(a,b)
  634. end
  635. end
  636. local Types = {
  637. Color3 = Color3.new,
  638. Vector3 = Vector3.new,
  639. Vector2 = Vector2.new,
  640. UDim = UDim.new,
  641. UDim2 = UDim2.new,
  642. CFrame = CFrame.new,
  643. Rect = Rect.new,
  644. NumberRange = NumberRange.new,
  645. BrickColor = BrickColor.new,
  646. PhysicalProperties = PhysicalProperties.new,
  647. NumberSequence = function(...)
  648. local a = {...}
  649. local t = {}
  650. repeat
  651. t[#t+1] = NumberSequenceKeypoint.new(table_remove(a,1),table_remove(a,1),table_remove(a,1))
  652. until #a==0
  653. return NumberSequence.new(t)
  654. end,
  655. ColorSequence = function(...)
  656. local a = {...}
  657. local t = {}
  658. repeat
  659. t[#t+1] = ColorSequenceKeypoint.new(table_remove(a,1),Color3.new(table_remove(a,1),table_remove(a,1),table_remove(a,1)))
  660. until #a==0
  661. return ColorSequence.new(t)
  662. end,
  663. number = tonumber,
  664. boolean = function(a)
  665. return a=="1"
  666. end
  667. }
  668. split = function(str,sep)
  669. if not str then return end
  670. local fields = {}
  671. local ConcatNext = false
  672. str:gsub(("([^%s]+)"):format(sep),function(c)
  673. if ConcatNext == true then
  674. fields[#fields] = fields[#fields]..sep..c
  675. ConcatNext = false
  676. else
  677. fields[#fields+1] = c
  678. end
  679. if c:sub(#c)=="\\" then
  680. c = fields[#fields]
  681. fields[#fields] = c:sub(1,#c-1)
  682. ConcatNext = true
  683. end
  684. end)
  685. return fields
  686. end
  687. RemoveAndSplit = function(t)
  688. return split(table_remove(t,1),comma)
  689. end
  690. t = split(str,";")
  691. props = RemoveAndSplit(t)
  692. classes = RemoveAndSplit(t)
  693. values = split(table_remove(t,1),'|')
  694. ICList = RemoveAndSplit(t)
  695. InstanceList = {}
  696. Model = inst"Model"
  697. CurPar = Model
  698. table_foreach(t,function(ct,c)
  699. if c=="n" or c=="p" then
  700. CurPar = c=="n" and LastIns or CurPar[parnt]
  701. else
  702. ct = split(c,"|")
  703. local class = classes[tonum(table_remove(ct,1))]
  704. if class=="UnionOperation" then
  705. LastIns = {UsePartColor="1"}
  706. else
  707. LastIns = inst(class)
  708. if LastIns:IsA"Script" then
  709. s(LastIns)
  710. elseif LastIns:IsA("ModuleScript") then
  711. ms(LastIns)
  712. end
  713. end
  714.  
  715. local function SetProperty(LastIns,p,str,s)
  716. s = Types[typeof(LastIns[p])]
  717. if p=="CustomPhysicalProperties" then
  718. s = PhysicalProperties.new
  719. end
  720. if s then
  721. LastIns[p] = s(unpack(split(str,comma)))
  722. else
  723. LastIns[p] = str
  724. end
  725. end
  726.  
  727. local UnionData
  728. table_foreach(ct,function(s,p,a,str)
  729. a = p:find":"
  730. p,str = props[tonum(p:sub(1,a-1))],values[tonum(p:sub(a+1))]
  731. if p=="UnionData" then
  732. UnionData = split(str," ")
  733. return
  734. end
  735. if class=="UnionOperation" then
  736. LastIns[p] = str
  737. return
  738. end
  739. SetProperty(LastIns,p,str)
  740. end)
  741.  
  742. if UnionData then
  743. local LI_Data = LastIns
  744. LastIns = DecodeUnion(UnionData)
  745. table_foreach(LI_Data,function(p,str)
  746. SetProperty(LastIns,p,str)
  747. end)
  748. end
  749. table.insert(InstanceList,LastIns)
  750. LastIns[parnt] = CurPar
  751. end
  752. end)
  753. table_remove(ICList,1)
  754. table_foreach(ICList,function(a,b)
  755. b = split(b,">")
  756. InstanceList[tonum(b[1])][props[tonum(b[2])]] = InstanceList[tonum(b[3])]
  757. end)
  758.  
  759. return Model:GetChildren()
  760. end
  761.  
  762. local Objects = Decode('Name,Anchored,Color,Position,Size,TopSurface,Scale,Orientation,Texture,Face,BottomSurface,MeshId,MeshType,Looped,PlaybackSpeed,SoundId,Volume,MaxDistance,EmitterSize,DisplayDistanceType,HealthDisplayD'
  763. ..'istance,HealthDisplayType,NameDisplayDistance,NameOcclusion,Health,MaxHealth,HipHeight,JumpPower,MaxSlopeAngle,WalkSpeed,AnimationId;Part,SpecialMesh,Decal,MeshPart,Script,Sound,Humanoid,Model,Animati'
  764. ..'on;Part|Siren Head|1|0.4156,0.2235,0.0352|-0.0287,27.5,20.4552|10,15,5|0|1.25,1.25,1.25|Head|0.0666,0.0666,0.0666|4.9713,25,20.4552|0,-90,180|15,10,10|Siren Head Teeth|http://www.roblox.com/asset/?id='
  765. ..'4760043714|2|Torso|-0.0287,15,20.4538|10,10,5|Leg|2.4713,5,20.4538|4.9999,10,5|-2.5287,5,20.4538|Left Arm|-7.5283,12.5,20.4535|0,-0.01,0|5,15,5|SpecialMesh|4.9499,4.9499,4.9499|http://www.roblox.com/a'
  766. ..'sset/?id=27111419|5|-5.0287,30,20.4552|0,90,-180|BloodScript|Respawn|Zombie|Hush|1.1|rbxassetid://2593956530|3|Notice|95|0.6999|rbxassetid://2916266947|5|Panick|80|50|rbxassetid://1567316915|1.3999|SC'
  767. ..'P|0|1|inf|75|89.9|35|SCP-096Main|AnimSaves|TestAnim|e2cb107e5c9f6b85051c2e303ba8332e|ExportAnim|92f90eb70ee7246cc5c87954e392c391|Angry|rbxassetid://4554801383|GettingUp|rbxassetid://4647859678|Kill|rb'
  768. ..'xassetid://4647871592|Run|rbxassetid://4647861266|Sit|rbxassetid://4647857445|6.4717,12.5,20.4554|0,179.99,0;0;1|1:2|2:3|3:4|4:5|5:6|6:7|3:4|3:4;n;2|7:8;1|1:9|2:3|3:10|4:11|8:12|5:13|6:7|3:10|3:10;n;2'
  769. ..'|7:8;3|1:14|9:15|10:16;p;4|1:17|3:4|4:18|5:19|3:4|3:4;4|1:20|2:3|3:4|4:21|5:22|3:4|3:4;4|1:20|2:3|3:4|4:23|5:22|3:4|3:4;1|1:24|2:3|3:4|4:25|8:26|5:27|11:7|6:7|3:4|3:4;n;2|1:28|7:29|12:30|13:31;p;1|1:9'
  770. ..'|2:3|3:10|4:32|8:33|5:13|6:7|3:10|3:10;n;2|7:8;3|1:14|9:15|10:7;p;5|1:34;n;5|1:34;5|1:34;5|1:34;p;5|1:35;5|1:36;6|1:37|14:3|15:38|16:39|17:40;6|1:41|18:42|18:42|15:43|16:44|17:45;6|1:46|18:47|19:48|18'
  771. ..':47|16:49|17:50;7|1:51|20:16|21:52|22:16|23:52|24:53|25:54|26:54|27:3|28:55|29:56|30:57;n;p;5|1:58;8|1:59;n;9|1:60|31:61;9|1:62|31:63;n;p;p;9|1:64|31:65;9|1:66|31:67;9|1:68|31:69;9|1:70|31:71;9|1:72|3'
  772. ..'1:73;1|1:24|2:3|3:4|4:74|8:75|5:27|11:7|6:7|3:4|3:4;n;2|1:28|7:29|12:30|13:31;p;p;')
  773. for _,Object in pairs(Objects) do
  774. Object.Parent = script and script.Parent==workspace and script or workspace
  775. end
  776. for _,f in pairs(ActualScripts) do f() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement