Advertisement
Rufus14

SCP-049 NPC

May 31st, 2019
2,231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 49.44 KB | None | 0 0
  1. --By Rufus14
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4.     local env = getfenv(func)
  5.     local newenv = setmetatable({},{
  6.         __index = function(self,k)
  7.             if k=="script" then
  8.                 return var
  9.             else
  10.                 return env[k]
  11.             end
  12.         end,
  13.     })
  14.     setfenv(func,newenv)
  15.     return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Part1 = Instance.new("Part")
  21. Sound2 = Instance.new("Sound")
  22. Sound3 = Instance.new("Sound")
  23. RemoteEvent4 = Instance.new("RemoteEvent")
  24. Sound5 = Instance.new("Sound")
  25. RemoteEvent6 = Instance.new("RemoteEvent")
  26. Sound7 = Instance.new("Sound")
  27. RemoteEvent8 = Instance.new("RemoteEvent")
  28. Sound9 = Instance.new("Sound")
  29. RemoteEvent10 = Instance.new("RemoteEvent")
  30. Sound11 = Instance.new("Sound")
  31. RemoteEvent12 = Instance.new("RemoteEvent")
  32. Sound13 = Instance.new("Sound")
  33. RemoteEvent14 = Instance.new("RemoteEvent")
  34. Sound15 = Instance.new("Sound")
  35. RemoteEvent16 = Instance.new("RemoteEvent")
  36. Sound17 = Instance.new("Sound")
  37. RemoteEvent18 = Instance.new("RemoteEvent")
  38. Sound19 = Instance.new("Sound")
  39. RemoteEvent20 = Instance.new("RemoteEvent")
  40. Decal21 = Instance.new("Decal")
  41. Sound22 = Instance.new("Sound")
  42. Sound23 = Instance.new("Sound")
  43. SpecialMesh24 = Instance.new("SpecialMesh")
  44. Sound25 = Instance.new("Sound")
  45. Sound26 = Instance.new("Sound")
  46. Sound27 = Instance.new("Sound")
  47. Sound28 = Instance.new("Sound")
  48. Weld29 = Instance.new("Weld")
  49. Weld30 = Instance.new("Weld")
  50. Weld31 = Instance.new("Weld")
  51. Weld32 = Instance.new("Weld")
  52. Part33 = Instance.new("Part")
  53. Decal34 = Instance.new("Decal")
  54. Weld35 = Instance.new("Weld")
  55. Weld36 = Instance.new("Weld")
  56. Weld37 = Instance.new("Weld")
  57. Weld38 = Instance.new("Weld")
  58. Weld39 = Instance.new("Weld")
  59. Part40 = Instance.new("Part")
  60. Part41 = Instance.new("Part")
  61. Part42 = Instance.new("Part")
  62. Part43 = Instance.new("Part")
  63. Humanoid44 = Instance.new("Humanoid")
  64. Part45 = Instance.new("Part")
  65. Weld46 = Instance.new("Weld")
  66. Weld47 = Instance.new("Weld")
  67. Script48 = Instance.new("Script")
  68. BodyColors49 = Instance.new("BodyColors")
  69. Script50 = Instance.new("Script")
  70. Part51 = Instance.new("Part")
  71. Part52 = Instance.new("Part")
  72. Pants53 = Instance.new("Pants")
  73. Shirt54 = Instance.new("Shirt")
  74. Part55 = Instance.new("Part")
  75. SpecialMesh56 = Instance.new("SpecialMesh")
  76. Part57 = Instance.new("Part")
  77. SpecialMesh58 = Instance.new("SpecialMesh")
  78. Camera59 = Instance.new("Camera")
  79. Model0.Name = "SCP-049"
  80. Model0.Parent = mas
  81. Model0.PrimaryPart = Part1
  82. Part1.Name = "Head"
  83. Part1.Parent = Model0
  84. Part1.CFrame = CFrame.new(-31.8107185, 4.50000095, -46.1854477, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  85. Part1.Orientation = Vector3.new(0, 180, 0)
  86. Part1.Position = Vector3.new(-31.8107185, 4.50000095, -46.1854477)
  87. Part1.Rotation = Vector3.new(-180, 0, -180)
  88. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  89. Part1.Size = Vector3.new(2, 1, 1)
  90. Part1.BrickColor = BrickColor.new("Really black")
  91. Part1.TopSurface = Enum.SurfaceType.Smooth
  92. Part1.brickColor = BrickColor.new("Really black")
  93. Part1.FormFactor = Enum.FormFactor.Symmetric
  94. Part1.formFactor = Enum.FormFactor.Symmetric
  95. Sound2.Name = "weallfalldown"
  96. Sound2.Parent = Part1
  97. Sound2.SoundId = "rbxassetid://707692082"
  98. Sound3.Name = "GettingUp"
  99. Sound3.Parent = Part1
  100. Sound3.MaxDistance = 150
  101. Sound3.EmitterSize = 5
  102. Sound3.MinDistance = 5
  103. Sound3.SoundId = "rbxasset://sounds/action_get_up.mp3"
  104. Sound3.Volume = 0.64999997615814
  105. RemoteEvent4.Name = "CharacterSoundEvent"
  106. RemoteEvent4.Parent = Sound3
  107. Sound5.Name = "Died"
  108. Sound5.Parent = Part1
  109. Sound5.MaxDistance = 150
  110. Sound5.EmitterSize = 5
  111. Sound5.MinDistance = 5
  112. Sound5.SoundId = "rbxasset://sounds/uuhhh.mp3"
  113. Sound5.Volume = 0.64999997615814
  114. RemoteEvent6.Name = "CharacterSoundEvent"
  115. RemoteEvent6.Parent = Sound5
  116. Sound7.Name = "FreeFalling"
  117. Sound7.Parent = Part1
  118. Sound7.Looped = true
  119. Sound7.TimePosition = 0.087562686572596
  120. Sound7.MaxDistance = 150
  121. Sound7.EmitterSize = 5
  122. Sound7.MinDistance = 5
  123. Sound7.SoundId = "rbxasset://sounds/action_falling.mp3"
  124. Sound7.Volume = 0
  125. RemoteEvent8.Name = "CharacterSoundEvent"
  126. RemoteEvent8.Parent = Sound7
  127. Sound9.Name = "Jumping"
  128. Sound9.Parent = Part1
  129. Sound9.MaxDistance = 150
  130. Sound9.EmitterSize = 5
  131. Sound9.MinDistance = 5
  132. Sound9.SoundId = "rbxasset://sounds/action_jump.mp3"
  133. Sound9.Volume = 0.64999997615814
  134. RemoteEvent10.Name = "CharacterSoundEvent"
  135. RemoteEvent10.Parent = Sound9
  136. Sound11.Name = "Landing"
  137. Sound11.Parent = Part1
  138. Sound11.MaxDistance = 150
  139. Sound11.EmitterSize = 5
  140. Sound11.MinDistance = 5
  141. Sound11.SoundId = "rbxasset://sounds/action_jump_land.mp3"
  142. Sound11.Volume = 1
  143. RemoteEvent12.Name = "CharacterSoundEvent"
  144. RemoteEvent12.Parent = Sound11
  145. Sound13.Name = "Splash"
  146. Sound13.Parent = Part1
  147. Sound13.MaxDistance = 150
  148. Sound13.EmitterSize = 5
  149. Sound13.MinDistance = 5
  150. Sound13.SoundId = "rbxasset://sounds/impact_water.mp3"
  151. Sound13.Volume = 0.64999997615814
  152. RemoteEvent14.Name = "CharacterSoundEvent"
  153. RemoteEvent14.Parent = Sound13
  154. Sound15.Name = "Running"
  155. Sound15.Parent = Part1
  156. Sound15.Looped = true
  157. Sound15.MaxDistance = 150
  158. Sound15.EmitterSize = 5
  159. Sound15.MinDistance = 5
  160. Sound15.Pitch = 1.8500000238419
  161. Sound15.PlaybackSpeed = 1.8500000238419
  162. Sound15.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
  163. Sound15.Volume = 0.64999997615814
  164. RemoteEvent16.Name = "CharacterSoundEvent"
  165. RemoteEvent16.Parent = Sound15
  166. Sound17.Name = "Swimming"
  167. Sound17.Parent = Part1
  168. Sound17.Looped = true
  169. Sound17.MaxDistance = 150
  170. Sound17.EmitterSize = 5
  171. Sound17.MinDistance = 5
  172. Sound17.Pitch = 1.6000000238419
  173. Sound17.PlaybackSpeed = 1.6000000238419
  174. Sound17.SoundId = "rbxasset://sounds/action_swim.mp3"
  175. Sound17.Volume = 0.64999997615814
  176. RemoteEvent18.Name = "CharacterSoundEvent"
  177. RemoteEvent18.Parent = Sound17
  178. Sound19.Name = "Climbing"
  179. Sound19.Parent = Part1
  180. Sound19.Looped = true
  181. Sound19.MaxDistance = 150
  182. Sound19.EmitterSize = 5
  183. Sound19.MinDistance = 5
  184. Sound19.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
  185. Sound19.Volume = 0.64999997615814
  186. RemoteEvent20.Name = "CharacterSoundEvent"
  187. RemoteEvent20.Parent = Sound19
  188. Decal21.Name = "face"
  189. Decal21.Parent = Part1
  190. Decal21.Texture = "rbxassetid://0"
  191. Sound22.Name = "Hit1"
  192. Sound22.Parent = Part1
  193. Sound22.SoundId = "rbxassetid://188614070"
  194. Sound22.Volume = 1
  195. Sound23.Name = "Hit2"
  196. Sound23.Parent = Part1
  197. Sound23.SoundId = "rbxassetid://188614117"
  198. Sound23.Volume = 1
  199. SpecialMesh24.Parent = Part1
  200. SpecialMesh24.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005)
  201. Sound25.Name = "theme"
  202. Sound25.Parent = Part1
  203. Sound25.Looped = true
  204. Sound25.Playing = true
  205. Sound25.SoundId = "rbxassetid://1416351484"
  206. Sound25.Volume = 1
  207. Sound26.Name = "hello"
  208. Sound26.Parent = Part1
  209. Sound26.SoundId = "rbxassetid://1104302594"
  210. Sound27.Name = "footstep"
  211. Sound27.Parent = Part1
  212. Sound27.MaxDistance = 40
  213. Sound27.Pitch = 0.69999998807907
  214. Sound27.PlaybackSpeed = 0.69999998807907
  215. Sound27.SoundId = "rbxassetid://2991635108"
  216. Sound28.Name = "ohmy"
  217. Sound28.Parent = Part1
  218. Sound28.SoundId = "rbxassetid://487003745"
  219. Weld29.Parent = Part1
  220. Weld29.C0 = CFrame.new(0.224998474, 0.0999999046, -0.525001526, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  221. Weld29.Part0 = Part1
  222. Weld29.Part1 = Part51
  223. Weld29.part1 = Part51
  224. Weld30.Parent = Part1
  225. Weld30.C0 = CFrame.new(0, 0.100029469, -7.62939453e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  226. Weld30.Part0 = Part1
  227. Weld30.Part1 = Part57
  228. Weld30.part1 = Part57
  229. Weld31.Parent = Part1
  230. Weld31.C0 = CFrame.new(0, -4.76837158e-07, -0.899990082, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  231. Weld31.Part0 = Part1
  232. Weld31.Part1 = Part55
  233. Weld31.part1 = Part55
  234. Weld32.Parent = Part1
  235. Weld32.C0 = CFrame.new(-0.224998474, 0.0999999046, -0.525001526, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  236. Weld32.Part0 = Part1
  237. Weld32.Part1 = Part52
  238. Weld32.part1 = Part52
  239. Part33.Name = "Torso"
  240. Part33.Parent = Model0
  241. Part33.CFrame = CFrame.new(-31.8107185, 3.00000095, -46.1854477, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  242. Part33.Orientation = Vector3.new(0, 180, 0)
  243. Part33.Position = Vector3.new(-31.8107185, 3.00000095, -46.1854477)
  244. Part33.Rotation = Vector3.new(-180, 0, -180)
  245. Part33.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  246. Part33.Size = Vector3.new(1.5999999, 2, 1)
  247. Part33.BrickColor = BrickColor.new("Really black")
  248. Part33.LeftParamA = 0
  249. Part33.LeftParamB = 0
  250. Part33.LeftSurface = Enum.SurfaceType.Weld
  251. Part33.RightParamA = 0
  252. Part33.RightParamB = 0
  253. Part33.RightSurface = Enum.SurfaceType.Weld
  254. Part33.brickColor = BrickColor.new("Really black")
  255. Part33.FormFactor = Enum.FormFactor.Symmetric
  256. Part33.formFactor = Enum.FormFactor.Symmetric
  257. Decal34.Name = "roblox"
  258. Decal34.Parent = Part33
  259. Weld35.Name = "Left Hip"
  260. Weld35.Parent = Part33
  261. Weld35.C0 = CFrame.new(-0.400000006, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  262. Weld35.Part0 = Part33
  263. Weld35.Part1 = Part42
  264. Weld35.part1 = Part42
  265. Weld36.Name = "Right Hip"
  266. Weld36.Parent = Part33
  267. Weld36.C0 = CFrame.new(0.399999976, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  268. Weld36.Part0 = Part33
  269. Weld36.Part1 = Part43
  270. Weld36.part1 = Part43
  271. Weld37.Name = "Neck"
  272. Weld37.Parent = Part33
  273. Weld37.C0 = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  274. Weld37.Part0 = Part33
  275. Weld37.Part1 = Part1
  276. Weld37.part1 = Part1
  277. Weld38.Name = "Left Shoulder"
  278. Weld38.Parent = Part33
  279. Weld38.C0 = CFrame.new(-1.20000017, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  280. Weld38.Part0 = Part33
  281. Weld38.Part1 = Part40
  282. Weld38.part1 = Part40
  283. Weld39.Name = "Right Shoulder"
  284. Weld39.Parent = Part33
  285. Weld39.C0 = CFrame.new(1.14999998, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  286. Weld39.Part0 = Part33
  287. Weld39.Part1 = Part41
  288. Weld39.part1 = Part41
  289. Part40.Name = "Left Arm"
  290. Part40.Parent = Model0
  291. Part40.CFrame = CFrame.new(-30.6107178, 3.00000095, -46.1854477, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  292. Part40.Orientation = Vector3.new(0, 180, 0)
  293. Part40.Position = Vector3.new(-30.6107178, 3.00000095, -46.1854477)
  294. Part40.Rotation = Vector3.new(-180, 0, -180)
  295. Part40.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  296. Part40.Size = Vector3.new(0.800000012, 2, 1)
  297. Part40.BrickColor = BrickColor.new("Really black")
  298. Part40.CanCollide = false
  299. Part40.brickColor = BrickColor.new("Really black")
  300. Part40.FormFactor = Enum.FormFactor.Symmetric
  301. Part40.formFactor = Enum.FormFactor.Symmetric
  302. Part41.Name = "Right Arm"
  303. Part41.Parent = Model0
  304. Part41.CFrame = CFrame.new(-32.9607201, 3.00000095, -46.1854477, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  305. Part41.Orientation = Vector3.new(0, 180, 0)
  306. Part41.Position = Vector3.new(-32.9607201, 3.00000095, -46.1854477)
  307. Part41.Rotation = Vector3.new(-180, 0, -180)
  308. Part41.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  309. Part41.Size = Vector3.new(0.800000012, 2, 1)
  310. Part41.BrickColor = BrickColor.new("Really black")
  311. Part41.CanCollide = false
  312. Part41.brickColor = BrickColor.new("Really black")
  313. Part41.FormFactor = Enum.FormFactor.Symmetric
  314. Part41.formFactor = Enum.FormFactor.Symmetric
  315. Part42.Name = "Left Leg"
  316. Part42.Parent = Model0
  317. Part42.CFrame = CFrame.new(-31.4107189, 1.00000095, -46.1854477, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  318. Part42.Orientation = Vector3.new(0, 180, 0)
  319. Part42.Position = Vector3.new(-31.4107189, 1.00000095, -46.1854477)
  320. Part42.Rotation = Vector3.new(-180, 0, -180)
  321. Part42.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  322. Part42.Size = Vector3.new(0.800000012, 2, 1)
  323. Part42.BottomSurface = Enum.SurfaceType.Smooth
  324. Part42.BrickColor = BrickColor.new("Really black")
  325. Part42.CanCollide = false
  326. Part42.brickColor = BrickColor.new("Really black")
  327. Part42.FormFactor = Enum.FormFactor.Symmetric
  328. Part42.formFactor = Enum.FormFactor.Symmetric
  329. Part43.Name = "Right Leg"
  330. Part43.Parent = Model0
  331. Part43.CFrame = CFrame.new(-32.2107201, 1.00000095, -46.1854477, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  332. Part43.Orientation = Vector3.new(0, 180, 0)
  333. Part43.Position = Vector3.new(-32.2107201, 1.00000095, -46.1854477)
  334. Part43.Rotation = Vector3.new(-180, 0, -180)
  335. Part43.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  336. Part43.Size = Vector3.new(0.800000012, 2, 1)
  337. Part43.BottomSurface = Enum.SurfaceType.Smooth
  338. Part43.BrickColor = BrickColor.new("Really black")
  339. Part43.CanCollide = false
  340. Part43.brickColor = BrickColor.new("Really black")
  341. Part43.FormFactor = Enum.FormFactor.Symmetric
  342. Part43.formFactor = Enum.FormFactor.Symmetric
  343. Humanoid44.Parent = Model0
  344. Humanoid44.Health = 300
  345. Humanoid44.JumpPower = 45
  346. Humanoid44.LeftLeg = Part42
  347. Humanoid44.MaxHealth = 300
  348. Humanoid44.NameDisplayDistance = 0
  349. Humanoid44.RightLeg = Part43
  350. Humanoid44.Torso = Part45
  351. Humanoid44.WalkSpeed = 7
  352. Humanoid44.maxHealth = 300
  353. Part45.Name = "HumanoidRootPart"
  354. Part45.Parent = Model0
  355. Part45.CFrame = CFrame.new(-31.8107185, 3.00000095, -46.1854477, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  356. Part45.Orientation = Vector3.new(0, 180, 0)
  357. Part45.Position = Vector3.new(-31.8107185, 3.00000095, -46.1854477)
  358. Part45.Rotation = Vector3.new(-180, 0, -180)
  359. Part45.Transparency = 1
  360. Part45.Size = Vector3.new(1.5999999, 2, 1)
  361. Part45.BottomSurface = Enum.SurfaceType.Smooth
  362. Part45.CanCollide = false
  363. Part45.LeftParamA = 0
  364. Part45.LeftParamB = 0
  365. Part45.RightParamA = 0
  366. Part45.RightParamB = 0
  367. Part45.TopSurface = Enum.SurfaceType.Smooth
  368. Part45.FormFactor = Enum.FormFactor.Symmetric
  369. Part45.formFactor = Enum.FormFactor.Symmetric
  370. Weld46.Parent = Part45
  371. Weld46.C0 = CFrame.new(0.00023651123, -2.90000916, -9.53674316e-06, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  372. Weld46.Part0 = Part45
  373. Weld47.Name = "RootJoint"
  374. Weld47.Parent = Part45
  375. Weld47.Part0 = Part45
  376. Weld47.Part1 = Part33
  377. Weld47.part1 = Part33
  378. Script48.Name = "Health"
  379. Script48.Parent = Model0
  380. table.insert(cors,sandbox(Script48,function()
  381. -- Gradually regenerates the Humanoid's Health over time.
  382.  
  383. local REGEN_RATE = 1/100 -- Regenerate this fraction of MaxHealth per second.
  384. local REGEN_STEP = 1 -- Wait this long between each regeneration step.
  385.  
  386. --------------------------------------------------------------------------------
  387.  
  388. local Character = script.Parent
  389. local Humanoid = Character:WaitForChild'Humanoid'
  390.  
  391. --------------------------------------------------------------------------------
  392.  
  393. while true do
  394.     while Humanoid.Health < Humanoid.MaxHealth do
  395.         local dt = wait(REGEN_STEP)
  396.         local dh = dt*REGEN_RATE*Humanoid.MaxHealth
  397.         Humanoid.Health = math.min(Humanoid.Health + dh, Humanoid.MaxHealth)
  398.     end
  399.     Humanoid.HealthChanged:Wait()
  400. end
  401. end))
  402. BodyColors49.Parent = Model0
  403. BodyColors49.HeadColor = BrickColor.new("Really black")
  404. BodyColors49.HeadColor3 = Color3.new(0.0666667, 0.0666667, 0.0666667)
  405. BodyColors49.LeftArmColor = BrickColor.new("Really black")
  406. BodyColors49.LeftArmColor3 = Color3.new(0.0666667, 0.0666667, 0.0666667)
  407. BodyColors49.LeftLegColor = BrickColor.new("Really black")
  408. BodyColors49.LeftLegColor3 = Color3.new(0.0666667, 0.0666667, 0.0666667)
  409. BodyColors49.RightArmColor = BrickColor.new("Really black")
  410. BodyColors49.RightArmColor3 = Color3.new(0.0666667, 0.0666667, 0.0666667)
  411. BodyColors49.RightLegColor = BrickColor.new("Really black")
  412. BodyColors49.RightLegColor3 = Color3.new(0.0666667, 0.0666667, 0.0666667)
  413. BodyColors49.TorsoColor = BrickColor.new("Really black")
  414. BodyColors49.TorsoColor3 = Color3.new(0.0666667, 0.0666667, 0.0666667)
  415. Script50.Name = "SCP AI"
  416. Script50.Parent = Model0
  417. table.insert(cors,sandbox(Script50,function()
  418. --Fully made by Rufus14
  419. --feel free to look at the script
  420. --animations are made in :lerp()
  421. --thanks to AdministratorMini for the mask mesh
  422. scp = script.Parent
  423. scphead = script.Parent.Head
  424. scphumanoid = scp:findFirstChildOfClass("Humanoid")
  425. scptorso = scp.Torso
  426. rightleg = scptorso["Right Hip"]
  427. rightarm = scptorso["Right Shoulder"]
  428. leftleg = scptorso["Left Hip"]
  429. leftarm = scptorso["Left Shoulder"]
  430. humanoidrootpart = scp.HumanoidRootPart.RootJoint
  431. humanoidroot = scp.HumanoidRootPart
  432. footstep = scphead.footstep
  433. head = scptorso.Neck
  434. theme = scphead.theme
  435. breath = scphead.theme
  436. kill1 = scphead.Hit1
  437. hello = scphead.hello
  438. ohmy = scphead.ohmy
  439. weallfalldown = scphead.weallfalldown
  440. kill2 = scphead.Hit2
  441. heartbeat = game:GetService("RunService").Heartbeat
  442. walkanim = false
  443. attacking = false
  444. chasing = false
  445. canattack = true
  446. cananimate = true
  447. canchase = true
  448. debuhg = true
  449. handup = false
  450. target = nil
  451. talking = false
  452. amount = 0
  453. distance = 90
  454. function randomwalk()
  455.     while wait(math.random(4,7)) do
  456.         if not walkanim and cananimate then
  457.             local function dowalk()
  458.                 scphumanoid.WalkSpeed = 5
  459.                 local par = Instance.new("Part", scp)
  460.                 par.Anchored = true
  461.                 par.Transparency = 1
  462.                 par.Size = Vector3.new(0.01,0.01,0.01)
  463.                 par.CanCollide = false
  464.                 par.CFrame = humanoidroot.CFrame * CFrame.new(math.random(-60,60),math.random(-30,30),math.random(-60,60))
  465.                 local parpos = par.Position
  466.                 par:destroy()
  467.                 local path = game:GetService("PathfindingService"):FindPathAsync(humanoidroot.Position, par.Position)
  468.                 local waypoints = path:GetWaypoints()
  469.                 if path.Status == Enum.PathStatus.Success then
  470.                     for i,v in pairs(waypoints) do
  471.                         if not chasing then
  472.                             local allow = 0
  473.                             scphumanoid:MoveTo(v.Position)
  474.                             while (scptorso.Position - v.Position).magnitude > 3.3 and allow < 40 and not chasing do
  475.                                 allow = allow + 1
  476.                                 heartbeat:wait()
  477.                             end
  478.                             if v.Action == Enum.PathWaypointAction.Jump then
  479.                                 scphumanoid.Jump = true
  480.                             end
  481.                         end
  482.                     end
  483.                 else
  484.                     dowalk()
  485.                     heartbeat:wait()
  486.                 end
  487.             end
  488.             dowalk()
  489.         end
  490.     end
  491. end
  492. function checkmoving(speed)
  493.     if speed > 2 then
  494.         walkanim = true
  495.     else
  496.         walkanim = false
  497.     end
  498. end
  499. function searchforpeople()
  500.     while heartbeat:wait() and scphumanoid.Health > 0 do
  501.         amount = 0
  502.         handup = false
  503.         scphumanoid.WalkSpeed = 5
  504.         chasing = false
  505.         for i,v in pairs(workspace:GetChildren()) do
  506.             if v.ClassName == "Model" and v.Name ~= scp.Name and canchase then
  507.                 local victimhumanoid = v:findFirstChildOfClass("Humanoid")
  508.                 local victimhead = v:findFirstChild("Head")
  509.                 if victimhead and victimhumanoid then
  510.                     if victimhumanoid.Health > 0 then
  511.                         if (victimhead.Position - scphead.Position).magnitude < distance and victimhumanoid.Health > 0 then
  512.                             amount = amount + 1
  513.                         end
  514.                     end
  515.                 end
  516.             end
  517.         end
  518.         for i,v in pairs(workspace:GetChildren()) do
  519.             if v.ClassName == "Model" and v.Name ~= scp.Name and canchase then
  520.                 local victimhumanoid = v:findFirstChildOfClass("Humanoid")
  521.                 local victimhead = v:findFirstChild("Head")
  522.                 if victimhead and victimhumanoid then
  523.                     if victimhumanoid.Health > 0 then
  524.                         if victimhumanoid.Parent == nil then
  525.                             target = nil
  526.                         end
  527.                         if amount == 0 then
  528.                             chasing = false
  529.                         end
  530.                         if (victimhead.Position - scphead.Position).magnitude < distance and victimhumanoid.Health > 0 then
  531.                             if target == victimhead or target == nil then
  532.                                 chasing = true
  533.                                 if target ~= victimhead then
  534.                                     target = victimhead
  535.                                     if not talking then
  536.                                         talking = true
  537.                                         hello:Play()
  538.                                         local sayrandom = math.random(1,2)
  539.                                         if sayrandom == 1 then
  540.                                             local function ohmysay()
  541.                                                 wait(1)
  542.                                                 if not weallfalldown.Playing then
  543.                                                     ohmy:Play()
  544.                                                 end
  545.                                             end
  546.                                             spawn(ohmysay)
  547.                                         end
  548.                                     end
  549.                                 end
  550.                                 scphumanoid.WalkSpeed = 10
  551.                                 local path = game:GetService("PathfindingService"):FindPathAsync(scptorso.Position, victimhead.Position) --find the path from scp's torso to victims head
  552.                                 local waypoints = path:GetWaypoints() --get the every point of the path
  553.                                 if path.Status == Enum.PathStatus.Success then
  554.                                     --[[for q,w in pairs(waypoints) do
  555.                                         local partt = Instance.new("Part", scphead)
  556.                                         partt.Size = Vector3.new(1,1,1)
  557.                                         partt.Material = "Neon"
  558.                                         partt.Anchored = true
  559.                                         partt.Name = "nie"
  560.                                         partt.Position = w.Position
  561.                                         partt.CanCollide = false
  562.                                     end--]]
  563.                                     for q,w in pairs(waypoints) do
  564.                                         if victimhumanoid.Health > 0 then
  565.                                             local allow = 0
  566.                                             scphumanoid:MoveTo(w.Position)
  567.                                             if (victimhead.Position - scphead.Position).magnitude < distance / 2.5 then
  568.                                                 if victimhumanoid.Health > 0 then
  569.                                                     handup = true
  570.                                                 else
  571.                                                     handup = false
  572.                                                 end
  573.                                             else
  574.                                                 if (victimhead.Position - scphead.Position).magnitude < distance and (victimhead.Position - scphead.Position).magnitude > distance / 2.5 then
  575.                                                     handup = false
  576.                                                 end
  577.                                             end
  578.                                             while (scptorso.Position - w.Position).magnitude > 4 and allow < 30--[[ and victimhumanoid.Health > 0--]] do
  579.                                                 allow = allow + 1
  580.                                                 heartbeat:wait()
  581.                                             end
  582.                                             if w.Action == Enum.PathWaypointAction.Jump then
  583.                                                 scphumanoid.Jump = true
  584.                                             end
  585.                                         end
  586.                                     end
  587.                                     scphumanoid:MoveTo(victimhead.Position)
  588.                                     for q,w in pairs(scphead:GetChildren()) do
  589.                                         if w.Name == "nie" then
  590.                                             w:destroy()
  591.                                         end
  592.                                     end
  593.                                 end
  594.                             end
  595.                         end
  596.                         if amount == 0 then
  597.                             chasing = false
  598.                         end
  599.                         if (victimhead.Position - scphead.Position).magnitude > distance and target == victimhead then
  600.                             target = nil
  601.                         end
  602.                     end
  603.                 end
  604.             end
  605.         end
  606.     end
  607. end
  608. function touchkill(part)
  609.     if part.Parent then
  610.         if part.Parent:findFirstChildOfClass("Humanoid") and part.Parent ~= scp then
  611.             if part.Parent:findFirstChildOfClass("Humanoid").Health > 0 then
  612.                 target = nil
  613.                 local hitrandom = math.random(1,2)
  614.                 local killsing = math.random(1,3)
  615.                 if hitrandom == 1 then
  616.                     kill1:Play()
  617.                 elseif hitrandom == 2 then
  618.                     kill2:Play()
  619.                 end
  620.                 if killsing == 1 then
  621.                     local function waitforit()
  622.                         wait(1.5)
  623.                         if not ohmy.Playing then
  624.                             weallfalldown:Play()
  625.                         end
  626.                     end
  627.                     spawn(waitforit)
  628.                 end
  629.                 part.Parent:findFirstChildOfClass("Humanoid").Health = 0
  630.                 part.Parent:BreakJoints()
  631.                 ragdollkill(part.Parent)
  632.             end
  633.         end
  634.     end
  635. end
  636. function upanddown()
  637.     while heartbeat:wait() do
  638.         if walkanim then
  639.             if not chasing then
  640.                 local humrootc0 = humanoidrootpart.C0
  641.                 for i = 0,1 , 0.14 do
  642.                     if walkanim then
  643.                         humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0,0.04,0) * CFrame.fromEulerAnglesXYZ(-0.1,0,0),i)
  644.                         heartbeat:wait()
  645.                     end
  646.                 end
  647.                 local humrootc0 = humanoidrootpart.C0
  648.                 for i = 0,1 , 0.14 do
  649.                     if walkanim then
  650.                         humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0,0.08,0) * CFrame.fromEulerAnglesXYZ(-0.1,0,0),i)
  651.                         heartbeat:wait()
  652.                     end
  653.                 end
  654.                 local humrootc0 = humanoidrootpart.C0
  655.                 for i = 0,1 , 0.14 do
  656.                     if walkanim then
  657.                         humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0,0.04,0) * CFrame.fromEulerAnglesXYZ(-0.1,0,0),i)
  658.                         heartbeat:wait()
  659.                     end
  660.                 end
  661.                 local humrootc0 = humanoidrootpart.C0
  662.                 for i = 0,1 , 0.14 do
  663.                     if walkanim then
  664.                         humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0,-0.04,0) * CFrame.fromEulerAnglesXYZ(-0.1,0,0),i)
  665.                         heartbeat:wait()
  666.                     end
  667.                 end
  668.                 local humrootc0 = humanoidrootpart.C0
  669.                 for i = 0,1 , 0.14 do
  670.                     if walkanim then
  671.                         humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0,-0.08,0) * CFrame.fromEulerAnglesXYZ(-0.1,0,0),i)
  672.                         heartbeat:wait()
  673.                     end
  674.                 end
  675.                 local humrootc0 = humanoidrootpart.C0
  676.                 for i = 0,1 , 0.14 do
  677.                     if walkanim then
  678.                         humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0,-0.04,0) * CFrame.fromEulerAnglesXYZ(-0.1,0,0),i)
  679.                         heartbeat:wait()
  680.                     end
  681.                 end
  682.             else
  683.                 local humrootc0 = humanoidrootpart.C0
  684.                 for i = 0,1 , 0.18 do
  685.                     if walkanim then
  686.                         humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0,0.04,0) * CFrame.fromEulerAnglesXYZ(-0.1,0,0),i)
  687.                         heartbeat:wait()
  688.                     end
  689.                 end
  690.                 local humrootc0 = humanoidrootpart.C0
  691.                 for i = 0,1 , 0.18 do
  692.                     if walkanim then
  693.                         humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0,0.08,0) * CFrame.fromEulerAnglesXYZ(-0.1,0,0),i)
  694.                         heartbeat:wait()
  695.                     end
  696.                 end
  697.                 local humrootc0 = humanoidrootpart.C0
  698.                 for i = 0,1 , 0.18 do
  699.                     if walkanim then
  700.                         humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0,0.04,0) * CFrame.fromEulerAnglesXYZ(-0.1,0,0),i)
  701.                         heartbeat:wait()
  702.                     end
  703.                 end
  704.                 local humrootc0 = humanoidrootpart.C0
  705.                 for i = 0,1 , 0.18 do
  706.                     if walkanim then
  707.                         humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0,-0.04,0) * CFrame.fromEulerAnglesXYZ(-0.1,0,0),i)
  708.                         heartbeat:wait()
  709.                     end
  710.                 end
  711.                 local humrootc0 = humanoidrootpart.C0
  712.                 for i = 0,1 , 0.18 do
  713.                     if walkanim then
  714.                         humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0,-0.08,0) * CFrame.fromEulerAnglesXYZ(-0.1,0,0),i)
  715.                         heartbeat:wait()
  716.                     end
  717.                 end
  718.                 local humrootc0 = humanoidrootpart.C0
  719.                 for i = 0,1 , 0.18 do
  720.                     if walkanim then
  721.                         humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0,-0.04,0) * CFrame.fromEulerAnglesXYZ(-0.1,0,0),i)
  722.                         heartbeat:wait()
  723.                     end
  724.                 end
  725.             end
  726.         end
  727.     end
  728. end
  729. function ragdollkill(character)
  730.     local victimshumanoid = character:findFirstChildOfClass("Humanoid")
  731.     if not character:findFirstChild("UpperTorso") then
  732.         character.Archivable = true
  733.         for i,v in pairs(character:GetChildren()) do
  734.             if v.ClassName == "Sound" then
  735.                 v:remove()
  736.             end
  737.             for q,w in pairs(v:GetChildren()) do
  738.                 if w.ClassName == "Sound" then
  739.                     w:remove()
  740.                 end
  741.             end
  742.         end
  743.         local ragdoll = character:Clone()
  744.         ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  745.         if ragdoll:findFirstChild("Health") then
  746.             if ragdoll:findFirstChild("Health").ClassName == "Script" then
  747.                 ragdoll:findFirstChild("Health").Disabled = true
  748.             end
  749.         end
  750.         for i,v in pairs(character:GetChildren()) do
  751.             if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
  752.                 v:destroy()
  753.             end
  754.         end
  755.         for i,v in pairs(character:GetChildren()) do
  756.             if v.ClassName == "Accessory" then
  757.                 local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  758.                 if attachment1 then
  759.                     for q,w in pairs(character:GetChildren()) do
  760.                         if w.ClassName == "Part" then
  761.                             local attachment2 = w:findFirstChild(attachment1.Name)
  762.                             if attachment2 then
  763.                                 local hinge = Instance.new("HingeConstraint", v.Handle)
  764.                                 hinge.Attachment0 = attachment1
  765.                                 hinge.Attachment1 = attachment2
  766.                                 hinge.LimitsEnabled = true
  767.                                 hinge.LowerAngle = 0
  768.                                 hinge.UpperAngle = 0
  769.                             end
  770.                         end
  771.                     end
  772.                 end
  773.             end
  774.         end
  775.         ragdoll.Parent = workspace
  776.         if ragdoll:findFirstChild("Right Arm") then
  777.             local glue = Instance.new("Glue", ragdoll.Torso)
  778.             glue.Part0 = ragdoll.Torso
  779.             glue.Part1 = ragdoll:findFirstChild("Right Arm")
  780.             glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  781.             glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  782.             local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
  783.             limbcollider.Size = Vector3.new(1.4,1,1)
  784.             limbcollider.Shape = "Cylinder"
  785.             limbcollider.Transparency = 1
  786.             limbcollider.Name = "LimbCollider"
  787.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  788.             limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
  789.             limbcolliderweld.Part1 = limbcollider
  790.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  791.         end
  792.         if ragdoll:findFirstChild("Left Arm") then
  793.             local glue = Instance.new("Glue", ragdoll.Torso)
  794.             glue.Part0 = ragdoll.Torso
  795.             glue.Part1 = ragdoll:findFirstChild("Left Arm")
  796.             glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  797.             glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  798.             local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
  799.             limbcollider.Size = Vector3.new(1.4,1,1)
  800.             limbcollider.Shape = "Cylinder"
  801.             limbcollider.Name = "LimbCollider"
  802.             limbcollider.Transparency = 1
  803.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  804.             limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
  805.             limbcolliderweld.Part1 = limbcollider
  806.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  807.         end
  808.         if ragdoll:findFirstChild("Left Leg") then
  809.             local glue = Instance.new("Glue", ragdoll.Torso)
  810.             glue.Part0 = ragdoll.Torso
  811.             glue.Part1 = ragdoll:findFirstChild("Left Leg")
  812.             glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  813.             glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  814.             local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
  815.             limbcollider.Size = Vector3.new(1.4,1,1)
  816.             limbcollider.Shape = "Cylinder"
  817.             limbcollider.Name = "LimbCollider"
  818.             limbcollider.Transparency = 1
  819.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  820.             limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
  821.             limbcolliderweld.Part1 = limbcollider
  822.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  823.         end
  824.         if ragdoll:findFirstChild("Right Leg") then
  825.             local glue = Instance.new("Glue", ragdoll.Torso)
  826.             glue.Part0 = ragdoll.Torso
  827.             glue.Part1 = ragdoll:findFirstChild("Right Leg")
  828.             glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  829.             glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  830.             local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
  831.             limbcollider.Size = Vector3.new(1.4,1,1)
  832.             limbcollider.Shape = "Cylinder"
  833.             limbcollider.Name = "LimbCollider"
  834.             limbcollider.Transparency = 1
  835.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  836.             limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
  837.             limbcolliderweld.Part1 = limbcollider
  838.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  839.         end
  840.         if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
  841.             local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
  842.             HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  843.             local connection = Instance.new('HingeConstraint', ragdoll["Head"])
  844.             connection.LimitsEnabled = true
  845.             connection.Attachment0 = ragdoll.Torso.NeckAttachment
  846.             connection.Attachment1 = HeadAttachment
  847.             connection.UpperAngle = 60
  848.             connection.LowerAngle = -60
  849.         elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
  850.             local hedweld = Instance.new("Weld", ragdoll.Torso)
  851.             hedweld.Part0 = ragdoll.Torso
  852.             hedweld.Part1 = ragdoll.Head
  853.             hedweld.C0 = CFrame.new(0,1.5,0)
  854.         end
  855.         game.Debris:AddItem(ragdoll, 30)
  856.     elseif character:findFirstChild("UpperTorso") then
  857.         character.Archivable = true
  858.         for i,v in pairs(character:GetChildren()) do
  859.             if v.ClassName == "Sound" then
  860.                 v:remove()
  861.             end
  862.             for q,w in pairs(v:GetChildren()) do
  863.                 if w.ClassName == "Sound" then
  864.                     w:remove()
  865.                 end
  866.             end
  867.         end
  868.         local ragdoll = character:Clone()
  869.         ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  870.         if ragdoll:findFirstChild("Health") then
  871.             if ragdoll:findFirstChild("Health").ClassName == "Script" then
  872.                 ragdoll:findFirstChild("Health").Disabled = true
  873.             end
  874.         end
  875.         for i,v in pairs(character:GetChildren()) do
  876.             if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
  877.                 v:destroy()
  878.             end
  879.         end
  880.         for i,v in pairs(character:GetChildren()) do
  881.             if v.ClassName == "Accessory" then
  882.                 local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  883.                 if attachment1 then
  884.                     for q,w in pairs(character:GetChildren()) do
  885.                         if w.ClassName == "Part" or w.ClassName == "MeshPart" then
  886.                             local attachment2 = w:findFirstChild(attachment1.Name)
  887.                             if attachment2 then
  888.                                 local hinge = Instance.new("HingeConstraint", v.Handle)
  889.                                 hinge.Attachment0 = attachment1
  890.                                 hinge.Attachment1 = attachment2
  891.                                 hinge.LimitsEnabled = true
  892.                                 hinge.LowerAngle = 0
  893.                                 hinge.UpperAngle = 0
  894.                             end
  895.                         end
  896.                     end
  897.                 end
  898.             end
  899.         end
  900.         ragdoll.Parent = workspace
  901.         local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
  902.         Humanoid.PlatformStand = true
  903.         local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
  904.             local connection = Instance.new('BallSocketConstraint', limb)
  905.             connection.LimitsEnabled = true
  906.             connection.Attachment0 = attachementone
  907.             connection.Attachment1 = attachmenttwo
  908.             connection.TwistLimitsEnabled = true
  909.             connection.TwistLowerAngle = twistlower
  910.             connection.TwistUpperAngle = twistupper
  911.             local limbcollider = Instance.new("Part", limb)
  912.             limbcollider.Size = Vector3.new(0.1,1,1)
  913.             limbcollider.Shape = "Cylinder"
  914.             limbcollider.Transparency = 1
  915.             limbcollider:BreakJoints()
  916.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  917.             limbcolliderweld.Part0 = limb
  918.             limbcolliderweld.Part1 = limbcollider
  919.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  920.         end
  921.         local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
  922.             local connection = Instance.new('HingeConstraint', limb)
  923.             connection.LimitsEnabled = true
  924.             connection.Attachment0 = attachementone
  925.             connection.Attachment1 = attachmenttwo
  926.             connection.LimitsEnabled = true
  927.             connection.LowerAngle = lower
  928.             connection.UpperAngle = upper
  929.             local limbcollider = Instance.new("Part", limb)
  930.             limbcollider.Size = Vector3.new(0.1,1,1)
  931.             limbcollider.Shape = "Cylinder"
  932.             limbcollider.Transparency = 1
  933.             limbcollider:BreakJoints()
  934.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  935.             limbcolliderweld.Part0 = limb
  936.             limbcolliderweld.Part1 = limbcollider
  937.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  938.         end
  939.         local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
  940.         HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  941.         makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
  942.         makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
  943.         makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
  944.         makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
  945.         makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
  946.         --
  947.         makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
  948.         makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
  949.         makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
  950.         --
  951.         makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
  952.         makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
  953.         makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
  954.         --
  955.         makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
  956.         makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
  957.         makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
  958.         for i,v in pairs(Humanoid.Parent:GetChildren()) do
  959.             if v.ClassName == "Accessory" then
  960.                 local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  961.                 if attachment1 then
  962.                     for q,w in pairs(Humanoid.Parent:GetChildren()) do
  963.                         if w.ClassName == "Part" then
  964.                             local attachment2 = w:findFirstChild(attachment1.Name)
  965.                             if attachment2 then
  966.                                 local hinge = Instance.new("HingeConstraint", v.Handle)
  967.                                 hinge.Attachment0 = attachment1
  968.                                 hinge.Attachment1 = attachment2
  969.                                 hinge.LimitsEnabled = true
  970.                                 hinge.LowerAngle = 0
  971.                                 hinge.UpperAngle = 0
  972.                             end
  973.                         end
  974.                     end
  975.                 end
  976.             end
  977.         end
  978.         for i,v in pairs(ragdoll:GetChildren()) do
  979.             for q,w in pairs(v:GetChildren()) do
  980.                 if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] then
  981.                     w:destroy()
  982.                 end
  983.             end
  984.         end
  985.         if ragdoll:findFirstChild("HumanoidRootPart") then
  986.             ragdoll.HumanoidRootPart.Anchored = true
  987.             ragdoll.HumanoidRootPart.CanCollide = false
  988.         end
  989.         game.Debris:AddItem(ragdoll, 30)
  990.     end
  991. end
  992. function checkanim()
  993.     while heartbeat:wait() do
  994.         if not cananimate then
  995.             footstep:Stop()
  996.         end
  997.         if walkanim then
  998.             footstep:Play()
  999.             if handup then
  1000.                 if chasing then
  1001.                     footstep.PlaybackSpeed = 1
  1002.                     scphumanoid.WalkSpeed = 10
  1003.                     for i = 0,0.175 , 0.0054 do
  1004.                         if walkanim and cananimate then
  1005.                             rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.14999986, 0.622638702, -0.65177536, 1, -0, 0, 0, -0.173647955, -0.984807789, 0, 0.984807789, -0.173647955),i)
  1006.                             leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.19999981, -0.0439729691, 0.371006012, 1, 0, 0, 0, 0.707106352, 0.707107365, 0, -0.707107365, 0.707106352),i)
  1007.                             leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.399999619, -1.9675324, -0.772092998, 1, 0, 0, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388),i)
  1008.                             rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.400000095, -1.97076297, 0.764549196, 1, 0, 0, 0, 0.819151819, 0.573576868, 0, -0.573576868, 0.819151819),i)
  1009.                             head.C0 = head.C0:lerp(CFrame.new(4.76837158e-07, 1.49999905, 2.08616257e-07, 1, 0, 0, 0, 0.99619472, -0.0871554911, 0, 0.0871554911, 0.99619472),i)
  1010.                             heartbeat:wait()
  1011.                         end
  1012.                     end
  1013.                     for i = 0,0.175 , 0.0054 do
  1014.                         if walkanim and cananimate then
  1015.                             rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.14999986, 0.622638702, -0.65177536, 1, -0, 0, 0, -0.173647955, -0.984807789, 0, 0.984807789, -0.173647955) * CFrame.new(0,0,0.15) * CFrame.fromEulerAnglesXYZ(-0.15,0,0),i)
  1016.                             leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.19999981, -0.0780918598, -0.518516839, 1, 0, 0, 0, 0.819151819, -0.573576868, 0, 0.573576868, 0.819151819),i)
  1017.                             leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.399999619, -1.94683981, 0.739386797, 1, 0, 0, 0, 0.819151819, 0.573576868, 0, -0.573576868, 0.819151819),i)
  1018.                             rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.400000095, -1.92139232, -0.787887871, 1, 0, 0, 0, 0.819151819, -0.573576868, 0, 0.573576868, 0.819151819),i)
  1019.                             head.C0 = head.C0:lerp(CFrame.new(4.76837158e-07, 1.49999905, 2.08616257e-07, 1, 0, 0, 0, 0.99619472, -0.0871554911, 0, 0.0871554911, 0.99619472),i)
  1020.                             heartbeat:wait()
  1021.                         end
  1022.                     end
  1023.                 else
  1024.                     scphumanoid.WalkSpeed = 5
  1025.                     footstep.PlaybackSpeed = 0.7
  1026.                     for i = 0,0.15 , 0.004 do
  1027.                         if walkanim and cananimate then
  1028.                             rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.14999986, 0.622638702, -0.65177536, 1, -0, 0, 0, -0.173647955, -0.984807789, 0, 0.984807789, -0.173647955),i)
  1029.                             leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.19999981, -0.0439729691, 0.371006012, 1, 0, 0, 0, 0.707106352, 0.707107365, 0, -0.707107365, 0.707106352),i)
  1030.                             leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.399999619, -1.9675324, -0.772092998, 1, 0, 0, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388),i)
  1031.                             rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.400000095, -1.97076297, 0.764549196, 1, 0, 0, 0, 0.819151819, 0.573576868, 0, -0.573576868, 0.819151819),i)
  1032.                             head.C0 = head.C0:lerp(CFrame.new(4.76837158e-07, 1.49999905, 2.08616257e-07, 1, 0, 0, 0, 0.99619472, -0.0871554911, 0, 0.0871554911, 0.99619472),i)
  1033.                             heartbeat:wait()
  1034.                         end
  1035.                     end
  1036.                     for i = 0,0.15 , 0.004 do
  1037.                         if walkanim and cananimate then
  1038.                             rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.14999986, 0.622638702, -0.65177536, 1, -0, 0, 0, -0.173647955, -0.984807789, 0, 0.984807789, -0.173647955) * CFrame.new(0,0,0.15) * CFrame.fromEulerAnglesXYZ(-0.15,0,0),i)
  1039.                             leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.19999981, -0.0780918598, -0.518516839, 1, 0, 0, 0, 0.819151819, -0.573576868, 0, 0.573576868, 0.819151819),i)
  1040.                             leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.399999619, -1.94683981, 0.739386797, 1, 0, 0, 0, 0.819151819, 0.573576868, 0, -0.573576868, 0.819151819),i)
  1041.                             rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.400000095, -1.92139232, -0.787887871, 1, 0, 0, 0, 0.819151819, -0.573576868, 0, 0.573576868, 0.819151819),i)
  1042.                             head.C0 = head.C0:lerp(CFrame.new(4.76837158e-07, 1.49999905, 2.08616257e-07, 1, 0, 0, 0, 0.99619472, -0.0871554911, 0, 0.0871554911, 0.99619472),i)
  1043.                             heartbeat:wait()
  1044.                         end
  1045.                     end
  1046.                 end
  1047.             else
  1048.                 if chasing then
  1049.                     scphumanoid.WalkSpeed = 10
  1050.                     footstep.PlaybackSpeed = 1
  1051.                     for i = 0,0.175 , 0.0054 do
  1052.                         if walkanim and cananimate then
  1053.                             rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.20000029, -0.0988817215, -0.520950854, 1, 0, 0, 0, 0.819151819, -0.573576868, 0, 0.573576868, 0.819151819),i)
  1054.                             leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.19999981, -0.0439729691, 0.371006012, 1, 0, 0, 0, 0.707106352, 0.707107365, 0, -0.707107365, 0.707106352),i)
  1055.                             leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.399999619, -1.9675324, -0.772092998, 1, 0, 0, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388),i)
  1056.                             rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.400000095, -1.97076297, 0.764549196, 1, 0, 0, 0, 0.819151819, 0.573576868, 0, -0.573576868, 0.819151819),i)
  1057.                             head.C0 = head.C0:lerp(CFrame.new(4.76837158e-07, 1.49999905, 2.08616257e-07, 1, 0, 0, 0, 0.99619472, -0.0871554911, 0, 0.0871554911, 0.99619472),i)
  1058.                             heartbeat:wait()
  1059.                         end
  1060.                     end
  1061.                     for i = 0,0.175 , 0.0054 do
  1062.                         if walkanim and cananimate then
  1063.                             rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.20000029, 0.00718426704, 0.645774603, 1, 0, 0, 0, 0.707106352, 0.707107365, 0, -0.707107365, 0.707106352),i)
  1064.                             leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.19999981, -0.0780918598, -0.518516839, 1, 0, 0, 0, 0.819151819, -0.573576868, 0, 0.573576868, 0.819151819),i)
  1065.                             leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.399999619, -1.94683981, 0.739386797, 1, 0, 0, 0, 0.819151819, 0.573576868, 0, -0.573576868, 0.819151819),i)
  1066.                             rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.400000095, -1.92139232, -0.787887871, 1, 0, 0, 0, 0.819151819, -0.573576868, 0, 0.573576868, 0.819151819),i)
  1067.                             head.C0 = head.C0:lerp(CFrame.new(4.76837158e-07, 1.49999905, 2.08616257e-07, 1, 0, 0, 0, 0.99619472, -0.0871554911, 0, 0.0871554911, 0.99619472),i)
  1068.                             heartbeat:wait()
  1069.                         end
  1070.                     end
  1071.                 else
  1072.                     scphumanoid.WalkSpeed = 5
  1073.                     footstep.PlaybackSpeed = 0.7
  1074.                     for i = 0,0.15 , 0.004 do
  1075.                         if walkanim and cananimate then
  1076.                             rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.20000029, -0.0988817215, -0.520950854, 1, 0, 0, 0, 0.819151819, -0.573576868, 0, 0.573576868, 0.819151819),i)
  1077.                             leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.19999981, -0.0439729691, 0.371006012, 1, 0, 0, 0, 0.707106352, 0.707107365, 0, -0.707107365, 0.707106352),i)
  1078.                             leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.399999619, -1.9675324, -0.772092998, 1, 0, 0, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388),i)
  1079.                             rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.400000095, -1.97076297, 0.764549196, 1, 0, 0, 0, 0.819151819, 0.573576868, 0, -0.573576868, 0.819151819),i)
  1080.                             head.C0 = head.C0:lerp(CFrame.new(4.76837158e-07, 1.49999905, 2.08616257e-07, 1, 0, 0, 0, 0.99619472, -0.0871554911, 0, 0.0871554911, 0.99619472),i)
  1081.                             heartbeat:wait()
  1082.                         end
  1083.                     end
  1084.                     for i = 0,0.15 , 0.004 do
  1085.                         if walkanim and cananimate then
  1086.                             rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.20000029, 0.00718426704, 0.645774603, 1, 0, 0, 0, 0.707106352, 0.707107365, 0, -0.707107365, 0.707106352),i)
  1087.                             leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.19999981, -0.0780918598, -0.518516839, 1, 0, 0, 0, 0.819151819, -0.573576868, 0, 0.573576868, 0.819151819),i)
  1088.                             leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.399999619, -1.94683981, 0.739386797, 1, 0, 0, 0, 0.819151819, 0.573576868, 0, -0.573576868, 0.819151819),i)
  1089.                             rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.400000095, -1.92139232, -0.787887871, 1, 0, 0, 0, 0.819151819, -0.573576868, 0, 0.573576868, 0.819151819),i)
  1090.                             head.C0 = head.C0:lerp(CFrame.new(4.76837158e-07, 1.49999905, 2.08616257e-07, 1, 0, 0, 0, 0.99619472, -0.0871554911, 0, 0.0871554911, 0.99619472),i)
  1091.                             heartbeat:wait()
  1092.                         end
  1093.                     end
  1094.                 end
  1095.             end
  1096.         else
  1097.             footstep:Stop()
  1098.             talking = false
  1099.             for i = 0,0.18 , 0.003 do
  1100.                 if not walkanim and cananimate then
  1101.                     rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.19564247, 0.00699353218, 0.0457750075, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1),i)
  1102.                     leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.19564247, -0.0282824039, -0.0685169995, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661, 0, 0, 0, 1),i)
  1103.                     leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.503977299, -1.98793423, -0.0106131211, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661, 0, 0, 0, 1),i)
  1104.                     rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.449810028, -1.96703422, -0.0378880017, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1),i)
  1105.                     head.C0 = head.C0:lerp(CFrame.new(0,1.5,0),i)
  1106.                     humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  1107.                     heartbeat:wait()
  1108.                 end
  1109.             end
  1110.         end
  1111.     end
  1112. end
  1113. spawn(randomwalk)
  1114. scphumanoid.Running:connect(checkmoving)
  1115. scp["Right Arm"].Touched:connect(touchkill)
  1116. spawn(checkanim)
  1117. spawn(upanddown)
  1118. spawn(searchforpeople)
  1119. end))
  1120. Part51.Name = "Eye1"
  1121. Part51.Parent = Model0
  1122. Part51.CFrame = CFrame.new(-32.035717, 4.60000086, -45.6604462, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1123. Part51.Orientation = Vector3.new(0, 180, 0)
  1124. Part51.Position = Vector3.new(-32.035717, 4.60000086, -45.6604462)
  1125. Part51.Rotation = Vector3.new(-180, 0, -180)
  1126. Part51.Size = Vector3.new(0.100000009, 0.100000009, 0.100000009)
  1127. Part51.BottomSurface = Enum.SurfaceType.Smooth
  1128. Part51.Material = Enum.Material.Neon
  1129. Part51.TopSurface = Enum.SurfaceType.Smooth
  1130. Part51.Shape = Enum.PartType.Ball
  1131. Part52.Name = "Eye2"
  1132. Part52.Parent = Model0
  1133. Part52.CFrame = CFrame.new(-31.5857201, 4.60000086, -45.6604462, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1134. Part52.Orientation = Vector3.new(0, 180, 0)
  1135. Part52.Position = Vector3.new(-31.5857201, 4.60000086, -45.6604462)
  1136. Part52.Rotation = Vector3.new(-180, 0, -180)
  1137. Part52.Size = Vector3.new(0.100000009, 0.100000009, 0.100000009)
  1138. Part52.BottomSurface = Enum.SurfaceType.Smooth
  1139. Part52.Material = Enum.Material.Neon
  1140. Part52.TopSurface = Enum.SurfaceType.Smooth
  1141. Part52.Shape = Enum.PartType.Ball
  1142. Pants53.Name = "Pants"
  1143. Pants53.Parent = Model0
  1144. Pants53.PantsTemplate = "rbxassetid://243651286"
  1145. Shirt54.Name = "Shirt"
  1146. Shirt54.Parent = Model0
  1147. Shirt54.ShirtTemplate = "rbxassetid://768461074"
  1148. Part55.Name = "Mask"
  1149. Part55.Parent = Model0
  1150. Part55.CFrame = CFrame.new(-31.8107185, 4.50000048, -45.2854576, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1151. Part55.Orientation = Vector3.new(0, 180, 0)
  1152. Part55.Position = Vector3.new(-31.8107185, 4.50000048, -45.2854576)
  1153. Part55.Rotation = Vector3.new(-180, 0, -180)
  1154. Part55.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1155. Part55.Size = Vector3.new(1.59999919, 1.4000001, 1.4000001)
  1156. Part55.BottomSurface = Enum.SurfaceType.Smooth
  1157. Part55.BrickColor = BrickColor.new("Institutional white")
  1158. Part55.CanCollide = false
  1159. Part55.TopSurface = Enum.SurfaceType.Smooth
  1160. Part55.brickColor = BrickColor.new("Institutional white")
  1161. Part55.FormFactor = Enum.FormFactor.Custom
  1162. Part55.formFactor = Enum.FormFactor.Custom
  1163. SpecialMesh56.Parent = Part55
  1164. SpecialMesh56.MeshId = "rbxassetid://2196730592"
  1165. SpecialMesh56.Scale = Vector3.new(0.0599999987, 0.0599999987, 0.100000001)
  1166. SpecialMesh56.MeshType = Enum.MeshType.FileMesh
  1167. Part57.Name = "Hood"
  1168. Part57.Parent = Model0
  1169. Part57.CFrame = CFrame.new(-31.8107185, 4.60003042, -46.1854401, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1170. Part57.Orientation = Vector3.new(0, 180, 0)
  1171. Part57.Position = Vector3.new(-31.8107185, 4.60003042, -46.1854401)
  1172. Part57.Rotation = Vector3.new(-180, 0, -180)
  1173. Part57.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1174. Part57.Size = Vector3.new(1.59999919, 1.4000001, 1.4000001)
  1175. Part57.BottomSurface = Enum.SurfaceType.Smooth
  1176. Part57.BrickColor = BrickColor.new("Really black")
  1177. Part57.CanCollide = false
  1178. Part57.TopSurface = Enum.SurfaceType.Smooth
  1179. Part57.brickColor = BrickColor.new("Really black")
  1180. Part57.FormFactor = Enum.FormFactor.Custom
  1181. Part57.formFactor = Enum.FormFactor.Custom
  1182. SpecialMesh58.Parent = Part57
  1183. SpecialMesh58.MeshId = "http://www.roblox.com/asset/?id=69430030"
  1184. SpecialMesh58.Scale = Vector3.new(1, 1, 1.10000002)
  1185. SpecialMesh58.MeshType = Enum.MeshType.FileMesh
  1186. Camera59.Name = "ThumbnailCamera"
  1187. Camera59.Parent = Model0
  1188. Camera59.CFrame = CFrame.new(10.9115391, 3.16879725, -37.1263885, 0.617880642, -0.0769587159, 0.782496631, -7.4505806e-09, 0.995198488, 0.0978780016, -0.78627193, -0.0604769289, 0.614913881)
  1189. Camera59.CoordinateFrame = CFrame.new(10.9115391, 3.16879725, -37.1263885, 0.617880642, -0.0769587159, 0.782496631, -7.4505806e-09, 0.995198488, 0.0978780016, -0.78627193, -0.0604769289, 0.614913881)
  1190. Camera59.Focus = CFrame.new(6.76428127, 2.65004063, -40.3854523, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1191. Camera59.focus = CFrame.new(6.76428127, 2.65004063, -40.3854523, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1192. for i,v in pairs(mas:GetChildren()) do
  1193.     v.Parent = workspace
  1194.     pcall(function() v:MakeJoints() end)
  1195. end
  1196. mas:Destroy()
  1197. for i,v in pairs(cors) do
  1198.     spawn(function()
  1199.         pcall(v)
  1200.     end)
  1201. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement