View difference between Paste ID: 0XBY4aeJ and XSvY6G4G
SHOW: | | - or go back to the newest paste.
1
--      [[[
2
--000000[[====================================================================================\\
3
--000000[[ deivis97 edit    ";.and tamloveeif02 edit.;"
4
--000000[[====================================================================================//
5
--      [[[
6
--// Initializing \\--
7
local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
8
local Plrs = S.Players
9
local Plr = Plrs.LocalPlayer
10
local Char = Plr.Character
11
local Hum = Char:FindFirstChildOfClass'Humanoid'
12
local RArm = Char["Right Arm"]
13
local LArm = Char["Left Arm"]
14
local RLeg = Char["Right Leg"]
15
local LLeg = Char["Left Leg"]	
16
local Root = Char:FindFirstChild'HumanoidRootPart'
17
local Torso = Char.Torso
18
local Head = Char.Head
19
local NeutralAnims = true
20
local Attack = false
21
local BloodPuddles = {}
22
local Effects = {}
23
local Debounces = {Debounces={}}
24
local Mouse = Plr:GetMouse()
25
local Hit = {}
26
local Sine = 0
27
local Change = 1
28
local Souls = 99999
29
local LEFTWINGS = {}
30
local RIGHTWINGS = {}
31
--// Debounce System \\--
32
33
--killbot arm--
34
New = function(Object, Parent, Name, Data)
35
	local Object = Instance.new(Object)
36
	for Index, Value in pairs(Data or {}) do
37
		Object[Index] = Value
38
	end
39
	Object.Parent = Parent
40
	Object.Name = Name
41
	return Object
42
end
43
44
CyborgArm = New("Model",Char,"CyborgArm",{})
45
Handle = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1.0500015, 2.02999949, 1.07999992),CFrame = CFrame.new(-138.347275, 2.99473095, 41.7816849, 0.999635339, 8.27677286e-06, 0.0270056836, -0.000191000072, 0.999977112, 0.00676353322, -0.0270050094, -0.00676622428, 0.999612451),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
46
Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.429999948, 0.100000001, 1.04999983),CFrame = CFrame.new(-138.369171, 2.89115906, 41.8271637, 0.505694926, -0.862284958, 0.0271573812, 0.862490892, 0.506027818, 0.0067293453, -0.019545, 0.0200200025, 0.999608755),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
47
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.505694926, 0.862490892, -0.0195449982, -0.862284899, 0.506027818, 0.0200199969, 0.0271573793, 0.00672934437, 0.999608576),C1 = CFrame.new(0.0136108398, -0.108844995, -0.0342674255, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
48
Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.600001693, 0.100000001, 1.04999983),CFrame = CFrame.new(-138.268127, 3.26462603, 41.8218994, 0.0100010047, -0.999581397, 0.0271513518, 0.999925494, 0.010187286, 0.00673122332, -0.00700500328, 0.027082013, 0.999608815),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
49
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.0100010047, 0.999925494, -0.00700500328, -0.999581337, 0.010187286, 0.0270820074, 0.0271513499, 0.00673122238, 0.999608636),C1 = CFrame.new(-0.0874328613, 0.264621973, -0.028968811, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
50
Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.3000018, 0.100000001, 1.04999983),CFrame = CFrame.new(-138.217133, 3.61339307, 41.8189926, 0.778245091, -0.627379835, 0.0270029604, 0.627452075, 0.778625846, 0.00676273741, -0.0252680089, 0.0116800005, 0.999612689),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
51
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.778245091, 0.627452075, -0.0252680033, -0.627379835, 0.778625846, 0.0116799958, 0.0270029567, 0.00676273648, 0.99961251),C1 = CFrame.new(-0.138427734, 0.613389015, -0.0260467529, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
52
Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.840000331, 0.420000285, 1),CFrame = CFrame.new(-138.395523, 2.38962889, 41.7660217, -0.00574199716, -0.999983609, 1.77533366e-09, 0.999983549, -0.00574199716, 9.3131769e-10, 9.41781764e-10, 1.77533366e-09, 1.00000012),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
53
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, -0.00574199716, 0.999983549, 0, -0.999983549, -0.00574199716, 0, 0, 0, 1),C1 = CFrame.new(0.0399932861, -0.610375166, 0.0268669128, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
54
Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.840000331, 0.420000285, 0.2900002),CFrame = CFrame.new(-138.540939, 3.80931711, 41.9832687, 2.29982252e-05, -0.999983609, -0.00574393803, -0.00452899979, -0.00574398367, 0.999973238, -0.999989927, 3.01669934e-06, -0.00452905567),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
55
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 2.29999951e-05, -0.00452899886, -0.999989748, -0.999983549, -0.00574398367, 3.01490991e-06, -0.00574393803, 0.999973238, -0.00452905614),C1 = CFrame.new(0.185333252, 0.809313059, -0.190429688, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
56
Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Shape = Enum.PartType.Ball,Size = Vector3.new(1.15999990, 1.16000044, 1.16000044),CFrame = CFrame.new(-138.563065, 3.74006891, 41.8137894, 1, -1.23944917e-22, 1.77533366e-09, -1.48608469e-11, 1, 9.3131769e-10, -1.80443749e-09, 9.31322575e-10, 1.00000012),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
57
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C1 = CFrame.new(0.207519531, 0.740064859, -0.0209579468, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
58
Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.660001755, 0.100000001, 0.799999833),CFrame = CFrame.new(-138.557587, 3.57138705, 41.9535294, 0.999635398, 8.27676195e-06, 0.0270056874, -0.000191000116, 0.999977112, 0.00676353415, -0.0270050168, -0.00676622475, 0.999612629),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
59
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.999635339, -0.000191000072, -0.0270050094, 8.27677377e-06, 0.999977112, -0.00676622428, 0.0270056836, 0.00676353322, 0.999612451),C1 = CFrame.new(0.20199585, 0.571382999, -0.160697937, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
60
Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.660001755, 0.100000001, 0.0899999291),CFrame = CFrame.new(-138.548004, 3.20288205, 42.3108978, 0.999635398, 8.27676195e-06, 0.0270056874, -0.000191000116, 0.999977112, 0.00676353415, -0.0270050168, -0.00676622475, 0.999612629),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
61
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.999635339, -0.000191000072, -0.0270050094, 8.27677377e-06, 0.999977112, -0.00676622428, 0.0270056836, 0.00676353322, 0.999612451),C1 = CFrame.new(0.19229126, 0.202877998, -0.518062592, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
62
Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.390001893, 0.100000001, 1.04999983),CFrame = CFrame.new(-138.031433, 3.68374205, 41.8135147, 0.999635398, 8.27676195e-06, 0.0270056874, -0.000191000116, 0.999977112, 0.00676353415, -0.0270050168, -0.00676622475, 0.999612629),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
63
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.999635339, -0.000191000072, -0.0270050094, 8.27677377e-06, 0.999977112, -0.00676622428, 0.0270056836, 0.00676353322, 0.999612451),C1 = CFrame.new(-0.324111938, 0.683737993, -0.0205078125, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
64
Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.2800017, 0.100000001, 0.690000117),CFrame = CFrame.new(-138.393951, 2.11307812, 42.0131454, 0.0100010047, -0.999581397, 0.0271513518, 0.999925494, 0.010187286, 0.00673122332, -0.00700500328, 0.027082013, 0.999608815),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
65
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.0100010047, 0.999925494, -0.00700500328, -0.999581337, 0.010187286, 0.0270820074, 0.0271513499, 0.00673122238, 0.999608636),C1 = CFrame.new(0.0383300781, -0.886925936, -0.220256805, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
66
Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.600001693, 0.100000001, 1.04999983),CFrame = CFrame.new(-138.452835, 2.48128104, 41.8321991, -0.223359078, -0.974358141, 0.027149044, 0.974736214, -0.223258108, 0.00673288852, -0.000498998852, 0.0279670097, 0.999608934),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
67
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, -0.223359063, 0.974736214, -0.000499000133, -0.974358141, -0.223258108, 0.0279670041, 0.0271490421, 0.00673288759, 0.999608755),C1 = CFrame.new(0.0972747803, -0.518723011, -0.0393295288, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
68
69
70
function Debounces:New(name,cooldown)
71
	local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
72
	setmetatable(aaaaa,{__index = Debounces})
73
	Debounces.Debounces[name] = aaaaa
74
	return aaaaa
75
end
76
77
function Debounces:Use(overrideUsable)
78
	assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
79
	if(self.Usable or overrideUsable)then
80
		self.Usable = false
81
		self.CoolingDown = true
82
		local LastUse = time()
83
		self.LastUse = LastUse
84
		delay(self.Cooldown or 2,function()
85
			if(self.LastUse == LastUse)then
86
				self.CoolingDown = false
87
				self.Usable = true
88
			end
89
		end)
90
	end
91
end
92
--create function--
93
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
94
	local NEWPART = IT("Part")
95
	NEWPART.formFactor = FORMFACTOR
96
	NEWPART.Reflectance = REFLECTANCE
97
	NEWPART.Transparency = TRANSPARENCY
98
	NEWPART.CanCollide = false
99
	NEWPART.Locked = true
100
	NEWPART.Anchored = true
101
	if ANCHOR == false then
102
		NEWPART.Anchored = false
103
	end
104
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
105
	NEWPART.Name = NAME
106
	NEWPART.Size = SIZE
107
	NEWPART.Position = Torso.Position
108
	NEWPART.Material = MATERIAL
109
	NEWPART:BreakJoints()
110
	NEWPART.Parent = PARENT
111
	return NEWPART
112
end
113
114
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
115
	local NEWWELD = IT(TYPE)
116
	NEWWELD.Part0 = PART0
117
	NEWWELD.Part1 = PART1
118
	NEWWELD.C0 = C0
119
	NEWWELD.C1 = C1
120
	NEWWELD.Parent = PARENT
121
	return NEWWELD
122
end
123
--some thing?--
124
Player = game:GetService("Players").LocalPlayer
125
Character = Player.Character
126
127
IT = Instance.new
128
CF = CFrame.new
129
VT = Vector3.new
130
RAD = math.rad
131
C3 = Color3.new
132
UD2 = UDim2.new
133
BRICKC = BrickColor.new
134
ANGLES = CFrame.Angles
135
EULER = CFrame.fromEulerAnglesXYZ
136
COS = math.cos
137
ACOS = math.acos
138
SIN = math.sin
139
ASIN = math.asin
140
ABS = math.abs
141
MRANDOM = math.random
142
FLOOR = math.floor
143
--cyber wing--
144
local Back = CreatePart(3, Character, "Granite", 0, 0, "Really red", "Wing", VT(1,1,0.35),false)
145
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0))
146
147
local ANGLE = 35
148
for i = 1, 5 do
149
	local Wing = CreatePart(3, Character, "Granite", 0, 0, "Really black", "Wing", VT(0.15,2+(i/2),0.15),false)
150
	local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(1, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
151
	local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Wing", VT(0.25,1,0.25),false)
152
	CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(1, 0, 0))
153
	ANGLE = ANGLE - 15
154
	table.insert(LEFTWINGS,WingWeld)
155
end
156
ANGLE = 35
157
for i = 1, 5 do
158
	local Wing = CreatePart(3, Character, "Granite", 0, 0, "Really red", "Wing", VT(0.15,2+(i/2),0.15),false)
159
	local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(1, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
160
	local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.25,1,0.25),false)
161
	CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(1, 0, 0))
162
	ANGLE = ANGLE - 15
163
	table.insert(RIGHTWINGS,WingWeld)
164
end
165
166
167
function Debounces:New(name,cooldown)
168
	local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
169
	setmetatable(aaaaa,{__index = Debounces})
170
	Debounces.Debounces[name] = aaaaa
171
	return aaaaa
172
end
173
174
function Debounces:Use(overrideUsable)
175
	assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
176
	if(self.Usable or overrideUsable)then
177
		self.Usable = false
178
		self.CoolingDown = true
179
		local LastUse = time()
180
		self.LastUse = LastUse
181
		delay(self.Cooldown or 2,function()
182
			if(self.LastUse == LastUse)then
183
				self.CoolingDown = false
184
				self.Usable = true
185
			end
186
		end)
187
	end
188
end
189
190
function Debounces:Get(name)
191
	assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
192
	for i,v in next, Debounces.Debounces do
193
		if(i == name)then
194
			return v;
195
		end
196
	end
197
end
198
199
function Debounces:GetProgressPercentage()
200
	assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
201
	if(self.CoolingDown and not self.Usable)then
202
		return math.max(
203
			math.floor(
204
				(
205
					(time()-self.LastUse)/self.Cooldown or 2
206
				)*100
207
			)
208
		)
209
	else
210
		return 100
211
	end
212
end
213
214
--// Shortcut Variables \\--
215
local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
216
local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
217
local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
218
local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
219
local R3 = {N=Region3.new}
220
local De = S.Debris
221
local WS = workspace
222
local Lght = S.Lighting
223
local RepS = S.ReplicatedStorage
224
local IN = Instance.new
225
local CSK = ColorSequenceKeypoint.new
226
local CS = ColorSequence.new
227
--// Instance Creation Functions \\--
228
game.Lighting.ClockTime = 23
229
Circle = nil
230
CircleParts = {}
231
Equipped = false
232
233
function RayCast(Position, Direction, MaxDistance, IgnoreList)
234
	return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) 
235
end
236
	Humanoid = Char:FindFirstChildOfClass("Humanoid")
237
	Torso = Char:FindFirstChild("Torso")
238
	if not Plr or not Humanoid or Humanoid.Health == 0 or not Torso then
239
		return
240
	end
241
	Equipped = true
242
	Circle = Instance.new("Model")
243
	Circle.Name = "Circle"
244
	Angle = 0
245
	for i = 1, 1 do
246
		local CirclePart = Instance.new("Part")
247
		CirclePart.Name = "CirclePart"
248
		CirclePart.Transparency = 1
249
		CirclePart.BrickColor = BrickColor.new("Really black")
250
		CirclePart.Material = Enum.Material.Plastic
251
		CirclePart.Shape = Enum.PartType.Block
252
		CirclePart.FormFactor = Enum.FormFactor.Custom
253
		CirclePart.TopSurface = Enum.SurfaceType.Smooth
254
		CirclePart.BottomSurface = Enum.SurfaceType.Smooth
255
		CirclePart.Anchored = true
256
		CirclePart.CanCollide = false
257
		CirclePart.Locked = true
258
		CirclePart.Size = Vector3.new(10, 0.2, 10)
259
		local BlockMesh = Instance.new("BlockMesh")
260
		BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1)
261
		BlockMesh.Parent = CirclePart
262
		CirclePart.Parent = Circle
263
		local Star = Instance.new("Decal", CirclePart)
264
		Star.Texture = "http://www.roblox.com/asset/?id=43997508"
265
		Star.Face = "Top"
266
		local Light = Instance.new("PointLight", CirclePart)
267
		Light.Color = Color3.new(0,1,0)
268
		Light.Brightness = 100
269
		Light.Range = 15
270
		table.insert(CircleParts, CirclePart)
271
	end
272
	Spawn(function()
273
		while Equipped and Humanoid.Parent and Humanoid.Health > 0 and Torso.Parent do
274
			if Angle == 360 then
275
				Angle = 0
276
			end
277
			Angle = Angle + 0.05
278
			local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Char})
279
			if Hit then
280
				if not Circle.Parent then
281
					Circle.Parent = Char
282
				end
283
				for i, v in pairs(CircleParts) do
284
					v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0)
285
				end
286
			else
287
				Circle.Parent = nil
288
			end
289
			wait()
290
		end
291
	end)
292
293
function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
294
	local Sound = IN("Sound")
295
	Sound.SoundId = "rbxassetid://".. tostring(id or 0)
296
	Sound.Pitch = pitch or 1
297
	Sound.Volume = volume or 1
298
	Sound.Looped = looped or false
299
	if(autoPlay)then
300
		coroutine.wrap(function()
301
			repeat wait() until Sound.IsLoaded
302
			Sound.Playing = autoPlay or false
303
		end)()
304
	end
305
	if(not looped and effect)then
306
		Sound.Stopped:connect(function()
307
			Sound.Volume = 0
308
			Sound:destroy()
309
		end)
310
	elseif(effect)then
311
		warn("Sound can't be looped and a sound effect!")
312
	end
313
	Sound.Parent =parent or Torso
314
	return Sound
315
end
316
function Part(parent,color,material,size,cframe,anchored,cancollide)
317
	local part = IN("Part")
318
	part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
319
	part.Material = (material or Enum.Material.SmoothPlastic)
320
	part.TopSurface,part.BottomSurface=10,10
321
	part.Size = (size or V3.N(1,1,1))
322
	part.CFrame = (cframe or CF.N(0,0,0))
323
	part.Anchored = (anchored or false)
324
	part.CanCollide = (cancollide or false)
325
	part.Parent = (parent or Char)
326
	return part
327
end
328
function Mesh(parent,meshtype,meshid,textid,scale,offset)
329
	local part = IN("SpecialMesh")
330
	part.MeshId = meshid or ""
331
	part.TextureId = textid or ""
332
	part.Scale = scale or V3.N(1,1,1)
333
	part.Offset = offset or V3.N(0,0,0)
334
	part.MeshType = meshtype or Enum.MeshType.Sphere
335
	part.Parent = parent
336
	return part
337
end
338
339
NewInstance = function(instance,parent,properties)
340
	local inst = Instance.new(instance,parent)
341
	if(properties)then
342
		for i,v in next, properties do
343
			pcall(function() inst[i] = v end)
344
		end
345
	end
346
	return inst;
347
end
348
349
350
351
--// Extended ROBLOX tables \\--
352
local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance})
353
--// Customization \\--
354
355
local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
356
local Remove_Hats = false
357
local Remove_Clothing = true
358
local PlayerSize = 1
359
local DamageColor = BrickColor.new'Really red'
360
local MusicID = 1438843849 --342140118--
361
local WalkSpeed = 8
362
local MaxSouls = 999999
363
local MaxHealth = 9999999
364
365
366
if(_G.RefusedAnimation == nil) then _G.RefusedAnimation = false end
367
368
--// Weapon and GUI creation, and Character Customization \\--
369
370
if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
371
if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
372
local Effects = IN("Folder",Char)
373
Effects.Name = "Effects"
374
375
Hum.MaxHealth = MaxHealth
376
Hum.Health = MaxHealth
377
378
local Knife = NewInstance("Part",Char,{Name='Knife',Size=V3.N(.4,8,.7),Anchored=false,CanCollide=false,Locked=true,Archivable=false,Reflectance=.01,Color=C3.N(0,0,0)})
379
local Aura = Instance.new('ParticleEmitter')
380
Aura.Name = "Aura"
381
Aura.Texture = "rbxassetid://456425003"
382
Aura.Parent = Knife
383
Aura.LightEmission = 0
384
Aura.Transparency = NumberSequence.new(0,0.6,1)
385
Aura.Color = ColorSequence.new(Color3.new(255/255, 0/255, 0/255),Color3.new(0/255, 0/255, 0/255))
386
Aura.Size = NumberSequence.new(1,1.2,1.4)
387
Aura.LockedToPart = false
388
Aura.Lifetime = NumberRange.new(2)
389
Aura.Rate = 16
390
Aura.Speed = NumberRange.new(3)
391
Aura.EmissionDirection = "Top"
392
local KnifeMesh = Mesh(Knife,Enum.MeshType.FileMesh,"rbxassetid://474005283","rbxassetid://1539341292",V3.N(0.006,0.006,0.006),V3.N(0,2,0))
393
394
395
local KTrail = NewInstance("Trail",Knife,{
396
	Attachment0=NewInstance("Attachment",Knife,{Position=V3.N(0,0.1,0)}),
397
	Attachment1=NewInstance("Attachment",Knife,{Position=V3.N(0,5.3,0)}),
398
	Color=CS(C3.N(255,0,0),C3.N(211,0,0)),
399
	Enabled=true,
400
	Transparency=NumberSequence.new(0,1),
401
	Lifetime=1.25,
402
})
403
local Hair = Part(Char,C3.N(0,1,1),Enum.Material.SmoothPlastic,V3.N(1,1,1),CF.N(),false,false)
404
local HairMesh = Mesh(Hair,Enum.MeshType.FileMesh,"rbxassetid://62246019","rbxassetid://165386736",V3.N(1.05,1.05,1.05),V3.N(0, 0, 0.2))
405
406
NewInstance("PointLight",Knife,{Color=C3.N(0,1,0),Range=10,Brightness=3})
407
408
409
Hum.DisplayDistanceType = 'None'
410
411
function chatfunc(text)
412
    local chat = coroutine.wrap(function()
413
    if Char:FindFirstChild("TalkingBillBoard")~= nil then
414
        Char:FindFirstChild("TalkingBillBoard"):destroy()
415
    end
416
    local Bill = Instance.new("BillboardGui",Char)
417
    Bill.Size = UDim2.new(0,100,0,40)
418
    Bill.StudsOffset = Vector3.new(0,3,0)
419
    Bill.Adornee = Char.Head
420
    Bill.Name = "TalkingBillBoard"
421
    local Hehe = Instance.new("TextLabel",Bill)
422
    Hehe.BackgroundTransparency = 1
423
    Hehe.BorderSizePixel = 0
424
    Hehe.Text = ""
425
    Hehe.Font = "Antique"
426
    Hehe.TextSize = 40
427
    Hehe.TextStrokeTransparency = 0
428
    Hehe.Size = UDim2.new(1,0,0.5,0)
429
    coroutine.resume(coroutine.create(function()
430
        while Hehe ~= nil do
431
            swait()
432
            Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) 
433
            Hehe.Rotation = math.random(-5,5)
434
            Hehe.TextColor3 = Color3.new(math.random(0, 0)/0,0,0)
435
            Hehe.TextStrokeColor3 = Color3.new(math.random(0, 0)/0,0,0)
436
        end
437
    end))
438
    for i = 1,string.len(text),1 do
439
        swait()
440
        Hehe.Text = string.sub(text,1,i)
441
    end
442
    swait(90)--Re[math.random(1, 93)]
443
    for i = 0, 1, .025 do
444
        swait()
445
        Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
446
        Hehe.TextStrokeTransparency = i
447
        Hehe.TextTransparency = i
448
    end
449
    Bill:Destroy()
450
    end)
451
chat()
452
end
453
 
454
function onChatted(msg)
455
    chatfunc(msg)
456
end
457
 
458
Plr.Chatted:connect(onChatted)
459
460
461
IN("Shirt",Char)
462
IN("Pants",Char)
463
464
Hum.WalkSpeed = WalkSpeed
465
if(PlayerSize ~= 1)then
466
	for _,v in next, Char:GetDescendats() do
467
		if(v:IsA'BasePart')then
468
			v.Size = v.Size * PlayerSize
469
		end
470
	end
471
end
472
473
474
for i = 1, 35 do
475
	local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false)
476
	FACE.Transparency = 0+(i-1)/35.2
477
	FACE.Name = 'ShadowFace'
478
	Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
479
	NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)})
480
	--CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
481
end
482
483
local LEye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
484
local LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
485
local LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)})
486
local Aura1 = Instance.new('ParticleEmitter')
487
Aura1.Name = "Aura"
488
Aura1.Texture = "rbxassetid://141116476"
489
Aura1.Parent = LEye
490
Aura1.LightEmission = 1
491
Aura1.Transparency = NumberSequence.new(0,0.6,1)
492
Aura1.Color = ColorSequence.new(Color3.new(0/255, 0/255, 0/255),Color3.new(255/255, 0/255, 0/255))
493
Aura1.Size = NumberSequence.new(0.4,0.3,0.1)
494
Aura1.LockedToPart = false
495
Aura1.Lifetime = NumberRange.new(1)
496
Aura1.Rate = 99
497
Aura1.Speed = NumberRange.new(1)
498
Aura1.EmissionDirection = "Left"
499
500
local REye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
501
local REyeM = Mesh(REye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
502
local REyeW = NewInstance("Weld",REye,{Part0=Head,Part1=REye,C0=CF.N(.2,.2,-.49)})
503
local Aura11 = Instance.new('ParticleEmitter')
504
Aura11.Name = "Aura"
505
Aura11.Texture = "rbxassetid://141116476"
506
Aura11.Parent = REye
507
Aura11.LightEmission = 1
508
Aura11.Transparency = NumberSequence.new(0,0.6,1)
509
Aura11.Color = ColorSequence.new(Color3.new(0/255, 0/255, 0/255),Color3.new(255/255, 0/255, 0/255))
510
Aura11.Size = NumberSequence.new(0.4,0.3,0.1)
511
Aura11.LockedToPart = false
512
Aura11.Lifetime = NumberRange.new(1)
513
Aura11.Rate = 99
514
Aura11.Speed = NumberRange.new(1)
515
Aura11.EmissionDirection = "Right"
516
517
518
pcall(function()
519
	Char.ReaperShadowHead:destroy()
520
end)
521
522
523
local Music = Sound(Torso,MusicID,1,3,true,false,true)
524
Music.Name = 'Music'
525
526
--// Stop animations \\--
527
for _,v in next, Hum:GetPlayingAnimationTracks() do
528
	v:Stop();
529
end
530
531
pcall(game.Destroy,Char:FindFirstChild'Animate')
532
pcall(game.Destroy,Hum:FindFirstChild'Animator')
533
534
--// Joints \\--
535
536
local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
537
local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
538
local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
539
local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
540
local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
541
local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
542
local HW = NewInstance('Motor',Char,{Part0=RArm,Part1=Knife,C0=CF.N(0,-1,-1)*CF.A(M.R(-90),0,0)})
543
local HW2 = NewInstance('Motor',Char,{Part0=Head,Part1=Hair,C0=CF.N(0,.25,0)})
544
545
local LSC0 = LS.C0
546
local RSC0 = RS.C0
547
local NKC0 = NK.C0
548
local LHC0 = LH.C0
549
local RHC0 = RH.C0
550
local RJC0 = RJ.C0
551
552
--// Artificial HB \\--
553
554
local ArtificialHB = IN("BindableEvent", script)
555
ArtificialHB.Name = "Heartbeat"
556
557
script:WaitForChild("Heartbeat")
558
559
local tf = 0
560
local allowframeloss = false
561
local tossremainder = false
562
local lastframe = tick()
563
local frame = 1/Frame_Speed
564
ArtificialHB:Fire()
565
566
game:GetService("RunService").Heartbeat:connect(function(s, p)
567
	tf = tf + s
568
	if tf >= frame then
569
		if allowframeloss then
570
			script.Heartbeat:Fire()
571
			lastframe = tick()
572
		else
573
			for i = 1, math.floor(tf / frame) do
574
				ArtificialHB:Fire()
575
			end
576
			lastframe = tick()
577
		end
578
		if tossremainder then
579
			tf = 0
580
		else
581
			tf = tf - frame * math.floor(tf / frame)
582
		end
583
	end
584
end)
585
586
function swait(num)
587
	if num == 0 or num == nil then
588
		ArtificialHB.Event:wait()
589
	else
590
		for i = 0, num do
591
			ArtificialHB.Event:wait()
592
		end
593
	end
594
end
595
596
597
--// Effect Function(s) \\--
598
599
function Bezier(startpos, pos2, pos3, endpos, t)
600
	local A = startpos:lerp(pos2, t)
601
	local B  = pos2:lerp(pos3, t)
602
	local C = pos3:lerp(endpos, t)
603
	local lerp1 = A:lerp(B, t)
604
	local lerp2 = B:lerp(C, t)
605
	local cubic = lerp1:lerp(lerp2, t)
606
	return cubic
607
end
608
609
function Tween(obj,props,time,easing,direction,repeats,backwards)
610
	local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
611
	local tween = S.TweenService:Create(obj, info, props)
612
	
613
	tween:Play()
614
end
615
616
local FXTable = {}
617
618
coroutine.resume(coroutine.create(function()
619
	while true do
620
		for i = 1, #FXTable do
621
			local data = FXTable[i]
622
			if(data)then
623
				local Frame = data.Frame
624
				local FX = data.Effect or 'ResizeAndFade'
625
				local Parent = data.Parent or Effects
626
				local Color = data.Color or C3.N(0,0,0)
627
				local Size = data.Size or V3.N(1,1,1)
628
				local MoveDir = data.MoveDirection or nil
629
				local MeshData = data.Mesh or nil
630
				local SndData = data.Sound or nil
631
				local Frames = data.Frames or 45
632
				local CFra = data.CFrame or Torso.CFrame
633
				local Settings = data.FXSettings or {}
634
				local Prt,Msh,Snd = data.Part,data.Mesh,data.Sound
635
				local grow = data.Grow
636
				
637
				local MoveSpeed = nil;
638
				if(MoveDir)then
639
					MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
640
				end
641
				if(FX ~= 'Arc')then
642
					Frame = Frame + 1
643
					if(FX == "Fade")then
644
						Prt.Transparency  = (Frame/Frames)
645
					elseif(FX == "Resize")then
646
						if(not Settings.EndSize)then
647
							Settings.EndSize = V3.N(0,0,0)
648
						end
649
						if(Settings.EndIsIncrement)then
650
							if(Msh)then
651
								Msh.Scale = Msh.Scale + Settings.EndSize
652
							else
653
								Prt.Size = Prt.Size + Settings.EndSize
654
							end					
655
						else
656
							if(Msh)then
657
								Msh.Scale = Msh.Scale - grow/Frames
658
							else
659
								Prt.Size = Prt.Size - grow/Frames
660
							end
661
						end 
662
					elseif(FX == "ResizeAndFade")then
663
						if(not Settings.EndSize)then
664
							Settings.EndSize = V3.N(0,0,0)
665
						end
666
						if(Settings.EndIsIncrement)then
667
							if(Msh)then
668
								Msh.Scale = Msh.Scale + Settings.EndSize
669
							else
670
								Prt.Size = Prt.Size + Settings.EndSize
671
							end					
672
						else
673
							if(Msh)then
674
								Msh.Scale = Msh.Scale - grow/Frames
675
							else
676
								Prt.Size = Prt.Size - grow/Frames
677
							end
678
						end 
679
						Prt.Transparency = (Frame/Frames)
680
					end
681
					if(Settings.RandomizeCFrame)then
682
						Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
683
					end
684
					if(MoveDir and MoveSpeed)then
685
						local Orientation = Prt.Orientation
686
						Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
687
						Prt.Orientation = Orientation
688
					end
689
					if(Prt.Transparency >= 1 or Frame >= Frames)then
690
						Prt:destroy()
691
						table.remove(FXTable,i)
692
					else
693
						data.Frame = Frame
694
					end
695
				else
696
					local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
697
					if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
698
					if(start and endP)then
699
						local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
700
						local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
701
						Frame = Frame + (Settings.Speed or 0.01)
702
						if(Settings.Home)then
703
							endP = Settings.Home.CFrame
704
						end
705
						Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
706
						if(Prt.Transparency >= 1 or Frame >= Frames)then
707
							if(Settings.RemoveOnGoal)then
708
								Prt:destroy()
709
							end
710
						end
711
					else
712
						Prt:destroy()
713
					end
714
				end
715
			end
716
		end
717
		swait()
718
	end
719
end))
720
721
function Effect(data)
722
	local FX = data.Effect or 'ResizeAndFade'
723
	local Parent = data.Parent or Effects
724
	local Color = data.Color or C3.N(0,0,0)
725
	local Size = data.Size or V3.N(1,1,1)
726
	local MoveDir = data.MoveDirection or nil
727
	local MeshData = data.Mesh or nil
728
	local SndData = data.Sound or nil
729
	local Frames = data.Frames or 45
730
	local Manual = data.Manual or nil
731
	local Material = data.Material or nil
732
	local CFra = data.CFrame or Torso.CFrame
733
	local Settings = data.FXSettings or {}
734
	local Shape = data.Shape or Enum.PartType.Block
735
	local Snd,Prt,Msh;
736
	coroutine.wrap(function()
737
		if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
738
			Prt = Manual
739
		else
740
			Prt = Part(Parent,Color,Material,Size,CFra,true,false)
741
			Prt.Shape = Shape
742
		end
743
		if(typeof(MeshData) == 'table')then
744
			Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
745
		elseif(typeof(MeshData) == 'Instance')then
746
			Msh = MeshData:Clone()
747
			Msh.Parent = Prt
748
		elseif(Shape == Enum.PartType.Block)then
749
			Msh = Mesh(Prt,Enum.MeshType.Brick)
750
		end
751
		if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
752
			Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
753
		end
754
		if(Snd)then
755
			repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
756
			Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
757
		end
758
		Size = (Msh and Msh.Scale or Size)
759
		local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
760
		
761
		local MoveSpeed = nil;
762
		if(MoveDir)then
763
			MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
764
		end
765
		if(FX ~= 'Arc')then
766
			for Frame = 1, Frames do
767
				if(FX == "Fade")then
768
					Prt.Transparency  = (Frame/Frames)
769
				elseif(FX == "Resize")then
770
					if(not Settings.EndSize)then
771
						Settings.EndSize = V3.N(0,0,0)
772
					end
773
					if(Settings.EndIsIncrement)then
774
						if(Msh)then
775
							Msh.Scale = Msh.Scale + Settings.EndSize
776
						else
777
							Prt.Size = Prt.Size + Settings.EndSize
778
						end					
779
					else
780
						if(Msh)then
781
							Msh.Scale = Msh.Scale - grow/Frames
782
						else
783
							Prt.Size = Prt.Size - grow/Frames
784
						end
785
					end 
786
				elseif(FX == "ResizeAndFade")then
787
					if(not Settings.EndSize)then
788
						Settings.EndSize = V3.N(0,0,0)
789
					end
790
					if(Settings.EndIsIncrement)then
791
						if(Msh)then
792
							Msh.Scale = Msh.Scale + Settings.EndSize
793
						else
794
							Prt.Size = Prt.Size + Settings.EndSize
795
						end					
796
					else
797
						if(Msh)then
798
							Msh.Scale = Msh.Scale - grow/Frames
799
						else
800
							Prt.Size = Prt.Size - grow/Frames
801
						end
802
					end 
803
					Prt.Transparency = (Frame/Frames)
804
				end
805
				if(Settings.RandomizeCFrame)then
806
					Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
807
				end
808
				if(MoveDir and MoveSpeed)then
809
					local Orientation = Prt.Orientation
810
					Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
811
					Prt.Orientation = Orientation
812
				end
813
				swait()
814
			end
815
			Prt:destroy()
816
		else
817
			local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
818
			if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
819
			if(start and endP)then
820
				local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
821
				local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
822
				for Frame = 0, 1, (Settings.Speed or 0.01) do
823
					if(Settings.Home)then
824
						endP = Settings.Home.CFrame
825
					end
826
					Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
827
				end
828
				if(Settings.RemoveOnGoal)then
829
					Prt:destroy()
830
				end
831
			else
832
				Prt:destroy()
833
				assert(start,"You need a start position!")
834
				assert(endP,"You need a start position!")
835
			end
836
		end
837
	end)()
838
	return Prt,Msh,Snd
839
end
840
841
842
function SoulSteal(whom,human)
843
	local torso = (whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart' or whom:FindFirstChild'Torso')
844
	local succ, health, alive = pcall(function() return whom:FindFirstChildOfClass'Humanoid'.Health, whom:FindFirstChildOfClass'Humanoid'.Health > 0 end)
845
	if(torso and torso:IsA'BasePart' and alive == true)then
846
		whom:FindFirstChildOfClass'Humanoid'.Health = 0
847
		whom:BreakJoints()
848
		local Model = IN("Model",Effects)
849
		warn('Soul stolen from '..whom.Name)
850
		Model.Name = whom.Name.."'s Soul"
851
		local Soul = Part(Model,(human and BrickColor.new'Really red' or BrickColor.new(C3.N(0,1,1))),'Glass',V3.N(1,1,1),torso.CFrame,true,false)
852
		Soul.CanCollide=false
853
		Mesh(Soul,Enum.MeshType.Sphere)
854
		Soul.Name = 'Head'
855
		if(whom.Name == 'CKbackup')then
856
			Soul.Color = C3.N(0,1,0)
857
			local DripEmitter = NewInstance("ParticleEmitter",Soul,{EmissionDirection='Bottom',Color=CS(Soul.Color),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new(0.3),Texture="rbxassetid://243132757",Transparency=NumberSequence.new(0,1),LockedToPart=false,Lifetime=NumberRange.new(1),Rate=150,Speed=NumberRange.new(5)})
858
		end
859
		local Hoom = NewInstance("Humanoid",Model,{MaxHealth=(health <= 10000 and health/2 or 10000),Health=(health <= 10000 and health/2 or 10000)})
860
		local AT0 = NewInstance("Attachment",Soul,{Position=V3.N(0,.5,0)})
861
		local AT1 = NewInstance("Attachment",Soul,{Position=V3.N(0,-.5,0)})
862
		local Trail = NewInstance("Trail",Soul,{Attachment0=AT0,Attachment1=AT1,Transparency=NumberSequence.new(0),FaceCamera = true,Texture="rbxassetid://945758042",LightEmission=.3,Color=CS(Soul.Color),Lifetime=.5,MinLength=0})
863
		NewInstance("PointLight",Soul,{Color=Soul.Color,Range=10,Brightness=(human and 3 or .5)})
864
		
865
		local turdso = Soul:Clone()
866
		turdso.Name = "Torso"
867
		turdso.CanCollide = false
868
		turdso.Anchored = true
869
		turdso.CFrame = Soul.CFrame
870
		turdso.Parent = Model
871
		turdso.Size = V3.N()
872
		turdso.Transparency=1
873
		local Distance = math.huge
874
		repeat
875
			Soul.CFrame = CF.N(Soul.Position,Torso.Position)*CF.N(0,0,-1)
876
			turdso.CFrame = Soul.CFrame
877
			Distance = (Soul.CFrame.p-Torso.CFrame.p).magnitude
878
			swait()
879
		until Hoom.Health <= 0 or not Soul.Parent or Distance <= 1.2
880
		if(Soul.Parent and Hoom.Health > 0)then
881
			Model:destroy()
882
			Effect{
883
				Effect="ResizeAndFade",
884
				Mesh={Enum.MeshType.Sphere},
885
				Color = Soul.Color,
886
				CFrame=Torso.CFrame,
887
				Size=V3.N(3,3,3),
888
				Material=Enum.Material.Neon,
889
				Sound={SoundId=444667859,Pitch=1,Volume=2.5},
890
				FXSettings={
891
					EndSize=V3.N(6,6,6),
892
				}
893
			}
894
			Souls = Souls + (human and 1 or .1)
895
			warn("Souls: "..Souls)
896
			MaxHealth = MaxHealth + Hoom.Health
897
			Hum.Health = Hum.Health + Hoom.Health
898
			for i = 1, 5 do
899
				Effect{
900
					Effect="Fade",
901
					Color = Soul.Color,
902
					MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
903
				}	
904
			end
905
		else
906
			
907
			warn("Soul destroyed!")
908
			for i = 1, 5 do
909
				Effect{
910
					Effect="Fade",
911
					Color = Soul.Color,
912
					CFrame=Soul.CFrame,
913
					MoveDirection = (Soul.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
914
				}	
915
			end
916
			Effect{
917
				Effect="ResizeAndFade",
918
				Mesh={Enum.MeshType.Sphere},
919
				Sound={SoundId=444667859,Pitch=1,Volume=5},
920
				Color = Soul.Color,
921
				CFrame=Soul.CFrame,
922
				Size=V3.N(3,3,3),
923
				Material=Enum.Material.Neon,
924
				FXSettings={
925
					EndSize=V3.N(6,6,6),
926
				}
927
			}
928
			Model:destroy()
929
		end
930
	end
931
end
932
933
--// Other Functions \\ --
934
935
function getRegion(point,range,ignore)
936
    return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
937
end
938
939
function clerp(startCF,endCF,alpha)
940
	return startCF:lerp(endCF, alpha)
941
end
942
943
function GetTorso(char)
944
	return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
945
end
946
947
function ShowDamage(Pos, Text, Time, Color)
948
	coroutine.wrap(function()
949
	local Rate = (1 / Frame_Speed)
950
	local Pos = (Pos or Vector3.new(0, 0, 0))
951
	local Text = (Text or "")
952
	local Time = (Time or 2)
953
	local Color = (Color or Color3.new(1, 0, 1))
954
	local EffectPart = NewInstance("Part",Effects,{
955
		Material=Enum.Material.SmoothPlastic,
956
		Reflectance = 0,
957
		Transparency = 1,
958
		BrickColor = BrickColor.new(Color),
959
		Name = "Effect",
960
		Size = Vector3.new(0,0,0),
961
		Anchored = true,
962
		CFrame = CF.N(Pos)
963
	})
964
	local BillboardGui = NewInstance("BillboardGui",EffectPart,{
965
		Size = UDim2.new(1.25, 0, 1.25, 0),
966
		Adornee = EffectPart,
967
	})
968
	local TextLabel = NewInstance("TextLabel",BillboardGui,{
969
		BackgroundTransparency = 1,
970
		Size = UDim2.new(1, 0, 1, 0),
971
		Text = Text,
972
		Font = "Arcade",
973
		TextColor3 = Color,
974
		TextStrokeColor3 = Color3.new(0,0,0),
975
		TextStrokeTransparency=0,
976
		TextScaled = true,
977
	})
978
	S.Debris:AddItem(EffectPart, (Time))
979
	EffectPart.Parent = workspace
980
	delay(0, function()
981
		Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
982
		local Frames = (Time / Rate)
983
		for Frame = 1, Frames do
984
			swait()
985
			local Percent = (Frame / Frames)
986
			TextLabel.TextTransparency = Percent
987
			TextLabel.TextStrokeTransparency = Percent
988
		end
989
		if EffectPart and EffectPart.Parent then
990
			EffectPart:Destroy()
991
		end
992
	end) end)()
993
end
994
995
function Kill(whom)
996
	if(whom.Name ~= 'Nebula_Zorua')then
997
		local isPlr = Plrs:GetPlayerFromCharacter(whom) ~= nil
998
		coroutine.wrap(SoulSteal)(whom,isPlr)
999
		for _,v in next, whom:children() do
1000
			if(v:IsA'BasePart')then
1001
				v.Parent = Effects
1002
				v:ClearAllChildren()
1003
				v.Anchored = true
1004
				v.CanCollide = false
1005
				v.Transparency = 1
1006
				local dust = NewInstance("ParticleEmitter",v,{
1007
					Color = ColorSequence.new(C3.N(0,1,1)),
1008
					LightEmission=0,
1009
					LightInfluence=1,
1010
					Size=NumberSequence.new{NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)},
1011
					Texture="rbxassetid://284205403",
1012
					Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)},
1013
					Lifetime = NumberRange.new(1),
1014
					Rate=150,
1015
					Acceleration = V3.N(0,10,0),
1016
					Speed = NumberRange.new(5),
1017
					Enabled = true
1018
				})
1019
				delay(1, function()
1020
					dust.Enabled = false
1021
					S.Debris:AddItem(v,2)
1022
				end)
1023
			end
1024
		end
1025
	else
1026
		warn"nope. nawt happenin'"
1027
	end
1028
end
1029
1030
function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult)
1031
	if(who)then
1032
		local hum = who:FindFirstChildOfClass'Humanoid'
1033
		local Damage = M.RNG(minDam,maxDam)
1034
		local canHit = true
1035
		if(hum)then
1036
			for _, p in pairs(Hit) do
1037
				if p[1] == hum then
1038
					if(time() - p[2] < 0.4) then
1039
						canHit = false
1040
					else
1041
						Hit[_] = nil
1042
					end
1043
				end
1044
			end
1045
			if(canHit)then
1046
				table.insert(Hit,{hum,time()})
1047
				if(GetTorso(who))then
1048
					Sound(GetTorso(who),406913243,1,10,false,true,true)
1049
				end
1050
				if(hum.Health >= math.huge)then
1051
					Kill(who)
1052
					if(who:FindFirstChild'Head' and hum.Health > 0)then
1053
						ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "INSTANT", 3, DamageColor.Color)
1054
					end
1055
				else
1056
					local player = S.Players:GetPlayerFromCharacter(who)
1057
					if(Type == "Fire")then
1058
						--idk..
1059
					else
1060
						local  c = Instance.new("ObjectValue",hum)
1061
						c.Name = "creator"
1062
						c.Value = Plr
1063
						game:service'Debris':AddItem(c,0.35)
1064
						local Crit = false
1065
						if(M.RNG(1,100) <= (critChance or 0) and critMult > 1)then
1066
							Crit = true
1067
							Damage = Damage*(critMult or 2)
1068
						end
1069
						Damage = Damage*((Souls/5)+1)
1070
						if(who:FindFirstChild'Head' and hum.Health > 0)then
1071
							ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), (Crit and "[CRIT] " or "").. math.floor(Damage), 3, (Crit and BrickColor.new'New Yeller'.Color or DamageColor.Color))
1072
						end
1073
						
1074
						if(hum.Health - Damage <= 0)then
1075
							Kill(who)
1076
						else
1077
							hum.Health = hum.Health - Damage
1078
							if(Type == 'Knockback' and GetTorso(who))then
1079
								local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit
1080
								local body = NewInstance('BodyVelocity',GetTorso(who),{
1081
									P = 500,
1082
									maxForce = V3.N(math.huge,0,math.huge),
1083
									velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05
1084
								})
1085
								game:service'Debris':AddItem(body,.5)
1086
							elseif(Type == "Electric")then
1087
								if(M.RNG(1,100) >= critChance)then
1088
									if(who:FindFirstChild'Head' and hum.Health > 0)then
1089
										ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[PARALYZED]", 3, BrickColor.new"New Yeller".Color)
1090
									end
1091
									local asd = hum.WalkSpeed/2
1092
									hum.WalkSpeed = asd
1093
									local paralyzed = true
1094
									coroutine.wrap(function()
1095
										while paralyzed do
1096
											swait(25)
1097
											if(M.RNG(1,25) == 1)then
1098
												if(who:FindFirstChild'Head' and hum.Health > 0)then
1099
													ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[STATIC]", 3, BrickColor.new"New Yeller".Color)
1100
												end
1101
												hum.PlatformStand = true
1102
											end
1103
										end
1104
									end)()
1105
									delay(4, function()
1106
										paralyzed = false
1107
										hum.WalkSpeed = hum.WalkSpeed + asd
1108
									end)
1109
								end
1110
								
1111
							elseif(Type == 'Knockdown' and GetTorso(who))then
1112
								local rek = GetTorso(who)
1113
								hum.PlatformStand = true
1114
								delay(1,function()
1115
									hum.PlatformStand = false
1116
								end)
1117
								local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit
1118
								local bodvol = NewInstance("BodyVelocity",rek,{
1119
									velocity = angle * Knock,
1120
									P = 5000,
1121
									maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
1122
								})
1123
								local rl = NewInstance("BodyAngularVelocity",rek,{
1124
									P = 3000,
1125
									maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
1126
									angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
1127
								})
1128
								game:GetService("Debris"):AddItem(bodvol, .5)
1129
								game:GetService("Debris"):AddItem(rl, .5)
1130
							end
1131
						end
1132
					end
1133
				end
1134
			end
1135
		end
1136
	end
1137
end
1138
1139
1140
function AOEDamage(where,range,minDam,maxDam,Knock,Type,critChance,critMult)
1141
	for _,v in next, getRegion(where,range,{Char}) do
1142
		if(v.Name ~= 'Nebula_Zorua')then
1143
			if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then
1144
				DealDamage(v.Parent,minDam,maxDam,Knock,Type,critChance,critMult)
1145
			end
1146
		end
1147
	end
1148
end
1149
1150
function AOEKill(where,range)
1151
	local sound = Sound(Char,752783199,1,999,false,true,false)
1152
	chatfunc("This is what you get from kill me...")
1153
	for _,v in next, getRegion(where,range,{Char,Effects}) do
1154
		local succ,alive = pcall(function() return v.Parent:FindFirstChildOfClass'Humanoid'.Health > 0 end)
1155
		if(v.Name ~= 'tamloveeif02')then
1156
			if(v.Parent and alive == true)then
1157
				coroutine.wrap(Kill)(v.Parent)
1158
				sound:Play()
1159
			end
1160
		end
1161
	end
1162
end
1163
1164
function AOEHeal(where,range,amount)
1165
	local healed = {}
1166
	for _,v in next, getRegion(where,range,{Char}) do
1167
		local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
1168
		if(hum and not healed[hum])then
1169
			hum.Health = hum.Health + amount
1170
			if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
1171
				ShowDamage((v.Parent.Head.CFrame * CF.N(0, 0, (v.Parent.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "+"..amount, 1.5, BrickColor.new'Really red'.Color)
1172
			end
1173
		end
1174
	end
1175
end
1176
1177
1178
--// Attack Functions \\--
1179
1180
1181
function Slash()
1182
	Attack = true
1183
	NeutralAnims = false
1184
	local sound = Sound(Knife,536642316,1,6,false,true,false)
1185
	for i = 0, 2, 0.1 do
1186
		swait()
1187
		local Alpha = .2
1188
		RJ.C0 = clerp(RJ.C0,CFrame.new(0.0343287587, 0.00629056804, 0.0572580174, 0.943793893, 0.00207689893, 0.330528289, 1.0000764e-06, 0.99998033, -0.00628630351, -0.330534875, 0.00593330665, 0.943775296),Alpha)
1189
		LH.C0 = clerp(LH.C0,CFrame.new(-0.496478021, -0.990818381, 0.021652732, 0.999878168, 0, 0.0156089365, -9.80779296e-05, 0.99998033, 0.00628268253, -0.0156086385, -0.00628344761, 0.999858379),Alpha)
1190
		RH.C0 = clerp(RH.C0,CFrame.new(0.498511612, -0.990985274, 0.0154910646, 0.999878168, 0, 0.0156089365, -9.80779296e-05, 0.99998033, 0.00628268253, -0.0156086385, -0.00628344761, 0.999858379),Alpha)
1191
		LS.C0 = clerp(LS.C0,CFrame.new(-1.32692134, 0.474511296, -0.0055731535, 0.934981823, 0.354351997, 0.0156129003, -0.354479939, 0.93504262, 0.00628374517, -0.0123721063, -0.0114096552, 0.999858379),Alpha)
1192
		RS.C0 = clerp(RS.C0,CFrame.new(1.12629449, 0.369358033, -0.486052871, 0.490151912, 0.65154773, 0.57899636, 0.721657813, 0.0691910982, -0.688783586, -0.488836735, 0.755445719, -0.436280251),Alpha)
1193
		NK.C0 = clerp(NK.C0,CFrame.new(-0.0118216109, 1.49854016, -0.0795068145, 0.943793833, 0.0190048125, -0.329988182, 0.00207654224, 0.997985244, 0.0634154305, 0.330528468, -0.0605363287, 0.94185257),Alpha)
1194
		HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
1195
	end
1196
	KTrail.Enabled = true
1197
	sound:Play()
1198
	for i = 0, 2.5, 0.1 do
1199
		swait()
1200
		AOEDamage(Knife.CFrame.p,1,999999,999999,0,"Normal",0,1)
1201
		local Alpha = .25
1202
		RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0352100767, 0.00629066909, -0.0097481478, 0.817972422, -0.00361463916, -0.575246274, -1.74103582e-06, 0.99998033, -0.00628598873, 0.575257719, 0.00514276745, 0.817956269),Alpha)
1203
		LH.C0 = clerp(LH.C0,CFrame.new(-0.496478021, -0.990818381, 0.0216572341, 0.999878287, 0, 0.015610218, -9.80866607e-05, 0.99998033, 0.00628274865, -0.0156098902, -0.00628351374, 0.999858499),Alpha)
1204
		RH.C0 = clerp(RH.C0,CFrame.new(0.498511702, -0.990985274, 0.0154905058, 0.999878287, 0, 0.015610218, -9.80866607e-05, 0.99998033, 0.00628274865, -0.0156098902, -0.00628351374, 0.999858499),Alpha)
1205
		LS.C0 = clerp(LS.C0,CFrame.new(-1.32694602, 0.474510223, -0.00555660389, 0.934981823, 0.354351729, 0.0156157613, -0.354479671, 0.935042739, 0.00628153514, -0.012375474, -0.0114085823, 0.999858379),Alpha)
1206
		RS.C0 = clerp(RS.C0,CFrame.new(1.23906493, 0.406229913, 0.00231830776, 0.49015066, -0.849889755, 0.193494052, 0.721655607, 0.520183682, 0.456752002, -0.488841236, -0.0842411816, 0.868295968),Alpha)
1207
		NK.C0 = clerp(NK.C0,CFrame.new(0.0315471888, 1.49887729, -0.0257819965, 0.817972481, -0.0330747738, 0.574305832, -0.00361499586, 0.998030663, 0.0626262054, -0.575246155, -0.0533026271, 0.81624186),Alpha)
1208
		HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
1209
	end
1210
	KTrail.Enabled = true
1211
	Attack = false
1212
	NeutralAnims = true
1213
end
1214
1215
Mouse.Button1Down:connect(function()
1216
	if(Attack)then return end
1217
	Slash()	
1218
end)
1219
1220
Mouse.KeyDown:connect(function(k)
1221
	if(Attack)then return end
1222
	if(k == 'z')then AOEKill(Root.CFrame.p,1900) end
1223
	if(k == 'r')then WalkSpeed = (WalkSpeed == 8 and 200 or 8) end
1224
	if(k == 'e')then WalkSpeed = (WalkSpeed == 8 and 60 or 8) end	
1225
	if(k == 'q')then WalkSpeed = (WalkSpeed == 8 and 32 or 8) end
1226
	if(k == 't')then Sound(Char,654422659,1,90) Root.CFrame = CFrame.new(CFrame.new(Mouse.Hit.p)*CFrame.new(0,2.8,0).p,Root.Position) end
1227
end)
1228
1229
1230
local BODY = {}
1231
1232
for _, c in pairs(Char:GetDescendants()) do
1233
	if c:IsA("BasePart") and c.Name ~= "Handle" then
1234
		if c ~= Root and c ~= Torso and c ~= Head and c ~= RArm and c ~= LArm and c ~= RLeg and c ~= LLeg then
1235
			c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1236
		end
1237
		table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
1238
	elseif c:IsA("JointInstance") then
1239
		table.insert(BODY,{c,c.Parent,nil,nil,nil})
1240
	end
1241
end
1242
1243
for e = 1, #BODY do
1244
	if BODY[e] ~= nil then
1245
		local STUFF = BODY[e]
1246
		local PART = STUFF[1]
1247
		local PARENT = STUFF[2]
1248
		local MATERIAL = STUFF[3]
1249
		local COLOR = STUFF[4]
1250
		local TRANSPARENCY = STUFF[5]
1251
		if PART.ClassName == "Part" and PART ~= Root then
1252
		end
1253
		PART.AncestryChanged:Connect(function()
1254
			PART.Parent = PARENT
1255
		end)
1256
	end
1257
end
1258
1259
function refit()
1260
	Char.Parent = workspace
1261
	for e = 1, #BODY do
1262
		if BODY[e] ~= nil then
1263
			local STUFF = BODY[e]
1264
			local PART = STUFF[1]
1265
			local PARENT = STUFF[2]
1266
			local MATERIAL = STUFF[3]
1267
			local COLOR = STUFF[4]
1268
			local TRANSPARENCY = STUFF[5]
1269
			if PART.ClassName == "Part" and PART ~= Root then
1270
			end
1271
			if PART.Parent ~= PARENT then
1272
				Humanoid:remove()
1273
				PART.Parent = PARENT
1274
				Humanoid = Instance.new("Humanoid",Char)
1275
			end
1276
		end
1277
	end
1278
		Humanoid.Died:connect(function()
1279
	refit()
1280
	end)
1281
	LEye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
1282
	LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
1283
	LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)})
1284
	
1285
	REye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
1286
	REyeM = Mesh(REye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
1287
	REyeW = NewInstance("Weld",REye,{Part0=Head,Part1=REye,C0=CF.N(.2,.2,-.49)})
1288
	for i = 1, 35 do
1289
		local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false)
1290
		FACE.Transparency = 0+(i-1)/35.2
1291
		FACE.Name = 'ShadowFace'
1292
		Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
1293
		NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)})
1294
		NewInstance("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
1295
	end
1296
	Hum = NewInstance("Humanoid",Char,{DisplayDistanceType='None'})
1297
	Hum.MaxHealth = MaxHealth
1298
	Hum.Health = MaxHealth
1299
	swait(5)
1300
	Char.Parent = workspace
1301
	
1302
	Attack = false
1303
end
1304
1305
	Humanoid.Died:connect(function()
1306
	refit()
1307
	end)
1308
1309
--// Wrap it all up \\--
1310
while true do
1311
	swait()
1312
	Sine = Sine + Change
1313
	if(not Music)then
1314
		Music = Sound(Torso,MusicID,1,3,true,false,true)
1315
		Music.Name = 'Music'
1316
	end
1317
	Music.Pitch = 1
1318
	Music.Volume = 5
1319
	Music.SoundId = "rbxassetid://"..MusicID
1320
	Music.Parent = Char
1321
	Music:Resume()
1322
	local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * 4), Char)
1323
	local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
1324
	local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and "Walk" or hitfloor and "Idle")
1325
	if(not Effects or not Effects.Parent)then
1326
		Effects = IN("Model",Char)
1327
		Effects.Name = "Effects"
1328
	end
1329
	Hum.WalkSpeed = WalkSpeed
1330
	if(State == 'Walk')then
1331
		if(Hum.WalkSpeed >= 24)then
1332
			local wsVal = 22 / (Hum.WalkSpeed/16)
1333
			local Alpha = math.min(.1 * (Hum.WalkSpeed/16),1)
1334
			Change = 2
1335
			RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.2*M.C(Sine/wsVal),0+.4*M.C(Sine/wsVal))*CF.A(M.R(25+45*M.C(Sine/wsVal))+-M.S(Sine/wsVal),0,0),Alpha)
1336
			LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.2*M.C(Sine/wsVal),0-.4*M.C(Sine/wsVal))*CF.A(M.R(25-45*M.C(Sine/wsVal))+M.S(Sine/wsVal),0,0),Alpha)
1337
		else
1338
			Change = .9
1339
			local wsVal = 8 / (Hum.WalkSpeed/8)
1340
			local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
1341
			LH.C1 = LH.C1:lerp(CF.N(0,1-.2*M.C(Sine/wsVal)/2,.4*M.C(Sine/wsVal)/2)*CF.A(M.R(15-2*M.C(Sine/wsVal))-M.S(Sine/wsVal)/2.5,0,0)*CF.A(M.R(0-3*M.C(Sine/wsVal)),0,0),Alpha)
1342
			RH.C1 = RH.C1:lerp(CF.N(0,1+.2*M.C(Sine/wsVal)/2,-.4*M.C(Sine/wsVal)/2)*CF.A(M.R(15+2*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0)*CF.A(M.R(0+3*M.C(Sine/wsVal)),0,0),Alpha)
1343
		end
1344
	else
1345
		RH.C1 = RH.C1:lerp(CF.N(0,1,0),.1)
1346
		LH.C1 = LH.C1:lerp(CF.N(0,1,0),.1)
1347
	end	
1348
	for _,v in next, Char:children() do
1349
		if(v:IsA'Accessory')then
1350
			v:destroy()
1351
		elseif(v:IsA'Shirt')then
1352
			v.ShirtTemplate = "rbxassetid://338740550"
1353
		elseif(v:IsA'Pants')then
1354
			v.PantsTemplate = "rbxassetid://338750779"
1355
		elseif(v:FindFirstChildOfClass'ShirtGraphic')then
1356
			v:FindFirstChildOfClass'ShirtGraphic':destroy()
1357
		end
1358
	end
1359
	local face = Head:FindFirstChild'face'
1360
	if(not face)then
1361
		NewInstance("Decal",Head,{Name='face',Face=Enum.NormalId.Front,Texture="rbxassetid://404306534"})
1362
	else
1363
		face.Texture = "rbxassetid://900134257"
1364
	end
1365
	RArm.BrickColor = BrickColor.new'Pastel yellow'
1366
	LArm.BrickColor = BrickColor.new'Pastel yellow'
1367
	RLeg.BrickColor = BrickColor.new'Pastel yellow'
1368
	LLeg.BrickColor = BrickColor.new'Pastel yellow'
1369
	Torso.BrickColor = BrickColor.new'Pastel yellow'
1370
	Head.BrickColor = BrickColor.new'Pastel yellow'
1371
	if(Hum.MaxHealth ~= MaxHealth)then
1372
		Hum.MaxHealth = MaxHealth
1373
	end
1374
	Hum.DisplayDistanceType='None'
1375
	if(NeutralAnims)then	
1376
		if(State == 'Idle')then
1377
			Change = 1
1378
			local Alpha = .1
1379
			RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0999571308, 0+.05*M.C(Sine/16), -0.237876296, 0.857335567, -0.00323621999, -0.514731407, 0, 0.99998033, -0.00628707698, 0.51474154, 0.00539013464, 0.85731858),Alpha)
1380
			LH.C0 = clerp(LH.C0,CFrame.new(-0.536091685, -0.991042495-.05*M.C(Sine/16), -0.0134909991, 0.849195242, 0, 0.528063774, -0.00331997755, 0.99998033, 0.00533895614, -0.528053343, -0.00628707698, 0.849178433),Alpha)
1381
			RH.C0 = clerp(RH.C0,CFrame.new(0.529067397, -0.991597891-.05*M.C(Sine/16), -0.0818087086, 0.849195242, 0, 0.528063774, -0.00331997755, 0.99998033, 0.00533895614, -0.528053343, -0.00628707698, 0.849178433),Alpha)
1382
			LS.C0 = clerp(LS.C0,CFrame.new(-1.32175505, 0.156236127+.15*M.C(Sine/16), 0.233877867, 0.877554953, -1.456876248, 0.145469457, 0.259513229, 0.707695842, 0.657129884, -0.403175086, -0.538916171, 0.739607573),Alpha)
1383
			RS.C0 = clerp(RS.C0,CFrame.new(1.2516855, 0.604915917+.15*M.C(Sine/16), -0.0189059302, 0.915104508, -0.287113011, -0.283108115, 0.301054537, 0.953587949, -2.00603589695, 0.268235415, -0.0907544345, 0.959069014),Alpha)
1384
			NK.C0 = clerp(NK.C0,CFrame.new(1.79447234e-05, 1.49895597, -0.0143749639, 0.769539058, -0.360377938, 0.527197778, 0.387706369, 0.919646919, 0.0627188534, -0.507438183, 0.156133309, 0.847424924),Alpha)
1385
			HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
1386
			-- idle
1387
		elseif(State == 'Walk')then
1388
			if(Hum.WalkSpeed >= 24)then
1389
				local wsVal = 22 / (Hum.WalkSpeed/16)
1390
				local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
1391
				RJ.C0 = RJ.C0:lerp(CF.N(0,0-.15*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15),M.R(0-15*M.S(Sine/wsVal)/2),0),Alpha)
1392
				LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5+15*M.S(Sine/wsVal))),Alpha)
1393
				RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-45*M.S(Sine/wsVal)),0,M.R(5+15*M.S(Sine/wsVal))),Alpha)
1394
				NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(15),0,0),Alpha)
1395
				LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.15*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(15),0,0),Alpha)
1396
				RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.15*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(15),0,0),Alpha)
1397
				HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
1398
			else
1399
				local wsVal = 8 / (Hum.WalkSpeed/8)
1400
				local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
1401
				RJ.C0 = RJ.C0:lerp(CF.N(0,0-.05*M.C(Sine/(wsVal/2)),0)*CF.A(0,M.R(0-5*M.S(Sine/wsVal)/2),0),Alpha)
1402
				LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-25*M.S(Sine/wsVal)),0,M.R(5-5*M.S(Sine/wsVal))),Alpha)
1403
				RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+25*M.S(Sine/wsVal)),0,M.R(-5-5*M.S(Sine/wsVal))),Alpha)
1404
				NK.C0 = NK.C0:lerp(NKC0,Alpha)
1405
				LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha)
1406
				RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha)
1407
				HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
1408
			end
1409
		elseif(State == 'Jump' or State == 'Fall')then
1410
			if(Walking)then
1411
				local Alpha = .2
1412
				RJ.C0 = clerp(RJ.C0,RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(65)),M.R(65)),0,0),Alpha)
1413
				LH.C0 = clerp(LH.C0,CFrame.new(-0.497912645, -1.0987643, -0.0683324337, 0.999878228, 0.00860835519, 0.0130246133, -0.00010142161, 0.837816596, -0.545952022, -0.015611981, 0.545884132, 0.837715328),Alpha)
1414
				RH.C0 = clerp(RH.C0,CFrame.new(0.499978393, -1.16382337, 0.109293163, 0.999878228, -0.0120433727, 0.00993486121, -0.00010142161, 0.631323814, 0.775519371, -0.015611981, -0.775425911, 0.631245613),Alpha)
1415
				LS.C0 = clerp(LS.C0,CFrame.new(-1.55211556, 0.576563478, -0.00269976072, 0.976067662, 0.216906726, 0.0156116467, -0.217024669, 0.976145923, 0.00628317893, -0.0138763804, -0.00952091813, 0.999858499),Alpha)
1416
				RS.C0 = clerp(RS.C0,CFrame.new(1.50182188, 0.636661649, 0.00632623257, 0.977592707, -0.209926367, 0.0156121543, 0.209851891, 0.977713108, 0.00628198683, -0.016582964, -0.00286500831, 0.999858439),Alpha)
1417
				NK.C0 = clerp(NK.C0,CFrame.new(1.14440072e-05, 1.49924362, -0.0143961608, 1.00000024, -5.82076609e-11, 0, 1.23691279e-10, 0.997964919, 0.0637660474, 0, -0.0637660623, 0.997965038),Alpha)
1418
				HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
1419
			else
1420
				local Alpha = .2
1421
				RJ.C0 = clerp(RJ.C0,RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(65)),M.R(65)),0,0),Alpha)
1422
				LH.C0 = clerp(LH.C0,CFrame.new(-0.504374504, -0.291219354, -0.487436086, 0.999878228, -0.00438931212, 0.0149825988, -0.00010142161, 0.957819223, 0.287371844, -0.015611981, -0.287338346, 0.957701981),Alpha)
1423
				RH.C0 = clerp(RH.C0,CFrame.new(0.453094482, -0.871358454, 0.0898642987, 0.985589385, -0.168456957, 0.0153662469, 0.162863791, 0.969548643, 0.182895929, -0.0457084104, -0.177757636, 0.983012319),Alpha)
1424
				LS.C0 = clerp(LS.C0,CFrame.new(-1.55211556, 0.576563478, -0.00269976072, 0.976067662, 0.216906726, 0.0156116467, -0.217024669, 0.976145923, 0.00628317893, -0.0138763804, -0.00952091813, 0.999858499),Alpha)
1425
				RS.C0 = clerp(RS.C0,CFrame.new(1.50182188, 0.636661649, 0.00632623257, 0.977592707, -0.209926367, 0.0156121543, 0.209851891, 0.977713108, 0.00628198683, -0.016582964, -0.00286500831, 0.999858439),Alpha)
1426
				NK.C0 = clerp(NK.C0,CFrame.new(1.14440072e-05, 1.49924362, -0.0143961608, 1.00000024, -5.82076609e-11, 0, 1.23691279e-10, 0.997964919, 0.0637660474, 0, -0.0637660623, 0.997965038),Alpha)
1427
				HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
1428
			end
1429
		elseif(State == 'Paralyzed')then
1430
			-- paralyzed
1431
		elseif(State == 'Sit')then
1432
			-- sit						
1433
		end
1434
	end
1435
end