View difference between Paste ID: axbmiehL and 20DNwCGA
SHOW: | | - or go back to the newest paste.
1-
--By Rufus4
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-
Sound18 = Instance.new("Sound")
37+
Humanoid18 = Instance.new("Humanoid")
38-
PointLight19 = Instance.new("PointLight")
38+
Model19 = Instance.new("Model")
39-
Humanoid20 = Instance.new("Humanoid")
39+
Script20 = Instance.new("Script")
40-
Script21 = Instance.new("Script")
40+
Part21 = Instance.new("Part")
41-
Part22 = Instance.new("Part")
41+
Motor6D22 = Instance.new("Motor6D")
42-
Motor6D23 = Instance.new("Motor6D")
42+
Model23 = Instance.new("Model")
43-
Model24 = Instance.new("Model")
43+
ScreenGui24 = Instance.new("ScreenGui")
44-
ScreenGui25 = Instance.new("ScreenGui")
44+
Frame25 = Instance.new("Frame")
45-
Frame26 = Instance.new("Frame")
45+
Part26 = Instance.new("Part")
46-
Part27 = Instance.new("Part")
46+
Decal27 = Instance.new("Decal")
47-
Decal28 = Instance.new("Decal")
47+
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.CFrame = CFrame.new(-2.80085993, 4.50001383, -40.2011566, 1, 0, 0, 0, 1, -2.202814e-16, 0, -2.202814e-16, 1)
52+
Part1.Position = Vector3.new(-39.8000183, 4.49999714, -17.0007267)
53-
Part1.Position = Vector3.new(-2.80085993, 4.50001383, -40.2011566)
53+
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.CFrame = CFrame.new(-2.80085993, 4.50001383, -43.2011566, 1, 0, 0, 0, 1, -2.202814e-16, 0, -2.202814e-16, 1)
62+
Part2.Position = Vector3.new(-39.8000183, 4.49999714, -20.0007267)
63-
Part2.Position = Vector3.new(-2.80085993, 4.50001383, -43.2011566)
63+
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.CFrame = CFrame.new(-2.80085993, 5.50001383, -41.7011566, 1, 0, 0, 0, 1, -2.202814e-16, 0, -2.202814e-16, 1)
72+
Part3.Position = Vector3.new(-39.8000183, 5.49999714, -18.5007267)
73-
Part3.Position = Vector3.new(-2.80085993, 5.50001383, -41.7011566)
73+
Part3.Color = Color3.new(0.905882, 0.905882, 0.92549)
74-
Part3.Color = Color3.new(0.356863, 0.364706, 0.411765)
74+
75
Part3.BottomSurface = Enum.SurfaceType.Smooth
76
Part3.BrickColor = BrickColor.new("Pearl")
77-
Part3.BrickColor = BrickColor.new("Smoky grey")
77+
78
Part3.brickColor = BrickColor.new("Pearl")
79-
Part3.brickColor = BrickColor.new("Smoky grey")
79+
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.CFrame = CFrame.new(-2.80085993, 2.00001383, -42.2011566, 1, 0, 0, 0, 1, -2.202814e-16, 0, -2.202814e-16, 1)
112+
Part9.Position = Vector3.new(-39.8000183, 1.99999714, -19.0007267)
113-
Part9.Position = Vector3.new(-2.80085993, 2.00001383, -42.2011566)
113+
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.CFrame = CFrame.new(-2.80085993, 2.00001383, -41.2011566, 1, 0, 0, 0, 1, -2.202814e-16, 0, -2.202814e-16, 1)
122+
Part10.Position = Vector3.new(-39.8000183, 1.99999714, -18.0007267)
123-
Part10.Position = Vector3.new(-2.80085993, 2.00001383, -41.2011566)
123+
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.CFrame = CFrame.new(-2.80085993, 7.50001383, -41.7011566, 1, 0, 0, 0, 1, -2.202814e-16, 0, -2.202814e-16, 1)
132+
Part11.Position = Vector3.new(-39.8000183, 7.49999714, -18.5007267)
133-
Part11.Position = Vector3.new(-2.80085993, 7.50001383, -41.7011566)
133+
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 = Part27
145+
Weld13.part1 = Part26
146-
Weld13.part1 = Part27
146+
147
Sound14.Parent = Part11
148
Sound14.Looped = true
149
Sound14.SoundId = "rbxassetid://261681311"
150-
Sound14.MaxDistance = 500
150+
Sound14.Volume = 3
151
Sound15.Name = "SCP-096 (Idle) v0.2"
152-
Sound14.Volume = 1
152+
153
Sound15.Looped = true
154
Sound15.Playing = true
155
Sound15.SoundId = "rbxassetid://153698726"
156-
Sound15.MaxDistance = 50
156+
Sound15.Volume = 2
157
Sound16.Name = "SCP-096 (Face Viewed)"
158
Sound16.Parent = Part11
159-
Sound15.Volume = 1
159+
Sound16.SoundId = "rbxassetid://132820284"
160
Sound16.Volume = 2
161
Sound17.Name = "Guard attacked by SCP-096 (Old sound)"
162-
Sound16.MaxDistance = 200
162+
163-
Sound16.SoundId = "rbxassetid://330944619"
163+
164-
Sound16.Volume = 1
164+
Sound17.Volume = 2
165
Humanoid18.Parent = Model0
166
Humanoid18.Health = 300
167-
Sound17.MaxDistance = 100
167+
Humanoid18.LeftLeg = Part10
168
Humanoid18.MaxHealth = 300
169-
Sound17.Volume = 1
169+
Humanoid18.RightLeg = Part9
170-
Sound18.Name = "SCP-096 Scream (raging)"
170+
Humanoid18.Torso = Part21
171-
Sound18.Parent = Part11
171+
Humanoid18.maxHealth = 300
172-
Sound18.Looped = true
172+
Model19.Name = "(REMOVE THAT) Created by Rufus14"
173-
Sound18.MaxDistance = 100
173+
Model19.Parent = Model0
174-
Sound18.SoundId = "rbxassetid://343430735"
174+
Script20.Name = "SCP AI"
175-
Sound18.Volume = 1
175+
Script20.Parent = Model0
176-
PointLight19.Parent = Part11
176+
table.insert(cors,sandbox(Script20,function()
177-
Humanoid20.Parent = Model0
177+
178-
Humanoid20.Health = 400
178+
179-
Humanoid20.LeftLeg = Part10
179+
180-
Humanoid20.MaxHealth = 400
180+
181-
Humanoid20.RightLeg = Part9
181+
--ai is kinda bad
182-
Humanoid20.Torso = Part22
182+
local scp = Model0
183-
Humanoid20.maxHealth = 400
183+
184-
Script21.Name = "SCP AI"
184+
185-
Script21.Parent = Model0
185+
186-
table.insert(cors,sandbox(Script21,function()
186+
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 scp = script.Parent
191+
192
local chasesound = head["SCP-096 v0.8-0.9 Chasing Ambience(096_3)"]
193-
torso.CFrame = torso.CFrame * CFrame.fromEulerAnglesXYZ(0,math.pi/2*2,0)
193+
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 screamsound = head["SCP-096 Scream (raging)"]
204+
205
local sitting = true
206
local running = false
207-
local heartbeat = game:GetService("RunService").Heartbeat
207+
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-
function ragdollkill(character)
223+
224-
	local victimshumanoid = character:findFirstChildOfClass("Humanoid")
224+
225-
	if not character:findFirstChild("UpperTorso") then
225+
226-
		character.Archivable = true
226+
227-
		local ragdoll = character:Clone()
227+
228-
		ragdoll:findFirstChildOfClass("Humanoid").Health = 0
228+
			wait()
229-
		ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
229+
230-
		if ragdoll:findFirstChild("Health") then
230+
		for i = 1,7 do --loop
231-
			if ragdoll:findFirstChild("Health").ClassName == "Script" then
231+
			for i = 0.3,0.5 , 0.015 do --rage animation
232-
				ragdoll:findFirstChild("Health").Disabled = true
232+
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-
		for i,v in pairs(character:GetChildren()) do
235+
236-
			if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
236+
237-
				v:destroy()
237+
238
				wait()
239
			end
240-
		for i,v in pairs(character:GetChildren()) do
240+
			for i = 0.3,0.5 , 0.015 do --rage animation
241-
			if v.ClassName == "Accessory" then
241+
242-
				local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
242+
243-
				if attachment1 then
243+
244-
					for q,w in pairs(character:GetChildren()) do
244+
245-
						if w.ClassName == "Part" then
245+
246-
							local attachment2 = w:findFirstChild(attachment1.Name)
246+
247-
							if attachment2 then
247+
				wait()
248-
								local hinge = Instance.new("HingeConstraint", v.Handle)
248+
249-
								hinge.Attachment0 = attachment1
249+
			for i = 0.3,0.5 , 0.015 do --rage animation
250-
								hinge.Attachment1 = attachment2
250+
251-
								hinge.LimitsEnabled = true
251+
252-
								hinge.LowerAngle = 0
252+
253-
								hinge.UpperAngle = 0
253+
254-
							end
254+
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-
		ragdoll.Parent = workspace
260+
261-
		if ragdoll:findFirstChild("Right Arm") then
261+
262-
			local glue = Instance.new("Glue", ragdoll.Torso)
262+
263-
			glue.Part0 = ragdoll.Torso
263+
264-
			glue.Part1 = ragdoll:findFirstChild("Right Arm")
264+
265-
			glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
265+
266-
			glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
266+
			wait()
267-
			local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
267+
268-
			limbcollider.Size = Vector3.new(1.4,1,1)
268+
		wait(0.4)
269-
			limbcollider.Shape = "Cylinder"
269+
270-
			limbcollider.Transparency = 1
270+
271-
			limbcollider.Name = "LimbCollider"
271+
272-
			local limbcolliderweld = Instance.new("Weld", limbcollider)
272+
273-
			limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
273+
274-
			limbcolliderweld.Part1 = limbcollider
274+
275-
			limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
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 ragdoll:findFirstChild("Left Arm") then
277+
					if playergui then
278-
			local glue = Instance.new("Glue", ragdoll.Torso)
278+
						face.Texture = "http://www.roblox.com/asset/?id=146142799"
279-
			glue.Part0 = ragdoll.Torso
279+
						local deathguiclone = deathgui:Clone()
280-
			glue.Part1 = ragdoll:findFirstChild("Left Arm")
280+
						deathguiclone.Parent = playergui
281-
			glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
281+
						victim:BreakJoints()
282-
			glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
282+
						killsomeone:Play()
283-
			local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
283+
						chasesound:Stop()
284-
			limbcollider.Size = Vector3.new(1.4,1,1)
284+
						sitting = true
285-
			limbcollider.Shape = "Cylinder"
285+
						running = false
286-
			limbcollider.Name = "LimbCollider"
286+
						scphumanoid.WalkSpeed = 0
287-
			limbcollider.Transparency = 1
287+
						scphumanoid.JumpPower = 0
288-
			local limbcolliderweld = Instance.new("Weld", limbcollider)
288+
						wait(3)
289-
			limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
289+
290-
			limbcolliderweld.Part1 = limbcollider
290+
						wait(2)
291-
			limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
291+
						if deathguiclone.Parent ~= nil then
292
							deathguiclone:destroy()
293-
		if ragdoll:findFirstChild("Left Leg") then
293+
294-
			local glue = Instance.new("Glue", ragdoll.Torso)
294+
						wait(2)
295-
			glue.Part0 = ragdoll.Torso
295+
296-
			glue.Part1 = ragdoll:findFirstChild("Left Leg")
296+
						break
297-
			glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
297+
298-
			glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
298+
299-
			local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
299+
300-
			limbcollider.Size = Vector3.new(1.4,1,1)
300+
301-
			limbcollider.Shape = "Cylinder"
301+
302-
			limbcollider.Name = "LimbCollider"
302+
303-
			limbcollider.Transparency = 1
303+
304-
			local limbcolliderweld = Instance.new("Weld", limbcollider)
304+
305-
			limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
305+
306-
			limbcolliderweld.Part1 = limbcollider
306+
307-
			limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
307+
						local allow = 0
308
						scphumanoid:MoveTo(v.Position) --...walk to it
309-
		if ragdoll:findFirstChild("Right Leg") then
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-
			local glue = Instance.new("Glue", ragdoll.Torso)
310+
							allow = allow + 1 
311-
			glue.Part0 = ragdoll.Torso
311+
							scphumanoid:MoveTo(v.Position)
312-
			glue.Part1 = ragdoll:findFirstChild("Right Leg")
312+
							wait()
313-
			glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
313+
314-
			glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
314+
						if v.Action == Enum.PathWaypointAction.Jump then
315-
			local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
315+
							scphumanoid.Jump = true
316-
			limbcollider.Size = Vector3.new(1.4,1,1)
316+
317-
			limbcollider.Shape = "Cylinder"
317+
						scphumanoid.WalkToPoint = victimhead.Position
318-
			limbcollider.Name = "LimbCollider"
318+
319-
			limbcollider.Transparency = 1
319+
320-
			local limbcolliderweld = Instance.new("Weld", limbcollider)
320+
321-
			limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
321+
322-
			limbcolliderweld.Part1 = limbcollider
322+
323-
			limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
323+
324
		spawn(chase) --chase
325-
		if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
325+
326-
			local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
326+
327-
			HeadAttachment.Position = Vector3.new(0, -0.5, 0)
327+
328-
			local connection = Instance.new('HingeConstraint', ragdoll["Head"])
328+
329-
			connection.LimitsEnabled = true
329+
330-
			connection.Attachment0 = ragdoll.Torso.NeckAttachment
330+
	Model0:Destroy()
331-
			connection.Attachment1 = HeadAttachment
331+
332-
			connection.UpperAngle = 60
332+
333-
			connection.LowerAngle = -60
333+
334-
		elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
334+
while wait() do --check animations and other things
335-
			local hedweld = Instance.new("Weld", ragdoll.Torso)
335+
	for i,v in pairs(game.Players:GetChildren()) do --scans all the players
336-
			hedweld.Part0 = ragdoll.Torso
336+
		if v.Character then --if player is even spawned
337-
			hedweld.Part1 = ragdoll.Head
337+
			local victimhead = v.Character:findFirstChild("Head") --finds head
338-
			hedweld.C0 = CFrame.new(0,1.5,0)
338+
			local humanoid = v.Character:findFirstChildOfClass("Humanoid") --finds humanoid
339
			if humanoid and victimhead then --if script found humanoid and head
340-
		game.Debris:AddItem(ragdoll, 60)
340+
				if (victimhead.Position - head.Position).magnitude < sight then
341-
	elseif character:findFirstChild("UpperTorso") then
341+
					chase(v.Character) --chase who
342-
		character.Archivable = true
342+
343-
		local ragdoll = character:Clone()
343+
344-
		ragdoll:findFirstChildOfClass("Humanoid").Health = 0
344+
345-
		if ragdoll:findFirstChild("Health") then
345+
346-
			if ragdoll:findFirstChild("Health").ClassName == "Script" then
346+
347-
				ragdoll:findFirstChild("Health").Disabled = true
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-
		for i,v in pairs(character:GetChildren()) do
350+
351-
			if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
351+
352-
				v:destroy()
352+
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-
		for i,v in pairs(character:GetChildren()) do
355+
				wait()
356-
			if v.ClassName == "Accessory" then
356+
357-
				local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
357+
358-
				if attachment1 then
358+
		for i = 0.2,0.8 , 0.09 do
359-
					for q,w in pairs(character:GetChildren()) do
359+
360-
						if w.ClassName == "Part" or w.ClassName == "MeshPart" then
360+
361-
							local attachment2 = w:findFirstChild(attachment1.Name)
361+
362-
							if attachment2 then
362+
363-
								local hinge = Instance.new("HingeConstraint", v.Handle)
363+
364-
								hinge.Attachment0 = attachment1
364+
365-
								hinge.Attachment1 = attachment2
365+
366-
								hinge.LimitsEnabled = true
366+
				wait()
367-
								hinge.LowerAngle = 0
367+
368-
								hinge.UpperAngle = 0
368+
369-
							end
369+
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-
		ragdoll.Parent = workspace
375+
376-
		local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
376+
377-
		Humanoid.PlatformStand = true
377+
378-
		local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
378+
379-
			local connection = Instance.new('BallSocketConstraint', limb)
379+
				wait()
380-
			connection.LimitsEnabled = true
380+
381-
			connection.Attachment0 = attachementone
381+
382-
			connection.Attachment1 = attachmenttwo
382+
383-
			connection.TwistLimitsEnabled = true
383+
384-
			connection.TwistLowerAngle = twistlower
384+
385-
			connection.TwistUpperAngle = twistupper
385+
386-
			local limbcollider = Instance.new("Part", limb)
386+
387-
			limbcollider.Size = Vector3.new(0.1,1,1)
387+
Part21.Name = "HumanoidRootPart"
388-
			limbcollider.Shape = "Cylinder"
388+
Part21.Parent = Model0
389-
			limbcollider.Transparency = 1
389+
Part21.CFrame = CFrame.new(-39.8000183, 5.49999714, -18.5007267, 1, 0, 0, 0, 1, 0, 0, 0, 1)
390-
			limbcollider:BreakJoints()
390+
Part21.Position = Vector3.new(-39.8000183, 5.49999714, -18.5007267)
391-
			local limbcolliderweld = Instance.new("Weld", limbcollider)
391+
Part21.Color = Color3.new(0.905882, 0.905882, 0.92549)
392-
			limbcolliderweld.Part0 = limb
392+
Part21.Transparency = 1
393-
			limbcolliderweld.Part1 = limbcollider
393+
Part21.Size = Vector3.new(1, 3, 2)
394-
			limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
394+
Part21.BottomSurface = Enum.SurfaceType.Smooth
395
Part21.BrickColor = BrickColor.new("Pearl")
396-
		local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
396+
Part21.TopSurface = Enum.SurfaceType.Smooth
397-
			local connection = Instance.new('HingeConstraint', limb)
397+
Part21.brickColor = BrickColor.new("Pearl")
398-
			connection.LimitsEnabled = true
398+
Motor6D22.Name = "RootJoint"
399-
			connection.Attachment0 = attachementone
399+
Motor6D22.Parent = Part21
400-
			connection.Attachment1 = attachmenttwo
400+
Motor6D22.Part0 = Part21
401-
			connection.LimitsEnabled = true
401+
Motor6D22.Part1 = Part3
402-
			connection.LowerAngle = lower
402+
Motor6D22.part1 = Part3
403-
			connection.UpperAngle = upper
403+
Model23.Name = "This is what player sees after death"
404-
			local limbcollider = Instance.new("Part", limb)
404+
Model23.Parent = Model0
405-
			limbcollider.Size = Vector3.new(0.1,1,1)
405+
ScreenGui24.Name = "Death"
406-
			limbcollider.Shape = "Cylinder"
406+
ScreenGui24.Parent = Model23
407-
			limbcollider.Transparency = 1
407+
Frame25.Parent = ScreenGui24
408-
			limbcollider:BreakJoints()
408+
Frame25.Size = UDim2.new(2, 0, 2, 0)
409-
			local limbcolliderweld = Instance.new("Weld", limbcollider)
409+
Frame25.BackgroundColor = BrickColor.new("Really black")
410-
			limbcolliderweld.Part0 = limb
410+
Frame25.BackgroundColor3 = Color3.new(0, 0, 0)
411-
			limbcolliderweld.Part1 = limbcollider
411+
Part26.Name = "facepart"
412-
			limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
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-
		local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
414+
Part26.Position = Vector3.new(-39.9000168, 7.49999714, -18.5007267)
415-
		HeadAttachment.Position = Vector3.new(0, -0.5, 0)
415+
Part26.Transparency = 1
416-
		makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
416+
Part26.Size = Vector3.new(1, 1, 1)
417-
		makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
417+
Part26.BottomSurface = Enum.SurfaceType.Smooth
418-
		makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
418+
Part26.TopSurface = Enum.SurfaceType.Smooth
419-
		makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
419+
Decal27.Name = "face"
420-
		makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
420+
Decal27.Parent = Part26
421-
		--
421+
Decal27.Texture = "http://www.roblox.com/asset/?id=146142799"
422-
		makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
422+
Decal27.Face = Enum.NormalId.Left
423-
		makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
423+
424-
		makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
424+
425-
		--
425+
426-
		makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
426+
427-
		makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
427+
428-
		makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
428+
429-
		--
429+
430-
		makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
430+
431-
		makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
431+
432-
		makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
432+