RblxVoidScriptBuild

scp

Aug 3rd, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.65 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. SpecialMesh2 = Instance.new("SpecialMesh")
  22. Sound3 = Instance.new("Sound")
  23. Script4 = Instance.new("Script")
  24. Sound5 = Instance.new("Sound")
  25. Sound6 = Instance.new("Sound")
  26. Sound7 = Instance.new("Sound")
  27. Part8 = Instance.new("Part")
  28. Sound9 = Instance.new("Sound")
  29. Sound10 = Instance.new("Sound")
  30. Sound11 = Instance.new("Sound")
  31. Weld12 = Instance.new("Weld")
  32. Sound13 = Instance.new("Sound")
  33. Model0.Name = "SCP-173"
  34. Model0.Parent = mas
  35. Part1.Name = "Head"
  36. Part1.Parent = Model0
  37. Part1.CFrame = CFrame.new(43.7001686, 3.30001497, 48.9998703, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  38. Part1.Size = Vector3.new(1.59999943, 6.60000134, 3.00000072)
  39. Part1.Anchored = true
  40. Part1.BottomSurface = Enum.SurfaceType.Smooth
  41. Part1.TopSurface = Enum.SurfaceType.Smooth
  42. SpecialMesh2.Parent = Part1
  43. SpecialMesh2.MeshId = "rbxassetid://430348199"
  44. SpecialMesh2.Scale = Vector3.new(0.299999982, 0.299999982, 0.299999982)
  45. SpecialMesh2.TextureId = "rbxassetid://430348224"
  46. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  47. Sound3.Name = "Death"
  48. Sound3.Parent = Part1
  49. Sound3.Pitch = 0.20000000298023
  50. Sound3.PlaybackSpeed = 0.20000000298023
  51. Sound3.SoundId = "rbxassetid://515093461"
  52. Sound3.Volume = 1
  53. Script4.Name = "SCP AI"
  54. Script4.Parent = Part1
  55. table.insert(cors,sandbox(Script4,function()
  56. --By Rufus14
  57. ragdolldeath = true
  58. cantouchkill = false
  59. debugmode = false
  60. canchase = true
  61. chasing = false
  62. amount = 0
  63. speed = 0.9
  64. heartbeat = game:GetService("RunService").Heartbeat
  65. pathfindingser = game:GetService("PathfindingService")
  66. scphead = script.Parent
  67. hitbox = script.Parent.Hitbox
  68. deathsound = script.Parent.Death
  69. killsound = script.Parent.Kill
  70. jumpscaresound = script.Parent.Jumpscare
  71. jumpscaresound2 = script.Parent.Jumpscare2
  72. jumpscaresound3 = script.Parent.Jumpscare3
  73. jumpscaresound4 = script.Parent.Jumpscare4
  74. concretemovesound = script.Parent["Concrete Moving"]
  75. canjumpscare = false
  76. distance = 120
  77. function checkhowmanycharactersseeme()
  78. while heartbeat:wait() do
  79. amount = 0
  80. for i,v in pairs(workspace:GetChildren()) do
  81. if v.ClassName == "Model" then
  82. local characterhumanoid = v:findFirstChildOfClass("Humanoid")
  83. local characterscpdet = v:findFirstChild("SCPDetection")
  84. local characterhead = v:findFirstChild("Head")
  85. if characterhumanoid and characterscpdet then
  86. if characterhumanoid.Health > 0 then
  87. if (characterscpdet.Position - scphead.Position).magnitude < distance then
  88. if characterhead.Orientation.y > characterscpdet.Orientation.y - 90 and characterhead.Orientation.y < characterscpdet.Orientation.y + 90 then
  89. amount = amount + 1
  90. if debugmode then
  91. print(v.Name)
  92. end
  93. else
  94. --do n o t h i n g
  95. end
  96. end
  97. end
  98. end
  99. end
  100. end
  101. if debugmode then
  102. print("people staring at this thing: "..amount)
  103. end
  104. end
  105. end
  106. function adddetectors()
  107. while heartbeat:wait() do
  108. for i,v in pairs(workspace:GetChildren()) do
  109. if v.ClassName == "Model" then
  110. local characterhumanoid = v:findFirstChildOfClass("Humanoid")
  111. local characterhead = v:findFirstChild("Head")
  112. if characterhumanoid and characterhead then
  113. if characterhumanoid.Health <= 0 then
  114. if v:findFirstChild("SCPDetection") then
  115. v:findFirstChild("SCPDetection"):destroy()
  116. end
  117. else
  118. if not v:findFirstChild("SCPDetection") then
  119. local lookpart = Instance.new("Part", v)
  120. lookpart.CanCollide = false
  121. lookpart.Size = Vector3.new(1,1,1)
  122. lookpart.Anchored = true
  123. lookpart.Shape = "Cylinder"
  124. lookpart.Transparency = 1
  125. if debugmode then
  126. lookpart.Transparency = 0
  127. end
  128. lookpart.Name = "SCPDetection"
  129. local deed = false
  130. local function lookatme()
  131. local hed = characterhead
  132. while heartbeat:wait() do
  133. lookpart.CFrame = CFrame.new(hed.Position, scphead.Position)
  134. end
  135. end
  136. spawn(lookatme)
  137. end
  138. end
  139. end
  140. end
  141. end
  142. end
  143. end
  144. function orientation()
  145. while heartbeat:wait() do
  146. scphead.Orientation = Vector3.new(0,scphead.Orientation.y,0)
  147. end
  148. end
  149. function kill(part)
  150. if cantouchkill then
  151. if part.Parent then
  152. local victimhumanoid = part.Parent:findFirstChildOfClass("Humanoid")
  153. if victimhumanoid then
  154. if victimhumanoid.Health > 0 then
  155. killsound:Play()
  156. for i,v in pairs(victimhumanoid.Parent:GetChildren()) do
  157. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  158. v.Disabled = true
  159. end
  160. end
  161. victimhumanoid.Parent:BreakJoints()
  162. victimhumanoid.Health = 0
  163. if ragdolldeath then
  164. ragdollkill(victimhumanoid.Parent)
  165. end
  166. if scphead:findFirstChild("ChaseWho") then
  167. scphead:findFirstChild("ChaseWho"):destroy()
  168. end
  169. end
  170. end
  171. end
  172. end
  173. end
  174. hitbox.Touched:connect(kill)
  175. function attack()
  176. while heartbeat:wait() do
  177. if amount == 0 and canchase then
  178. cantouchkill = true
  179. canjumpscare = true
  180. for i,v in pairs(workspace:GetChildren()) do
  181. if v.ClassName == "Model" and v.Name ~= scphead.Parent.Name then
  182. local characterhumanoid = v:findFirstChildOfClass("Humanoid")
  183. local characterhead = v:findFirstChild("Head")
  184. if characterhumanoid and characterhead then
  185. if characterhumanoid.Health > 0 then
  186. if not scphead:findFirstChild("ChaseWho") then
  187. chasewho = Instance.new("ObjectValue", scphead)
  188. chasewho.Name = "ChaseWho"
  189. chasewho.Value = characterhead
  190. end
  191. if (chasewho.Value.Position - scphead.Position).magnitude < distance then
  192. chasing = true
  193. local path = pathfindingser:FindPathAsync(scphead.Position, chasewho.Value.Position, distance)
  194. local waypoints = path:GetWaypoints()
  195. if path.Status == Enum.PathStatus.Success then
  196. for i,v in pairs(waypoints) do
  197. if i >= 3 then
  198. if amount == 0 then
  199. scphead.Anchored = true
  200. scphead.CFrame = CFrame.new(v.Position)
  201. scphead.CFrame = scphead.CFrame * CFrame.new(0,6.6/2,0)
  202. scphead.CFrame = CFrame.new(scphead.Position, chasewho.Value.Position) * CFrame.fromEulerAnglesXYZ(-0.1,0,0)
  203. concretemovesound.Volume = 2
  204. cantouchkill = true
  205. wait()
  206. end
  207. end
  208. end
  209. else
  210. scphead.Anchored = false
  211. end
  212. chasing = false
  213. concretemovesound.Volume = 0
  214. else
  215. chasewho:destroy()
  216. chasing = false
  217. end
  218. elseif characterhumanoid.Health <= 0 then
  219. scphead.Anchored = true
  220. chasing = false
  221. end
  222. end
  223. end
  224. end
  225. else
  226. if canjumpscare then
  227. for i,v in pairs(workspace:GetChildren()) do
  228. if v.ClassName == "Model" then
  229. local characterhumanoid = v:findFirstChildOfClass("Humanoid")
  230. local characterhead = v:findFirstChild("Head")
  231. if characterhumanoid and characterhead then
  232. if characterhumanoid.Health > 0 then
  233. if (characterhead.Position - scphead.Position).magnitude < 10 then
  234. canjumpscare = false
  235. local whatjumpscare = math.random(1,4)
  236. if whatjumpscare == 1 then
  237. jumpscaresound:Play()
  238. elseif whatjumpscare == 2 then
  239. jumpscaresound2:Play()
  240. elseif whatjumpscare == 3 then
  241. jumpscaresound3:Play()
  242. elseif whatjumpscare == 4 then
  243. jumpscaresound4:Play()
  244. end
  245. end
  246. elseif characterhumanoid.Health <= 0 then
  247. --nothing again
  248. end
  249. end
  250. end
  251. end
  252. end
  253. if scphead:findFirstChild("ChaseWho") then
  254. scphead:findFirstChild("ChaseWho"):destroy()
  255. end
  256. local function nojumpscares()
  257. wait(0.7)
  258. canjumpscare = false
  259. end
  260. spawn(nojumpscares)
  261. cantouchkill = false
  262. scphead.Anchored = true
  263. chasing = false
  264. concretemovesound.Volume = 0
  265. end
  266. end
  267. end
  268. function ragdollkill(character)
  269. local victimshumanoid = character:findFirstChildOfClass("Humanoid")
  270. if not character:findFirstChild("UpperTorso") then
  271. character.Archivable = true
  272. for i,v in pairs(character:GetChildren()) do
  273. if v.ClassName == "Sound" then
  274. v:remove()
  275. end
  276. for q,w in pairs(v:GetChildren()) do
  277. if w.ClassName == "Sound" then
  278. w:remove()
  279. end
  280. end
  281. end
  282. local ragdoll = character:Clone()
  283. ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  284. if ragdoll:findFirstChild("Health") then
  285. if ragdoll:findFirstChild("Health").ClassName == "Script" then
  286. ragdoll:findFirstChild("Health").Disabled = true
  287. end
  288. end
  289. for i,v in pairs(character:GetChildren()) do
  290. if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
  291. v:destroy()
  292. end
  293. end
  294. for i,v in pairs(character:GetChildren()) do
  295. if v.ClassName == "Accessory" then
  296. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  297. if attachment1 then
  298. for q,w in pairs(character:GetChildren()) do
  299. if w.ClassName == "Part" then
  300. local attachment2 = w:findFirstChild(attachment1.Name)
  301. if attachment2 then
  302. local hinge = Instance.new("HingeConstraint", v.Handle)
  303. hinge.Attachment0 = attachment1
  304. hinge.Attachment1 = attachment2
  305. hinge.LimitsEnabled = true
  306. hinge.LowerAngle = 0
  307. hinge.UpperAngle = 0
  308. end
  309. end
  310. end
  311. end
  312. end
  313. end
  314. ragdoll.Parent = workspace
  315. if ragdoll:findFirstChild("Right Arm") then
  316. local glue = Instance.new("Glue", ragdoll.Torso)
  317. glue.Part0 = ragdoll.Torso
  318. glue.Part1 = ragdoll:findFirstChild("Right Arm")
  319. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  320. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  321. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
  322. limbcollider.Size = Vector3.new(1.4,1,1)
  323. limbcollider.Shape = "Cylinder"
  324. limbcollider.Transparency = 1
  325. limbcollider.Name = "LimbCollider"
  326. local limbcolliderweld = Instance.new("Weld", limbcollider)
  327. limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
  328. limbcolliderweld.Part1 = limbcollider
  329. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  330. end
  331. if ragdoll:findFirstChild("Left Arm") then
  332. local glue = Instance.new("Glue", ragdoll.Torso)
  333. glue.Part0 = ragdoll.Torso
  334. glue.Part1 = ragdoll:findFirstChild("Left Arm")
  335. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  336. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  337. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
  338. limbcollider.Size = Vector3.new(1.4,1,1)
  339. limbcollider.Shape = "Cylinder"
  340. limbcollider.Name = "LimbCollider"
  341. limbcollider.Transparency = 1
  342. local limbcolliderweld = Instance.new("Weld", limbcollider)
  343. limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
  344. limbcolliderweld.Part1 = limbcollider
  345. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  346. end
  347. if ragdoll:findFirstChild("Left Leg") then
  348. local glue = Instance.new("Glue", ragdoll.Torso)
  349. glue.Part0 = ragdoll.Torso
  350. glue.Part1 = ragdoll:findFirstChild("Left Leg")
  351. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  352. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  353. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
  354. limbcollider.Size = Vector3.new(1.4,1,1)
  355. limbcollider.Shape = "Cylinder"
  356. limbcollider.Name = "LimbCollider"
  357. limbcollider.Transparency = 1
  358. local limbcolliderweld = Instance.new("Weld", limbcollider)
  359. limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
  360. limbcolliderweld.Part1 = limbcollider
  361. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  362. end
  363. if ragdoll:findFirstChild("Right Leg") then
  364. local glue = Instance.new("Glue", ragdoll.Torso)
  365. glue.Part0 = ragdoll.Torso
  366. glue.Part1 = ragdoll:findFirstChild("Right Leg")
  367. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  368. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  369. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
  370. limbcollider.Size = Vector3.new(1.4,1,1)
  371. limbcollider.Shape = "Cylinder"
  372. limbcollider.Name = "LimbCollider"
  373. limbcollider.Transparency = 1
  374. local limbcolliderweld = Instance.new("Weld", limbcollider)
  375. limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
  376. limbcolliderweld.Part1 = limbcollider
  377. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  378. end
  379. if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
  380. local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
  381. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  382. local connection = Instance.new('HingeConstraint', ragdoll["Head"])
  383. connection.LimitsEnabled = true
  384. connection.Attachment0 = ragdoll.Torso.NeckAttachment
  385. connection.Attachment1 = HeadAttachment
  386. connection.UpperAngle = 60
  387. connection.LowerAngle = -60
  388. elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
  389. local hedweld = Instance.new("Weld", ragdoll.Torso)
  390. hedweld.Part0 = ragdoll.Torso
  391. hedweld.Part1 = ragdoll.Head
  392. hedweld.C0 = CFrame.new(0,1.5,0)
  393. end
  394. game.Debris:AddItem(ragdoll, 30)
  395. wait(1)
  396. if ragdoll:findFirstChildOfClass("Humanoid") then
  397. ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  398. end
  399. if ragdoll:findFirstChild("HumanoidRootPart") then
  400. ragdoll:findFirstChild("HumanoidRootPart"):destroy()
  401. end
  402. elseif character:findFirstChild("UpperTorso") then
  403. character.Archivable = true
  404. for i,v in pairs(character:GetChildren()) do
  405. if v.ClassName == "Sound" then
  406. v:remove()
  407. end
  408. for q,w in pairs(v:GetChildren()) do
  409. if w.ClassName == "Sound" then
  410. w:remove()
  411. end
  412. end
  413. end
  414. local ragdoll = character:Clone()
  415. ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  416. if ragdoll:findFirstChild("Health") then
  417. if ragdoll:findFirstChild("Health").ClassName == "Script" then
  418. ragdoll:findFirstChild("Health").Disabled = true
  419. end
  420. end
  421. for i,v in pairs(character:GetChildren()) do
  422. if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
  423. v:destroy()
  424. end
  425. end
  426. for i,v in pairs(character:GetChildren()) do
  427. if v.ClassName == "Accessory" then
  428. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  429. if attachment1 then
  430. for q,w in pairs(character:GetChildren()) do
  431. if w.ClassName == "Part" or w.ClassName == "MeshPart" then
  432. local attachment2 = w:findFirstChild(attachment1.Name)
  433. if attachment2 then
  434. local hinge = Instance.new("HingeConstraint", v.Handle)
  435. hinge.Attachment0 = attachment1
  436. hinge.Attachment1 = attachment2
  437. hinge.LimitsEnabled = true
  438. hinge.LowerAngle = 0
  439. hinge.UpperAngle = 0
  440. end
  441. end
  442. end
  443. end
  444. end
  445. end
  446. ragdoll.Parent = workspace
  447. local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
  448. Humanoid.PlatformStand = true
  449. local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
  450. local connection = Instance.new('BallSocketConstraint', limb)
  451. connection.LimitsEnabled = true
  452. connection.Attachment0 = attachementone
  453. connection.Attachment1 = attachmenttwo
  454. connection.TwistLimitsEnabled = true
  455. connection.TwistLowerAngle = twistlower
  456. connection.TwistUpperAngle = twistupper
  457. local limbcollider = Instance.new("Part", limb)
  458. limbcollider.Size = Vector3.new(0.1,1,1)
  459. limbcollider.Shape = "Cylinder"
  460. limbcollider.Transparency = 1
  461. limbcollider:BreakJoints()
  462. local limbcolliderweld = Instance.new("Weld", limbcollider)
  463. limbcolliderweld.Part0 = limb
  464. limbcolliderweld.Part1 = limbcollider
  465. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  466. end
  467. local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
  468. local connection = Instance.new('HingeConstraint', limb)
  469. connection.LimitsEnabled = true
  470. connection.Attachment0 = attachementone
  471. connection.Attachment1 = attachmenttwo
  472. connection.LimitsEnabled = true
  473. connection.LowerAngle = lower
  474. connection.UpperAngle = upper
  475. local limbcollider = Instance.new("Part", limb)
  476. limbcollider.Size = Vector3.new(0.1,1,1)
  477. limbcollider.Shape = "Cylinder"
  478. limbcollider.Transparency = 1
  479. limbcollider:BreakJoints()
  480. local limbcolliderweld = Instance.new("Weld", limbcollider)
  481. limbcolliderweld.Part0 = limb
  482. limbcolliderweld.Part1 = limbcollider
  483. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  484. end
  485. local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
  486. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  487. makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
  488. makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
  489. makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
  490. makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
  491. makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
  492. --
  493. makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
  494. makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
  495. makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
  496. --
  497. makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
  498. makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
  499. makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
  500. --
  501. makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
  502. makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
  503. makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
  504. for i,v in pairs(Humanoid.Parent:GetChildren()) do
  505. if v.ClassName == "Accessory" then
  506. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  507. if attachment1 then
  508. for q,w in pairs(Humanoid.Parent:GetChildren()) do
  509. if w.ClassName == "Part" then
  510. local attachment2 = w:findFirstChild(attachment1.Name)
  511. if attachment2 then
  512. local hinge = Instance.new("HingeConstraint", v.Handle)
  513. hinge.Attachment0 = attachment1
  514. hinge.Attachment1 = attachment2
  515. hinge.LimitsEnabled = true
  516. hinge.LowerAngle = 0
  517. hinge.UpperAngle = 0
  518. end
  519. end
  520. end
  521. end
  522. end
  523. end
  524. for i,v in pairs(ragdoll:GetChildren()) do
  525. for q,w in pairs(v:GetChildren()) do
  526. if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] then
  527. w:destroy()
  528. end
  529. end
  530. end
  531. if ragdoll:findFirstChild("HumanoidRootPart") then
  532. ragdoll.HumanoidRootPart.Anchored = true
  533. ragdoll.HumanoidRootPart.CanCollide = false
  534. end
  535. if ragdoll:findFirstChildOfClass("Humanoid") then
  536. ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  537. end
  538. game.Debris:AddItem(ragdoll, 30)
  539. end
  540. end
  541. spawn(orientation)
  542. spawn(attack)
  543. spawn(checkhowmanycharactersseeme)
  544. spawn(adddetectors)
  545. end))
  546. Sound5.Name = "Jumpscare"
  547. Sound5.Parent = Part1
  548. Sound5.MaxDistance = 20
  549. Sound5.SoundId = "rbxassetid://150184992"
  550. Sound6.Name = "Kill"
  551. Sound6.Parent = Part1
  552. Sound6.SoundId = "rbxassetid://2808764165"
  553. Sound7.Name = "Concrete Moving"
  554. Sound7.Parent = Part1
  555. Sound7.Looped = true
  556. Sound7.Playing = true
  557. Sound7.SoundId = "rbxassetid://171705140"
  558. Sound7.Volume = 0
  559. Part8.Name = "Hitbox"
  560. Part8.Parent = Part1
  561. Part8.CFrame = CFrame.new(-43.7001686, 3.30001497, -50.1998672, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  562. Part8.Position = Vector3.new(-43.7001686, 3.30001497, -50.1998672)
  563. Part8.Transparency = 1
  564. Part8.Size = Vector3.new(1.59999943, 6.60000134, 4.20000076)
  565. Part8.BottomSurface = Enum.SurfaceType.Smooth
  566. Part8.CanCollide = false
  567. Part8.Material = Enum.Material.ForceField
  568. Part8.TopSurface = Enum.SurfaceType.Smooth
  569. Sound9.Name = "Jumpscare2"
  570. Sound9.Parent = Part1
  571. Sound9.MaxDistance = 20
  572. Sound9.SoundId = "rbxassetid://150184965"
  573. Sound9.Volume = 2
  574. Sound10.Name = "Jumpscare3"
  575. Sound10.Parent = Part1
  576. Sound10.MaxDistance = 20
  577. Sound10.SoundId = "rbxassetid://150185006"
  578. Sound11.Name = "Dread"
  579. Sound11.Parent = Part1
  580. Sound11.Looped = true
  581. Sound11.Playing = true
  582. Sound11.SoundId = "rbxassetid://345477939"
  583. Sound11.Volume = 10
  584. Weld12.Parent = Part1
  585. Weld12.C0 = CFrame.new(0, 0, -1.19999838, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  586. Weld12.Part0 = Part1
  587. Weld12.Part1 = Part8
  588. Weld12.part1 = Part8
  589. Sound13.Name = "Jumpscare4"
  590. Sound13.Parent = Part1
  591. Sound13.MaxDistance = 20
  592. Sound13.EmitterSize = 10000
  593. Sound13.MinDistance = 10000
  594. Sound13.PlayOnRemove = true
  595. Sound13.SoundId = "rbxassetid://497249345"
  596. Sound13.Volume = 1
  597. for i,v in pairs(mas:GetChildren()) do
  598. v.Parent = workspace
  599. pcall(function() v:MakeJoints() end)
  600. end
  601. mas:Destroy()
  602. for i,v in pairs(cors) do
  603. spawn(function()
  604. pcall(v)
  605. end)
  606. end
  607. Model0.Parent = script
Add Comment
Please, Sign In to add comment