SansjustSans2

TOTTALY ACCURATE SCP096 SCRIPT EDIT

Aug 3rd, 2020
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --original By Rufus4
  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. Part2 = Instance.new("Part")
  22. Part3 = Instance.new("Part")
  23. Motor6D4 = Instance.new("Motor6D")
  24. Motor6D5 = Instance.new("Motor6D")
  25. Motor6D6 = Instance.new("Motor6D")
  26. Motor6D7 = Instance.new("Motor6D")
  27. Motor6D8 = Instance.new("Motor6D")
  28. Part9 = Instance.new("Part")
  29. Part10 = Instance.new("Part")
  30. Part11 = Instance.new("Part")
  31. SpecialMesh12 = Instance.new("SpecialMesh")
  32. Weld13 = Instance.new("Weld")
  33. Sound14 = Instance.new("Sound")
  34. Sound15 = Instance.new("Sound")
  35. Sound16 = Instance.new("Sound")
  36. Sound17 = Instance.new("Sound")
  37. Sound18 = Instance.new("Sound")
  38. PointLight19 = Instance.new("PointLight")
  39. Humanoid20 = Instance.new("Humanoid")
  40. Script21 = Instance.new("Script")
  41. Part22 = Instance.new("Part")
  42. Motor6D23 = Instance.new("Motor6D")
  43. Model24 = Instance.new("Model")
  44. ScreenGui25 = Instance.new("ScreenGui")
  45. Frame26 = Instance.new("Frame")
  46. Part27 = Instance.new("Part")
  47. Decal28 = Instance.new("Decal")
  48. Model0.Name = "SCP-096"
  49. Model0.Parent = mas
  50. Part1.Name = "Left Arm"
  51. Part1.Parent = Model0
  52. Part1.CFrame = CFrame.new(-2.80085993, 4.50001383, -40.2011566, 1, 0, 0, 0, 1, -2.202814e-16, 0, -2.202814e-16, 1)
  53. Part1.Position = Vector3.new(-2.80085993, 4.50001383, -40.2011566)
  54. Part1.Color = Color3.new(0.905882, 0.905882, 0.92549)
  55. Part1.Size = Vector3.new(1, 5, 1)
  56. Part1.BottomSurface = Enum.SurfaceType.Smooth
  57. Part1.BrickColor = BrickColor.new("Pearl")
  58. Part1.TopSurface = Enum.SurfaceType.Smooth
  59. Part1.brickColor = BrickColor.new("Pearl")
  60. Part2.Name = "Right Arm"
  61. Part2.Parent = Model0
  62. Part2.CFrame = CFrame.new(-2.80085993, 4.50001383, -43.2011566, 1, 0, 0, 0, 1, -2.202814e-16, 0, -2.202814e-16, 1)
  63. Part2.Position = Vector3.new(-2.80085993, 4.50001383, -43.2011566)
  64. Part2.Color = Color3.new(0.905882, 0.905882, 0.92549)
  65. Part2.Size = Vector3.new(1, 5, 1)
  66. Part2.BottomSurface = Enum.SurfaceType.Smooth
  67. Part2.BrickColor = BrickColor.new("Pearl")
  68. Part2.TopSurface = Enum.SurfaceType.Smooth
  69. Part2.brickColor = BrickColor.new("Pearl")
  70. Part3.Name = "Torso"
  71. Part3.Parent = Model0
  72. Part3.CFrame = CFrame.new(-2.80085993, 5.50001383, -41.7011566, 1, 0, 0, 0, 1, -2.202814e-16, 0, -2.202814e-16, 1)
  73. Part3.Position = Vector3.new(-2.80085993, 5.50001383, -41.7011566)
  74. Part3.Color = Color3.new(0.356863, 0.364706, 0.411765)
  75. Part3.Size = Vector3.new(1, 3, 2)
  76. Part3.BottomSurface = Enum.SurfaceType.Smooth
  77. Part3.BrickColor = BrickColor.new("Smoky grey")
  78. Part3.TopSurface = Enum.SurfaceType.Smooth
  79. Part3.brickColor = BrickColor.new("Smoky grey")
  80. Motor6D4.Name = "Right Hip"
  81. Motor6D4.Parent = Part3
  82. Motor6D4.C0 = CFrame.new(0, -3.5, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  83. Motor6D4.Part0 = Part3
  84. Motor6D4.Part1 = Part9
  85. Motor6D4.part1 = Part9
  86. Motor6D5.Name = "Right Shoulder"
  87. Motor6D5.Parent = Part3
  88. Motor6D5.C0 = CFrame.new(0, -1, -1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  89. Motor6D5.Part0 = Part3
  90. Motor6D5.Part1 = Part2
  91. Motor6D5.part1 = Part2
  92. Motor6D6.Name = "Left Hip"
  93. Motor6D6.Parent = Part3
  94. Motor6D6.C0 = CFrame.new(0, -3.5, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  95. Motor6D6.Part0 = Part3
  96. Motor6D6.Part1 = Part10
  97. Motor6D6.part1 = Part10
  98. Motor6D7.Name = "Left Shoulder"
  99. Motor6D7.Parent = Part3
  100. Motor6D7.C0 = CFrame.new(0, -1, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  101. Motor6D7.Part0 = Part3
  102. Motor6D7.Part1 = Part1
  103. Motor6D7.part1 = Part1
  104. Motor6D8.Name = "Neck"
  105. Motor6D8.Parent = Part3
  106. Motor6D8.C0 = CFrame.new(0, 2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  107. Motor6D8.Part0 = Part3
  108. Motor6D8.Part1 = Part11
  109. Motor6D8.part1 = Part11
  110. Part9.Name = "Right Leg"
  111. Part9.Parent = Model0
  112. Part9.CFrame = CFrame.new(-2.80085993, 2.00001383, -42.2011566, 1, 0, 0, 0, 1, -2.202814e-16, 0, -2.202814e-16, 1)
  113. Part9.Position = Vector3.new(-2.80085993, 2.00001383, -42.2011566)
  114. Part9.Color = Color3.new(0.905882, 0.905882, 0.92549)
  115. Part9.Size = Vector3.new(1, 4, 1)
  116. Part9.BottomSurface = Enum.SurfaceType.Smooth
  117. Part9.BrickColor = BrickColor.new("Pearl")
  118. Part9.TopSurface = Enum.SurfaceType.Smooth
  119. Part9.brickColor = BrickColor.new("Pearl")
  120. Part10.Name = "Left Leg"
  121. Part10.Parent = Model0
  122. Part10.CFrame = CFrame.new(-2.80085993, 2.00001383, -41.2011566, 1, 0, 0, 0, 1, -2.202814e-16, 0, -2.202814e-16, 1)
  123. Part10.Position = Vector3.new(-2.80085993, 2.00001383, -41.2011566)
  124. Part10.Color = Color3.new(0.905882, 0.905882, 0.92549)
  125. Part10.Size = Vector3.new(1, 4, 1)
  126. Part10.BottomSurface = Enum.SurfaceType.Smooth
  127. Part10.BrickColor = BrickColor.new("Pearl")
  128. Part10.TopSurface = Enum.SurfaceType.Smooth
  129. Part10.brickColor = BrickColor.new("Pearl")
  130. Part11.Name = "Head"
  131. Part11.Parent = Model0
  132. Part11.CFrame = CFrame.new(-2.80085993, 7.50001383, -41.7011566, 1, 0, 0, 0, 1, -2.202814e-16, 0, -2.202814e-16, 1)
  133. Part11.Position = Vector3.new(-2.80085993, 7.50001383, -41.7011566)
  134. Part11.Color = Color3.new(0.905882, 0.905882, 0.92549)
  135. Part11.Size = Vector3.new(1, 1, 2)
  136. Part11.BottomSurface = Enum.SurfaceType.Smooth
  137. Part11.BrickColor = BrickColor.new("Pearl")
  138. Part11.TopSurface = Enum.SurfaceType.Smooth
  139. Part11.brickColor = BrickColor.new("Pearl")
  140. SpecialMesh12.Parent = Part11
  141. SpecialMesh12.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005)
  142. Weld13.Parent = Part11
  143. Weld13.C0 = CFrame.new(-0.100000381, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  144. Weld13.Part0 = Part11
  145. Weld13.Part1 = Part27
  146. Weld13.part1 = Part27
  147. Sound14.Name = "SCP-096 v0.8-0.9 Chasing Ambience(096_3)"
  148. Sound14.Parent = Part11
  149. Sound14.Looped = true
  150. Sound14.MaxDistance = 500
  151. Sound14.SoundId = "rbxassetid://261681311"
  152. Sound14.Volume = 1
  153. Sound15.Name = "SCP-096 (Idle) v0.2"
  154. Sound15.Parent = Part11
  155. Sound15.Looped = true
  156. Sound15.MaxDistance = 50
  157. Sound15.Playing = true
  158. Sound15.SoundId = "rbxassetid://153698726"
  159. Sound15.Volume = 1
  160. Sound16.Name = "SCP-096 (Face Viewed)"
  161. Sound16.Parent = Part11
  162. Sound16.MaxDistance = 200
  163. Sound16.SoundId = "rbxassetid://330944619"
  164. Sound16.Volume = 1
  165. Sound17.Name = "Guard attacked by SCP-096 (Old sound)"
  166. Sound17.Parent = Part11
  167. Sound17.MaxDistance = 100
  168. Sound17.SoundId = "rbxassetid://948779227"
  169. Sound17.Volume = 1
  170. Sound18.Name = "SCP-096 Scream (raging)"
  171. Sound18.Parent = Part11
  172. Sound18.Looped = true
  173. Sound18.MaxDistance = 100
  174. Sound18.SoundId = "rbxassetid://343430735"
  175. Sound18.Volume = 1
  176. PointLight19.Parent = Part11
  177. Humanoid20.Parent = Model0
  178. Humanoid20.Health = 400
  179. Humanoid20.LeftLeg = Part10
  180. Humanoid20.MaxHealth = 400
  181. Humanoid20.RightLeg = Part9
  182. Humanoid20.Torso = Part22
  183. Humanoid20.maxHealth = 400000000
  184. Script21.Name = "SCP AI"
  185. Script21.Parent = Model0
  186. table.insert(cors,sandbox(Script21,function()
  187. --Fully made by Rufus14 (with a little help from Weld Plugin by popomcnuggets)
  188. --also script is commented so you can learn something
  189. --animations are made with :lerp()
  190. --you can convert the model to use it in script builder
  191. local scp = script.Parent
  192. local torso = scp.Torso
  193. torso.CFrame = torso.CFrame * CFrame.fromEulerAnglesXYZ(0,math.pi/2*2,0)
  194. local head = scp.Head
  195. local leftarm = scp["Left Arm"]
  196. local rightarm = scp["Right Arm"]
  197. local leftleg = scp["Left Leg"]
  198. local rightleg = scp["Right Leg"]
  199. local scphumanoid = scp.Humanoid
  200. local deathgui = scp["This is what player sees after death"].Death
  201. local idlesound = head["SCP-096 (Idle) v0.2"]
  202. local chasesound = head["SCP-096 v0.8-0.9 Chasing Ambience(096_3)"]
  203. local ragesound = head["SCP-096 (Face Viewed)"]
  204. local screamsound = head["SCP-096 Scream (raging)"]
  205. local killsomeone = head["Guard attacked by SCP-096 (Old sound)"]
  206. local face = scp.facepart.face
  207. local heartbeat = game:GetService("RunService").Heartbeat
  208. --Motor6D's
  209. local neck = torso.Neck
  210. local leftshoulder = torso["Left Shoulder"]
  211. local rightshoulder = torso["Right Shoulder"]
  212. local lefthip = torso["Left Hip"]
  213. local righthip = torso["Right Hip"]
  214. local root = scp.HumanoidRootPart.RootJoint
  215. --
  216. local sight = 60
  217. local sitting = true
  218. local running = false
  219. local canchase = true
  220. scphumanoid.WalkSpeed = 0
  221. scphumanoid.JumpPower = 0
  222.  
  223. function ragdollkill(character)
  224. local victimshumanoid = character:findFirstChildOfClass("Humanoid")
  225. if not character:findFirstChild("UpperTorso") then
  226. character.Archivable = true
  227. local ragdoll = character:Clone()
  228. ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  229. ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  230. if ragdoll:findFirstChild("Health") then
  231. if ragdoll:findFirstChild("Health").ClassName == "Script" then
  232. ragdoll:findFirstChild("Health").Disabled = true
  233. end
  234. end
  235. for i,v in pairs(character:GetChildren()) do
  236. if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
  237. v:destroy()
  238. end
  239. end
  240. for i,v in pairs(character:GetChildren()) do
  241. if v.ClassName == "Accessory" then
  242. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  243. if attachment1 then
  244. for q,w in pairs(character:GetChildren()) do
  245. if w.ClassName == "Part" then
  246. local attachment2 = w:findFirstChild(attachment1.Name)
  247. if attachment2 then
  248. local hinge = Instance.new("HingeConstraint", v.Handle)
  249. hinge.Attachment0 = attachment1
  250. hinge.Attachment1 = attachment2
  251. hinge.LimitsEnabled = true
  252. hinge.LowerAngle = 0
  253. hinge.UpperAngle = 0
  254. end
  255. end
  256. end
  257. end
  258. end
  259. end
  260. ragdoll.Parent = workspace
  261. if ragdoll:findFirstChild("Right Arm") then
  262. local glue = Instance.new("Glue", ragdoll.Torso)
  263. glue.Part0 = ragdoll.Torso
  264. glue.Part1 = ragdoll:findFirstChild("Right Arm")
  265. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  266. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  267. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
  268. limbcollider.Size = Vector3.new(1.4,1,1)
  269. limbcollider.Shape = "Cylinder"
  270. limbcollider.Transparency = 1
  271. limbcollider.Name = "LimbCollider"
  272. local limbcolliderweld = Instance.new("Weld", limbcollider)
  273. limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
  274. limbcolliderweld.Part1 = limbcollider
  275. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  276. end
  277. if ragdoll:findFirstChild("Left Arm") then
  278. local glue = Instance.new("Glue", ragdoll.Torso)
  279. glue.Part0 = ragdoll.Torso
  280. glue.Part1 = ragdoll:findFirstChild("Left Arm")
  281. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  282. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  283. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
  284. limbcollider.Size = Vector3.new(1.4,1,1)
  285. limbcollider.Shape = "Cylinder"
  286. limbcollider.Name = "LimbCollider"
  287. limbcollider.Transparency = 1
  288. local limbcolliderweld = Instance.new("Weld", limbcollider)
  289. limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
  290. limbcolliderweld.Part1 = limbcollider
  291. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  292. end
  293. if ragdoll:findFirstChild("Left Leg") then
  294. local glue = Instance.new("Glue", ragdoll.Torso)
  295. glue.Part0 = ragdoll.Torso
  296. glue.Part1 = ragdoll:findFirstChild("Left Leg")
  297. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  298. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  299. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
  300. limbcollider.Size = Vector3.new(1.4,1,1)
  301. limbcollider.Shape = "Cylinder"
  302. limbcollider.Name = "LimbCollider"
  303. limbcollider.Transparency = 1
  304. local limbcolliderweld = Instance.new("Weld", limbcollider)
  305. limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
  306. limbcolliderweld.Part1 = limbcollider
  307. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  308. end
  309. if ragdoll:findFirstChild("Right Leg") then
  310. local glue = Instance.new("Glue", ragdoll.Torso)
  311. glue.Part0 = ragdoll.Torso
  312. glue.Part1 = ragdoll:findFirstChild("Right Leg")
  313. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  314. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  315. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
  316. limbcollider.Size = Vector3.new(1.4,1,1)
  317. limbcollider.Shape = "Cylinder"
  318. limbcollider.Name = "LimbCollider"
  319. limbcollider.Transparency = 1
  320. local limbcolliderweld = Instance.new("Weld", limbcollider)
  321. limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
  322. limbcolliderweld.Part1 = limbcollider
  323. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  324. end
  325. if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
  326. local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
  327. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  328. local connection = Instance.new('HingeConstraint', ragdoll["Head"])
  329. connection.LimitsEnabled = true
  330. connection.Attachment0 = ragdoll.Torso.NeckAttachment
  331. connection.Attachment1 = HeadAttachment
  332. connection.UpperAngle = 60
  333. connection.LowerAngle = -60
  334. elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
  335. local hedweld = Instance.new("Weld", ragdoll.Torso)
  336. hedweld.Part0 = ragdoll.Torso
  337. hedweld.Part1 = ragdoll.Head
  338. hedweld.C0 = CFrame.new(0,1.5,0)
  339. end
  340. game.Debris:AddItem(ragdoll, 60)
  341. elseif character:findFirstChild("UpperTorso") then
  342. character.Archivable = true
  343. local ragdoll = character:Clone()
  344. ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  345. if ragdoll:findFirstChild("Health") then
  346. if ragdoll:findFirstChild("Health").ClassName == "Script" then
  347. ragdoll:findFirstChild("Health").Disabled = true
  348. end
  349. end
  350. for i,v in pairs(character:GetChildren()) do
  351. if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
  352. v:destroy()
  353. end
  354. end
  355. for i,v in pairs(character:GetChildren()) do
  356. if v.ClassName == "Accessory" then
  357. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  358. if attachment1 then
  359. for q,w in pairs(character:GetChildren()) do
  360. if w.ClassName == "Part" or w.ClassName == "MeshPart" then
  361. local attachment2 = w:findFirstChild(attachment1.Name)
  362. if attachment2 then
  363. local hinge = Instance.new("HingeConstraint", v.Handle)
  364. hinge.Attachment0 = attachment1
  365. hinge.Attachment1 = attachment2
  366. hinge.LimitsEnabled = true
  367. hinge.LowerAngle = 0
  368. hinge.UpperAngle = 0
  369. end
  370. end
  371. end
  372. end
  373. end
  374. end
  375. ragdoll.Parent = workspace
  376. local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
  377. Humanoid.PlatformStand = true
  378. local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
  379. local connection = Instance.new('BallSocketConstraint', limb)
  380. connection.LimitsEnabled = true
  381. connection.Attachment0 = attachementone
  382. connection.Attachment1 = attachmenttwo
  383. connection.TwistLimitsEnabled = true
  384. connection.TwistLowerAngle = twistlower
  385. connection.TwistUpperAngle = twistupper
  386. local limbcollider = Instance.new("Part", limb)
  387. limbcollider.Size = Vector3.new(0.1,1,1)
  388. limbcollider.Shape = "Cylinder"
  389. limbcollider.Transparency = 1
  390. limbcollider:BreakJoints()
  391. local limbcolliderweld = Instance.new("Weld", limbcollider)
  392. limbcolliderweld.Part0 = limb
  393. limbcolliderweld.Part1 = limbcollider
  394. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  395. end
  396. local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
  397. local connection = Instance.new('HingeConstraint', limb)
  398. connection.LimitsEnabled = true
  399. connection.Attachment0 = attachementone
  400. connection.Attachment1 = attachmenttwo
  401. connection.LimitsEnabled = true
  402. connection.LowerAngle = lower
  403. connection.UpperAngle = upper
  404. local limbcollider = Instance.new("Part", limb)
  405. limbcollider.Size = Vector3.new(0.1,1,1)
  406. limbcollider.Shape = "Cylinder"
  407. limbcollider.Transparency = 1
  408. limbcollider:BreakJoints()
  409. local limbcolliderweld = Instance.new("Weld", limbcollider)
  410. limbcolliderweld.Part0 = limb
  411. limbcolliderweld.Part1 = limbcollider
  412. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  413. end
  414. local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
  415. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  416. makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
  417. makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
  418. makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
  419. makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
  420. makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
  421. --
  422. makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
  423. makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
  424. makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
  425. --
  426. makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
  427. makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
  428. makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
  429. --
  430. makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
  431. makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
  432. makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
  433. for i,v in pairs(Humanoid.Parent:GetChildren()) do
  434. if v.ClassName == "Accessory" then
  435. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  436. if attachment1 then
  437. for q,w in pairs(Humanoid.Parent:GetChildren()) do
  438. if w.ClassName == "Part" then
  439. local attachment2 = w:findFirstChild(attachment1.Name)
  440. if attachment2 then
  441. local hinge = Instance.new("HingeConstraint", v.Handle)
  442. hinge.Attachment0 = attachment1
  443. hinge.Attachment1 = attachment2
  444. hinge.LimitsEnabled = true
  445. hinge.LowerAngle = 0
  446. hinge.UpperAngle = 0
  447. end
  448. end
  449. end
  450. end
  451. end
  452. end
  453. for i,v in pairs(ragdoll:GetChildren()) do
  454. for q,w in pairs(v:GetChildren()) do
  455. if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] then
  456. w:destroy()
  457. end
  458. end
  459. end
  460. if ragdoll:findFirstChild("HumanoidRootPart") then
  461. ragdoll.HumanoidRootPart.Anchored = true
  462. ragdoll.HumanoidRootPart.CanCollide = false
  463. end
  464. game.Debris:AddItem(ragdoll, 60)
  465. end
  466. end
  467.  
  468. function chase(victim) --chase the player
  469. if canchase then
  470. canchase = false
  471. local raaaaaageeee = true
  472. sitting = false
  473. running = false
  474. local victimhead = victim.Head
  475. local victimhumanoid = victim:findFirstChildOfClass("Humanoid")
  476. idlesound:Stop()
  477. ragesound:Play()
  478. scphumanoid.WalkSpeed = 0
  479. scphumanoid.JumpPower = 0
  480. face.Texture = "http://www.roblox.com/asset/?id=168024772"
  481. local function spasm()
  482. while wait() do
  483. if raaaaaageeee then
  484. root.C0 = root.C0 * CFrame.new(math.random(-1,1)/50,math.random(-1,1)/50,math.random(-1,1)/50)
  485. rightshoulder.C0 = rightshoulder.C0 * CFrame.new(math.random(-1,1)/50,math.random(-1,1)/50,math.random(-1,1)/50)
  486. leftshoulder.C0 = leftshoulder.C0 * CFrame.new(math.random(-1,1)/50,math.random(-1,1)/50,math.random(-1,1)/50)
  487. lefthip.C0 = lefthip.C0 * CFrame.new(math.random(-1,1)/50,math.random(-1,1)/50,math.random(-1,1)/50)
  488. righthip.C0 = righthip.C0 * CFrame.new(math.random(-1,1)/50,math.random(-1,1)/50,math.random(-1,1)/50)
  489. neck.C0 = neck.C0 * CFrame.new(math.random(-1,1)/50,math.random(-1,1)/50,math.random(-1,1)/50)
  490. --
  491. root.C0 = root.C0 * CFrame.fromEulerAnglesXYZ(math.random(-1,1)/50,math.random(-1,1)/50,math.random(-1,1)/50)
  492. rightshoulder.C0 = rightshoulder.C0 * CFrame.fromEulerAnglesXYZ(math.random(-1,1)/50,math.random(-1,1)/50,math.random(-1,1)/50)
  493. leftshoulder.C0 = leftshoulder.C0 * CFrame.fromEulerAnglesXYZ(math.random(-1,1)/50,math.random(-1,1)/50,math.random(-1,1)/50)
  494. lefthip.C0 = lefthip.C0 * CFrame.fromEulerAnglesXYZ(math.random(-1,1)/50,math.random(-1,1)/50,math.random(-1,1)/50)
  495. righthip.C0 = righthip.C0 * CFrame.fromEulerAnglesXYZ(math.random(-1,1)/50,math.random(-1,1)/50,math.random(-1,1)/50)
  496. neck.C0 = neck.C0 * CFrame.fromEulerAnglesXYZ(math.random(-1,1)/50,math.random(-1,1)/50,math.random(-1,1)/50)
  497. end
  498. end
  499. end
  500. spawn(spasm)
  501. for i = 0,0.1 , 0.0005 do --animate him
  502. root.C0 = root.C0:lerp(CFrame.new(0, 0, 0, 0.98480773, 0.173648298, 0, -0.173648298, 0.98480773, 0, 0, 0, 1),i)
  503. rightshoulder.C0 = rightshoulder.C0:lerp(CFrame.new(-0.800001144, 0.642426491, -1.80661774, 1, 0, 0, 0, -0.642787874, 0.766044259, 0, -0.766044259, -0.642787814),i)
  504. leftshoulder.C0 = leftshoulder.C0:lerp(CFrame.new(-0.399999619, 0.675328255, 1.86571693, -1.1920929e-07, -1.49011612e-07, -0.99999994, -0.766044557, -0.642787516, 1.34110451e-07, -0.642787397, 0.766044497, -1.1920929e-07),i)
  505. lefthip.C0 = lefthip.C0:lerp(CFrame.new(0, -3.5, 0.5, 0.98480773, -0.173648298, 0, 0.173648298, 0.98480773, 0, 0, 0, 1),i)
  506. righthip.C0 = righthip.C0:lerp(CFrame.new(0, -3.5, -0.5, 0.98480773, -0.173648298, 0, 0.173648298, 0.98480773, 0, 0, 0, 1),i)
  507. neck.C0 = neck.C0:lerp(CFrame.new(-1.90734863e-06, 2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  508. heartbeat:wait()
  509. end
  510. for i = 1,27 do --loop
  511. for i = 0.3,0.5 , 0.008 do --rage animation
  512. root.C0 = root.C0:lerp(CFrame.new(0, 0, 0, 0.98480773, 0.163175985, -0.0593911894, -0.173648253, 0.925416589, -0.336824059, -1.86264515e-08, 0.342020094, 0.939692616),i)
  513. rightshoulder.C0 = rightshoulder.C0:lerp(CFrame.new(-0.800001144, 0.642426491, -1.80661774, 1, 0, 0, 0, -0.642787874, 0.766044259, 0, -0.766044259, -0.642787814),i)
  514. leftshoulder.C0 = leftshoulder.C0:lerp(CFrame.new(-0.399999619, 0.675328255, 1.86571693, -1.1920929e-07, -1.49011612e-07, -0.99999994, -0.766044557, -0.642787516, 1.34110451e-07, -0.642787397, 0.766044497, -1.1920929e-07),i)
  515. lefthip.C0 = lefthip.C0:lerp(CFrame.new(-0.0297870636, -3.33106899, 1.07283974, 0.98480773, -0.163175955, -0.0593911335, 0.173648208, 0.925416708, 0.336823761, -2.60770321e-08, -0.342019826, 0.939692676),i)
  516. righthip.C0 = righthip.C0:lerp(CFrame.new(0.0281715393, -3.65976715, -0.26830864, 0.98480773, -0.171010181, -0.0301537365, 0.173648298, 0.969846249, 0.171010152, -2.60770321e-08, -0.173648313, 0.984807611),i)
  517. neck.C0 = neck.C0:lerp(CFrame.new(-1.90734863e-06, 2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  518. heartbeat:wait()
  519. end
  520. for i = 0.3,0.5 , 0.008 do --rage animation
  521. root.C0 = root.C0:lerp(CFrame.new(0, 0, 0, 0.934456408, -0.351089597, -0.0593911372, 0.312324762, 0.888258278, -0.336824119, 0.171010107, 0.29619813, 0.939692616),i)
  522. rightshoulder.C0 = rightshoulder.C0:lerp(CFrame.new(-0.800001144, 0.642426491, -1.80661774, 1, 0, 0, 0, -0.642787874, 0.766044259, 0, -0.766044259, -0.642787814),i)
  523. leftshoulder.C0 = leftshoulder.C0:lerp(CFrame.new(-0.399999619, 0.675328255, 1.86571693, -1.1920929e-07, -1.49011612e-07, -0.99999994, -0.766044557, -0.642787516, 1.34110451e-07, -0.642787397, 0.766044497, -1.1920929e-07),i)
  524. lefthip.C0 = lefthip.C0:lerp(CFrame.new(-0.602340698, -3.0763092, 1.15816879, 0.934456408, 0.351089299, -0.0593911409, -0.312324613, 0.888258517, 0.336823583, 0.171009839, -0.296197772, 0.939692676),i)
  525. righthip.C0 = righthip.C0:lerp(CFrame.new(-0.773321152, -3.47119474, -0.0934143066, 0.938373566, 0.344305009, -0.0301536173, -0.334539622, 0.92673558, 0.17101036, 0.0868241563, -0.150384039, 0.98480773),i)
  526. neck.C0 = neck.C0:lerp(CFrame.new(-1.90734863e-06, 2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  527. heartbeat:wait()
  528. end
  529. for i = 0.3,0.5 , 0.008 do --rage animation
  530. root.C0 = root.C0:lerp(CFrame.new(0, 0, 0, 0.934456408, -0.230774283, -0.271172374, 0.312324822, 0.896951497, 0.312939584, 0.171010077, -0.377122283, 0.910238624),i)
  531. rightshoulder.C0 = rightshoulder.C0:lerp(CFrame.new(-0.800001144, 0.642426491, -1.80661774, 1, 0, 0, 0, -0.642787874, 0.766044259, 0, -0.766044259, -0.642787814),i)
  532. leftshoulder.C0 = leftshoulder.C0:lerp(CFrame.new(-0.399999619, 0.675328255, 1.86571693, -1.1920929e-07, -1.49011612e-07, -0.99999994, -0.766044557, -0.642787516, 1.34110451e-07, -0.642787397, 0.766044497, -1.1920929e-07),i)
  533. lefthip.C0 = lefthip.C0:lerp(CFrame.new(-0.682954788, -3.65747166, 0.0301790237, 0.970848203, 0.216018811, 0.103873909, -0.186457753, 0.952938259, -0.239044309, -0.150623471, 0.212707579, 0.965436697),i)
  534. righthip.C0 = righthip.C0:lerp(CFrame.new(-0.934883118, -2.97838402, -1.17556, 0.949593663, 0.283100039, 0.13463366, -0.20653595, 0.88808161, -0.4106749, -0.235827699, 0.362167627, 0.901787043),i)
  535. neck.C0 = neck.C0:lerp(CFrame.new(-1.90734863e-06, 2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  536. heartbeat:wait()
  537. end
  538. end
  539. raaaaaageeee = false
  540. for i = 0,1 , 0.03 do --scream animation
  541. root.C0 = root.C0:lerp(CFrame.new(0, 0, 0, 0.939692616, 0.342020154, 0, -0.342020154, 0.939692616, 0, 0, 0, 1),i)
  542. rightshoulder.C0 = rightshoulder.C0:lerp(CFrame.new(0, -0.124749184, -2.85422897, 1, 0, 0, 0, 0.766044497, -0.642787635, 0, 0.642787635, 0.766044438),i)
  543. leftshoulder.C0 = leftshoulder.C0:lerp(CFrame.new(0, -0.124749184, 2.85422897, 1, 0, 1.49011612e-08, 0, 0.766044378, 0.642787695, 0, -0.642787695, 0.766044378),i)
  544. lefthip.C0 = lefthip.C0:lerp(CFrame.new(0.751754761, -3.42638397, 0.5, 0.939692616, -0.342020154, 0, 0.342020154, 0.939692616, 0, 0, 0, 1),i)
  545. righthip.C0 = righthip.C0:lerp(CFrame.new(0.563816071, -3.29478741, -0.5, 0.939692616, -0.342020154, 0, 0.342020154, 0.939692616, 0, 0, 0, 1),i)
  546. neck.C0 = neck.C0:lerp(CFrame.new(0.446411133, 1.97320461, 0, 0.866025448, 0.499999881, 0, -0.499999881, 0.866025448, 0, 0, 0, 1),i)
  547. heartbeat:wait()
  548. end
  549. raaaaaageeee = true
  550. wait(1.5)
  551. chasesound:Play()
  552. running = true
  553. local chasethatplayer = true
  554. scphumanoid.WalkSpeed = 100
  555. scphumanoid.JumpPower = 100
  556. local function check() --check if scp is really close to the player
  557. while wait() do
  558. if not chasethatplayer then
  559. break
  560. end
  561. if (torso.Position - victimhead.Position).magnitude < 15 and chasethatplayer then --if player is closer to scp than 10 studs then kill
  562. chasethatplayer = false
  563. raaaaaageeee = false
  564. running = false
  565. for i = 0,0.9 , 0.05 do --scream animation
  566. root.C0 = root.C0:lerp(CFrame.new(-0.208377838, -1.18176937, 0, 0.173648149, -0.98480773, 0, 0.98480773, 0.173648149, -1.62028714e-25, -1.59567135e-25, -2.81359876e-26, 1) * CFrame.fromEulerAnglesXYZ(-math.pi/2,0,0),i)
  567. rightshoulder.C0 = rightshoulder.C0:lerp(CFrame.new(-1.20717955, 2.69089603, -1.5, -0.866025329, 0.49999994, -1.59567135e-25, -0.49999994, -0.866025329, -2.81359876e-26, 1.52257181e-25, -5.54170842e-26, 1),i)
  568. leftshoulder.C0 = leftshoulder.C0:lerp(CFrame.new(-1.20717955, 2.69089603, 1.5, -0.866025329, 0.49999994, -1.59567135e-25, -0.49999994, -0.866025329, -2.81359876e-26, 1.52257181e-25, -5.54170842e-26, 1),i)
  569. lefthip.C0 = lefthip.C0:lerp(CFrame.new(0.563815594, -3.29478741, 0.5, 0.939692497, -0.336824059, -0.0593910962, 0.342020094, 0.925416589, 0.163175702, -1.59567135e-25, -0.17364797, 0.984807789),i)
  570. righthip.C0 = righthip.C0:lerp(CFrame.new(0.563815594, -3.29478741, -0.5, 0.939692497, -0.342020094, -1.59567135e-25, 0.342020094, 0.939692497, -2.81359876e-26, -1.59567135e-25, 2.81359938e-26, 1),i)
  571. neck.C0 = neck.C0:lerp(CFrame.new(0.346410275, 2.19999981, 0, 0.49999994, 0.866025388, -1.59567135e-25, -0.866025388, 0.49999994, -2.81359876e-26, -5.5417078e-26, -1.52257181e-25, 1),i)
  572. heartbeat:wait()
  573. end
  574. face.Texture = "http://www.roblox.com/asset/?id=146142799"
  575. victim:BreakJoints()
  576. killsomeone:Play()
  577. chasesound:Stop()
  578. screamsound:Stop()
  579. sitting = true
  580. scphumanoid.WalkSpeed = 0
  581. scphumanoid.JumpPower = 0
  582. local function playidleandcanchase()
  583. wait(5.5)
  584. idlesound:Play()
  585. canchase = true
  586. end
  587. spawn(playidleandcanchase)
  588. if game.Players:findFirstChild(victim.Name) then
  589. local playergui = game.Players[victim.Name]:findFirstChildOfClass("PlayerGui")
  590. if playergui then
  591. local deathguiclone = deathgui:Clone()
  592. deathguiclone.Parent = playergui
  593. local function removegui()
  594. wait(5)
  595. if deathguiclone.Parent ~= nil then
  596. deathguiclone:destroy()
  597. end
  598. end
  599. spawn(removegui)
  600. end
  601. end
  602. ragdollkill(victim)
  603. break
  604. end
  605. end
  606. end
  607. local howmanymissed = 0
  608. local function chase()
  609. screamsound:Play()
  610. while wait() and chasethatplayer do
  611. if victimhumanoid.Health <= 0 then
  612. chasethatplayer = false
  613. raaaaaageeee = false
  614. idlesound:Play()
  615. running = false
  616. face.Texture = "http://www.roblox.com/asset/?id=146142799"
  617. chasesound:Stop()
  618. screamsound:Stop()
  619. sitting = true
  620. scphumanoid.WalkSpeed = 0
  621. scphumanoid.JumpPower = 0
  622. canchase = true
  623. break
  624. end
  625. local path = game:GetService("PathfindingService"):FindPathAsync(torso.Position, victimhead.Position) --find the path from scp's torso to victims head
  626. local waypoints = path:GetWaypoints() --get the every point of the path
  627. if path.Status == Enum.PathStatus.Success then
  628. for i,v in pairs(waypoints) do --for every point existing..
  629. if howmanymissed < 4 then
  630. local allow = 0
  631. scphumanoid:MoveTo(v.Position) --...walk to it
  632. while (torso.Position - v.Position).magnitude > 8 and allow < 20 do --if scp is further than 8 studs, keep walking to it
  633. allow = allow + 1
  634. scphumanoid:MoveTo(v.Position)
  635. heartbeat:wait()
  636. end
  637. if allow == 20 then
  638. howmanymissed = howmanymissed + 1
  639. end
  640. if v.Action == Enum.PathWaypointAction.Jump then
  641. scphumanoid.Jump = true
  642. end
  643. scphumanoid.WalkToPoint = victimhead.Position
  644. end
  645. end
  646. howmanymissed = 0
  647. scphumanoid.WalkToPoint = victimhead.Position
  648. end
  649. end
  650. end
  651. spawn(check) --run that check function
  652. spawn(chase) --chase
  653. end
  654. end
  655.  
  656. function dead()
  657. wait(5)
  658. script.Parent:Destroy()
  659. end
  660. scphumanoid.Died:connect(dead)
  661.  
  662. function check4ppl()
  663. while wait() do
  664. for i,v in pairs(workspace:GetChildren()) do --scans all the characters
  665. if v.ClassName == "Model" and v.Name ~= scp.Name and canchase then --if player is even spawned
  666. local victimhead = v:findFirstChild("Head") --finds head
  667. local humanoid = v:findFirstChildOfClass("Humanoid") --finds humanoid
  668. if humanoid and victimhead then --if script found humanoid and head
  669. if (victimhead.Position - head.Position).magnitude < sight and humanoid.Health > 0 then
  670. chase(v) --chase who
  671. end
  672. end
  673. end
  674. end
  675. end
  676. end
  677.  
  678. spawn(check4ppl)
  679.  
  680. while heartbeat:wait() do --check animations and other things
  681. if running then --this is the walking animation
  682. for i = 0,0.75 , 0.05 do
  683. if running then
  684. rightshoulder.C0 = rightshoulder.C0:lerp(CFrame.new(-2.19622421, 2.27327061, -1.57830048, -0.351089299, 0.888258278, -0.296198368, -0.754010975, -0.455760926, -0.473021507, -0.55516088, 0.0572640449, 0.829769373),i)
  685. leftshoulder.C0 = leftshoulder.C0:lerp(CFrame.new(-2.31931305, 1.76000595, 1.52594185, -0.336824059, 0.903335214, 0.26558435, -0.820529103, -0.41995579, 0.387774497, 0.461824089, -0.0873079151, 0.882664025),i)
  686. lefthip.C0 = lefthip.C0:lerp(CFrame.new(1.21138191, -3.04071045, 0.5, 0.766044378, -0.642787695, 0, 0.642787695, 0.766044378, 0, 0, 0, 1),i)
  687. righthip.C0 = righthip.C0:lerp(CFrame.new(-2.25595284, -1.97990799, -0.5, 0.342020154, 0.939692616, 0, -0.939692616, 0.342020154, 0, 0, 0, 1),i)
  688. neck.C0 = neck.C0:lerp(CFrame.new(0.446409225, 1.97320557, 0, 0.866025448, 0.499999911, 0, -0.499999911, 0.866025448, 0, 0, 0, 1),i)
  689. root.C0 = root.C0:lerp(CFrame.new(0, 0, 0, 0.866025448, -0.499999911, 0, 0.499999911, 0.866025448, 0, 0, 0, 1) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0.5),i)
  690. heartbeat:wait()
  691. end
  692. end
  693. for i = 0,0.75 , 0.05 do
  694. if running then
  695. rightshoulder.C0 = rightshoulder.C0:lerp(CFrame.new( -2.27283096, 1.94459152, -1.79301262, -0.191510916, 0.935729742, -0.296198308, -0.821698189, -0.317904055, -0.473021477, -0.53678298, 0.15279679, 0.829769492),i)
  696. leftshoulder.C0 = leftshoulder.C0:lerp(CFrame.new(-2.07076645, 2.13161564, 1.51448631, -0.48856923, 0.831122816, 0.26558429, -0.735139072, -0.556058884, 0.387774587, 0.469968796, -0.00578667223, 0.882664025),i)
  697. lefthip.C0 = lefthip.C0:lerp(CFrame.new(-2.51899147, -1.46453857, 0.5, 0.173648268, 0.98480773, 0, -0.98480773, 0.173648268, 0, 0, 0, 1),i)
  698. righthip.C0 = righthip.C0:lerp(CFrame.new(1.8448391, -2.40829563, -0.5, 0.342020154, -0.939692557, 0, 0.939692557, 0.342020154, 0, 0, 0, 1),i)
  699. neck.C0 = neck.C0:lerp(CFrame.new(0.446409225, 1.97320557, 0, 0.866025448, 0.499999911, 0, -0.499999911, 0.866025448, 0, 0, 0, 1),i)
  700. root.C0 = root.C0:lerp(CFrame.new(0, 0, 0, 0.866025448, -0.499999911, 0, 0.499999911, 0.866025448, 0, 0, 0, 1) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0.5),i)
  701. heartbeat:wait()
  702. end
  703. end
  704. end
  705. if sitting then --this is the sitting animation
  706. for i = 0,0.15 , 0.002 do
  707. if sitting then
  708. root.C0 = root.C0:lerp(CFrame.new(0.277837753, -3.77569246, 0, 0.98480773, -0.173648298, 0, 0.173648298, 0.98480773, 0, 0, 0, 1),i)
  709. rightshoulder.C0 = rightshoulder.C0:lerp(CFrame.new(-1.53501892, 0.0072479248, -0.936183929, 0.499999881, 0.813797832, 0.296198159, -0.866025567, 0.469846159, 0.171010077, 5.96046448e-08, -0.342020154, 0.939692616),i)
  710. leftshoulder.C0 = leftshoulder.C0:lerp(CFrame.new(-1.73340797, 0.030960083, 1.0417347, 0.469846249, 0.742043018, -0.478138745, -0.866025567, 0.492403746, -0.0868242159, 0.171009973, 0.454874337, 0.873982251),i)
  711. lefthip.C0 = lefthip.C0:lerp(CFrame.new(-1.88126564, 0.0378093719, 0.5, 0.766044378, 0.642787695, 0, -0.642787695, 0.766044378, 0, 0, 0, 1),i)
  712. righthip.C0 = righthip.C0:lerp(CFrame.new(-1.77682304, 0.0369753838, -0.5, 0.766044378, 0.642787695, 0, -0.642787695, 0.766044378, 0, 0, 0, 1),i)
  713. neck.C0 = neck.C0:lerp(CFrame.new(-0.18793869, 1.93159628, 0, 0.939692616, -0.342020154, 0, 0.342020154, 0.939692616, 0, 0, 0, 1),i)
  714. heartbeat:wait()
  715. end
  716. end
  717. if sitting then
  718. wait(math.random(20,35))
  719. end
  720. for i = 0,0.15 , 0.002 do
  721. if sitting then
  722. root.C0 = root.C0:lerp(CFrame.new(0.549342155, -3.9154768, 0, 0.99999994, 2.98023224e-08, 0, -2.98023224e-08, 0.99999994, -1.62028714e-25, 4.82883198e-33, -1.62028702e-25, 1),i)
  723. rightshoulder.C0 = rightshoulder.C0:lerp(CFrame.new(0.246704102, 1.18243062, -1.44592857, -0.58682394, 0.492403716, 0.642787635, -0.642787457, -0.766044378, -2.80971442e-08, 0.492403954, -0.413175941, 0.766044259),i)
  724. leftshoulder.C0 = leftshoulder.C0:lerp(CFrame.new(-0.045042038, 1.23536623, 1.41781616, -0.68977493, 0.291755378, -0.662637949, -0.587524116, -0.760397375, 0.276786745, -0.4231143, 0.580236554, 0.695916593),i)
  725. lefthip.C0 = lefthip.C0:lerp(CFrame.new(-1.96706343, -0.110518813, 0.5, 0.766044319, 0.642787457, 4.82883198e-33, -0.642787457, 0.766044319, -1.62028702e-25, 1.04150039e-25, -1.24121187e-25, 1),i)
  726. righthip.C0 = righthip.C0:lerp(CFrame.new(-2.03226805, -0.104752898, -0.5, 0.766044378, 0.642787516, 4.82883198e-33, -0.642787516, 0.766044378, -1.62028702e-25, 1.04150051e-25, -1.24121199e-25, 1),i)
  727. neck.C0 = neck.C0:lerp(CFrame.new(-0.892820358, 1.94641006, 0, 0.866025269, -0.49999994, 4.82883198e-33, 0.49999994, 0.866025269, -1.62028702e-25, -8.10143448e-26, -1.40320975e-25, 1),i)
  728. heartbeat:wait()
  729. end
  730. end
  731. if sitting then
  732. wait(math.random(20,35))
  733. end
  734. end
  735. end
  736.  
  737.  
  738. end))
  739. Part22.Name = "HumanoidRootPart"
  740. Part22.Parent = Model0
  741. Part22.CFrame = CFrame.new(-2.80085993, 5.50001383, -41.7011566, 1, 0, 0, 0, 1, -2.202814e-16, 0, -2.202814e-16, 1)
  742. Part22.Position = Vector3.new(-2.80085993, 5.50001383, -41.7011566)
  743. Part22.Color = Color3.new(0.905882, 0.905882, 0.92549)
  744. Part22.Transparency = 1
  745. Part22.Size = Vector3.new(1, 3, 2)
  746. Part22.BottomSurface = Enum.SurfaceType.Smooth
  747. Part22.BrickColor = BrickColor.new("Pearl")
  748. Part22.TopSurface = Enum.SurfaceType.Smooth
  749. Part22.brickColor = BrickColor.new("Pearl")
  750. Motor6D23.Name = "RootJoint"
  751. Motor6D23.Parent = Part22
  752. Motor6D23.Part0 = Part22
  753. Motor6D23.Part1 = Part3
  754. Motor6D23.part1 = Part3
  755. Model24.Name = "This is what player sees after death"
  756. Model24.Parent = Model0
  757. ScreenGui25.Name = "Death"
  758. ScreenGui25.Parent = Model24
  759. Frame26.Parent = ScreenGui25
  760. Frame26.Size = UDim2.new(2, 0, 2, 0)
  761. Frame26.BackgroundColor = BrickColor.new("Really black")
  762. Frame26.BackgroundColor3 = Color3.new(0, 0, 0)
  763. Part27.Name = "facepart"
  764. Part27.Parent = Model0
  765. Part27.CFrame = CFrame.new(-2.90086031, 7.50001383, -41.7011566, 1, 0, 0, 0, 1, -2.202814e-16, 0, -2.202814e-16, 1)
  766. Part27.Position = Vector3.new(-2.90086031, 7.50001383, -41.7011566)
  767. Part27.Transparency = 1
  768. Part27.Size = Vector3.new(1, 1, 1)
  769. Part27.BottomSurface = Enum.SurfaceType.Smooth
  770. Part27.TopSurface = Enum.SurfaceType.Smooth
  771. Decal28.Name = "face"
  772. Decal28.Parent = Part27
  773. Decal28.Texture = "http://www.roblox.com/asset/?id=146142799"
  774. Decal28.Face = Enum.NormalId.Left
  775. for i,v in pairs(mas:GetChildren()) do
  776. v.Parent = workspace
  777. pcall(function() v:MakeJoints() end)
  778. end
  779. mas:Destroy()
  780. for i,v in pairs(cors) do
  781. spawn(function()
  782. pcall(v)
  783. end)
  784. end
Add Comment
Please, Sign In to add comment