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