Awooslayer699

Untitled

Apr 5th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. 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. Humanoid18 = Instance.new("Humanoid")
  38. Model19 = Instance.new("Model")
  39. Script20 = Instance.new("Script")
  40. Part21 = Instance.new("Part")
  41. Motor6D22 = Instance.new("Motor6D")
  42. Model23 = Instance.new("Model")
  43. ScreenGui24 = Instance.new("ScreenGui")
  44. Frame25 = Instance.new("Frame")
  45. Part26 = Instance.new("Part")
  46. Decal27 = Instance.new("Decal")
  47. Model0.Name = "SCP-096"
  48. Model0.Parent = mas
  49. Part1.Name = "Left Arm"
  50. Part1.Parent = Model0
  51. Part1.CFrame = CFrame.new(-39.8000183, 4.49999714, -17.0007267, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  52. Part1.Position = Vector3.new(-39.8000183, 4.49999714, -17.0007267)
  53. Part1.Color = Color3.new(0.905882, 0.905882, 0.92549)
  54. Part1.Size = Vector3.new(1, 5, 1)
  55. Part1.BottomSurface = Enum.SurfaceType.Smooth
  56. Part1.BrickColor = BrickColor.new("Pearl")
  57. Part1.TopSurface = Enum.SurfaceType.Smooth
  58. Part1.brickColor = BrickColor.new("Pearl")
  59. Part2.Name = "Right Arm"
  60. Part2.Parent = Model0
  61. Part2.CFrame = CFrame.new(-39.8000183, 4.49999714, -20.0007267, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  62. Part2.Position = Vector3.new(-39.8000183, 4.49999714, -20.0007267)
  63. Part2.Color = Color3.new(0.905882, 0.905882, 0.92549)
  64. Part2.Size = Vector3.new(1, 5, 1)
  65. Part2.BottomSurface = Enum.SurfaceType.Smooth
  66. Part2.BrickColor = BrickColor.new("Pearl")
  67. Part2.TopSurface = Enum.SurfaceType.Smooth
  68. Part2.brickColor = BrickColor.new("Pearl")
  69. Part3.Name = "Torso"
  70. Part3.Parent = Model0
  71. Part3.CFrame = CFrame.new(-39.8000183, 5.49999714, -18.5007267, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  72. Part3.Position = Vector3.new(-39.8000183, 5.49999714, -18.5007267)
  73. Part3.Color = Color3.new(0.905882, 0.905882, 0.92549)
  74. Part3.Size = Vector3.new(1, 3, 2)
  75. Part3.BottomSurface = Enum.SurfaceType.Smooth
  76. Part3.BrickColor = BrickColor.new("Pearl")
  77. Part3.TopSurface = Enum.SurfaceType.Smooth
  78. Part3.brickColor = BrickColor.new("Pearl")
  79. Motor6D4.Name = "Right Hip"
  80. Motor6D4.Parent = Part3
  81. Motor6D4.C0 = CFrame.new(0, -3.5, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  82. Motor6D4.Part0 = Part3
  83. Motor6D4.Part1 = Part9
  84. Motor6D4.part1 = Part9
  85. Motor6D5.Name = "Right Shoulder"
  86. Motor6D5.Parent = Part3
  87. Motor6D5.C0 = CFrame.new(0, -1, -1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  88. Motor6D5.Part0 = Part3
  89. Motor6D5.Part1 = Part2
  90. Motor6D5.part1 = Part2
  91. Motor6D6.Name = "Left Hip"
  92. Motor6D6.Parent = Part3
  93. Motor6D6.C0 = CFrame.new(0, -3.5, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  94. Motor6D6.Part0 = Part3
  95. Motor6D6.Part1 = Part10
  96. Motor6D6.part1 = Part10
  97. Motor6D7.Name = "Left Shoulder"
  98. Motor6D7.Parent = Part3
  99. Motor6D7.C0 = CFrame.new(0, -1, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  100. Motor6D7.Part0 = Part3
  101. Motor6D7.Part1 = Part1
  102. Motor6D7.part1 = Part1
  103. Motor6D8.Name = "Neck"
  104. Motor6D8.Parent = Part3
  105. Motor6D8.C0 = CFrame.new(0, 2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  106. Motor6D8.Part0 = Part3
  107. Motor6D8.Part1 = Part11
  108. Motor6D8.part1 = Part11
  109. Part9.Name = "Right Leg"
  110. Part9.Parent = Model0
  111. Part9.CFrame = CFrame.new(-39.8000183, 1.99999714, -19.0007267, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  112. Part9.Position = Vector3.new(-39.8000183, 1.99999714, -19.0007267)
  113. Part9.Color = Color3.new(0.905882, 0.905882, 0.92549)
  114. Part9.Size = Vector3.new(1, 4, 1)
  115. Part9.BottomSurface = Enum.SurfaceType.Smooth
  116. Part9.BrickColor = BrickColor.new("Pearl")
  117. Part9.TopSurface = Enum.SurfaceType.Smooth
  118. Part9.brickColor = BrickColor.new("Pearl")
  119. Part10.Name = "Left Leg"
  120. Part10.Parent = Model0
  121. Part10.CFrame = CFrame.new(-39.8000183, 1.99999714, -18.0007267, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  122. Part10.Position = Vector3.new(-39.8000183, 1.99999714, -18.0007267)
  123. Part10.Color = Color3.new(0.905882, 0.905882, 0.92549)
  124. Part10.Size = Vector3.new(1, 4, 1)
  125. Part10.BottomSurface = Enum.SurfaceType.Smooth
  126. Part10.BrickColor = BrickColor.new("Pearl")
  127. Part10.TopSurface = Enum.SurfaceType.Smooth
  128. Part10.brickColor = BrickColor.new("Pearl")
  129. Part11.Name = "Head"
  130. Part11.Parent = Model0
  131. Part11.CFrame = CFrame.new(-39.8000183, 7.49999714, -18.5007267, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  132. Part11.Position = Vector3.new(-39.8000183, 7.49999714, -18.5007267)
  133. Part11.Color = Color3.new(0.905882, 0.905882, 0.92549)
  134. Part11.Size = Vector3.new(1, 1, 2)
  135. Part11.BottomSurface = Enum.SurfaceType.Smooth
  136. Part11.BrickColor = BrickColor.new("Pearl")
  137. Part11.TopSurface = Enum.SurfaceType.Smooth
  138. Part11.brickColor = BrickColor.new("Pearl")
  139. SpecialMesh12.Parent = Part11
  140. SpecialMesh12.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005)
  141. Weld13.Parent = Part11
  142. Weld13.C0 = CFrame.new(-0.100000381, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  143. Weld13.Part0 = Part11
  144. Weld13.Part1 = Part26
  145. Weld13.part1 = Part26
  146. Sound14.Name = "SCP-096 v0.8-0.9 Chasing Ambience(096_3)"
  147. Sound14.Parent = Part11
  148. Sound14.Looped = true
  149. Sound14.SoundId = "rbxassetid://261681311"
  150. Sound14.Volume = 3
  151. Sound15.Name = "SCP-096 (Idle) v0.2"
  152. Sound15.Parent = Part11
  153. Sound15.Looped = true
  154. Sound15.Playing = true
  155. Sound15.SoundId = "rbxassetid://153698726"
  156. Sound15.Volume = 2
  157. Sound16.Name = "SCP-096 (Face Viewed)"
  158. Sound16.Parent = Part11
  159. Sound16.SoundId = "rbxassetid://132820284"
  160. Sound16.Volume = 2
  161. Sound17.Name = "Guard attacked by SCP-096 (Old sound)"
  162. Sound17.Parent = Part11
  163. Sound17.SoundId = "rbxassetid://948779227"
  164. Sound17.Volume = 2
  165. Humanoid18.Parent = Model0
  166. Humanoid18.Health = 300
  167. Humanoid18.LeftLeg = Part10
  168. Humanoid18.MaxHealth = 300
  169. Humanoid18.RightLeg = Part9
  170. Humanoid18.Torso = Part21
  171. Humanoid18.maxHealth = 300
  172. Model19.Name = "(REMOVE THAT) Created by Rufus14"
  173. Model19.Parent = Model0
  174. Script20.Name = "SCP AI"
  175. Script20.Parent = Model0
  176. table.insert(cors,sandbox(Script20,function()
  177. --Fully made by Rufus14 (with a little help from Weld Plugin by popomcnuggets)
  178. --also script is commented so you can learn something
  179. --animations are made with :lerp()
  180. --you can convert the model to use it in script builder
  181. --ai is kinda bad
  182. local scp = Model0
  183. local torso = scp.Torso
  184. local head = scp.Head
  185. local leftarm = scp["Left Arm"]
  186. local rightarm = scp["Right Arm"]
  187. local leftleg = scp["Left Leg"]
  188. local rightleg = scp["Right Leg"]
  189. local scphumanoid = scp.Humanoid
  190. local deathgui = scp["This is what player sees after death"].Death
  191. local idlesound = head["SCP-096 (Idle) v0.2"]
  192. local chasesound = head["SCP-096 v0.8-0.9 Chasing Ambience(096_3)"]
  193. local ragesound = head["SCP-096 (Face Viewed)"]
  194. local killsomeone = head["Guard attacked by SCP-096 (Old sound)"]
  195. local face = scp.facepart.face
  196. --Motor6D's
  197. local neck = torso.Neck
  198. local leftshoulder = torso["Left Shoulder"]
  199. local rightshoulder = torso["Right Shoulder"]
  200. local lefthip = torso["Left Hip"]
  201. local righthip = torso["Right Hip"]
  202. local root = scp.HumanoidRootPart.RootJoint
  203. --
  204. local sight = 5
  205. local sitting = true
  206. local running = false
  207. local canchase = true
  208. scphumanoid.WalkSpeed = 0
  209. scphumanoid.JumpPower = 0
  210. function chase(victim) --chase the player
  211.     if canchase then
  212.         canchase = false
  213.         sitting = false
  214.         running = false
  215.         local victimhead = victim.Head
  216.         idlesound:Stop()
  217.         ragesound:Play()
  218.         scphumanoid.WalkSpeed = 0
  219.         scphumanoid.JumpPower = 0
  220.         face.Texture = "http://www.roblox.com/asset/?id=168024772"
  221.         for i = 0,0.15 , 0.002 do --animate him
  222.             root.C0 = root.C0:lerp(CFrame.new(0, 0, 0, 0.98480773, 0.173648298, 0, -0.173648298, 0.98480773, 0, 0, 0, 1),i)
  223.             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)
  224.             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)
  225.             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)
  226.             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)
  227.             neck.C0 = neck.C0:lerp(CFrame.new(-1.90734863e-06, 2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  228.             wait()
  229.         end
  230.         for i = 1,7 do --loop
  231.             for i = 0.3,0.5 , 0.015 do --rage animation
  232.                 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)
  233.                 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)
  234.                 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)
  235.                 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)
  236.                 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)
  237.                 neck.C0 = neck.C0:lerp(CFrame.new(-1.90734863e-06, 2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  238.                 wait()
  239.             end
  240.             for i = 0.3,0.5 , 0.015 do --rage animation
  241.                 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)
  242.                 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)
  243.                 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)
  244.                 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)
  245.                 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)
  246.                 neck.C0 = neck.C0:lerp(CFrame.new(-1.90734863e-06, 2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  247.                 wait()
  248.             end
  249.             for i = 0.3,0.5 , 0.015 do --rage animation
  250.                 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)
  251.                 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)
  252.                 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)
  253.                 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)
  254.                 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)
  255.                 neck.C0 = neck.C0:lerp(CFrame.new(-1.90734863e-06, 2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  256.                 wait()
  257.             end
  258.         end
  259.         for i = 0,1 , 0.07 do --scream animation
  260.             root.C0 = root.C0:lerp(CFrame.new(0, 0, 0, 0.939692616, 0.342020154, 0, -0.342020154, 0.939692616, 0, 0, 0, 1),i)
  261.             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)
  262.             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)
  263.             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)
  264.             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)
  265.             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)
  266.             wait()
  267.         end
  268.         wait(0.4)
  269.         chasesound:Play()
  270.         running = true
  271.         scphumanoid.WalkSpeed = 35
  272.         scphumanoid.JumpPower = 50
  273.         local function check() --check if scp is really close to the player
  274.             while wait() do
  275.                 if (torso.Position - victimhead.Position).magnitude < 7 then --if player is closer to scp than 9 studs then kill
  276.                     local playergui = game.Players[victim.Name]:findFirstChildOfClass("PlayerGui") --100th line yay
  277.                     if playergui then
  278.                         face.Texture = "http://www.roblox.com/asset/?id=146142799"
  279.                         local deathguiclone = deathgui:Clone()
  280.                         deathguiclone.Parent = playergui
  281.                         victim:BreakJoints()
  282.                         killsomeone:Play()
  283.                         chasesound:Stop()
  284.                         sitting = true
  285.                         running = false
  286.                         scphumanoid.WalkSpeed = 0
  287.                         scphumanoid.JumpPower = 0
  288.                         wait(3)
  289.                         idlesound:Play()
  290.                         wait(2)
  291.                         if deathguiclone.Parent ~= nil then
  292.                             deathguiclone:destroy()
  293.                         end
  294.                         wait(2)
  295.                         canchase = true
  296.                         break
  297.                     end
  298.                 end
  299.             end
  300.         end
  301.         local function chase()
  302.             while wait() do
  303.                 local path = game:GetService("PathfindingService"):FindPathAsync(torso.Position, victimhead.Position) --find the path from scp's torso to victims head
  304.                 local waypoints = path:GetWaypoints() --get the every point of the path
  305.                 if path.Status == Enum.PathStatus.Success then
  306.                     for i,v in pairs(waypoints) do --for every point existing..
  307.                         local allow = 0
  308.                         scphumanoid:MoveTo(v.Position) --...walk to it
  309.                         while (torso.Position - v.Position).magnitude > 7.5 and allow < 20 do --if scp is further than 8 studs, keep walking to it
  310.                             allow = allow + 1
  311.                             scphumanoid:MoveTo(v.Position)
  312.                             wait()
  313.                         end
  314.                         if v.Action == Enum.PathWaypointAction.Jump then
  315.                             scphumanoid.Jump = true
  316.                         end
  317.                         scphumanoid.WalkToPoint = victimhead.Position
  318.                     end
  319.                     scphumanoid.WalkToPoint = victimhead.Position
  320.                 end
  321.             end
  322.         end
  323.         spawn(check) --run that check function
  324.         spawn(chase) --chase
  325.     end
  326. end
  327.  
  328. function dead()
  329.     wait(5)
  330.     Model0:Destroy()
  331. end
  332. scphumanoid.Died:connect(dead)
  333.  
  334. while wait() do --check animations and other things
  335.     for i,v in pairs(game.Players:GetChildren()) do --scans all the players
  336.         if v.Character then --if player is even spawned
  337.             local victimhead = v.Character:findFirstChild("Head") --finds head
  338.             local humanoid = v.Character:findFirstChildOfClass("Humanoid") --finds humanoid
  339.             if humanoid and victimhead then --if script found humanoid and head
  340.                 if (victimhead.Position - head.Position).magnitude < sight then
  341.                     chase(v.Character) --chase who
  342.                 end
  343.             end
  344.         end
  345.     end
  346.     if running then --this is the walking animation
  347.         for i = 0.2,0.8 , 0.09 do
  348.             if running then
  349.                 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)
  350.                 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)
  351.                 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)
  352.                 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)
  353.                 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)
  354.                 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)
  355.                 wait()
  356.             end
  357.         end
  358.         for i = 0.2,0.8 , 0.09 do
  359.             if running then
  360.                 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)
  361.                 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)
  362.                 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)
  363.                 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)
  364.                 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)
  365.                 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)
  366.                 wait()
  367.             end
  368.         end
  369.     end
  370.     if sitting then --this is the sitting animation
  371.         for i = 0.2,0.8 , 0.03 do
  372.             if sitting then
  373.                 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)
  374.                 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)
  375.                 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)
  376.                 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)
  377.                 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)
  378.                 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)
  379.                 wait()
  380.             end
  381.         end
  382.     end
  383. end
  384.  
  385.  
  386. end))
  387. Part21.Name = "HumanoidRootPart"
  388. Part21.Parent = Model0
  389. Part21.CFrame = CFrame.new(-39.8000183, 5.49999714, -18.5007267, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  390. Part21.Position = Vector3.new(-39.8000183, 5.49999714, -18.5007267)
  391. Part21.Color = Color3.new(0.905882, 0.905882, 0.92549)
  392. Part21.Transparency = 1
  393. Part21.Size = Vector3.new(1, 3, 2)
  394. Part21.BottomSurface = Enum.SurfaceType.Smooth
  395. Part21.BrickColor = BrickColor.new("Pearl")
  396. Part21.TopSurface = Enum.SurfaceType.Smooth
  397. Part21.brickColor = BrickColor.new("Pearl")
  398. Motor6D22.Name = "RootJoint"
  399. Motor6D22.Parent = Part21
  400. Motor6D22.Part0 = Part21
  401. Motor6D22.Part1 = Part3
  402. Motor6D22.part1 = Part3
  403. Model23.Name = "This is what player sees after death"
  404. Model23.Parent = Model0
  405. ScreenGui24.Name = "Death"
  406. ScreenGui24.Parent = Model23
  407. Frame25.Parent = ScreenGui24
  408. Frame25.Size = UDim2.new(2, 0, 2, 0)
  409. Frame25.BackgroundColor = BrickColor.new("Really black")
  410. Frame25.BackgroundColor3 = Color3.new(0, 0, 0)
  411. Part26.Name = "facepart"
  412. Part26.Parent = Model0
  413. Part26.CFrame = CFrame.new(-39.9000168, 7.49999714, -18.5007267, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  414. Part26.Position = Vector3.new(-39.9000168, 7.49999714, -18.5007267)
  415. Part26.Transparency = 1
  416. Part26.Size = Vector3.new(1, 1, 1)
  417. Part26.BottomSurface = Enum.SurfaceType.Smooth
  418. Part26.TopSurface = Enum.SurfaceType.Smooth
  419. Decal27.Name = "face"
  420. Decal27.Parent = Part26
  421. Decal27.Texture = "http://www.roblox.com/asset/?id=146142799"
  422. Decal27.Face = Enum.NormalId.Left
  423. for i,v in pairs(mas:GetChildren()) do
  424.     v.Parent = workspace
  425.     pcall(function() v:MakeJoints() end)
  426. end
  427. mas:Destroy()
  428. for i,v in pairs(cors) do
  429.     spawn(function()
  430.         pcall(v)
  431.     end)
  432. end
Add Comment
Please, Sign In to add comment