View difference between Paste ID: e7dG1KuV and g8vRx0wa
SHOW: | | - or go back to the newest paste.
1
-- Created by Nebula_Zorua --
2
-- Your DeTERMINATION --
3
-- Y o u  a c t  l i k e  y o u  h a v e  a  c h o i c e. =) --
4
-- Discord: Nebula the Zorua#6969
5
-- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
6
7
8
--// Initializing \\--
9
local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
10
local Plrs = S.Players
11
local Plr = Plrs.LocalPlayer
12
local Char = Plr.Character
13
local Hum = Char:FindFirstChildOfClass'Humanoid'
14
local RArm = Char["Right Arm"]
15
local LArm = Char["Left Arm"]
16
local RLeg = Char["Right Leg"]
17
local LLeg = Char["Left Leg"]	
18
local Root = Char:FindFirstChild'HumanoidRootPart'
19
local Torso = Char.Torso
20
local Head = Char.Head
21
local NeutralAnims = true
22
local Attack = false
23
local BloodPuddles = {}
24
local Effects = {}
25
local Debounces = {Debounces={}}
26
local Mouse = Plr:GetMouse()
27
local Hit = {}
28
local Sine = 0
29
local Change = 1
30
local Souls = 0
31
--// Debounce System \\--
32
33
34
function Debounces:New(name,cooldown)
35
	local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
36
	setmetatable(aaaaa,{__index = Debounces})
37
	Debounces.Debounces[name] = aaaaa
38
	return aaaaa
39
end
40
41
function Debounces:Use(overrideUsable)
42
	assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
43
	if(self.Usable or overrideUsable)then
44
		self.Usable = false
45
		self.CoolingDown = true
46
		local LastUse = time()
47
		self.LastUse = LastUse
48
		delay(self.Cooldown or 2,function()
49
			if(self.LastUse == LastUse)then
50
				self.CoolingDown = false
51
				self.Usable = true
52
			end
53
		end)
54
	end
55
end
56
57
function Debounces:Get(name)
58
	assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
59
	for i,v in next, Debounces.Debounces do
60
		if(i == name)then
61
			return v;
62
		end
63
	end
64
end
65
66
function Debounces:GetProgressPercentage()
67
	assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
68
	if(self.CoolingDown and not self.Usable)then
69
		return math.max(
70
			math.floor(
71
				(
72
					(time()-self.LastUse)/self.Cooldown or 2
73
				)*100
74
			)
75
		)
76
	else
77
		return 100
78
	end
79
end
80
81
--// Shortcut Variables \\--
82
local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
83
local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
84
local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
85
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}
86
local R3 = {N=Region3.new}
87
local De = S.Debris
88
local WS = workspace
89
local Lght = S.Lighting
90
local RepS = S.ReplicatedStorage
91
local IN = Instance.new
92
local CSK = ColorSequenceKeypoint.new
93
local CS = ColorSequence.new
94
--// Instance Creation Functions \\--
95
96
function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
97
	local Sound = IN("Sound")
98
	Sound.SoundId = "rbxassetid://".. tostring(id or 0)
99
	Sound.Pitch = pitch or 1
100
	Sound.Volume = volume or 1
101
	Sound.Looped = looped or false
102
	if(autoPlay)then
103
		coroutine.wrap(function()
104
			repeat wait() until Sound.IsLoaded
105
			Sound.Playing = autoPlay or false
106
		end)()
107
	end
108
	if(not looped and effect)then
109
		Sound.Stopped:connect(function()
110
			Sound.Volume = 0
111
			Sound:destroy()
112
		end)
113
	elseif(effect)then
114
		warn("Sound can't be looped and a sound effect!")
115
	end
116
	Sound.Parent =parent or Torso
117
	return Sound
118
end
119
function Part(parent,color,material,size,cframe,anchored,cancollide)
120
	local part = IN("Part")
121-
	part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
121+
122-
	part.Material = (material or Enum.Material.SmoothPlastic)
122+
123-
	part.TopSurface,part.BottomSurface=10,10
123+
124-
	part.Size = (size or V3.N(1,1,1))
124+
125-
	part.CFrame = (cframe or CF.N(0,0,0))
125+
126-
	part.Anchored = (anchored or false)
126+
127-
	part.CanCollide = (cancollide or false)
127+
128-
	part.Parent = (parent or Char)
128+
129
	part.Parent = parent
130
	return part
131
end
132
133
NewInstance = function(instance,parent,properties)
134
	local inst = Instance.new(instance,parent)
135
	if(properties)then
136
		for i,v in next, properties do
137
			pcall(function() inst[i] = v end)
138
		end
139
	end
140
	return inst;
141
end
142
143
144
145
--// Extended ROBLOX tables \\--
146
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})
147
--// Customization \\--
148
149
local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
150
local Remove_Hats = false
151
local Remove_Clothing = true
152
local PlayerSize = 1
153
local DamageColor = BrickColor.new'Really black'
154
local MusicID = 1797100547
155
local WalkSpeed = 8
156
local MaxSouls = 100
157
local MaxHealth = 500 
158
159
160
if(_G.RefusedAnimation == nil) then _G.RefusedAnimation = false end
161
162-
local DamageColor = BrickColor.new'Really red'
162+
163-
local MusicID = 935501955
163+
164
if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
165
if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
166
local Effects = IN("Folder",Char)
167
Effects.Name = "Effects"
168
169
Hum.MaxHealth = MaxHealth
170
Hum.Health = MaxHealth
171
172
local Knife = NewInstance("Part",Char,{Name='Knife',Size=V3.N(.4,3,.7),Anchored=false,CanCollide=false,Locked=true,Archivable=false,Reflectance=.01,Color=C3.N(0,0,0)})
173
local KnifeMesh = Mesh(Knife,Enum.MeshType.FileMesh,"rbxassetid://121944778","rbxassetid://362719969",V3.N(1,1,1),V3.N())
174
local AuraEmitter = NewInstance("ParticleEmitter",Knife,{EmissionDirection='Back',Color=CS{CSK(0,C3.N(1,0,0)),CSK(0.5,C3.N(1,1,0)),CSK(1,C3.RGB(255,191,0))},LightEmission=.5,LightInfluence=0,Size=NumberSequence.new(0.3),Texture="rbxassetid://",Transparency=NumberSequence.new(0,1),LockedToPart=true,Lifetime=NumberRange.new(1),Rate=150,Speed=NumberRange.new(0)})
175
local FireEmitter = NewInstance("ParticleEmitter",Knife,{EmissionDirection='Back',Color=CS(C3.N(1,0,0),C3.N(1,0,0)),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.5,0),NumberSequenceKeypoint.new(0.755,0,0),NumberSequenceKeypoint.new(1,0,0)},Texture="rbxassetid://",Transparency=NumberSequence.new(0.35,1),Lifetime=NumberRange.new(1,2),Rate=150,Speed=NumberRange.new(3)})
176
177
local KTrail = NewInstance("Trail",Knife,{
178
	Attachment0=NewInstance("Attachment",Knife,{Position=V3.N(0,-.4,0)}),
179
	Attachment1=NewInstance("Attachment",Knife,{Position=V3.N(0,1.2,0)}),
180
	Color=CS(C3.N(1,0,0)),
181
	Enabled=false,
182
	Transparency=NumberSequence.new(0,1),
183-
local AuraEmitter = NewInstance("ParticleEmitter",Knife,{EmissionDirection='Back',Color=CS{CSK(0,C3.N(1,0,0)),CSK(0.5,C3.N(1,1,0)),CSK(1,C3.RGB(255,191,0))},LightEmission=.5,LightInfluence=0,Size=NumberSequence.new(0.3),Texture="rbxassetid://141116476",Transparency=NumberSequence.new(0,1),LockedToPart=true,Lifetime=NumberRange.new(1),Rate=150,Speed=NumberRange.new(0)})
183+
184-
local FireEmitter = NewInstance("ParticleEmitter",Knife,{EmissionDirection='Back',Color=CS(C3.N(1,0,0),C3.N(1,0,0)),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.5,0),NumberSequenceKeypoint.new(0.755,0,0),NumberSequenceKeypoint.new(1,0,0)},Texture="rbxassetid://141116476",Transparency=NumberSequence.new(0.35,1),Lifetime=NumberRange.new(1,2),Rate=150,Speed=NumberRange.new(3)})
184+
185
local Hair = Part(Char,C3.N(0,-0.4,0),Enum.Material.SmoothPlastic,V3.N(1,1,2),CF.N(),false,false)
186
local HairMesh = Mesh(Hair,Enum.MeshType.FileMesh,"rbxassetid://15730710","rbxassetid://20642711",V3.N(1.05,1.05,1.1),V3.N())
187
 
188
189
NewInstance("PointLight",Knife,{Color=C3.N(1,0,0),Range=10,Brightness=3})
190
191
192
Hum.DisplayDistanceType = 'None'
193
194-
local Hair = Part(Char,C3.N(0,0,0),Enum.Material.SmoothPlastic,V3.N(1,1,1),CF.N(),false,false)
194+
195-
local HairMesh = Mesh(Hair,Enum.MeshType.FileMesh,"rbxassetid://250264520","rbxassetid://75975464",V3.N(1.05,1.05,1.05),V3.N())
195+
196
naeeym2.Size = UDim2.new(5,35,2,15)
197
naeeym2.StudsOffset = V3.N(0,2.5,0)
198
naeeym2.Adornee = Char.Head
199
naeeym2.Name = "Name"
200
naeeym2.PlayerToHideFrom = Plr
201
local tecks2 = IN("TextLabel",naeeym2)
202
tecks2.BackgroundTransparency = 1
203
tecks2.TextScaled = true
204
tecks2.BorderSizePixel = 0
205
tecks2.Text = "Evil Morty"
206
tecks2.Font = Enum.Font.Bodoni
207
tecks2.TextSize = 30
208
tecks2.TextStrokeTransparency = 0
209
tecks2.TextColor3 = C3.N(0,0,0)
210
tecks2.TextStrokeColor3 = C3.N(0,0,0)
211
tecks2.Size = UDim2.new(1,0,0.5,0)
212
tecks2.Parent = naeeym2
213-
tecks2.Text = "Chara"
213+
214
215
IN("Shirt",Char)
216
IN("Pants",Char)
217
218-
tecks2.TextStrokeColor3 = C3.N(.7,0,0)
218+
219
if(PlayerSize ~= 1)then
220
	for _,v in next, Char:GetDescendats() do
221
		if(v:IsA'BasePart')then
222
			v.Size = v.Size * PlayerSize
223
		end
224
	end
225
end
226
227
228
for i = 1, 35 do
229
	local Face = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false)
230
	Face.Transparency = 0+(i-1)/35.2
231
	Face.Name = 'ShadowFace'
232
	Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = Face
233
	NewInstance("Weld",Head,{Part0=Head,Part1=Face,C0=CF.N(0,.35-(i-1)/75,0)})
234
	--CreateWeldOrSnapOrMotor("Weld", Head, Head, Face, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
235
end
236
237-
	local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false)
237+
238-
	FACE.Transparency = 0+(i-1)/35.2
238+
239-
	FACE.Name = 'ShadowFace'
239+
240-
	Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
240+
241-
	NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)})
241+
242-
	--CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
242+
243
	Char.LeftWing:destroy()
244
	Char.ReaperShadowHead:destroy()
245-
local LEye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
245+
246-
local LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
246+
247-
local LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)})
247+
248
local Music = Sound(Torso,MusicID,1,3,true,false,true)
249
Music.Name = 'Music'
250
251
--// Stop animations \\--
252
for _,v in next, Hum:GetPlayingAnimationTracks() do
253
	v:Stop();
254
end
255
256
pcall(game.Destroy,Char:FindFirstChild'Animate')
257
pcall(game.Destroy,Hum:FindFirstChild'Animator')
258
259
--// Joints \\--
260
261
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)})
262
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)})
263
local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
264
local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
265
local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
266
local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
267
local HW = NewInstance('Motor',Char,{Part0=RArm,Part1=Knife,C0=CF.N(0,-1,-1)*CF.A(M.R(-90),0,0)})
268
local HW2 = NewInstance('Motor',Char,{Part0=Head,Part1=Hair,C0=CF.N(0,0.45,0)})
269
270
local LSC0 = LS.C0
271
local RSC0 = RS.C0
272
local NKC0 = NK.C0
273
local LHC0 = LH.C0
274
local RHC0 = RH.C0
275
local RJC0 = RJ.C0
276
277
--// Artificial HB \\--
278
279
local ArtificialHB = IN("BindableEvent", script)
280-
local HW2 = NewInstance('Motor',Char,{Part0=Head,Part1=Hair,C0=CF.N(0,.25,0)})
280+
281
282
script:WaitForChild("Heartbeat")
283
284
local tf = 0
285
local allowframeloss = false
286
local tossremainder = false
287
local lastframe = tick()
288
local frame = 1/Frame_Speed
289
ArtificialHB:Fire()
290
291
game:GetService("RunService").Heartbeat:connect(function(s, p)
292
	tf = tf + s
293
	if tf >= frame then
294
		if allowframeloss then
295
			script.Heartbeat:Fire()
296
			lastframe = tick()
297
		else
298
			for i = 1, math.floor(tf / frame) do
299
				ArtificialHB:Fire()
300
			end
301
			lastframe = tick()
302
		end
303
		if tossremainder then
304
			tf = 0
305
		else
306
			tf = tf - frame * math.floor(tf / frame)
307
		end
308
	end
309
end)
310
311
function swait(num)
312
	if num == 0 or num == nil then
313
		ArtificialHB.Event:wait()
314
	else
315
		for i = 0, num do
316
			ArtificialHB.Event:wait()
317
		end
318
	end
319
end
320
321
322
--// Effect Function(s) \\--
323
324
function Bezier(startpos, pos2, pos3, endpos, t)
325
	local A = startpos:lerp(pos2, t)
326
	local B  = pos2:lerp(pos3, t)
327
	local C = pos3:lerp(endpos, t)
328
	local lerp1 = A:lerp(B, t)
329
	local lerp2 = B:lerp(C, t)
330
	local cubic = lerp1:lerp(lerp2, t)
331
	return cubic
332
end
333
334
function Tween(obj,props,time,easing,direction,repeats,backwards)
335
	local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
336
	local tween = S.TweenService:Create(obj, info, props)
337
	
338
	tween:Play()
339
end
340
341
local FXTable = {}
342
343
coroutine.resume(coroutine.create(function()
344
	while true do
345
		for i = 1, #FXTable do
346
			local data = FXTable[i]
347
			if(data)then
348
				local Frame = data.Frame
349
				local FX = data.Effect or 'ResizeAndFade'
350
				local Parent = data.Parent or Effects
351
				local Color = data.Color or C3.N(0,0,0)
352
				local Size = data.Size or V3.N(1,1,1)
353
				local MoveDir = data.MoveDirection or nil
354
				local MeshData = data.Mesh or nil
355
				local SndData = data.Sound or nil
356
				local Frames = data.Frames or 45
357
				local CFra = data.CFrame or Torso.CFrame
358
				local Settings = data.FXSettings or {}
359
				local Prt,Msh,Snd = data.Part,data.Mesh,data.Sound
360
				local grow = data.Grow
361
				
362
				local MoveSpeed = nil;
363
				if(MoveDir)then
364
					MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
365
				end
366
				if(FX ~= 'Arc')then
367
					Frame = Frame + 1
368
					if(FX == "Fade")then
369
						Prt.Transparency  = (Frame/Frames)
370
					elseif(FX == "Resize")then
371
						if(not Settings.EndSize)then
372
							Settings.EndSize = V3.N(0,0,0)
373
						end
374
						if(Settings.EndIsIncrement)then
375
							if(Msh)then
376
								Msh.Scale = Msh.Scale + Settings.EndSize
377
							else
378
								Prt.Size = Prt.Size + Settings.EndSize
379
							end					
380
						else
381
							if(Msh)then
382
								Msh.Scale = Msh.Scale - grow/Frames
383
							else
384
								Prt.Size = Prt.Size - grow/Frames
385
							end
386
						end 
387
					elseif(FX == "ResizeAndFade")then
388
						if(not Settings.EndSize)then
389
							Settings.EndSize = V3.N(0,0,0)
390
						end
391
						if(Settings.EndIsIncrement)then
392
							if(Msh)then
393
								Msh.Scale = Msh.Scale + Settings.EndSize
394
							else
395
								Prt.Size = Prt.Size + Settings.EndSize
396
							end					
397
						else
398
							if(Msh)then
399
								Msh.Scale = Msh.Scale - grow/Frames
400
							else
401
								Prt.Size = Prt.Size - grow/Frames
402
							end
403
						end 
404
						Prt.Transparency = (Frame/Frames)
405
					end
406
					if(Settings.RandomizeCFrame)then
407
						Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
408
					end
409
					if(MoveDir and MoveSpeed)then
410
						local Orientation = Prt.Orientation
411
						Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
412
						Prt.Orientation = Orientation
413
					end
414
					if(Prt.Transparency >= 1 or Frame >= Frames)then
415
						Prt:destroy()
416
						table.remove(FXTable,i)
417
					else
418
						data.Frame = Frame
419
					end
420
				else
421
					local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
422
					if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
423
					if(start and endP)then
424
						local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
425
						local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
426
						Frame = Frame + (Settings.Speed or 0.01)
427
						if(Settings.Home)then
428
							endP = Settings.Home.CFrame
429
						end
430
						Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
431
						if(Prt.Transparency >= 1 or Frame >= Frames)then
432
							if(Settings.RemoveOnGoal)then
433
								Prt:destroy()
434
							end
435
						end
436
					else
437
						Prt:destroy()
438
					end
439
				end
440
			end
441
		end
442
		swait()
443
	end
444
end))
445
446
function Effect(data)
447
	local FX = data.Effect or 'ResizeAndFade'
448
	local Parent = data.Parent or Effects
449
	local Color = data.Color or C3.N(0,0,0)
450
	local Size = data.Size or V3.N(1,1,1)
451
	local MoveDir = data.MoveDirection or nil
452
	local MeshData = data.Mesh or nil
453
	local SndData = data.Sound or nil
454
	local Frames = data.Frames or 45
455
	local Manual = data.Manual or nil
456
	local Material = data.Material or nil
457
	local CFra = data.CFrame or Torso.CFrame
458
	local Settings = data.FXSettings or {}
459
	local Shape = data.Shape or Enum.PartType.Block
460
	local Snd,Prt,Msh;
461
	coroutine.wrap(function()
462
		if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
463
			Prt = Manual
464
		else
465
			Prt = Part(Parent,Color,Material,Size,CFra,true,false)
466
			Prt.Shape = Shape
467
		end
468
		if(typeof(MeshData) == 'table')then
469
			Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
470
		elseif(typeof(MeshData) == 'Instance')then
471
			Msh = MeshData:Clone()
472
			Msh.Parent = Prt
473
		elseif(Shape == Enum.PartType.Block)then
474
			Msh = Mesh(Prt,Enum.MeshType.Brick)
475
		end
476
		if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
477
			Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
478
		end
479
		if(Snd)then
480
			repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
481
			Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
482
		end
483
		Size = (Msh and Msh.Scale or Size)
484
		local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
485
		
486
		local MoveSpeed = nil;
487
		if(MoveDir)then
488
			MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
489
		end
490
		if(FX ~= 'Arc')then
491
			for Frame = 1, Frames do
492
				if(FX == "Fade")then
493
					Prt.Transparency  = (Frame/Frames)
494
				elseif(FX == "Resize")then
495
					if(not Settings.EndSize)then
496
						Settings.EndSize = V3.N(0,0,0)
497
					end
498
					if(Settings.EndIsIncrement)then
499
						if(Msh)then
500
							Msh.Scale = Msh.Scale + Settings.EndSize
501
						else
502
							Prt.Size = Prt.Size + Settings.EndSize
503
						end					
504
					else
505
						if(Msh)then
506
							Msh.Scale = Msh.Scale - grow/Frames
507
						else
508
							Prt.Size = Prt.Size - grow/Frames
509
						end
510
					end 
511
				elseif(FX == "ResizeAndFade")then
512
					if(not Settings.EndSize)then
513
						Settings.EndSize = V3.N(0,0,0)
514
					end
515
					if(Settings.EndIsIncrement)then
516
						if(Msh)then
517
							Msh.Scale = Msh.Scale + Settings.EndSize
518
						else
519
							Prt.Size = Prt.Size + Settings.EndSize
520
						end					
521
					else
522
						if(Msh)then
523
							Msh.Scale = Msh.Scale - grow/Frames
524
						else
525
							Prt.Size = Prt.Size - grow/Frames
526
						end
527
					end 
528
					Prt.Transparency = (Frame/Frames)
529
				end
530
				if(Settings.RandomizeCFrame)then
531
					Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
532
				end
533
				if(MoveDir and MoveSpeed)then
534
					local Orientation = Prt.Orientation
535
					Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
536
					Prt.Orientation = Orientation
537
				end
538
				swait()
539
			end
540
			Prt:destroy()
541
		else
542
			local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
543
			if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
544
			if(start and endP)then
545
				local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
546
				local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
547
				for Frame = 0, 1, (Settings.Speed or 0.01) do
548
					if(Settings.Home)then
549
						endP = Settings.Home.CFrame
550
					end
551
					Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
552
				end
553
				if(Settings.RemoveOnGoal)then
554
					Prt:destroy()
555
				end
556
			else
557
				Prt:destroy()
558
				assert(start,"You need a start position!")
559
				assert(endP,"You need a start position!")
560
			end
561
		end
562
	end)()
563
	return Prt,Msh,Snd
564
end
565
566
567
568
function SoulSteal(whom,human)
569
	local torso = (whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart' or whom:FindFirstChild'Torso')
570
	local succ, health, alive = pcall(function() return whom:FindFirstChildOfClass'Humanoid'.Health, whom:FindFirstChildOfClass'Humanoid'.Health > 0 end)
571
	if(torso and torso:IsA'BasePart' and alive == true)then
572
		whom:FindFirstChildOfClass'Humanoid'.Health = 0
573
		whom:BreakJoints()
574
		local Model = IN("Model",Effects)
575
		warn('Soul stolen from '..whom.Name)
576
		Model.Name = whom.Name.."'s Soul"
577
		local Soul = Part(Model,(human and BrickColor.new'Really red' or BrickColor.new(C3.N(1,1,1))),'Glass',V3.N(1,1,1),torso.CFrame,true,false)
578
		Soul.CanCollide=false
579
		Mesh(Soul,Enum.MeshType.Sphere)
580
		Soul.Name = 'Head'
581
		if(whom.Name == 'CKbackup')then
582
			Soul.Color = C3.N(1,1,1)
583
			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)})
584
		end
585
		local Hoom = NewInstance("Humanoid",Model,{MaxHealth=(health <= 10000 and health/2 or 10000),Health=(health <= 10000 and health/2 or 10000)})
586
		local AT0 = NewInstance("Attachment",Soul,{Position=V3.N(0,.5,0)})
587
		local AT1 = NewInstance("Attachment",Soul,{Position=V3.N(0,-.5,0)})
588
		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})
589
		NewInstance("PointLight",Soul,{Color=Soul.Color,Range=10,Brightness=(human and 3 or .5)})
590
		
591
		local turdso = Soul:Clone()
592
		turdso.Name = "Torso"
593
		turdso.CanCollide = false
594
		turdso.Anchored = true
595
		turdso.CFrame = Soul.CFrame
596
		turdso.Parent = Model
597
		turdso.Size = V3.N()
598
		turdso.Transparency=1
599
		local Distance = math.huge
600
		repeat
601
			Soul.CFrame = CF.N(Soul.Position,Torso.Position)*CF.N(0,0,-1)
602
			turdso.CFrame = Soul.CFrame
603
			Distance = (Soul.CFrame.p-Torso.CFrame.p).magnitude
604
			swait()
605
		until Hoom.Health <= 0 or not Soul.Parent or Distance <= 1.2
606
		if(Soul.Parent and Hoom.Health > 0)then
607
			Model:destroy()
608
			Effect{
609
				Effect="ResizeAndFade",
610
				Mesh={Enum.MeshType.Sphere},
611
				Color = Soul.Color,
612
				CFrame=Torso.CFrame,
613
				Size=V3.N(3,3,3),
614
				Material=Enum.Material.Neon,
615
				Sound={SoundId=1180007029,Pitch=1,Volume=2.5},
616
				FXSettings={
617
					EndSize=V3.N(6,6,6),
618
				}
619
			}
620
			Souls = Souls + (human and 1 or .1)
621
			warn("Souls: "..Souls)
622
			MaxHealth = MaxHealth + Hoom.Health
623
			Hum.Health = Hum.Health + Hoom.Health
624
			for i = 1, 5 do
625
				Effect{
626
					Effect="Fade",
627-
				Sound={SoundId=444667859,Pitch=1,Volume=2.5},
627+
628
					MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
629
				}	
630
			end
631
		else
632
			
633
			warn("Soul destroyed!")
634
			for i = 1, 5 do
635
				Effect{
636
					Effect="Fade",
637
					Color = Soul.Color,
638
					CFrame=Soul.CFrame,
639
					MoveDirection = (Soul.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
640
				}	
641
			end
642
			Effect{
643
				Effect="ResizeAndFade",
644
				Mesh={Enum.MeshType.Sphere},
645
				Sound={SoundId=1180007029,Pitch=1,Volume=5},
646
				Color = Soul.Color,
647
				CFrame=Soul.CFrame,
648
				Size=V3.N(3,3,3),
649
				Material=Enum.Material.Neon,
650
				FXSettings={
651
					EndSize=V3.N(6,6,6),
652
				}
653
			}
654
			Model:destroy()
655
		end
656
	end
657-
				Sound={SoundId=444667859,Pitch=1,Volume=5},
657+
658
659
--// Other Functions \\ --
660
661
function getRegion(point,range,ignore)
662
    return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
663
end
664
665
function clerp(startCF,endCF,alpha)
666
	return startCF:lerp(endCF, alpha)
667
end
668
669
function GetTorso(char)
670
	return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
671
end
672
673
function ShowDamage(Pos, Text, Time, Color)
674
	coroutine.wrap(function()
675
	local Rate = (1 / Frame_Speed)
676
	local Pos = (Pos or Vector3.new(0, 0, 0))
677
	local Text = (Text or "")
678
	local Time = (Time or 2)
679
	local Color = (Color or Color3.new(1, 0, 1))
680
	local EffectPart = NewInstance("Part",Effects,{
681
		Material=Enum.Material.SmoothPlastic,
682
		Reflectance = 0,
683
		Transparency = 1,
684
		BrickColor = BrickColor.new(Color),
685
		Name = "Effect",
686
		Size = Vector3.new(0,0,0),
687
		Anchored = true,
688
		CFrame = CF.N(Pos)
689
	})
690
	local BillboardGui = NewInstance("BillboardGui",EffectPart,{
691
		Size = UDim2.new(1.25, 0, 1.25, 0),
692
		Adornee = EffectPart,
693
	})
694
	local TextLabel = NewInstance("TextLabel",BillboardGui,{
695
		BackgroundTransparency = 1,
696
		Size = UDim2.new(1, 0, 1, 0),
697
		Text = Text,
698
		Font = "Arcade",
699
		TextColor3 = Color,
700
		TextStrokeColor3 = Color3.new(0,0,0),
701
		TextStrokeTransparency=0,
702
		TextScaled = true,
703
	})
704
	S.Debris:AddItem(EffectPart, (Time))
705
	EffectPart.Parent = workspace
706
	delay(0, function()
707
		Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
708
		local Frames = (Time / Rate)
709
		for Frame = 1, Frames do
710
			swait()
711
			local Percent = (Frame / Frames)
712
			TextLabel.TextTransparency = Percent
713
			TextLabel.TextStrokeTransparency = Percent
714
		end
715
		if EffectPart and EffectPart.Parent then
716
			EffectPart:Destroy()
717
		end
718
	end) end)()
719
end
720
721
function Kill(whom)
722
	if(whom.Name ~= 'Nebula_Zorua')then
723
		local isPlr = Plrs:GetPlayerFromCharacter(whom) ~= nil
724
		coroutine.wrap(SoulSteal)(whom,isPlr)
725
		for _,v in next, whom:children() do
726
			if(v:IsA'BasePart')then
727
				v.Parent = Effects
728
				v:ClearAllChildren()
729
				v.Anchored = true
730
				v.CanCollide = false
731
				v.Transparency = 1
732
				local dust = NewInstance("ParticleEmitter",v,{
733
					Color = ColorSequence.new(C3.N(1,1,1)),
734
					LightEmission=0,
735
					LightInfluence=1,
736
					Size=NumberSequence.new{NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)},
737
					Texture="rbxassetid://284205403",
738
					Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)},
739
					Lifetime = NumberRange.new(1),
740
					Rate=150,
741
					Acceleration = V3.N(0,10,0),
742
					Speed = NumberRange.new(5),
743
					Enabled = true
744
				})
745
				delay(1, function()
746
					dust.Enabled = false
747
					S.Debris:AddItem(v,2)
748
				end)
749
			end
750
		end
751
	else
752
		warn"nope. nawt happenin'"
753
	end
754
end
755
756
function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult)
757
	if(who)then
758
		local hum = who:FindFirstChildOfClass'Humanoid'
759
		local Damage = M.RNG(minDam,maxDam)
760
		local canHit = true
761
		if(hum)then
762
			for _, p in pairs(Hit) do
763
				if p[1] == hum then
764
					if(time() - p[2] < 0.4) then
765
						canHit = false
766
					else
767
						Hit[_] = nil
768
					end
769
				end
770
			end
771
			if(canHit)then
772
				table.insert(Hit,{hum,time()})
773
				if(GetTorso(who))then
774
					Sound(GetTorso(who),92597369,1,10,false,true,true)
775
				end
776
				if(hum.Health >= math.huge)then
777
					Kill(who)
778
					if(who:FindFirstChild'Head' and hum.Health > 0)then
779
						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)
780
					end
781
				else
782
					local player = S.Players:GetPlayerFromCharacter(who)
783
					if(Type == "Fire")then
784
						--idk..
785
					else
786-
					Sound(GetTorso(who),406913243,1,10,false,true,true)
786+
787
						c.Name = "creator"
788
						c.Value = Plr
789
						game:service'Debris':AddItem(c,0.35)
790
						local Crit = false
791
						if(M.RNG(1,100) <= (critChance or 0) and critMult > 1)then
792
							Crit = true
793
							Damage = Damage*(critMult or 2)
794
						end
795
						Damage = Damage*((Souls/5)+1)
796
						if(who:FindFirstChild'Head' and hum.Health > 0)then
797
							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))
798
						end
799
						
800
						if(hum.Health - Damage <= 0)then
801
							Kill(who)
802
						else
803
							hum.Health = hum.Health - Damage
804
							if(Type == 'Knockback' and GetTorso(who))then
805
								local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit
806
								local body = NewInstance('BodyVelocity',GetTorso(who),{
807
									P = 500,
808
									maxForce = V3.N(math.huge,0,math.huge),
809
									velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05
810
								})
811
								game:service'Debris':AddItem(body,.5)
812
							elseif(Type == "Electric")then
813
								if(M.RNG(1,100) >= critChance)then
814
									if(who:FindFirstChild'Head' and hum.Health > 0)then
815
										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)
816
									end
817
									local asd = hum.WalkSpeed/2
818
									hum.WalkSpeed = asd
819
									local paralyzed = true
820
									coroutine.wrap(function()
821
										while paralyzed do
822
											swait(25)
823
											if(M.RNG(1,25) == 1)then
824
												if(who:FindFirstChild'Head' and hum.Health > 0)then
825
													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)
826
												end
827
												hum.PlatformStand = true
828
											end
829
										end
830
									end)()
831
									delay(4, function()
832
										paralyzed = false
833
										hum.WalkSpeed = hum.WalkSpeed + asd
834
									end)
835
								end
836
								
837
							elseif(Type == 'Knockdown' and GetTorso(who))then
838
								local rek = GetTorso(who)
839
								hum.PlatformStand = true
840
								delay(1,function()
841
									hum.PlatformStand = false
842
								end)
843
								local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit
844
								local bodvol = NewInstance("BodyVelocity",rek,{
845
									velocity = angle * Knock,
846
									P = 5000,
847
									maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
848
								})
849
								local rl = NewInstance("BodyAngularVelocity",rek,{
850
									P = 3000,
851
									maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
852
									angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
853
								})
854
								game:GetService("Debris"):AddItem(bodvol, .5)
855
								game:GetService("Debris"):AddItem(rl, .5)
856
							end
857
						end
858
					end
859
				end
860
			end
861
		end
862
	end
863
end
864
865
866
function AOEDamage(where,range,minDam,maxDam,Knock,Type,critChance,critMult)
867
	for _,v in next, getRegion(where,range,{Char}) do
868
		if(v.Name ~= 'Nebula_Zorua')then
869
			if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then
870
				DealDamage(v.Parent,minDam,maxDam,Knock,Type,critChance,critMult)
871
			end
872
		end
873
	end
874
end
875
876
function AOEKill(where,range)
877
	for _,v in next, getRegion(where,range,{Char,Effects}) do
878
		local succ,alive = pcall(function() return v.Parent:FindFirstChildOfClass'Humanoid'.Health > 0 end)
879
		if(v.Name ~= 'Nebula_Zorua')then
880
			if(v.Parent and alive == true)then
881
				coroutine.wrap(Kill)(v.Parent)
882
			end
883
		end
884
	end
885
end
886
887
function AOEHeal(where,range,amount)
888
	local healed = {}
889
	for _,v in next, getRegion(where,range,{Char}) do
890
		local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
891
		if(hum and not healed[hum])then
892
			hum.Health = hum.Health + amount
893
			if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
894
				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'Lime green'.Color)
895
			end
896
		end
897
	end
898
end
899
900
901
--// Attack Functions \\--
902
903
904
function Slash()
905
	Attack = true
906
	NeutralAnims = false
907
	local sound = Sound(Knife,10209640,1,5,false,true,false)
908
	for i = 0, 2, 0.1 do
909
		swait()
910
		local Alpha = .2
911
		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)
912
		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)
913
		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)
914
		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)
915
		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)
916
		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)
917
		HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
918
	end
919-
	local sound = Sound(Knife,437475935,1,5,false,true,false)
919+
920
	sound:Play()
921
	for i = 0, 2.5, 0.1 do
922
		swait()
923
		AOEDamage(Knife.CFrame.p,1,15,30,0,"Normal",0,1)
924
		local Alpha = .25
925
		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)
926
		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)
927
		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)
928
		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)
929
		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)
930
		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)
931
		HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
932
	end
933
	KTrail.Enabled = false
934
	Attack = false
935
	NeutralAnims = true
936
end
937
938
Mouse.Button1Down:connect(function()
939
	if(Attack)then return end
940
	Slash()	
941
end)
942
943
Mouse.KeyDown:connect(function(k)
944
	if(Attack)then return end
945
	if(k == 'z')then AOEKill(Root.CFrame.p,25) end -- TODO: Animation and effects
946
	if(k == 'q')then WalkSpeed = (WalkSpeed == 8 and 32 or 8) end	
947
end)
948
949
950
function Refuse()
951
	Attack = true
952
	warn("T R Y  H A R D E R  N E X T  T I M E.")
953
	local oMH = MaxHealth
954
	MaxHealth = "1000000000000"
955
	Hum.MaxHealth = "1000000000000"
956
	Hum.Health = "1000000000000"
957
	Char.Parent = nil
958
	Hum:destroy()
959
	if(not _G.RefusedAnimation)then
960
		_G.RefusedAnimation = true
961
		
962
	
963
		local Soul;
964-
	warn("B u t  i t  r e f u s e d.")
964+
965
			local destroy = false	
966-
	MaxHealth = "inf"
966+
967-
	Hum.MaxHealth = "inf"
967+
968-
	Hum.Health = "inf"
968+
969
			soul.Size = V3.N(2,2,.05)
970
			soul.Anchored=true
971
			soul.CanCollide=false
972
			soul.CFrame = where
973
			local heartF = NewInstance("Decal",soul,{Face=Enum.NormalId.Front,Texture="rbxassetid://"..decalId})
974
			local heartB = NewInstance("Decal",soul,{Face=Enum.NormalId.Back,Texture="rbxassetid://"..decalId})
975
			return soul,heartF,heartB
976
		end
977
		local owo = Root.CFrame
978
		local s,f,b = Soul(owo,1569347904)
979
		swait(60)
980
		local snd = Sound(s,1022426458,1,5,false,false,false)
981
		snd:Play()
982
		f.Texture = "rbxassetid://1471407701"
983
		b.Texture = "rbxassetid://1471407701"
984
		swait(15)
985
		snd:Stop()
986
		swait(60)
987
		print'lol'
988
		for i = 0, 6, .1 do
989
			swait()
990
			s.CFrame = owo * CF.N(M.RNG(-50,50)/100,M.RNG(-50,50)/100,M.RNG(-50,50)/100)
991
		end
992-
		local snd = Sound(s,862552636,1,5,false,false,false)
992+
		local snd = Sound(s,1022426458,1,5,false,false,false)
993
		snd:Play()
994-
		f.Texture = "rbxassetid://1569348344"
994+
995-
		b.Texture = "rbxassetid://1569348344"
995+
		f.Texture = "rbxassetid://1471407701"
996
		b.Texture = "rbxassetid://1471407701"
997
		swait(15)
998
		snd:Stop()
999
		swait(60)
1000
	
1001
		s:destroy()
1002
	end
1003
	
1004-
		local snd = Sound(s,862552636,1,5,false,false,false)
1004+
1005
	LS.Parent = Char
1006
	RS.Parent = Char
1007-
		f.Texture = "rbxassetid://1569347904"
1007+
1008-
		b.Texture = "rbxassetid://1569347904"
1008+
1009
	NK.Parent = Char
1010
	
1011
	LArm.Parent = Char
1012
	RArm.Parent = Char
1013
	LLeg.Parent = Char
1014
	LArm.Parent = Char
1015
	Root.Parent = Char
1016
	Torso.Parent = Char
1017
	Head.Parent = Char
1018
	
1019
	Knife.Parent = Char
1020
	Hair.Parent = Char
1021
	
1022
	HW.Parent = Char
1023
	HW2.Parent = Char
1024
	
1025
1026
	REye:destroy()
1027
	LEye:destroy()
1028
	
1029
	for _,v in next, Char:children() do
1030
		if(v.Name == 'ShadowFace')then v:destroy() end
1031
	end
1032
	
1033
	REye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
1034
	REyeM = Mesh(REye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
1035
	REyeW = NewInstance("Weld",REye,{Part0=Head,Part1=REye,C0=CF.N(.2,.2,-.49)})
1036
	for i = 1, 35 do
1037
		local Face = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false)
1038
		Face.Transparency = 0+(i-1)/35.2
1039
		Face.Name = 'ShadowFace'
1040
		Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = Face
1041
		NewInstance("Weld",Head,{Part0=Head,Part1=Face,C0=CF.N(0,.35-(i-1)/75,0)})
1042
		--CreateWeldOrSnapOrMotor("Weld", Head, Head, Face, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
1043
	end
1044-
	LEye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
1044+
1045-
	LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
1045+
1046-
	LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)})
1046+
1047
	Hum.MaxHealth = MaxHealth
1048
	Hum.Health = MaxHealth
1049
	swait(5)
1050
	Char.Parent = workspace
1051
	
1052-
		local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false)
1052+
1053-
		FACE.Transparency = 0+(i-1)/35.2
1053+
1054-
		FACE.Name = 'ShadowFace'
1054+
1055-
		Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
1055+
1056-
		NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)})
1056+
1057-
		--CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
1057+
1058
ConnectHum()
1059
1060
1061
--// Wrap it all up \\--
1062
while true do
1063
	swait()
1064
	Sine = Sine + Change
1065
	if(not Music)then
1066
		Music = Sound(Torso,MusicID,1,3,true,false,true)
1067
		Music.Name = 'Music'
1068
	end
1069
	Music.Pitch = 1
1070
	Music.Volume = 5
1071
	Music.SoundId = "rbxassetid://"..MusicID
1072
	Music.Parent = Torso
1073
	Music:Resume()
1074
	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)
1075
	local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
1076
	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")
1077
	if(not Effects or not Effects.Parent)then
1078
		Effects = IN("Model",Char)
1079
		Effects.Name = "Effects"
1080
	end
1081
	Hum.WalkSpeed = WalkSpeed
1082
	if(State == 'Walk')then
1083
		if(Hum.WalkSpeed >= 24)then
1084
			local wsVal = 22 / (Hum.WalkSpeed/16)
1085
			local Alpha = math.min(.1 * (Hum.WalkSpeed/16),1)
1086
			Change = 2
1087
			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)
1088
			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)
1089
		else
1090
			Change = .9
1091
			local wsVal = 8 / (Hum.WalkSpeed/8)
1092
			local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
1093
			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)
1094
			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)
1095
		end
1096
	else
1097
		RH.C1 = RH.C1:lerp(CF.N(0,1,0),.1)
1098
		LH.C1 = LH.C1:lerp(CF.N(0,1,0),.1)
1099
	end	
1100
	for _,v in next, Char:children() do
1101
		if(v:IsA'Accessory')then
1102
			v:destroy()
1103
		elseif(v:IsA'Shirt')then
1104
			v.ShirtTemplate = "rbxassetid://768490081"
1105
		elseif(v:IsA'Pants')then
1106
			v.PantsTemplate = "rbxassetid://771695895"
1107
		elseif(v:IsA'CharacterMesh')then
1108
			v:destroy()
1109
		elseif(v:FindFirstChildOfClass'ShirtGraphic')then
1110
			v:FindFirstChildOfClass'ShirtGraphic':destroy()
1111
		end
1112
	end
1113
	local face = Head:FindFirstChild'face'
1114
	if(not face)then
1115
		NewInstance("Decal",Head,{Name='face',Face=Enum.NormalId.Front,Texture="rbxassetid://404306534"})
1116
	else
1117
		face.Texture = "rbxassetid://939036084"
1118
	end
1119-
			v.ShirtTemplate = "rbxassetid://344089667"
1119+
1120
	LArm.BrickColor = BrickColor.new'Pastel brown'
1121-
			v.PantsTemplate = "rbxassetid://344084364"
1121+
1122
	LLeg.BrickColor = BrickColor.new'Pastel brown'
1123
	Torso.BrickColor = BrickColor.new'Pastel brown'
1124
	Head.BrickColor = BrickColor.new'Pastel brown'
1125
	Hum.Name = 'Chara'
1126
	if(Hum.MaxHealth ~= MaxHealth)then
1127
		Hum.MaxHealth = MaxHealth
1128
	end
1129
	Hum.DisplayDistanceType='None'
1130
	if(NeutralAnims)then	
1131
		if(State == 'Idle')then
1132-
		face.Texture = "rbxassetid://404306534"
1132+
1133
			local Alpha = .1
1134
			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)
1135
			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)
1136
			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)
1137
			LS.C0 = clerp(LS.C0,CFrame.new(-1.32175505, 0.156236127+.15*M.C(Sine/16), 0.233877867, 0.877554953, -0.456876248, 0.145469457, 0.259513229, 0.707695842, 0.657129884, -0.403175086, -0.538916171, 0.739607573),Alpha)
1138
			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, 0.00603589695, 0.268235415, -0.0907544345, 0.959069014),Alpha)
1139
			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)
1140
			HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
1141
			-- idle
1142
		elseif(State == 'Walk')then
1143
			if(Hum.WalkSpeed >= 24)then
1144
				local wsVal = 22 / (Hum.WalkSpeed/16)
1145
				local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
1146
				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)
1147
				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)
1148
				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)
1149
				NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(15),0,0),Alpha)
1150
				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)
1151
				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)
1152
				HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
1153
			else
1154
				local wsVal = 8 / (Hum.WalkSpeed/8)
1155
				local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
1156
				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)
1157
				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)
1158
				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)
1159
				NK.C0 = NK.C0:lerp(NKC0,Alpha)
1160
				LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha)
1161
				RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha)
1162
				HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
1163
			end
1164
		elseif(State == 'Jump' or State == 'Fall')then
1165
			if(Walking)then
1166
				local Alpha = .2
1167
				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)
1168
				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)
1169
				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)
1170
				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)
1171
				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)
1172
				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)
1173
				HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
1174
			else
1175
				local Alpha = .2
1176
				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)
1177
				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)
1178
				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)
1179
				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)
1180
				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)
1181
				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)
1182
				HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
1183
			end
1184
		elseif(State == 'Paralyzed')then
1185
			-- paralyzed
1186
		elseif(State == 'Sit')then
1187
			-- sit
1188
		end
1189
	end
1190
end