Advertisement
Guest User

Void Script Builder SCP-173

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