View difference between Paste ID: tr2Ukxps and 8uMEM3mG
SHOW: | | - or go back to the newest paste.
1-
--By Rufus14 Showcase by purpleguy2playZ
1+
-----------------------------------
2-
wait(2)
2+
3-
script.Parent = nil
3+
--Made by goodguyaiden-------------
4-
mouse = game.Players.LocalPlayer:GetMouse()
4+
--Zombie---------------------------
5-
local aaabegone = Instance.new("Sound", workspace)
5+
--its going to need to take a sec--
6-
aaabegone.SoundId = "rbxassetid://131057316"
6+
7-
aaabegone.Volume = 10
7+
-----------------------------------
8-
aaabegone:Play()
8+
9-
print("Script by Rufus14 Showcase by purpleguy2playZ")
9+
Char= game.Players.LocalPlayer.Character
10-
--Converted with ttyyuu12345's model to script plugin v4
10+
11-
function sandbox(var,func)
11+
12-
	local env = getfenv(func)
12+
Script1 = Instance.new("Script")
13-
	local newenv = setmetatable({},{
13+
Part2 = Instance.new("Part")
14-
		__index = function(self,k)
14+
Script3 = Instance.new("Script")
15-
			if k=="script" then
15+
Part0.Name = "zarm2"
16-
				return var
16+
Part0.Parent = Char
17
Part0.BrickColor = BrickColor.new("Medium green")
18-
				return env[k]
18+
Part0.Rotation = Vector3.new(0, -90, 0)
19
Part0.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
20-
		end,
20+
Part0.Velocity = Vector3.new(3.66463371e-20, 0.00686328812, 3.69331555e-20)
21
Part0.FormFactor = Enum.FormFactor.Symmetric
22-
	setfenv(func,newenv)
22+
Part0.Size = Vector3.new(2, 1, 1)
23-
	return func
23+
Part0.CFrame = CFrame.new(-22.1300011, 3.49999905, 24.6800003, 0, 0, -1, 0, 1, 0, 1, 0, 0)
24
Part0.BottomSurface = Enum.SurfaceType.Smooth
25-
cors = {}
25+
26-
mas = Instance.new("Model",game:GetService("Lighting"))
26+
Part0.Color = Color3.new(0.631373, 0.768628, 0.54902)
27-
Model0 = Instance.new("Model")
27+
Part0.Position = Vector3.new(-22.1300011, 3.49999905, 24.6800003)
28-
Part1 = Instance.new("Part")
28+
Part0.Orientation = Vector3.new(0, -90, 0)
29-
SpecialMesh2 = Instance.new("SpecialMesh")
29+
Part0.Color = Color3.new(0.631373, 0.768628, 0.54902)
30-
Decal3 = Instance.new("Decal")
30+
Script1.Parent = Part0
31-
Part4 = Instance.new("Part")
31+
32-
Decal5 = Instance.new("Decal")
32+
33-
RightShoulder = Instance.new("Motor")
33+
Part2.Name = "zarm"
34-
LeftShoulder = Instance.new("Motor")
34+
Part2.Parent = Char
35-
RightHip = Instance.new("Motor")
35+
Part2.BrickColor = BrickColor.new("Medium green")
36-
LeftHip = Instance.new("Motor")
36+
Part2.Rotation = Vector3.new(0, -90, 0)
37-
Neck = Instance.new("Motor")
37+
Part2.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
38-
Part11 = Instance.new("Part")
38+
Part2.Velocity = Vector3.new(3.66463371e-20, 0.00686328812, 3.59320666e-20)
39-
Part12 = Instance.new("Part")
39+
Part2.FormFactor = Enum.FormFactor.Symmetric
40-
Part13 = Instance.new("Part")
40+
Part2.Size = Vector3.new(2, 1, 1)
41-
Part14 = Instance.new("Part")
41+
Part2.CFrame = CFrame.new(-19.1300011, 3.49999905, 24.6800003, 0, 0, -1, 0, 1, 0, 1, 0, 0)
42-
Humanoid15 = Instance.new("Humanoid")
42+
Part2.BottomSurface = Enum.SurfaceType.Smooth
43-
Model0.Name = "Scp-008 Infected"
43+
Part2.TopSurface = Enum.SurfaceType.Smooth
44-
Model0.Parent = mas
44+
Part2.Color = Color3.new(0.631373, 0.768628, 0.54902)
45-
Model0.PrimaryPart = Part1
45+
Part2.Position = Vector3.new(-19.1300011, 3.49999905, 24.6800003)
46-
Part1.Name = "Head"
46+
Part2.Orientation = Vector3.new(0, -90, 0)
47-
Part1.Parent = Model0
47+
Part2.Color = Color3.new(0.631373, 0.768628, 0.54902)
48-
Part1.BrickColor = BrickColor.new("Really black")
48+
Script3.Parent = Part2
49-
Part1.FormFactor = Enum.FormFactor.Symmetric
49+
50-
Part1.Size = Vector3.new(2, 1, 1)
50+
51-
Part1.CFrame = CFrame.new(-0.700021029, 4.49999905, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
51+
local parts = Char:GetChildren()
52-
Part1.TopSurface = Enum.SurfaceType.Smooth
52+
			for i,part in pairs(parts)do
53-
Part1.Color = Color3.new(0.0588235, 0.258824, 0.00392157)
53+
				if part.ClassName == "Part" or part.Name == "Head" or part.Name == "HumanoidRootPart"  then
54-
Part1.Position = Vector3.new(-0.700021029, 4.49999905, 2.99999809)
54+
                
55-
Part1.Color = Color3.new(0.0588235, 0.258824, 0.00392157)
55+
                 
56-
SpecialMesh2.Parent = Part1
56+
          
57-
SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
57+
58-
SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
58+
59-
Decal3.Name = "face"
59+
60-
Decal3.Parent = Part1
60+
61-
Decal3.Texture = "http://www.roblox.com/asset/?id=51827997"
61+
function OnTouched(part2)
62-
Part4.Name = "Torso"
62+
	local humanoid = part2.Parent:FindFirstChild("Humanoid") 
63-
Part4.Parent = Model0
63+
	if (humanoid ~= nil) then
64-
Part4.BrickColor = BrickColor.new("Black")
64+
   
65-
Part4.FormFactor = Enum.FormFactor.Symmetric
65+
   humanoid.Health = humanoid.Health - 0.05
66-
Part4.Size = Vector3.new(2, 2, 1)
66+
    humanoid.AutoRotate = true
67-
Part4.CFrame = CFrame.new(-0.700021029, 2.99999905, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
67+
	humanoid.Sit = true
68-
Part4.LeftSurface = Enum.SurfaceType.Weld
68+
69-
Part4.RightSurface = Enum.SurfaceType.Weld
69+
70-
Part4.Color = Color3.new(0.0156863, 0.14902, 0.243137)
70+
71-
Part4.Position = Vector3.new(-0.700021029, 2.99999905, 2.99999809)
71+
72-
Part4.Color = Color3.new(0.0156863, 0.14902, 0.243137)
72+
73-
Decal5.Name = "roblox"
73+
74-
Decal5.Parent = Part4
74+
part.Touched:connect(OnTouched)
75-
RightShoulder.Name = "Right Shoulder"
75+
76-
RightShoulder.Parent = Part4
76+
77-
RightShoulder.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
77+
78-
RightShoulder.Part0 = Part4
78+
79-
RightShoulder.Part1 = Part12
79+
wait(1)
80-
RightShoulder.MaxVelocity = 0.15000000596046
80+
owner=game.Players.LocalPlayer.Name
81-
LeftShoulder.Name = "Left Shoulder"
81+
82-
LeftShoulder.Parent = Part4
82+
function onTouched(part23)
83-
LeftShoulder.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
83+
	if part23.Parent ~= nil then
84-
LeftShoulder.Part0 = Part4
84+
		local h = part23.Parent:findFirstChild("Humanoid")
85-
LeftShoulder.Part1 = Part11
85+
			if h~=nil then
86-
LeftShoulder.MaxVelocity = 0.15000000596046
86+
				if cantouch~=0 then
87-
RightHip.Name = "Right Hip"
87+
					if h.Parent.Name~=owner then
88-
RightHip.Parent = Part4
88+
						
89-
RightHip.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
89+
						if h.Parent:findFirstChild("zarm")~=nil then return end
90-
RightHip.Part0 = Part4
90+
91-
RightHip.Part1 = Part14
91+
						cantouch=0
92-
RightHip.MaxVelocity = 0.10000000149012
92+
93-
LeftHip.Name = "Left Hip"
93+
						local larm=h.Parent:findFirstChild("Left Arm")
94-
LeftHip.Parent = Part4
94+
						local rarm=h.Parent:findFirstChild("Right Arm")
95-
LeftHip.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
95+
						
96-
LeftHip.Part0 = Part4
96+
						if larm~=nil then
97-
LeftHip.Part1 = Part13
97+
							larm:remove()
98-
LeftHip.MaxVelocity = 0.10000000149012
98+
99-
Neck.Name = "Neck"
99+
						if rarm~=nil then
100-
Neck.Parent = Part4
100+
							rarm:remove()
101-
Neck.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
101+
102-
Neck.Part0 = Part4
102+
						local zee= Char:FindFirstChild("zarm2")
103-
Neck.Part1 = Part1
103+
						if zee~=nil then
104-
Neck.MaxVelocity = 0.10000000149012
104+
							local zlarm=zee:clone()
105-
Part11.Name = "Left Arm"
105+
							local zrarm=zee:clone()
106-
Part11.Parent = Model0
106+
							if zlarm~=nil then
107-
Part11.BrickColor = BrickColor.new("Maroon")
107+
108-
Part11.CanCollide = false
108+
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
109-
Part11.FormFactor = Enum.FormFactor.Symmetric
109+
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
110-
Part11.Size = Vector3.new(1, 2, 1)
110+
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
111-
Part11.CFrame = CFrame.new(-2.20002103, 2.99999905, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
111+
								zlarm.Parent=h.Parent
112-
Part11.Color = Color3.new(0.309804, 0.00392157, 0.00392157)
112+
								zrarm.Parent=h.Parent
113-
Part11.Position = Vector3.new(-2.20002103, 2.99999905, 2.99999809)
113+
								zlarm:makeJoints()
114-
Part11.Color = Color3.new(0.309804, 0.00392157, 0.00392157)
114+
								zrarm:makeJoints()
115-
Part12.Name = "Right Arm"
115+
								zlarm.Anchored=false
116-
Part12.Parent = Model0
116+
								zrarm.Anchored=false
117-
Part12.BrickColor = BrickColor.new("Earth green")
117+
								wait(0.1)
118-
Part12.CanCollide = false
118+
								h.Parent.Head.Color=zee.Color
119-
Part12.FormFactor = Enum.FormFactor.Symmetric
119+
							else print("no zee"); return end
120-
Part12.Size = Vector3.new(1, 2, 1)
120+
121-
Part12.CFrame = CFrame.new(0.799978971, 2.99999905, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
121+
						wait(1)
122-
Part12.Color = Color3.new(0.0666667, 0.290196, 0.0156863)
122+
						cantouch=1
123-
Part12.Position = Vector3.new(0.799978971, 2.99999905, 2.99999809)
123+
124-
Part12.Color = Color3.new(0.0666667, 0.290196, 0.0156863)
124+
125-
Part13.Name = "Left Leg"
125+
126-
Part13.Parent = Model0
126+
127-
Part13.BrickColor = BrickColor.new("Earth yellow")
127+
128-
Part13.CanCollide = false
128+
129-
Part13.FormFactor = Enum.FormFactor.Symmetric
129+
part.Touched:connect(onTouched)
130-
Part13.Size = Vector3.new(1, 2, 1)
130+
131-
Part13.CFrame = CFrame.new(-1.20002103, 0.999999046, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
131+
132-
Part13.BottomSurface = Enum.SurfaceType.Smooth
132+
wait(1)
133-
Part13.TopSurface = Enum.SurfaceType.Inlet
133+
owner=game.Players.LocalPlayer.Name
134-
Part13.Color = Color3.new(0.396078, 0.454902, 0.168627)
134+
135-
Part13.Position = Vector3.new(-1.20002103, 0.999999046, 2.99999809)
135+
function onTouched2(part3)
136-
Part13.Color = Color3.new(0.396078, 0.454902, 0.168627)
136+
	if part3.Parent ~= nil then
137-
Part14.Name = "Right Leg"
137+
		local h = part3.Parent:findFirstChild("Humanoid")
138-
Part14.Parent = Model0
138+
			if h~=nil then
139-
Part14.BrickColor = BrickColor.new("Earth yellow")
139+
				if cantouch~=0 then
140-
Part14.CanCollide = false
140+
					if h.Parent.Name~=owner then
141-
Part14.FormFactor = Enum.FormFactor.Symmetric
141+
						
142-
Part14.Size = Vector3.new(1, 2, 1)
142+
						if h.Parent:findFirstChild("zarm")~=nil then return end
143-
Part14.CFrame = CFrame.new(-0.200021029, 0.999999046, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
143+
144-
Part14.BottomSurface = Enum.SurfaceType.Smooth
144+
						cantouch=0
145-
Part14.TopSurface = Enum.SurfaceType.Inlet
145+
146-
Part14.Color = Color3.new(0.396078, 0.454902, 0.168627)
146+
						local larm=h.Parent:findFirstChild("Left Arm")
147-
Part14.Position = Vector3.new(-0.200021029, 0.999999046, 2.99999809)
147+
						local rarm=h.Parent:findFirstChild("Right Arm")
148-
Part14.Color = Color3.new(0.396078, 0.454902, 0.168627)
148+
						
149-
Humanoid15.Parent = Model0
149+
						if larm~=nil then
150-
Humanoid15.NameOcclusion = Enum.NameOcclusion.NoOcclusion
150+
							larm:remove()
151-
Humanoid15.RightLeg = Part14
151+
152-
Humanoid15.LeftLeg = Part13
152+
						if rarm~=nil then
153-
Humanoid15.Torso = Part4
153+
							rarm:remove()
154-
for i,v in pairs(mas:GetChildren()) do
154+
155-
	v.Parent = workspace
155+
						local zee= Char:FindFirstChild("zarm")
156-
	pcall(function() v:MakeJoints() end)
156+
						if zee~=nil then
157
							local zlarm=zee:clone()
158-
mas:Destroy()
158+
							local zrarm=zee:clone()
159-
for i,v in pairs(cors) do
159+
							if zlarm~=nil then
160-
	spawn(function()
160+
161-
		pcall(v)
161+
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
162
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
163
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
164-
local zombiebool = Instance.new("BoolValue", Model0)
164+
								zlarm.Parent=h.Parent
165-
zombiebool.Name = "ImAZombie"
165+
								zrarm.Parent=h.Parent
166-
--Converted with ttyyuu12345's model to script plugin v4
166+
								zlarm:makeJoints()
167-
function sandbox(var,func)
167+
								zrarm:makeJoints()
168-
	local env = getfenv(func)
168+
								zlarm.Anchored=false
169-
	local newenv = setmetatable({},{
169+
								zrarm.Anchored=false
170-
		__index = function(self,k)
170+
								wait(0.1)
171-
			if k=="script" then
171+
								h.Parent.Head.Color=zee.Color
172-
				return var
172+
							else print("no zee"); return end
173
						end
174-
				return env[k]
174+
						wait(1)
175
						cantouch=1
176-
		end,
176+
177
				end
178-
	setfenv(func,newenv)
178+
179-
	return func
179+
180
end
181-
cors = {}
181+
182-
mas = Instance.new("Model",game:GetService("Lighting"))
182+
part.Touched:connect(onTouched2)
183-
ded4 = Instance.new("Sound")
183+
184-
ded3 = Instance.new("Sound")
184+
185-
ded2 = Instance.new("Sound")
185+
186-
attacc1 = Instance.new("Sound")
186+
187-
attacc = Instance.new("Sound")
187+
wait(0.2)
188-
alldied = Instance.new("Sound")
188+
plr = game.Players.LocalPlayer
189-
spawnz = Instance.new("Sound")
189+
repeat wait() until plr.Character
190-
ded1 = Instance.new("Sound")
190+
char = plr.Character
191-
ded4.Name = "ded4"
191+
local mouse = plr:GetMouse()
192-
ded4.Parent = mas
192+
local Player = game:service'Players'.localPlayer
193-
ded4.Volume = 10
193+
local chara = Player.Character
194-
ded4.SoundId = "rbxassetid://131138845"
194+
Player=game:GetService("Players").LocalPlayer
195-
ded3.Name = "ded3"
195+
Character=Player.Character 
196-
ded3.Parent = mas
196+
PlayerGui=Player.PlayerGui
197-
ded3.Volume = 10
197+
Backpack=Player.Backpack 
198-
ded3.SoundId = "rbxassetid://131138850"
198+
Torso=Character.Torso 
199-
ded2.Name = "ded2"
199+
Head=Character.Head 
200-
ded2.Parent = mas
200+
Humanoid=Character.Humanoid
201-
ded2.Volume = 10
201+
m=Instance.new('Model',Character)
202-
ded2.SoundId = "rbxassetid://131138839"
202+
LeftArm=Character["Left Arm"] 
203-
attacc1.Name = "attacc1"
203+
LeftLeg=Character["Left Leg"] 
204-
attacc1.Parent = mas
204+
RightArm=Character["Right Arm"] 
205-
attacc1.Volume = 10
205+
RightLeg=Character["Right Leg"] 
206-
attacc1.SoundId = "rbxassetid://131138835"
206+
LS=Torso["Left Shoulder"] 
207-
attacc.Name = "attacc"
207+
LH=Torso["Left Hip"] 
208-
attacc.Parent = mas
208+
RS=Torso["Right Shoulder"] 
209-
attacc.Volume = 10
209+
RH=Torso["Right Hip"] 
210-
attacc.SoundId = "rbxassetid://131138828"
210+
Face = Head.face
211-
alldied.Name = "zombiedied"
211+
Neck=Torso.Neck
212-
alldied.Parent = mas
212+
it=Instance.new
213-
alldied.Volume = 10
213+
attacktype=1
214-
alldied.SoundId = "rbxassetid://131058078"
214+
vt=Vector3.new
215-
spawnz.Name = "spawn1"
215+
cf=CFrame.new
216-
spawnz.Parent = mas
216+
cl3=Color3.new
217-
spawnz.Volume = 10
217+
rgb=Color3.fromRGB
218-
spawnz.SoundId = "rbxassetid://131060194"
218+
bcn=BrickColor.new
219-
ded1.Name = "ded1"
219+
euler=CFrame.fromEulerAnglesXYZ
220-
ded1.Parent = mas
220+
angles=CFrame.Angles
221-
ded1.Volume = 10
221+
Humanoid.WalkSpeed = 41
222-
ded1.SoundId = "rbxassetid://131138860"
222+
Player = game:GetService("Players").LocalPlayer
223-
for i,v in pairs(mas:GetChildren()) do
223+
PlayerGui = Player.PlayerGui
224-
	v.Parent = workspace
224+
Cam = workspace.CurrentCamera
225-
	pcall(function() v:MakeJoints() end)
225+
Backpack = Player.Backpack
226
Character = Player.Character
227-
mas:Destroy()
227+
Humanoid = Character.Humanoid
228-
for i,v in pairs(cors) do
228+
Mouse = Player:GetMouse()
229-
	spawn(function()
229+
RootPart = Character["HumanoidRootPart"]
230-
		pcall(v)
230+
Torso = Character["Torso"]
231
Head = Character["Head"]
232
RightArm = Character["Right Arm"]
233-
randomvictim = nil
233+
LeftArm = Character["Left Arm"]
234-
--Converted with ttyyuu12345's model to script plugin v4
234+
RightLeg = Character["Right Leg"]
235-
function sandbox(var,func)
235+
LeftLeg = Character["Left Leg"]
236-
	local env = getfenv(func)
236+
RootJoint = RootPart["RootJoint"]
237-
	local newenv = setmetatable({},{
237+
Neck = Torso["Neck"]
238-
		__index = function(self,k)
238+
RightShoulder = Torso["Right Shoulder"]
239-
			if k=="script" then
239+
LeftShoulder = Torso["Left Shoulder"]
240-
				return var
240+
RightHip = Torso["Right Hip"]
241
LeftHip = Torso["Left Hip"]
242-
				return env[k]
242+
Sound0 = Instance.new("Sound")
243
Sound0.Volume = 25
244-
		end,
244+
Sound0.Parent = game.Players.LocalPlayer.Character.Head
245
Sound0.SoundId = "rbxassetid://27697743"
246-
	setfenv(func,newenv)
246+
Sound0.Looped = true
247-
	return func
247+
Sound0:Play()
248
IT = Instance.new
249-
cors = {}
249+
CF = CFrame.new
250-
mas = Instance.new("Model",game:GetService("Lighting"))
250+
VT = Vector3.new
251
RAD = math.rad
252-
Attachment1 = Instance.new("Attachment")
252+
C3 = Color3.new
253-
humanoidrootpart = Instance.new("Motor6D")
253+
UD2 = UDim2.new
254-
Part0.Name = "HumanoidRootPart"
254+
BRICKC = BrickColor.new
255-
Part0.Parent = Model0
255+
ANGLES = CFrame.Angles
256-
Part0.Transparency = 1
256+
EULER = CFrame.fromEulerAnglesXYZ
257-
Part0.CanCollide = false
257+
COS = math.cos
258-
Part0.Locked = true
258+
ACOS = math.acos
259
SIN = math.sin
260-
Part0.Size = Vector3.new(2, 2, 1)
260+
ASIN = math.asin
261-
Part0.CFrame = CFrame.new(0, 3, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
261+
ABS = math.abs
262
MRANDOM = math.random
263
FLOOR = math.floor
264-
Part0.Position = Vector3.new(0, 3, 0)
264+
Animation_Speed = 3
265-
Attachment1.Name = "RootAttachment"
265+
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
266-
Attachment1.Parent = Part0
266+
local Speed = 12
267-
humanoidrootpart.Name = "RootJoint"
267+
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
268-
humanoidrootpart.Parent = Part0
268+
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
269-
humanoidrootpart.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
269+
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
270-
humanoidrootpart.Part0 = Part0
270+
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
271-
humanoidrootpart.Part1 = Part4
271+
local DAMAGEMULTIPLIER = 1
272-
humanoidrootpart.MaxVelocity = 0.10000000149012
272+
local ANIM = "Idle"
273-
for i,v in pairs(mas:GetChildren()) do
273+
local ATTACK = false
274-
	v.Parent = Model0
274+
local EQUIPPED = false
275-
	pcall(function() v:MakeJoints() end)
275+
local HOLD = false
276
local COMBO = 1
277-
mas:Destroy()
277+
local Rooted = false
278-
for i,v in pairs(cors) do
278+
local SINE = 0
279-
	spawn(function()
279+
local KEYHOLD = false
280-
		pcall(v)
280+
local CHANGE = 2 / Animation_Speed
281
local WALKINGANIM = false
282
local VALUE1 = false
283-
spawnz:Play()
283+
local VALUE2 = false
284-
Humanoid15.WalkSpeed = 17
284+
local ROBLOXIDLEANIMATION = IT("Animation")
285-
Humanoid15.MaxHealth = 500
285+
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
286-
Humanoid15.Health = 500
286+
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
287-
function diiiie()
287+
--ROBLOXIDLEANIMATION.Parent = Humanoid
288-
	ded1:Play()
288+
local WEAPONGUI = IT("ScreenGui", PlayerGui)
289-
	local corpseclone = Humanoid15.Parent:Clone()
289+
WEAPONGUI.Name = "Weapon GUI"
290-
	for i,v in pairs(Humanoid15.Parent:GetChildren()) do
290+
local Weapon = IT("Model")
291-
		if v.ClassName == "Part" then
291+
Weapon.Name = "Adds"
292-
			v:destroy()
292+
local Effects = IT("Folder", Weapon)
293
Effects.Name = "Effects"
294
local ANIMATOR = Humanoid.Animator
295-
	for i,v in pairs(Humanoid15.Parent:GetChildren()) do
295+
local ANIMATE = Character.Animate
296-
		if v.ClassName == "LocalScript" or v.ClassName == "Script" then
296+
local UNANCHOR = true
297-
			v:Remove()
297+
local PLAYANIMS = true
298
ArtificialHB = Instance.new("BindableEvent", script)
299
ArtificialHB.Name = "ArtificialHB"
300-
	corpseclone.Parent = workspace
300+
301-
	local function serch(part)
301+
script:WaitForChild("ArtificialHB")
302-
		for i,v in pairs(part:GetChildren()) do
302+
303-
			serch(v)
303+
frame = Frame_Speed
304-
			if v.Name == "Weld" or v.Name == "Motor6D" then
304+
tf = 0
305-
				v:Remove()
305+
allowframeloss = false
306
tossremainder = false
307
lastframe = tick()
308
script.ArtificialHB:Fire()
309-
	serch(corpseclone)
309+
310-
	corpseclone.Name = corpseclone.Name.." (Dead)"
310+
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
311-
		                                local glue = Instance.new("Glue",  corpseclone.Torso)
311+
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
312-
		                                glue.Part0 = corpseclone.Torso
312+
313-
		                                glue.Part1 = corpseclone["Left Leg"]
313+
314-
		                                glue.Name = "Left leg"
314+
function PositiveAngle(NUMBER)
315-
		                                local collider = Instance.new("Part",  corpseclone["Left Leg"])
315+
	if NUMBER >= 0 then
316-
		                                collider.Position = Vector3.new(0,999,0)
316+
		NUMBER = 0
317-
		                                collider.Size = Vector3.new(1.5, 1, 1)
317+
318-
		                                collider.Shape = "Cylinder"
318+
	return NUMBER
319-
		                                local weld = Instance.new("Weld", collider)
319+
320-
		                                weld.Part0 =  corpseclone["Left Leg"]
320+
321-
		                                weld.Part1 = collider
321+
function NegativeAngle(NUMBER)
322-
		                                weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
322+
	if NUMBER <= 0 then
323-
		                                collider.TopSurface = "Smooth"
323+
		NUMBER = 0
324-
		                                collider.BottomSurface = "Smooth"
324+
325-
		                                collider.formFactor = "Symmetric"
325+
	return NUMBER
326-
		                                glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
326+
327-
		                                glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
327+
328-
		                                collider.Transparency = 1
328+
function Swait(NUMBER)
329-
		                            --
329+
	if NUMBER == 0 or NUMBER == nil then
330-
		                                local glue = Instance.new("Glue",  corpseclone.Torso)
330+
		ArtificialHB.Event:wait()
331-
		                                glue.Part0 = corpseclone.Torso
331+
	else
332-
		                                glue.Part1 = corpseclone["Right Leg"]
332+
		for i = 1, NUMBER do
333-
		                                glue.Name = "Right leg"
333+
			ArtificialHB.Event:wait()
334-
		                                local collider = Instance.new("Part",  corpseclone["Right Leg"])
334+
335-
		                                collider.Position = Vector3.new(0,999,0)
335+
336-
		                                collider.Size = Vector3.new(1.5, 1, 1)
336+
337-
		                                collider.Shape = "Cylinder"
337+
338-
		                                local weld = Instance.new("Weld", collider)
338+
function QuaternionFromCFrame(cf)
339-
		                                weld.Part0 =  corpseclone["Right Leg"]
339+
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
340-
		                                weld.Part1 = collider
340+
	local trace = m00 + m11 + m22
341-
		                                weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
341+
	if trace > 0 then 
342-
		                                collider.TopSurface = "Smooth"
342+
		local s = math.sqrt(1 + trace)
343-
		                                collider.BottomSurface = "Smooth"
343+
		local recip = 0.5 / s
344-
		                                collider.formFactor = "Symmetric"
344+
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
345-
		                                glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
345+
	else
346-
		                                glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
346+
		local i = 0
347-
		                                collider.Transparency = 1
347+
		if m11 > m00 then
348-
		                            --
348+
			i = 1
349-
		                                local glue = Instance.new("Glue",  corpseclone.Torso)
349+
350-
		                                glue.Part0 = corpseclone.Torso
350+
		if m22 > (i == 0 and m00 or m11) then
351-
		                                glue.Part1 = corpseclone["Right Arm"]
351+
			i = 2
352-
		                                glue.Name = "Right arm"
352+
353-
		                                local collider = Instance.new("Part",  corpseclone["Right Arm"])
353+
		if i == 0 then
354-
		                                collider.Position = Vector3.new(0,999,0)
354+
			local s = math.sqrt(m00 - m11 - m22 + 1)
355-
		                                collider.Size = Vector3.new(1.5, 1, 1)
355+
			local recip = 0.5 / s
356-
		                                collider.Shape = "Cylinder"
356+
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
357-
		                                local weld = Instance.new("Weld", collider)
357+
		elseif i == 1 then
358-
		                                weld.Part0 =  corpseclone["Right Arm"]
358+
			local s = math.sqrt(m11 - m22 - m00 + 1)
359-
		                                weld.Part1 = collider
359+
			local recip = 0.5 / s
360-
		                                weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
360+
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
361-
		                                collider.TopSurface = "Smooth"
361+
		elseif i == 2 then
362-
		                                collider.BottomSurface = "Smooth"
362+
			local s = math.sqrt(m22 - m00 - m11 + 1)
363-
		                                collider.formFactor = "Symmetric"
363+
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
364-
		                                glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
364+
365-
		                                glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
365+
366-
		                                collider.Transparency = 1
366+
367-
		                            --
367+
 
368-
		                                local glue = Instance.new("Glue",  corpseclone.Torso)
368+
function QuaternionToCFrame(px, py, pz, x, y, z, w)
369-
		                                glue.Part0 = corpseclone.Torso
369+
	local xs, ys, zs = x + x, y + y, z + z
370-
		                                glue.Part1 = corpseclone["Left Arm"]
370+
	local wx, wy, wz = w * xs, w * ys, w * zs
371-
		                                glue.Name = "Left arm"
371+
	local xx = x * xs
372-
		                                local collider = Instance.new("Part",  corpseclone["Left Arm"])
372+
	local xy = x * ys
373-
		                                collider.Position = Vector3.new(0,999,0)
373+
	local xz = x * zs
374-
		                                collider.Size = Vector3.new(1.5, 1, 1)
374+
	local yy = y * ys
375-
		                                collider.Shape = "Cylinder"
375+
	local yz = y * zs
376-
		                                local weld = Instance.new("Weld", collider)
376+
	local zz = z * zs
377-
		                                weld.Part0 =  corpseclone["Left Arm"]
377+
	return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
378-
		                                weld.Part1 = collider
378+
379-
		                                weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
379+
 
380-
		                                collider.TopSurface = "Smooth"
380+
function QuaternionSlerp(a, b, t)
381-
		                                collider.BottomSurface = "Smooth"
381+
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
382-
		                                collider.formFactor = "Symmetric"
382+
	local startInterp, finishInterp;
383-
		                                glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
383+
	if cosTheta >= 0.0001 then
384-
		                                glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
384+
		if (1 - cosTheta) > 0.0001 then
385-
		                                collider.Transparency = 1
385+
			local theta = ACOS(cosTheta)
386-
		                            local findhead = corpseclone:findFirstChild("Head")
386+
			local invSinTheta = 1 / SIN(theta)
387-
		                            if findhead and corpseclone.Torso:findFirstChild("NeckAttachment") then
387+
			startInterp = SIN((1 - t) * theta) * invSinTheta
388-
		                                local attachment = Instance.new("Attachment", corpseclone.Head)
388+
			finishInterp = SIN(t * theta) * invSinTheta
389-
		                                attachment.Position = Vector3.new(0, -0.5, 0)
389+
390-
		                                attachment.Name = "lol"
390+
			startInterp = 1 - t
391-
		                                attachment.Visible = false
391+
			finishInterp = t
392-
		                                corpseclone.Torso.NeckAttachment.Visible = false
392+
393-
		                                corpseclone.Torso.NeckAttachment.Position = corpseclone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
393+
	else
394-
		                                local ball = Instance.new("BallSocketConstraint", corpseclone)
394+
		if (1 + cosTheta) > 0.0001 then
395-
		                                ball.Attachment0 = corpseclone.Torso.NeckAttachment
395+
			local theta = ACOS(-cosTheta)
396-
		                                ball.Attachment1 = attachment
396+
			local invSinTheta = 1 / SIN(theta)
397-
		                                ball.LimitsEnabled = true
397+
			startInterp = SIN((t - 1) * theta) * invSinTheta
398-
		                                ball.TwistLimitsEnabled = true
398+
			finishInterp = SIN(t * theta) * invSinTheta
399-
		                                ball.UpperAngle = 90
399+
400-
		                                ball.Restitution = 0.5
400+
			startInterp = t - 1
401-
		                                ball.TwistUpperAngle = 90
401+
			finishInterp = t
402-
		                                ball.TwistLowerAngle = -90
402+
403-
		                                local  collidepartofleftleg = Instance.new("Part", corpseclone.Torso)
403+
404-
		                                collidepartofleftleg.Name = "Bone"
404+
	return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
405-
		                                collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
405+
406-
		                                collidepartofleftleg.Transparency = 1
406+
407-
		                                collidepartofleftleg:BreakJoints()
407+
function Clerp(a, b, t)
408-
		                                local weeld = Instance.new("Weld", collidepartofleftleg)
408+
	local qa = {QuaternionFromCFrame(a)}
409-
		                                weeld.Part0 = collidepartofleftleg
409+
	local qb = {QuaternionFromCFrame(b)}
410-
		                                weeld.Part1 = corpseclone["Head"]
410+
	local ax, ay, az = a.x, a.y, a.z
411-
		                                if corpseclone.Torso:findFirstChild("Neck") then
411+
	local bx, by, bz = b.x, b.y, b.z
412-
		                                    corpseclone.Torso.Neck:destroy()
412+
	local _t = 1 - t
413-
		                                end
413+
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
414-
		                            end
414+
415-
		wait(10)
415+
416-
				corpseclone:destroy()
416+
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
417
	local frame = IT("Frame")
418-
Humanoid15.Died:connect(diiiie)
418+
	frame.BackgroundTransparency = TRANSPARENCY
419-
for i = 0,1 , 0.03 do
419+
	frame.BorderSizePixel = BORDERSIZEPIXEL
420-
	Neck.C0 = Neck.C0:lerp(CFrame.new(0, 1.4826355, -0.0984807983, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),i)
420+
	frame.Position = POSITION
421-
	humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -0.0174310207, 0.199238777, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736):inverse(),i)
421+
	frame.Size = SIZE
422-
	RightHip.C0 = RightHip.C0:lerp(CFrame.new(0.5, -2, -0.299999982, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736),i)
422+
	frame.BackgroundColor3 = COLOR
423-
	LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(-0.5, -2, -0.299999982, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736),i)
423+
	frame.BorderColor3 = BORDERCOLOR
424-
	LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(-1.5, -0.0999999046, -0.400000006, 1, 0, 0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876),i)
424+
	frame.Name = NAME
425-
	RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(1.5, -0.0999999046, -0.400000006, 1, 0, 0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876),i)
425+
	frame.Parent = PARENT
426-
	game:GetService("RunService").RenderStepped:wait()
426+
	return frame
427
end
428-
canattacc = true
428+
429-
function search()
429+
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
430-
	for i,v in pairs(workspace:GetChildren()) do
430+
	local label = IT("TextLabel")
431-
		if v.ClassName == "Model" then
431+
	label.BackgroundTransparency = 1
432-
			local humanoid = v:findFirstChildOfClass("Humanoid")
432+
	label.Size = UD2(1, 0, 1, 0)
433-
			local torso = v:findFirstChild("Torso")
433+
	label.Position = UD2(0, 0, 0, 0)
434-
			local imzomb = v:findFirstChild("ImAZombie")
434+
	label.TextColor3 = TEXTCOLOR
435-
			if humanoid and torso then
435+
	label.TextStrokeTransparency = STROKETRANSPARENCY
436-
				if imzomb then
436+
	label.TextTransparency = TRANSPARENCY
437-
					
437+
	label.FontSize = TEXTFONTSIZE
438-
				else
438+
	label.Font = TEXTFONT
439-
					randomvictim = torso
439+
	label.BorderSizePixel = BORDERSIZEPIXEL
440-
				end	
440+
	label.TextScaled = false
441
	label.Text = TEXT
442
	label.Name = NAME
443
	label.Parent = PARENT
444-
	print("Found: "..randomvictim.Parent.Name)
444+
	return label
445
end
446-
search()
446+
447-
function attaccing(part)
447+
m = game.Players.LocalPlayer
448-
	local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
448+
char = m.Character
449-
	local torso = part.Parent:findFirstChild("Torso")
449+
local txt = Instance.new("BillboardGui", char)
450-
	local ImAZombie = part.Parent:findFirstChild("ImAZombie")
450+
txt.Adornee = char.Head
451-
	if humanoid and canattacc and not ImAZombie then
451+
txt.Name = "_status"
452-
		if humanoid.Health >= 600 then
452+
txt.Size = UDim2.new(2, 0, 1.2, 0)
453-
			humanoid.MaxHealth = 100
453+
txt.StudsOffset = Vector3.new(-9, 8, 0)
454-
			humanoid.Health = 100
454+
local text = Instance.new("TextLabel", txt)
455
text.Size = UDim2.new(10, 0, 7, 0)
456-
		local dmgrandom = math.random(46,90)
456+
text.FontSize = "Size24"
457-
		if humanoid.Health < dmgrandom and humanoid.Health > 0 then
457+
text.TextScaled = true
458-
			humanoid.PlatformStand = true
458+
text.TextTransparency = 0
459-
			local zombiebool = Instance.new("BoolValue", torso.Parent)
459+
text.BackgroundTransparency = 1
460-
			zombiebool.Name = "ImAZombie"
460+
text.TextTransparency = 0
461-
			search()
461+
text.TextStrokeTransparency = 0
462-
			humanoid.PlatformStand = true
462+
text.Font = "Bodoni"
463-
			if torso then
463+
text.TextStrokeColor3 = Color3.new(0, 0, 0)
464-
				torso.CFrame = torso.CFrame * CFrame.fromEulerAnglesXYZ(0,0,1)
464+
v = Instance.new("Part")
465
v.Name = "ColorBrick"
466-
			wait(1.5)
466+
v.Parent = m.Character
467-
			if torso then
467+
v.Anchored = true
468-
				local spawnzz = spawnz:Clone()
468+
v.CanCollide = false
469-
				spawnzz.Parent = torso
469+
v.BottomSurface = "Smooth"
470-
				spawnzz:Play()
470+
v.TopSurface = "Smooth"
471
v.Size = Vector3.new(10, 5, 3)
472-
			humanoid.PlatformStand = false
472+
v.Transparency = 1
473-
			humanoid.Parent.Archivable = true
473+
v.CFrame = char.Torso.CFrame
474-
			humanoid.WalkSpeed = 17
474+
v.BrickColor = BrickColor.new("Really black")
475-
			humanoid.MaxHealth = 400
475+
v.Transparency = 1
476-
			humanoid.Health = 400
476+
v.Shape = "Block"
477-
			local zombieclone = humanoid.Parent:Clone()
477+
spawn(function()
478-
			zombieclone.Name = zombieclone.Name.." (Scp-008 Infected)"
478+
local TweenService = game:GetService("TweenService")
479-
			zombieclone.Parent = workspace
479+
local Colours = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)}
480-
			local dedth = ded1:Clone()
480+
local Int = 0
481-
			dedth.Parent = zombieclone.Head
481+
while wait(0.5) do
482-
			local dedth1 = ded2:Clone()
482+
    if Int == #Colours then Int = 0 end
483-
			dedth1.Parent = zombieclone.Head
483+
    Int = Int+1
484-
			local dedth2 = ded3:Clone()
484+
    TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play()
485-
			dedth2.Parent = zombieclone.Head
485+
486-
			local dedth3 = ded4:Clone()
486+
end)
487-
			dedth3.Parent = zombieclone.Head
487+
text.Text = "The Final Zombie"
488-
			zombieclone.Torso.Touched:connect(attaccing)
488+
 
489-
			local function di3()
489+
function NoOutlines(PART)
490-
				local diemath = math.random(1,4)
490+
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
491-
				if diemath == 1 then
491+
492-
					dedth:Play()
492+
493
494-
				if diemath == 2 then
494+
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
495-
					dedth1:Play()
495+
	local NEWWELD = IT(TYPE)
496
	NEWWELD.Part0 = PART0
497-
				if diemath == 3 then
497+
	NEWWELD.Part1 = PART1
498-
					dedth2:Play()
498+
	NEWWELD.C0 = C0
499
	NEWWELD.C1 = C1
500-
				if diemath == 4 then
500+
	NEWWELD.Parent = PARENT
501-
					dedth3:Play()
501+
	return NEWWELD
502
end
503-
				local corpseclone = zombieclone:Clone()
503+
504-
	for i,v in pairs(zombieclone:GetChildren()) do
504+
local S = IT("Sound")
505-
		if v.ClassName == "Part" then
505+
506-
			v:destroy()
506+
function CreateSound(ID, PARENT, VOLUME, PITCH)
507
	local NEWSOUND = nil
508
	coroutine.resume(coroutine.create(function()
509-
	for i,v in pairs(zombieclone:GetChildren()) do
509+
		NEWSOUND = S:Clone()
510-
		if v.ClassName == "LocalScript" or v.ClassName == "Script" then
510+
		NEWSOUND.Parent = PARENT
511-
			v:Remove()
511+
		NEWSOUND.Volume = VOLUME
512
		NEWSOUND.Pitch = PITCH
513
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
514-
	corpseclone.Humanoid.PlatformStand = true
514+
		Swait()
515-
	corpseclone.Parent = workspace
515+
		NEWSOUND:play()
516-
	local function serch(part)
516+
		game:GetService("Debris"):AddItem(NEWSOUND, 10)
517-
		for i,v in pairs(part:GetChildren()) do
517+
	end))
518-
			serch(v)
518+
	return NEWSOUND
519-
			if v.Name == "Weld" or v.Name == "Motor6D" then
519+
520-
				v:Remove()
520+
521
function CFrameFromTopBack(at, top, back)
522
	local right = top:Cross(back)
523
	return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
524-
	serch(corpseclone)
524+
525-
		                                local glue = Instance.new("Glue",  corpseclone.Torso)
525+
526-
		                                glue.Part0 = corpseclone.Torso
526+
function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
527-
		                                glue.Part1 = corpseclone["Left Leg"]
527+
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
528-
		                                glue.Name = "Left leg"
528+
	local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
529-
		                                local collider = Instance.new("Part",  corpseclone["Left Leg"])
529+
	wave.CFrame = CFRAME
530-
		                                collider.Position = Vector3.new(0,999,0)
530+
	coroutine.resume(coroutine.create(function(PART)
531-
		                                collider.Size = Vector3.new(1.5, 1, 1)
531+
		for i = 1, WAIT do
532-
		                                collider.Shape = "Cylinder"
532+
			Swait()
533-
		                                local weld = Instance.new("Weld", collider)
533+
			mesh.Scale = mesh.Scale + GROW
534-
		                                weld.Part0 =  corpseclone["Left Leg"]
534+
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
535-
		                                weld.Part1 = collider
535+
			if DOESROT == true then
536-
		                                weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
536+
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
537-
		                                collider.TopSurface = "Smooth"
537+
538-
		                                collider.BottomSurface = "Smooth"
538+
			wave.Transparency = wave.Transparency + (0.5/WAIT)
539-
		                                collider.formFactor = "Symmetric"
539+
			if wave.Transparency > 0.99 then
540-
		                                glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
540+
				wave:remove()
541-
		                                glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
541+
542-
		                                collider.Transparency = 1
542+
543-
		                            --
543+
	end))
544-
		                                local glue = Instance.new("Glue",  corpseclone.Torso)
544+
545-
		                                glue.Part0 = corpseclone.Torso
545+
546-
		                                glue.Part1 = corpseclone["Right Leg"]
546+
function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
547-
		                                glue.Name = "Right leg"
547+
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
548-
		                                local collider = Instance.new("Part",  corpseclone["Right Leg"])
548+
	local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0,0,0))
549-
		                                collider.Position = Vector3.new(0,999,0)
549+
	wave.CFrame = CFRAME
550-
		                                collider.Size = Vector3.new(1.5, 1, 1)
550+
	coroutine.resume(coroutine.create(function(PART)
551-
		                                collider.Shape = "Cylinder"
551+
		for i = 1, WAIT do
552-
		                                local weld = Instance.new("Weld", collider)
552+
			Swait()
553-
		                                weld.Part0 =  corpseclone["Right Leg"]
553+
			mesh.Scale = mesh.Scale + GROW
554-
		                                weld.Part1 = collider
554+
			if DOESROT == true then
555-
		                                weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
555+
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
556-
		                                collider.TopSurface = "Smooth"
556+
557-
		                                collider.BottomSurface = "Smooth"
557+
			wave.Transparency = wave.Transparency + (0.5/WAIT)
558-
		                                collider.formFactor = "Symmetric"
558+
			if wave.Transparency > 0.99 then
559-
		                                glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
559+
				wave:remove()
560-
		                                glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
560+
561-
		                                collider.Transparency = 1
561+
562-
		                            --
562+
	end))
563-
		                                local glue = Instance.new("Glue",  corpseclone.Torso)
563+
564-
		                                glue.Part0 = corpseclone.Torso
564+
565-
		                                glue.Part1 = corpseclone["Right Arm"]
565+
function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
566-
		                                glue.Name = "Right arm"
566+
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
567-
		                                local collider = Instance.new("Part",  corpseclone["Right Arm"])
567+
	local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
568-
		                                collider.Position = Vector3.new(0,999,0)
568+
	wave.CFrame = CFRAME
569-
		                                collider.Size = Vector3.new(1.5, 1, 1)
569+
	coroutine.resume(coroutine.create(function(PART)
570-
		                                collider.Shape = "Cylinder"
570+
		for i = 1, WAIT do
571-
		                                local weld = Instance.new("Weld", collider)
571+
			Swait()
572-
		                                weld.Part0 =  corpseclone["Right Arm"]
572+
			mesh.Scale = mesh.Scale + GROW
573-
		                                weld.Part1 = collider
573+
			wave.Transparency = wave.Transparency + (1/WAIT)
574-
		                                weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
574+
			if wave.Transparency > 0.99 then
575-
		                                collider.TopSurface = "Smooth"
575+
				wave:remove()
576-
		                                collider.BottomSurface = "Smooth"
576+
577-
		                                collider.formFactor = "Symmetric"
577+
578-
		                                glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
578+
	end))
579-
		                                glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
579+
580-
		                                collider.Transparency = 1
580+
581-
		                            --
581+
function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
582-
		                                local glue = Instance.new("Glue",  corpseclone.Torso)
582+
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
583-
		                                glue.Part0 = corpseclone.Torso
583+
	local mesh = nil
584-
		                                glue.Part1 = corpseclone["Left Arm"]
584+
	if KIND == "Base" then
585-
		                                glue.Name = "Left arm"
585+
 		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
586-
		                                local collider = Instance.new("Part",  corpseclone["Left Arm"])
586+
	elseif KIND == "Thin" then
587-
		                                collider.Position = Vector3.new(0,999,0)
587+
 		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
588-
		                                collider.Size = Vector3.new(1.5, 1, 1)
588+
	elseif KIND == "Round" then
589-
		                                collider.Shape = "Cylinder"
589+
 		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
590-
		                                local weld = Instance.new("Weld", collider)
590+
591-
		                                weld.Part0 =  corpseclone["Left Arm"]
591+
	wave.CFrame = CFRAME
592-
		                                weld.Part1 = collider
592+
	coroutine.resume(coroutine.create(function(PART)
593-
		                                weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
593+
		for i = 1, WAIT do
594-
		                                collider.TopSurface = "Smooth"
594+
			Swait()
595-
		                                collider.BottomSurface = "Smooth"
595+
			mesh.Scale = mesh.Scale + GROW/10
596-
		                                collider.formFactor = "Symmetric"
596+
			wave.Transparency = wave.Transparency + (0.5/WAIT)
597-
		                                glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
597+
			if wave.Transparency > 0.99 then
598-
		                                glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
598+
				wave:remove()
599-
		                                collider.Transparency = 1
599+
600-
		                            local findhead = corpseclone:findFirstChild("Head")
600+
601-
		                            if findhead and corpseclone.Torso:findFirstChild("NeckAttachment") then
601+
	end))
602-
		                                local attachment = Instance.new("Attachment", corpseclone.Head)
602+
603-
		                                attachment.Position = Vector3.new(0, -0.5, 0)
603+
604-
		                                attachment.Name = "lol"
604+
function MakeForm(PART,TYPE)
605-
		                                attachment.Visible = false
605+
	if TYPE == "Cyl" then
606-
		                                corpseclone.Torso.NeckAttachment.Visible = false
606+
		local MSH = IT("CylinderMesh",PART)
607-
		                                corpseclone.Torso.NeckAttachment.Position = corpseclone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
607+
	elseif TYPE == "Ball" then
608-
		                                local ball = Instance.new("BallSocketConstraint", corpseclone)
608+
		local MSH = IT("SpecialMesh",PART)
609-
		                                ball.Attachment0 = corpseclone.Torso.NeckAttachment
609+
		MSH.MeshType = "Sphere"
610-
		                                ball.Attachment1 = attachment
610+
	elseif TYPE == "Wedge" then
611-
		                                ball.LimitsEnabled = true
611+
		local MSH = IT("SpecialMesh",PART)
612-
		                                ball.TwistLimitsEnabled = true
612+
		MSH.MeshType = "Wedge"
613-
		                                ball.UpperAngle = 90
613+
614-
		                                ball.Restitution = 0.5
614+
615-
		                                ball.TwistUpperAngle = 90
615+
616-
		                                ball.TwistLowerAngle = -90
616+
617-
		                                local  collidepartofleftleg = Instance.new("Part", corpseclone.Torso)
617+
function CheckTableForString(Table, String)
618-
		                                collidepartofleftleg.Name = "Bone"
618+
	for i, v in pairs(Table) do
619-
		                                collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
619+
		if string.find(string.lower(String), string.lower(v)) then
620-
		                                collidepartofleftleg.Transparency = 1
620+
			return true
621-
		                                collidepartofleftleg:BreakJoints()
621+
622-
		                                local weeld = Instance.new("Weld", collidepartofleftleg)
622+
623-
		                                weeld.Part0 = collidepartofleftleg
623+
	return false
624-
		                                weeld.Part1 = corpseclone["Head"]
624+
625-
		                                if corpseclone.Torso:findFirstChild("Neck") then
625+
626-
		                                    corpseclone.Torso.Neck:destroy()
626+
function CheckIntangible(Hit)
627-
		                                end
627+
	local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
628-
		                            end
628+
	if Hit and Hit.Parent then
629-
						corpseclone.Name = corpseclone.Name.." (Dead)"
629+
		if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
630-
				wait(10)
630+
			return true
631-
				corpseclone:destroy()
631+
632
	end
633-
			zombieclone.Humanoid.Died:connect(di3)
633+
	return false
634-
			for i,v in pairs(humanoid.Parent:GetChildren()) do
634+
635-
				if v.ClassName == "Part" then
635+
636-
					v:destroy()
636+
Debris = game:GetService("Debris")
637
638
function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
639-
			wait(1)
639+
	local Direction = CFrame.new(StartPos, Vec).lookVector
640-
			while true do
640+
	local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
641-
				if zombieclone.Humanoid.Health > 1 then
641+
	local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
642-
					if zombieclone.Parent == nil then
642+
	if RayHit and CheckIntangible(RayHit) then
643-
						zombieclone.Parent = workspace
643+
		if DelayIfHit then
644
			wait()
645
		end
646-
				wait()
646+
		RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
647
	end
648
	return RayHit, RayPos, RayNormal
649-
			canattacc = false
649+
650-
			local attaccramdom = math.random(1,2)
650+
651-
			if attaccramdom == 1 then
651+
function turnto(position)
652-
				attacc:Play()
652+
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
653
end
654-
			if attaccramdom == 2 then
654+
655-
				attacc1:Play()
655+
656
657-
			humanoid.Health = humanoid.Health - dmgrandom
657+
game:GetService("RunService").Heartbeat:connect(function(s, p)
658-
			wait(0.8)
658+
	tf = tf + s
659-
			canattacc = true
659+
	if tf >= frame then
660
		if allowframeloss then
661
			script.ArtificialHB:Fire()
662
			lastframe = tick()
663-
Part4.Touched:connect(attaccing)
663+
664-
local run = Instance.new("Sound", workspace)
664+
			for i = 1, math.floor(tf / frame) do
665-
run.SoundId = "rbxassetid://425903468"
665+
				script.ArtificialHB:Fire()
666-
run:Play()
666+
667-
run.Looped = true
667+
		lastframe = tick()
668-
run.Volume = 10
668+
669-
function clikd(key)
669+
		if tossremainder then
670-
	key = key:lower()
670+
			tf = 0
671-
	if key == "f" then
671+
672-
		local humanoid = mouse.Target.Parent:findFirstChild("Humanoid")
672+
			tf = tf - frame * math.floor(tf / frame)
673-
		local torso = mouse.Target.Parent:findFirstChild("Torso")
673+
674-
		if humanoid and torso then
674+
675-
			print("Picked "..mouse.Target.Parent.Name.." as a manual target")
675+
end)
676-
			randomvictim = torso
676+
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
677
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
678
end
679
680-
mouse.KeyDown:connect(clikd)
680+
function PositiveAngle(NUMBER)
681-
homanyzombies = 0
681+
	if NUMBER >= 0 then
682-
-- Objects
682+
		NUMBER = 0
683
	end
684-
local ScreenGui = Instance.new("ScreenGui")
684+
	return NUMBER
685-
local TextLabel = Instance.new("TextLabel")
685+
686
687-
-- Properties
687+
function NegativeAngle(NUMBER)
688
	if NUMBER <= 0 then
689-
ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
689+
		NUMBER = 0
690
	end
691-
TextLabel.Parent = ScreenGui
691+
	return NUMBER
692-
TextLabel.BackgroundColor3 = Color3.new(0, 0, 0)
692+
693-
TextLabel.Position = UDim2.new(0.176427528, 0, 0.89121145, 0)
693+
694-
TextLabel.Size = UDim2.new(0, 855, 0, 83)
694+
function Swait(NUMBER)
695-
TextLabel.SizeConstraint = Enum.SizeConstraint.RelativeXX
695+
	if NUMBER == 0 or NUMBER == nil then
696-
TextLabel.Font = Enum.Font.SourceSans
696+
		ArtificialHB.Event:wait()
697-
TextLabel.FontSize = Enum.FontSize.Size14
697+
	else
698-
TextLabel.Text = "Scp-008 infected Alive: "
698+
		for i = 1, NUMBER do
699-
TextLabel.TextColor3 = Color3.new(0.25098, 1, 0.0431373)
699+
			ArtificialHB.Event:wait()
700-
TextLabel.TextScaled = true
700+
701-
TextLabel.TextSize = 14
701+
702-
TextLabel.TextWrapped = true
702+
703
704-
	homanyzombies = 0
704+
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
705-
	for i,v in pairs(workspace:GetChildren()) do
705+
	local NEWMESH = IT(MESH)
706-
		if v.ClassName == "Model" then
706+
	if MESH == "SpecialMesh" then
707-
			local humanoid = v:findFirstChildOfClass("Humanoid")
707+
		NEWMESH.MeshType = MESHTYPE
708-
			local imzomb = v:findFirstChild("ImAZombie")
708+
		if MESHID ~= "nil" and MESHID ~= "" then
709-
			if humanoid and imzomb then
709+
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
710-
				if humanoid.Health >= 0.001 then
710+
711-
					homanyzombies = homanyzombies + 1
711+
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
712-
					TextLabel.Text = "Scp-008 Infected Alive: "..homanyzombies
712+
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
713
		end
714
	end
715
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
716
	NEWMESH.Scale = SCALE
717-
	if homanyzombies == 0 then
717+
	NEWMESH.Parent = PARENT
718-
		alldied:Play()
718+
	return NEWMESH
719-
		run:Stop()
719+
720-
		TextLabel.Text = "Every zombie died!"
720+
721-
		wait(4)
721+
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
722-
		ScreenGui:destroy()
722+
	local NEWPART = IT("Part")
723-
		while true do
723+
	NEWPART.formFactor = FORMFACTOR
724-
			wait(3)
724+
	NEWPART.Reflectance = REFLECTANCE
725
	NEWPART.Transparency = TRANSPARENCY
726
	NEWPART.CanCollide = false
727-
	for i,v in pairs(workspace:GetChildren()) do
727+
	NEWPART.Locked = true
728-
		if v.ClassName == "Model" then
728+
	NEWPART.Anchored = true
729-
			local humanoid = v:findFirstChildOfClass("Humanoid")
729+
	if ANCHOR == false then
730-
			local imzomb = v:findFirstChild("ImAZombie")
730+
		NEWPART.Anchored = false
731-
			local torso = v:findFirstChild("Torso")
731+
732-
			if humanoid and imzomb and torso then
732+
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
733-
				if humanoid.Health > 0.01 then
733+
	NEWPART.Name = NAME
734-
					humanoid.WalkToPoint = randomvictim.Position	
734+
	NEWPART.Size = SIZE
735-
					for i = 0,0.6 , 0.1 do
735+
	NEWPART.Position = Torso.Position
736-
						humanoid.WalkToPoint = randomvictim.Position
736+
	NEWPART.Material = MATERIAL
737-
						if torso:findFirstChild("Right Hip") then
737+
	NEWPART:BreakJoints()
738-
							torso["Right Hip"].C1 = CFrame.new(0,0,0)
738+
	NEWPART.Parent = PARENT
739
	return NEWPART
740-
						if torso:findFirstChild("Left Hip") then
740+
741-
							torso["Left Hip"].C1 = CFrame.new(0,0,0)
741+
742
	local function weldBetween(a, b)
743-
						if torso:findFirstChild("Right Shoulder") then
743+
	    local weldd = Instance.new("ManualWeld")
744-
							torso["Right Shoulder"].C1 = CFrame.new(0,0,0)
744+
	    weldd.Part0 = a
745
	    weldd.Part1 = b
746-
						if torso:findFirstChild("Left Shoulder") then
746+
	    weldd.C0 = CFrame.new()
747-
							torso["Left Shoulder"].C1 = CFrame.new(0,0,0)
747+
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
748
	    weldd.Parent = a
749-
						--
749+
	    return weldd
750-
						if torso:findFirstChild("Right Hip") then
750+
751-
							torso["Right Hip"].C0 = torso["Right Hip"].C0:lerp(CFrame.new(0.499992371, -1.87492192, 0.954907298, 1, 0, 0, 0, 0.819151878, 0.573576808, 0, -0.573576987, 0.819151878),i)
751+
752
753-
						if torso:findFirstChild("Left Hip") then
753+
function QuaternionFromCFrame(cf)
754-
							torso["Left Hip"].C0 = torso["Left Hip"].C0:lerp(CFrame.new(-0.500007629, -1.96685851, -0.799733043, 1, 0, 0, 0, 0.819151759, -0.573576927, 0, 0.573576868, 0.819151998),i)
754+
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
755
	local trace = m00 + m11 + m22
756-
						if torso:findFirstChild("Right Shoulder") then
756+
	if trace > 0 then 
757-
							torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0:lerp(CFrame.new(1.41486359, 0.409589052, -0.827155113, 1, 0, 0, 0, -8.94069672e-08, -1, 0, 1.00000012, 8.94069672e-08),i)
757+
		local s = math.sqrt(1 + trace)
758
		local recip = 0.5 / s
759-
						if torso:findFirstChild("Left Shoulder") then
759+
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
760-
							torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0:lerp(CFrame.new(-1.50000763, 0.409590244, -0.901263297, 1, 0, 0, 0, -3.27825546e-07, -1, 0, 1.00000024, 3.27825575e-07),i)
760+
	else
761
		local i = 0
762-
						game:GetService("RunService").RenderStepped:wait()
762+
		if m11 > m00 then
763
			i = 1
764
		end
765
		if m22 > (i == 0 and m00 or m11) then
766
			i = 2
767
		end
768-
	for i,v in pairs(workspace:GetChildren()) do
768+
		if i == 0 then
769-
		if v.ClassName == "Model" then
769+
			local s = math.sqrt(m00 - m11 - m22 + 1)
770-
			local humanoid = v:findFirstChildOfClass("Humanoid")
770+
			local recip = 0.5 / s
771-
			local imzomb = v:findFirstChild("ImAZombie")
771+
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
772-
			local torso = v:findFirstChild("Torso")
772+
		elseif i == 1 then
773-
			if humanoid and imzomb and torso then
773+
			local s = math.sqrt(m11 - m22 - m00 + 1)
774-
				if humanoid.Health > 0.01 then
774+
			local recip = 0.5 / s
775-
					humanoid.WalkToPoint = randomvictim.Position	
775+
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
776-
					for i = 0,0.6 , 0.1 do
776+
		elseif i == 2 then
777-
						humanoid.WalkToPoint = randomvictim.Position
777+
			local s = math.sqrt(m22 - m00 - m11 + 1)
778-
						if torso:findFirstChild("Right Hip") then
778+
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
779-
							torso["Right Hip"].C1 = CFrame.new(0,0,0)
779+
780
	end
781-
						if torso:findFirstChild("Left Hip") then
781+
782-
							torso["Left Hip"].C1 = CFrame.new(0,0,0)
782+
 
783
function QuaternionToCFrame(px, py, pz, x, y, z, w)
784-
						if torso:findFirstChild("Right Shoulder") then
784+
	local xs, ys, zs = x + x, y + y, z + z
785-
							torso["Right Shoulder"].C1 = CFrame.new(0,0,0)
785+
	local wx, wy, wz = w * xs, w * ys, w * zs
786
	local xx = x * xs
787-
						if torso:findFirstChild("Left Shoulder") then
787+
	local xy = x * ys
788-
							torso["Left Shoulder"].C1 = CFrame.new(0,0,0)
788+
	local xz = x * zs
789
	local yy = y * ys
790-
						--
790+
	local yz = y * zs
791-
						if torso:findFirstChild("Right Hip") then
791+
	local zz = z * zs
792-
							torso["Right Hip"].C0 = torso["Right Hip"].C0:lerp(CFrame.new(0.5, -1.95895696, -0.881649196, 1, 0, 0, 0, 0.819151819, -0.573576868, 0, 0.573576868, 0.819151819),i)
792+
	return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
793
end
794-
						if torso:findFirstChild("Left Hip") then
794+
 
795-
							torso["Left Hip"].C0 = torso["Left Hip"].C0:lerp(CFrame.new(-0.5, -1.97527182, 0.78138262, 1, 0, 0, 0, 0.819151819, 0.573576868, 0, -0.573576868, 0.819151819),i)
795+
function QuaternionSlerp(a, b, t)
796
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
797-
						if torso:findFirstChild("Right Shoulder") then
797+
	local startInterp, finishInterp;
798-
							torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0:lerp(CFrame.new(1.41486359, 0.309589148, -0.82715553, 1, 0, 0, 0, -3.57627897e-07, -1, 0, 1.00000036, 3.57627897e-07),i)
798+
	if cosTheta >= 0.0001 then
799
		if (1 - cosTheta) > 0.0001 then
800-
						if torso:findFirstChild("Left Shoulder") then
800+
			local theta = ACOS(cosTheta)
801-
							torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0:lerp(CFrame.new(-1.50000763, 0.309590578, -0.901263416, 1, 0, 0, 0, -2.68220901e-07, -1, 0, 1.00000024, 2.68220901e-07),i)
801+
			local invSinTheta = 1 / SIN(theta)
802
			startInterp = SIN((1 - t) * theta) * invSinTheta
803-
						game:GetService("RunService").RenderStepped:wait()
803+
			finishInterp = SIN(t * theta) * invSinTheta
804
		else
805
			startInterp = 1 - t
806
			finishInterp = t
807
		end
808
	else
809-
	if Humanoid15.Health > 1 then
809+
		if (1 + cosTheta) > 0.0001 then
810-
		if Model0.Parent == nil then
810+
			local theta = ACOS(-cosTheta)
811-
			Model0.Parent = workspace
811+
			local invSinTheta = 1 / SIN(theta)
812
			startInterp = SIN((t - 1) * theta) * invSinTheta
813
			finishInterp = SIN(t * theta) * invSinTheta
814-
	if alldied.Parent == nil then
814+
815-
		alldied.Parent = workspace
815+
			startInterp = t - 1
816
			finishInterp = t
817-
	if ded1.Parent == nil then
817+
818-
		ded1.Parent = workspace
818+
819
	return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
820-
	if ded2.Parent == nil then
820+
821-
		ded2.Parent = workspace
821+
822
function Clerp(a, b, t)
823-
	if ded3.Parent == nil then
823+
	local qa = {QuaternionFromCFrame(a)}
824-
		ded3.Parent = workspace
824+
	local qb = {QuaternionFromCFrame(b)}
825
	local ax, ay, az = a.x, a.y, a.z
826-
	if ded4.Parent == nil then
826+
	local bx, by, bz = b.x, b.y, b.z
827-
		ded4.Parent = workspace
827+
	local _t = 1 - t
828
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
829-
	if spawnz.Parent == nil then
829+
830-
		spawnz.Parent = workspace
830+
831
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
832-
	if attacc.Parent == nil then
832+
	local frame = IT("Frame")
833-
		attacc.Parent = workspace
833+
	frame.BackgroundTransparency = TRANSPARENCY
834
	frame.BorderSizePixel = BORDERSIZEPIXEL
835-
	if attacc1.Parent == nil then
835+
	frame.Position = POSITION
836-
		attacc1.Parent = workspace
836+
	frame.Size = SIZE
837
	frame.BackgroundColor3 = COLOR
838-
	if run.Parent == nil then
838+
	frame.BorderColor3 = BORDERCOLOR
839-
		run.Parent = workspace
839+
	frame.Name = NAME
840
	frame.Parent = PARENT
841-
	wait()
841+
	return frame
842-
end
842+
843
844
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
845
	local label = IT("TextLabel")
846
	label.BackgroundTransparency = 1
847
	label.Size = UD2(1, 0, 1, 0)
848
	label.Position = UD2(0, 0, 0, 0)
849
	label.TextColor3 = TEXTCOLOR
850
	label.TextStrokeTransparency = STROKETRANSPARENCY
851
	label.TextTransparency = TRANSPARENCY
852
	label.FontSize = TEXTFONTSIZE
853
	label.Font = TEXTFONT
854
	label.BorderSizePixel = BORDERSIZEPIXEL
855
	label.TextScaled = false
856
	label.Text = TEXT
857
	label.Name = NAME
858
	label.Parent = PARENT
859
	return label
860
end
861
862
function NoOutlines(PART)
863
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
864
end
865
866
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
867
	local NEWWELD = IT(TYPE)
868
	NEWWELD.Part0 = PART0
869
	NEWWELD.Part1 = PART1
870
	NEWWELD.C0 = C0
871
	NEWWELD.C1 = C1
872
	NEWWELD.Parent = PARENT
873
	return NEWWELD
874
end
875
876
local S = IT("Sound")
877
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
878
	local NEWSOUND = nil
879
	coroutine.resume(coroutine.create(function()
880
		NEWSOUND = S:Clone()
881
		NEWSOUND.Parent = PARENT
882
		NEWSOUND.Volume = VOLUME
883
		NEWSOUND.Pitch = PITCH
884
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
885
		NEWSOUND:play()
886
		if DOESLOOP == true then
887
			NEWSOUND.Looped = true
888
		else
889
			repeat wait(1) until NEWSOUND.Playing == false
890
			NEWSOUND:remove()
891
		end
892
	end))
893
	return NEWSOUND
894
end
895
896
function MakeForm(PART,TYPE)
897
	if TYPE == "Cyl" then
898
		local MSH = IT("CylinderMesh",PART)
899
	elseif TYPE == "Ball" then
900
		local MSH = IT("SpecialMesh",PART)
901
		MSH.MeshType = "Sphere"
902
	elseif TYPE == "Wedge" then
903
		local MSH = IT("SpecialMesh",PART)
904
		MSH.MeshType = "Wedge"
905
	end
906
end
907
908
function CFrameFromTopBack(at, top, back)
909
	local right = top:Cross(back)
910
	return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
911
end
912
913
function PuddleOfBlood(Position,MaxDrop,Model,MaxSize)
914
	local HITFLOOR, HITPOS, NORMAL = Raycast(Position, (CF(Position, Position + VT(0, -1, 0))).lookVector, MaxDrop, Model)
915
	if HITFLOOR ~= nil then
916
		if HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then
917
			if HITFLOOR.Name == "BloodPuddle" then
918
				local DIST = (Position - HITFLOOR.Position).Magnitude
919
				if (HITFLOOR.Size.Z <= 5 and HITFLOOR.Size.Z < MaxSize) or (HITFLOOR.Size.Z > 5 and HITFLOOR.Size.Z < MaxSize and DIST < HITFLOOR.Size.Z/3) then
920
					HITFLOOR.Size = HITFLOOR.Size + VT(0.1,0,0.1)
921
				end
922
			else
923
				if HITFLOOR.Anchored == true then
924
					local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(2,0,2))
925
					BLOOD.CFrame = CF(HITPOS,HITPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0))
926
					MakeForm(BLOOD,"Cyl")
927
					coroutine.resume(coroutine.create(function()
928
						Swait(75)
929
						while true do
930
							Swait()
931
							BLOOD.Size = BLOOD.Size - VT(0.02,0,0.02)
932
							if BLOOD.Size.Z < 0.051 then
933
								BLOOD:remove()
934
								break
935
							end
936
						end
937
					end))
938
				end
939
			end
940
		end
941
	end
942
end
943
944
function SprayBlood(POSITION,DIRECTION,BloodSize)
945
	local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(0.3,0.3,0.3),false)
946
	BLOOD.CFrame = CF(POSITION)
947
	MakeForm(BLOOD,"Ball")
948
	local bv = Instance.new("BodyVelocity",BLOOD) 
949
	bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
950
	bv.velocity = CF(POSITION,DIRECTION+VT(MRANDOM(-3,3)/30,MRANDOM(-3,3)/30,MRANDOM(-3,3)/30)).lookVector*75
951
	bv.Name = "MOVE"
952
	Debris:AddItem(bv,0.05)
953
	coroutine.resume(coroutine.create(function()
954
		local HASTOUCHEDGROUND = false
955
		local HIT = BLOOD.Touched:Connect(function(hit)
956
			if hit.Anchored == true then
957
				HASTOUCHEDGROUND = true
958
				PuddleOfBlood(BLOOD.Position+VT(0,1,0),2,BLOOD,BloodSize)
959
			end
960
		end)
961
		wait(5)
962
		if HASTOUCHEDGROUND == false then
963
			BLOOD:remove()
964
		end
965
	end))
966
end
967
968
Debris = game:GetService("Debris")
969
970
function CastProperRay(StartPos, EndPos, Distance, Ignore)
971
	local DIRECTION = CF(StartPos,EndPos).lookVector
972
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
973
end
974
975
function turnto(position)
976
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
977
end
978
979
function recurse(root,callback,i)
980
	i= i or 0
981
	for _,v in pairs(root:GetChildren()) do
982
		i = i + 1
983
		callback(i,v)
984
		
985
		if #v:GetChildren() > 0 then
986
			i = recurse(v,callback,i)
987
		end
988
	end
989
	
990
	return i
991
end
992
993
function ragdollJoint(character, part0, part1, attachmentName, className, properties)
994
	attachmentName = attachmentName.."RigAttachment"
995
	local constraint = Instance.new(className.."Constraint")
996
	constraint.Attachment0 = part0:FindFirstChild(attachmentName)
997
	constraint.Attachment1 = part1:FindFirstChild(attachmentName)
998
	constraint.Name = "RagdollConstraint"..part1.Name
999
	
1000
	for _,propertyData in next,properties or {} do
1001
		constraint[propertyData[1]] = propertyData[2]
1002
	end
1003
	
1004
	constraint.Parent = character
1005
end
1006
1007
function getAttachment0(character, attachmentName)
1008
	for _,child in next,character:GetChildren() do
1009
		local attachment = child:FindFirstChild(attachmentName)
1010
		if attachment then
1011
			return attachment
1012
		end
1013
	end
1014
end
1015
1016
function R15Ragdoll(character)
1017
	recurse(character, function(_,v)
1018
		if v:IsA("Attachment") then
1019
			v.Axis = Vector3.new(0, 1, 0)
1020
			v.SecondaryAxis = Vector3.new(0, 0, 1)
1021
			v.Rotation = Vector3.new(0, 0, 0)
1022
		end
1023
	end)
1024
	for _,child in next,character:GetChildren() do
1025
		if child:IsA("Accoutrement") then
1026
			for _,part in next,child:GetChildren() do
1027
				if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
1028
					local attachment1 = part:FindFirstChildOfClass("Attachment")
1029
					local attachment0 = getAttachment0(character,attachment1.Name)
1030
					if attachment0 and attachment1 then
1031
						local constraint = Instance.new("HingeConstraint")
1032
						constraint.Attachment0 = attachment0
1033
						constraint.Attachment1 = attachment1
1034
						constraint.LimitsEnabled = true
1035
						constraint.UpperAngle = 0
1036
						constraint.LowerAngle = 0
1037
						constraint.Parent = character
1038
					end
1039
				elseif part.Name == "HumanoidRootPart" then
1040
					part:remove()
1041
				end
1042
			end
1043
		end
1044
	end
1045
	
1046
	ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
1047
		{"LimitsEnabled",true};
1048
		{"UpperAngle",5};
1049
	})
1050
	ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
1051
		{"LimitsEnabled",true};
1052
		{"UpperAngle",15};
1053
	})
1054
	
1055
	local handProperties = {
1056
		{"LimitsEnabled", true};
1057
		{"UpperAngle",0};
1058
		{"LowerAngle",0};
1059
	}
1060
	ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
1061
	ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
1062
	
1063
	local shinProperties = {
1064
		{"LimitsEnabled", true};
1065
		{"UpperAngle", 0};
1066
		{"LowerAngle", -75};
1067
	}
1068
	ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
1069
	ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
1070
	
1071
	local footProperties = {
1072
		{"LimitsEnabled", true};
1073
		{"UpperAngle", 15};
1074
		{"LowerAngle", -45};
1075
	}
1076
	ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
1077
	ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
1078
	
1079
	ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
1080
	ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
1081
	ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
1082
	ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
1083
	ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
1084
	ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
1085
end
1086
1087
function Ragdoll(Character2,CharTorso)
1088
	Character2:BreakJoints()
1089
	local hum = Character2:findFirstChild("Humanoid")
1090
	hum:remove()
1091
	local function Scan(ch)
1092
		local e
1093
		for e = 1,#ch do
1094
			Scan(ch[e]:GetChildren())
1095
			if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
1096
				ch[e]:remove()
1097
			end
1098
		end
1099
	end
1100
	local NEWHUM = IT("Humanoid")
1101
	NEWHUM.Name = "Corpse"
1102
	NEWHUM.Health = 0
1103
	NEWHUM.MaxHealth = 0
1104
	NEWHUM.PlatformStand = true
1105
	NEWHUM.Parent = Character2
1106
	NEWHUM.DisplayDistanceType = "None"
1107
1108
	local ch = Character2:GetChildren()
1109
	local i
1110
	for i = 1,#ch do
1111
		if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
1112
			ch[i]:remove()
1113
		end
1114
	end
1115
1116
	local Torso2 = Character2.Torso
1117
	local movevector = Vector3.new()
1118
1119
	if Torso2 then
1120
		movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
1121
		local Head = Character2:FindFirstChild("Head")
1122
		if Head then
1123
			local Neck = Instance.new("Weld")
1124
			Neck.Name = "Neck"
1125
			Neck.Part0 = Torso2
1126
			Neck.Part1 = Head
1127
			Neck.C0 = CFrame.new(0, 1.5, 0)
1128
			Neck.C1 = CFrame.new()
1129
			Neck.Parent = Torso2
1130
1131
		end
1132
		local Limb = Character2:FindFirstChild("Right Arm")
1133
		if Limb then
1134
1135
			Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
1136
			local Joint = Instance.new("Glue")
1137
			Joint.Name = "RightShoulder"
1138
			Joint.Part0 = Torso2
1139
			Joint.Part1 = Limb
1140
			Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1141
			Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1142
			Joint.Parent = Torso2
1143
1144
			local B = Instance.new("Part")
1145
			B.TopSurface = 0
1146
			B.BottomSurface = 0
1147
			B.formFactor = "Symmetric"
1148
			B.Size = Vector3.new(1, 1, 1)
1149
			B.Transparency = 1
1150
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1151
			B.Parent = Character2
1152
			local W = Instance.new("Weld")
1153
			W.Part0 = Limb
1154
			W.Part1 = B
1155
			W.C0 = CFrame.new(0, -0.5, 0)
1156
			W.Parent = Limb
1157
1158
		end
1159
		local Limb = Character2:FindFirstChild("Left Arm")
1160
		if Limb then
1161
1162
			Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
1163
			local Joint = Instance.new("Glue")
1164
			Joint.Name = "LeftShoulder"
1165
			Joint.Part0 = Torso2
1166
			Joint.Part1 = Limb
1167
			Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1168
			Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1169
			Joint.Parent = Torso2
1170
1171
			local B = Instance.new("Part")
1172
			B.TopSurface = 0
1173
			B.BottomSurface = 0
1174
			B.formFactor = "Symmetric"
1175
			B.Size = Vector3.new(1, 1, 1)
1176
			B.Transparency = 1
1177
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1178
			B.Parent = Character2
1179
			local W = Instance.new("Weld")
1180
			W.Part0 = Limb
1181
			W.Part1 = B
1182
			W.C0 = CFrame.new(0, -0.5, 0)
1183
			W.Parent = Limb
1184
1185
		end
1186
		local Limb = Character2:FindFirstChild("Right Leg")
1187
		if Limb then
1188
1189
			Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
1190
			local Joint = Instance.new("Glue")
1191
			Joint.Name = "RightHip"
1192
			Joint.Part0 = Torso2
1193
			Joint.Part1 = Limb
1194
			Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1195
			Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1196
			Joint.Parent = Torso2
1197
1198
			local B = Instance.new("Part")
1199
			B.TopSurface = 0
1200
			B.BottomSurface = 0
1201
			B.formFactor = "Symmetric"
1202
			B.Size = Vector3.new(1, 1, 1)
1203
			B.Transparency = 1
1204
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1205
			B.Parent = Character2
1206
			local W = Instance.new("Weld")
1207
			W.Part0 = Limb
1208
			W.Part1 = B
1209
			W.C0 = CFrame.new(0, -0.5, 0)
1210
			W.Parent = Limb
1211
1212
		end
1213
		local Limb = Character2:FindFirstChild("Left Leg")
1214
		if Limb then
1215
1216
			Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
1217
			local Joint = Instance.new("Glue")
1218
			Joint.Name = "LeftHip"
1219
			Joint.Part0 = Torso2
1220
			Joint.Part1 = Limb
1221
			Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1222
			Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1223
			Joint.Parent = Torso2
1224
1225
			local B = Instance.new("Part")
1226
			B.TopSurface = 0
1227
			B.BottomSurface = 0
1228
			B.formFactor = "Symmetric"
1229
			B.Size = Vector3.new(1, 1, 1)
1230
			B.Transparency = 1
1231
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1232
			B.Parent = Character2
1233
			local W = Instance.new("Weld")
1234
			W.Part0 = Limb
1235
			W.Part1 = B
1236
			W.C0 = CFrame.new(0, -0.5, 0)
1237
			W.Parent = Limb
1238
1239
		end
1240
		--[
1241
		local Bar = Instance.new("Part")
1242
		Bar.TopSurface = 0
1243
		Bar.BottomSurface = 0
1244
		Bar.formFactor = "Symmetric"
1245
		Bar.Size = Vector3.new(1, 1, 1)
1246
		Bar.Transparency = 1
1247
		Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
1248
		Bar.Parent = Character2
1249
		local Weld = Instance.new("Weld")
1250
		Weld.Part0 = Torso2
1251
		Weld.Part1 = Bar
1252
		Weld.C0 = CFrame.new(0, 0.5, 0)
1253
		Weld.Parent = Torso2
1254
		--]]
1255
	end
1256
	Character2.Parent = workspace
1257
	Debris:AddItem(Character2,5)
1258
1259
	return Character2,Torso2
1260
end
1261
1262
Character["Body Colors"].HeadColor = BrickColor.new("New Yeller")
1263
Character["Body Colors"].TorsoColor = BrickColor.new("Bright blue")
1264
Character["Body Colors"].LeftArmColor = BrickColor.new("New Yeller")
1265
Character["Body Colors"].RightArmColor = BrickColor.new("New Yeller")
1266
Character["Body Colors"].LeftLegColor = BrickColor.new("Bright blue")
1267
Character["Body Colors"].RightLegColor = BrickColor.new("Bright blue")
1268
1269
1270
1271
1272
1273
function MouseUp(Mouse)
1274
end
1275
1276
function KeyDown(Key)
1277
end
1278
1279
function KeyUp(Key)
1280
end
1281
1282
	Mouse.Button1Down:connect(function(NEWKEY)
1283
		MouseDown(NEWKEY)
1284
	end)
1285
	Mouse.Button1Up:connect(function(NEWKEY)
1286
		MouseUp(NEWKEY)
1287
	end)
1288
	Mouse.KeyDown:connect(function(NEWKEY)
1289
		KeyDown(NEWKEY)
1290
	end)
1291
	Mouse.KeyUp:connect(function(NEWKEY)
1292
		KeyUp(NEWKEY)
1293
	end)
1294
1295
1296
Humanoid.Changed:connect(function(Jump)
1297
	if Jump == "Jump" and (Disable_Jump == true) then
1298
		Humanoid.Jump = false
1299
	end
1300
end)
1301
1302
while true do
1303
	Swait()
1304
	script.Parent = WEAPONGUI
1305
	ANIMATE.Parent = nil
1306
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
1307
	    v:Stop();
1308
	end
1309
	SINE = SINE + CHANGE
1310
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1311
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1312
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
1313
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
1314
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
1315
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1316
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1317
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.3 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1318
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.3 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1319
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1320
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1321
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1322
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1323
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1324
	end
1325
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1326
		ANIM = "Jump"
1327
		if PLAYANIMS == true then
1328
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1329
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1330
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1331
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1332
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
1333
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1334
	    end
1335
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1336
		ANIM = "Fall"
1337
		if PLAYANIMS == true then
1338
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1339
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, -0.5 , 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1340
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(100), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1341
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-100), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1342
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1343
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1344
		end
1345
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1346
		ANIM = "Idle"
1347
		if PLAYANIMS == true then
1348
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1349
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, -0, -0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1350
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-60), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1351
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1352
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-20), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1353
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-20), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1354
		end
1355
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1356
		ANIM = "Walk"
1357
		if PLAYANIMS == true then
1358
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1359
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1360
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
1361
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(-30), RAD(0)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
1362
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0.2) * ANGLES(RAD(50 * COS(SINE / WALKSPEEDVALUE)), RAD(90), RAD(0)), 1)
1363
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0.2) * ANGLES(RAD(-50 * COS(SINE / WALKSPEEDVALUE)), RAD(-90), RAD(0)), 1)
1364
			end
1365
		end
1366
	end
1367
	if Rooted == false then
1368
		Disable_Jump = false
1369
		Humanoid.WalkSpeed = Speed
1370
	elseif Rooted == true then
1371
		Disable_Jump = true
1372
		Humanoid.WalkSpeed = 0
1373
	end
1374
1375
	Humanoid.Health = Humanoid.Health + 1