View difference between Paste ID: KfUpk7bi and jSCb5ycN
SHOW: | | - or go back to the newest paste.
1
--[[ World eater Script ]]--
2
--[[ Declarations ]]--
3
wait(.0000000000000000000001)
4-
local Player = game:GetService("Players").jjubinks
4+
local Player = game:GetService("Players").LocalPlayer
5
local Character = Player.Character
6
local Head = Character.Head
7
local Torso = Character.Torso
8
local Right_Arm = Character["Right Arm"]
9
local Right_Leg = Character["Right Leg"]
10
local Left_Arm = Character["Left Arm"]
11
local Left_Leg = Character["Left Leg"]
12
local Humanoid = Character.Humanoid
13
local Animation = "Idle"
14
local Mouse = Player:GetMouse()
15
local LeftShoulder = Torso["Left Shoulder"] 
16
local Left_Hip = Torso["Left Hip"] 
17
local RightShoulder = Torso["Right Shoulder"] 
18
local Right_Hip = Torso["Right Hip"] 
19
local Root = Character.HumanoidRootPart
20
local RootJoint = Root.RootJoint
21
local Attacking = false
22
local CanAttack = true
23
local Anim = "Idle"
24
local Combo = 1 
25
local Blocking = false
26
local MaxDestruction = 1000
27
local Destruction = 0
28
local MaxBlock = 100
29
local Effects = {}
30
local Color = "Bright yellow"
31
local Invert = false
32
local Idle = 0
33
local Equipped = false
34
local Running = false
35
local Unseathed = false
36
local Shard = "None"
37
38
Humanoid.MaxHealth = math.huge
39
Humanoid.Health = math.huge
40
41
local WorldEaterTheme = Instance.new("Sound",Character)
42
WorldEaterTheme.Name = "WorldEaterTheme"
43
WorldEaterTheme.Looped = true
44
WorldEaterTheme.Volume = math.huge
45
WorldEaterTheme.SoundId = "http://www.roblox.com/asset?id=178439313"
46
WorldEaterTheme:Play()
47
48
Left_Shoulder = Instance.new("Weld", Torso)
49
Left_Shoulder.Part0 = Torso
50
Left_Shoulder.Part1 = Left_Arm
51
Left_Shoulder.Name = "Left Shoulder"
52
Left_Shoulder.C0 = CFrame.new(-1.5,0,0)
53
54
Right_Shoulder = Instance.new("Weld", Torso)
55
Right_Shoulder.Part0 = Torso
56
Right_Shoulder.Part1 = Right_Arm
57
Right_Shoulder.Name = "Right Shoulder"
58
Right_Shoulder.C0 = CFrame.new(1.5,0,0)
59
60
LeftShoulder.Parent = nil
61
RightShoulder.Parent = nil
62
Humanoid.WalkSpeed = 10
63
64
local RootCFrame = CFrame.fromEulerAnglesXYZ(-1.57,0,3.14)
65
Necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
66
Necko2 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
67
Right_Hip_C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
68
Left_Hip_C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
69
70
71
Movemment = 1
72
Walk = 0
73
74
Animator = Humanoid.Animator
75
--Animate = Character.Animate
76
77
Animator.Parent = nil
78
--Animate.Parent = nil
79
80
local Services = {
81
82
SoundService = game:GetService("SoundService");
83
Players = game:GetService("Players");
84
Debris = game:GetService("Debris");
85
Workspace = game:GetService("Workspace");
86
Lighting = game:GetService("Lighting");
87
HttpService = game:GetService("HttpService");
88
InsertService = game:GetService("InsertService");
89
	
90
}
91
92
local ManaBarGUI = Instance.new("ScreenGui", Player.PlayerGui)
93
ManaBarGUI.Name = "ManaBarGUI"
94
95
local ManaBarP1 = Instance.new("Frame", ManaBarGUI)
96
ManaBarP1.Name = "ManaBarPart1"
97
ManaBarP1.Size = UDim2.new(0,300,0,20)
98
ManaBarP1.Position = UDim2.new(0,350,0.1,0)
99
ManaBarP1.BackgroundColor3 = BrickColor.Black().Color
100
101
local ManaBarP2 = Instance.new("Frame", ManaBarP1)
102
ManaBarP2.Name = "ManaBarPart2"
103
ManaBarP2.Size = UDim2.new(0,300,0,20)
104
ManaBarP2.Position = UDim2.new(0,0,0,0)
105
ManaBarP2.BackgroundColor3 = BrickColor.new("Black").Color
106
107
local ManaBarText = Instance.new("TextLabel", ManaBarP1)
108
ManaBarText.Name = "ManaBarText"
109
ManaBarText.Size = UDim2.new(0,300,0,20)
110
ManaBarText.Position = UDim2.new(0,0,-1.5,0)	
111
ManaBarText.TextScaled = true
112
ManaBarText.Text = "<{[ Destruction ]}> 0 <{[ Destruction ]}>"
113
ManaBarText.BackgroundTransparency = 1
114
ManaBarText.TextStrokeTransparency = 0
115
ManaBarText.TextStrokeColor3 = Color3.new(1,1,1)
116
ManaBarText.TextColor3 = Color3.new(0,0,0)
117
ManaBarText.Font = "Garamond"
118
119
local WorldEaterGui = Instance.new("BillboardGui", Head)
120
WorldEaterGui.ExtentsOffset = Vector3.new(0,5,0)
121
WorldEaterGui.Adornee = Head
122
WorldEaterGui.AlwaysOnTop = true
123
WorldEaterGui.Enabled = true
124
WorldEaterGui.Size = UDim2.new(0, 200,0, 50)
125
126
local WorldEaterText = Instance.new("TextLabel", WorldEaterGui)
127
WorldEaterText.BackgroundTransparency = 1
128
WorldEaterText.Font = "Garamond"
129
WorldEaterText.Size = UDim2.new(0, 200,0, 50)
130
WorldEaterText.TextStrokeColor3 = BrickColor.White().Color
131
WorldEaterText.TextStrokeTransparency = 0
132
WorldEaterText.TextColor3 = BrickColor.Blue().Color
133
WorldEaterText.TextScaled = true
134-
WorldEaterText.Text = "StormFire59 | The Admin"
134+
WorldEaterText.Text = "anfro will kill you lol please kill me im fucking done with this bullshit"
135
136
--------[[ Mesh Ids ]]--------
137
138
SpikeMeshId = 1033714
139
SpikeBallId = 9982590
140
StarMeshId = 45428961
141
CrystalMeshId = 9756362
142
143
--[[ Essential Functions ]]--
144
function NoOutlines(Part)
145
		Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
146
end
147
	
148
149
local CreatePart = function(Parent, Name, Color, Size, Material, Transparency, Shape)
150
151
local Part = Instance.new("Part", Parent)
152
Part.Name = Name
153
Part.BrickColor = BrickColor.new(Color)
154
Part.Size = Size
155
Part.Material = Material
156
Part.Transparency = Transparency
157
Part.Shape = Shape
158
Part.CanCollide = false
159
NoOutlines(Part)
160
161
return Part
162
163
end
164
165
local CreateMesh = function(Parent, Scale, Shape)
166
167
168
local Mesh = Instance.new("BlockMesh", Parent)
169
Mesh.Scale = Scale
170
171
return Mesh
172
173
end
174
175
local CreateWedge = function(Parent, Name, Color, Size, Material, Transparency)
176
177
local WedgePart = Instance.new("WedgePart", Parent)
178
WedgePart.Name = Name
179
WedgePart.BrickColor = BrickColor.new(Color)
180
WedgePart.Size = Size
181
WedgePart.Material = Material
182
WedgePart.Transparency = Transparency
183
WedgePart.CanCollide = false
184
NoOutlines(WedgePart)
185
186
return WedgePart
187
188
end
189
190
local CreateWeld = function(Parent, Cframe, P1 , P0)
191
	
192
local Weld = Instance.new("Weld", Parent)
193
Weld.Part0 = P0
194
Weld.Part1 = P1
195
Weld.Name = P0.Name .. "To" .. P1.Name
196
Weld.C0 = Cframe
197
198
return Weld	
199
	
200
end
201
202
local CreateVelocity = function(Parent,Velocity,Force)
203
	
204
local BodyVelocity = Instance.new("BodyVelocity", Parent)
205
BodyVelocity.Velocity = Velocity
206
BodyVelocity.MaxForce = Force	
207
208
	
209
	
210
return BodyVelocity	
211
	
212
end
213
214
215
local CreateCrystal = function(Parent, Name, Color, Size, Material, Transparency, Scale)
216
217
218
local Part = Instance.new("Part", Parent)
219
Part.Name = Name
220
Part.BrickColor = BrickColor.new(Color)
221
Part.Size = Size
222
Part.Material = Material
223
Part.Transparency = Transparency
224
Part.CanCollide = false
225
NoOutlines(Part)
226
227
local Mesh = Instance.new("SpecialMesh", Part)
228
Mesh.MeshId = "http://www.roblox.com/asset?id=" .. CrystalMeshId
229
Mesh.Scale = Scale
230
231
return Mesh and Part
232
233
end
234
235
local MakeSFX = function(Parent, Id, Volume, Pitch, Type)
236
	
237
local SFX = Instance.new("Sound", Parent)
238
SFX.SoundId = "http://www.roblox.com/asset?id=" .. Id
239
SFX.Name = "SFX"
240
SFX:Play()
241
SFX.Volume = Volume
242
SFX.Pitch = Pitch
243
SFX.PlayOnRemove = true
244
SFX:Remove()
245
	
246
if Type == "Echo" then
247
	
248
Instance.new("EchoSoundEffect", SFX)	
249
	
250
end	
251
	
252
end
253
254
local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale)
255
256
257
local Part = Instance.new("Part", Parent)
258
Part.Name = Name
259
Part.BrickColor = BrickColor.new(Color)
260
Part.Size = Size
261
Part.Material = Material
262
Part.Transparency = Transparency
263
Part.CanCollide = false
264
NoOutlines(Part)
265
266
local Mesh = Instance.new("SpecialMesh", Part)
267
Mesh.MeshId = "http://www.roblox.com/asset?id=" .. SpikeMeshId
268
Mesh.Scale = Scale
269
270
return Mesh and Part
271
272
end
273
274
CircleEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
275
	
276
local Part = Instance.new("Part", Parent)
277
Part.Transparency = Transparency
278
Part.Name = "CircleEffect"
279
Part.Size = Vector3.new()
280
Part.Anchored = true
281
Part.CanCollide = false
282
Part.Position = Position
283
Part.BrickColor = BrickColor.new(Brickcolor)
284
Part.Material = Material
285
NoOutlines(Part)
286
287
local Mesh = Instance.new("SpecialMesh", Part)
288
Mesh.MeshType = "Sphere"
289
Mesh.Scale = Vector3.new(DSX, DSY, DSZ)
290
291
Services.Debris:AddItem(Part, Time)
292
293
294
table.insert(Effects, {Part, "Circle", Time, SX, SY, SZ})
295
296
297
end
298
299
BlockEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
300
	
301
local Part = Instance.new("Part", Parent)
302
Part.Transparency = Transparency
303
Part.Name = "BlockEffect"
304
Part.Size = Vector3.new()
305
Part.Anchored = true
306
Part.Position = Position
307
Part.CanCollide = false
308
Part.BrickColor = BrickColor.new(Brickcolor)
309
Part.Material = Material
310
NoOutlines(Part)
311
312
local Mesh = Instance.new("BlockMesh", Part)
313
Mesh.Scale = Vector3.new(DSX, DSY, DSZ)
314
315
Services.Debris:AddItem(Part, Time)
316
317
table.insert(Effects, {Part, "Block", Time, SX, SY, SZ})
318
319
320
end
321
322
--[[ Damage function ]]--
323
324
325
function DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
326
	
327
local HitHumanoid = Hit.Parent.Humanoid
328
329
330
local Damage = math.random(Min, Max)
331
332
333
coroutine.resume(coroutine.create(function()
334
HitHumanoid:TakeDamage(Damage)
335
end))
336
	
337
if Type == "Shrink" then
338
MakeSFX(Hit.Parent.Torso, 209527235, 1, 1)	
339
for i,v in pairs(Hit.Parent:children()) do
340
if v:IsA("Part") then
341
coroutine.resume(coroutine.create(function()		
342
for i = 1,100 do
343
wait()	
344
v.Size = v.Size - Vector3.new(0.05,0.05,0.05)
345
v.Transparency = v.Transparency + 0.05
346
	
347
end		
348
end))
349
end	
350
end
351
	
352
end	
353
	
354
	
355
	
356
if Type == "Normal" then
357
	
358
local Push = CreateVelocity(Hit.Parent.Torso, Torso.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
359
Services.Debris:AddItem(Push, 0)	
360
DamageLabel(Hit.Parent, Damage, Hit)
361
362
elseif Type == "Ranged" then
363
local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
364
Services.Debris:AddItem(Push, 0)	
365
DamageLabel(Hit.Parent, Damage, Hit)
366
367
elseif Type == "Impale" then
368
369
local Spike = CreateSpike(Services.Workspace, "D e a t h", "Black", Vector3.new(), "SmoothPlastic", 0, Vector3.new(1,20,1))	
370
Spike.Anchored = true
371
Spike.Rotation = Vector3.new(math.random(-50,50), 0 , math.random(-50,50))
372
Spike.Position = Hit.Parent.Torso.Position
373
374
375
Services.Debris:AddItem(Spike, 30)
376
377
Hit.Parent:BreakJoints()
378
Hit.Parent.Torso.Position = Spike.Position + Vector3.new(0,5,0)
379
Hit.Parent.Torso.Anchored = true
380
	
381
MakeSFX(Spike, 306247724, 1,1)	
382
MakeSFX(Hit.Parent.Torso, 209527175, 10,1)
383
elseif Type == "Knockdown" then
384
	
385
		
386
local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
387
DamageLabel(Hit.Parent, Damage, Hit)
388
Services.Debris:AddItem(Push, 0.3)
389
390
coroutine.resume(coroutine.create(function()
391
	
392
HitHumanoid.PlatformStand = true
393
wait(1)
394
HitHumanoid.PlatformStand = false	
395
	
396
	
397
end))	
398
end
399
400
if HitSFX == "Penetration" then
401
	
402
MakeSFX(Hit, 199149269, 1 , 1)
403
404
elseif HitSFX == "Punch" then
405
	
406
MakeSFX(Hit, 278062209, 1 , 1)
407
	
408
	
409
	
410
	
411
end
412
end
413
414
function DamageLabel(HitCharacter, DamageDealt, Hit)
415
	
416
local DamageShowingPart = CreatePart(Services.Workspace, "ShowDamage", "Bright yellow", Vector3.new(0.8,0.8,0.8), "Neon", 1, "Block")
417
DamageShowingPart.Position = HitCharacter.Head.Position
418
419
local DamageGui = Instance.new("BillboardGui", DamageShowingPart)
420
DamageGui.Name = "Damage"
421
DamageGui.AlwaysOnTop = true
422
DamageGui.Size = UDim2.new(5, 0, 5, 0)
423
424
local DamageNumber = Instance.new("TextLabel", DamageGui)
425
DamageNumber.Size = UDim2.new(1,0,1,0)
426
if Hit.Parent:FindFirstChild("Head") then
427
DamageNumber.TextStrokeColor3 = Hit.Parent.Head.BrickColor.Color
428
DamageNumber.TextColor3 = Hit.BrickColor.Color
429
end
430
DamageNumber.TextStrokeTransparency = 0
431
DamageNumber.BackgroundTransparency = 1
432
DamageNumber.Font = "SourceSansBold"
433
DamageNumber.TextScaled = true
434
DamageNumber.Text = DamageDealt
435
	
436
local BodyVelocity = Instance.new("BodyVelocity", DamageShowingPart)
437
BodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
438
BodyVelocity.Velocity = Vector3.new(0,2,0)	
439
	
440
Services.Debris:AddItem(DamageShowingPart, 3)
441
	
442
	
443
end 
444
445
function ValidateDamage(Part, Distance ,Min , Max, Type, HitSFX, Knockback)
446
for _,WorkspaceChildren in pairs(workspace:children()) do
447
	
448
local HitHumanoid = WorkspaceChildren:findFirstChild("Humanoid")
449
450
if HitHumanoid ~= nil then
451
local Hit = WorkspaceChildren:findFirstChild("Torso")
452
453
if Hit ~= nil then
454
	
455
local Target = Hit.Position - Part.Position
456
457
local Magnitude = Target.magnitude
458
459
if Magnitude <= Distance and WorkspaceChildren.Name ~= Player.Name then
460
	
461
local HitBlock = Hit.Parent:FindFirstChild("Block")	
462
	
463
if HitBlock ~= nil and HitBlock:FindFirstChild("BlockDurability") and HitBlock.Value == true then
464
465
local HitBlock2 = Hit.Parent.Block.BlockDurability	
466
	
467
if HitBlock2.Value > 15 then
468
	
469
local HitN = math.random(1,5)
470
	
471
HitBlock2.Value = HitBlock2.Value - 15	
472
	
473
	
474
if HitN == 1 then
475
MakeSFX(Hit ,199148971, 0.5, 1)	
476
end
477
478
if HitN == 2 then
479
MakeSFX(Hit ,199149025, 0.5, 1)	
480
end
481
482
if HitN == 3 then
483
MakeSFX(Hit ,199149072, 0.5, 1)	
484
end
485
486
if HitN == 4 then
487
MakeSFX(Hit ,199149109, 0.5, 1)	
488
end
489
490
if HitN == 5 then
491
MakeSFX(Hit ,199149119, 0.5, 1)	
492
end
493
return
494
end	
495
end
496
497
DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
498
499
	
500
501
end
502
end
503
end
504
end
505
end
506
 
507
508
509
local Cloak = Instance.new("Part", Character)
510
Cloak.Name = "Cloak"
511
Cloak.CanCollide = false
512
Cloak.BrickColor = BrickColor.new("Institutional white")
513
514
local CloakMesh = Instance.new("SpecialMesh", Cloak)
515
CloakMesh.MeshId = "http://www.roblox.com/asset?id=16150814"
516
CloakMesh.TextureId = "http://www.roblox.com/asset?id=16150799"
517
518
local CloakWeld = CreateWeld(Cloak, CFrame.new(0,0,0) * CFrame.Angles(0,0,0), Head , Cloak, "ArkusToCharacter")
519
520
for i,v in pairs(Character:children()) do
521
if v:IsA("Accessory") then
522
	v:Remove()
523
elseif v:IsA("Shirt") then
524
	v:Remove()
525
elseif v:IsA("Pants") then
526
	v:Remove()	
527
elseif v:IsA("BodyColors") then
528
529
Head.BrickColor =BrickColor.new("Really black")
530
Torso.BrickColor = BrickColor.new("Really black")
531
Right_Arm.BrickColor = BrickColor.new("Really black")
532
Right_Leg.BrickColor = BrickColor.new("Really black")
533
Left_Arm.BrickColor = BrickColor.new("Really black")
534
Left_Leg.BrickColor = BrickColor.new("Really black")
535
536
v.HeadColor = BrickColor.new("Really black")
537
v.TorsoColor = BrickColor.new("Really black")
538
v.RightArmColor = BrickColor.new("Really black")
539
v.LeftArmColor = BrickColor.new("Really black")
540
v.RightLegColor = BrickColor.new("Really black")
541
v.LeftLegColor = BrickColor.new("Really black")
542
	
543
end	
544
end
545
546
547
548
--[[ CLerp Declarations ]]--
549
550
function clerp(a,b,t)
551
	local qa = {QuaternionFromCFrame(a)}
552
	local qb = {QuaternionFromCFrame(b)} 
553
	local ax, ay, az = a.x, a.y, a.z 
554
	local bx, by, bz = b.x, b.y, b.z
555
	local _t = 1-t
556
	return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
557
end 
558
 
559
function QuaternionFromCFrame(cf) -- dis one
560
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
561
	local trace = m00 + m11 + m22 
562
	if trace > 0 then 
563
		local s = math.sqrt(1 + trace) 
564
		local recip = 0.5/s 
565
		return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
566
	else 
567
		local i = 0 
568
		if m11 > m00 then
569
			i = 1
570
		end
571
		if m22 > (i == 0 and m00 or m11) then 
572
			i = 2 
573
		end 
574
		if i == 0 then 
575
			local s = math.sqrt(m00-m11-m22+1) 
576
			local recip = 0.5/s 
577
			return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
578
		elseif i == 1 then 
579
			local s = math.sqrt(m11-m22-m00+1) 
580
			local recip = 0.5/s 
581
			return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
582
		elseif i == 2 then 
583
			local s = math.sqrt(m22-m00-m11+1) 
584
			local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
585
		end 
586
	end 
587
end
588
 
589
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
590
	local xs, ys, zs = x + x, y + y, z + z 
591
	local wx, wy, wz = w*xs, w*ys, w*zs 
592
	local xx = x*xs 
593
	local xy = x*ys 
594
	local xz = x*zs 
595
	local yy = y*ys 
596
	local yz = y*zs 
597
	local zz = z*zs 
598
	return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) 
599
end
600
 
601
function QuaternionSlerp(a, b, t) 
602
	local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
603
	local startInterp, finishInterp; 
604
	if cosTheta >= 0.0001 then 
605
		if (1 - cosTheta) > 0.0001 then 
606
			local theta = math.acos(cosTheta) 
607
			local invSinTheta = 1/math.sin(theta) 
608
			startInterp = math.sin((1-t)*theta)*invSinTheta 
609
			finishInterp = math.sin(t*theta)*invSinTheta  
610
		else 
611
			startInterp = 1-t 
612
			finishInterp = t 
613
		end 
614
	else 
615
		if (1+cosTheta) > 0.0001 then 
616
			local theta = math.acos(-cosTheta) 
617
			local invSinTheta = 1/math.sin(theta) 
618
			startInterp = math.sin((t-1)*theta)*invSinTheta 
619
			finishInterp = math.sin(t*theta)*invSinTheta 
620
		else 
621
			startInterp = t-1 
622
			finishInterp = t 
623
		end 
624
	end 
625
	return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp 
626
end
627
628
function RayCast(Pos, Dir, Max, Ignore)
629
	return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
630
end 
631
632
633
function Bars()
634
	
635
--[[ Mana Bar ]]--	
636
if Destruction ~= MaxDestruction then
637
	
638
Destruction = Destruction + 1
639
640
end
641
642
if Destruction >= MaxDestruction then
643
	
644
Destruction = Destruction
645
	
646
end
647
648
649
ManaBarText.Text = "<{[ Destruction ]}> <|"..Destruction.."|> <{[ Destruction ]}>"
650
651
ManaBarP2.Size = UDim2.new(Destruction / Destruction,0,0,20)	
652
	
653
end
654
local EyeReference = CreatePart(Character, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
655
local EyeReferenceWeld = CreateWeld(EyeReference,  CFrame.new(0.15,-0.1,-0.7), EyeReference, Head)
656
657
coroutine.resume(coroutine.create(function()
658
	
659
while wait(3) do
660
661
	
662
CircleEffect(EyeReference.Position, Services.Workspace,  1, 1, 1, 1, 1, 1, 0.5, "Bright red", "Neon", 0.5)
663
	
664
	
665
end
666
	
667
end))
668
--[[ Attacks ]]--
669
670
function Attack1()
671
Attacking = true
672
MakeSFX(EyeReference, 341336274, 1,1)
673
wait(0.3)
674
local Reference = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
675
local ReferenceWeld = CreateWeld(Reference,  CFrame.new(0,0.5,-5), Reference, Root)
676
677
local Reference2 = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
678
local Reference2Weld = CreateWeld(Reference2,  CFrame.new(0,0.5,-2), Reference2, Root)
679
680
681
for i = 1,10 do
682
683
wait()
684
RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,-1.6),0.5)
685
Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,0,1.3),0.2)
686
Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3)
687
Left_Shoulder.C0 = clerp(Left_Shoulder.C0,  CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0,0,-1.6), 0.4)
688
Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0) * CFrame.Angles(0,1.6,0),0.3)
689
Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(0,-1.6,0),0.3) 
690
691
end
692
693
CircleEffect(Reference2.Position, Services.Workspace,  50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
694
wait(0.5)
695
CircleEffect(Reference2.Position, Services.Workspace,  50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
696
wait(0.5)
697
CircleEffect(Reference2.Position, Services.Workspace,  50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
698
wait(0.5)
699
CircleEffect(Reference2.Position, Services.Workspace,  50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
700
wait(0.5)
701
MakeSFX(Reference, 306247724, 1,1)	
702
CircleEffect(Reference.Position, Services.Workspace,  1, 1, 1, 5, 5, 5, 5, "Bright red", "Neon", 0.5)
703
ValidateDamage(Reference, 10 ,10 , 14, "Shrink", "Penetration", 5)
704
Attacking = false
705
end
706
707
function Attack2()
708
	
709
Attacking = true
710
Humanoid.WalkSpeed = 0
711
Humanoid.JumpPower = 0
712
713
714
for i = 1,25 do
715
wait()
716
717
RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(-0.5,0,0),0.2)
718
Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
719
Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1, 1, 0) * CFrame.Angles(3.2,0,-0.6), 0.3)
720
Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1, 1, 0) * CFrame.Angles(3.2,0,0.6), 0.3)
721
Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,-0.3),0.2)
722
Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,-0.5)*CFrame.Angles(0,-1.6,0),0.2)
723
	
724
end
725
726
MakeSFX(Torso, 142070127, 1, 1)
727
ValidateDamage(Torso, 60 ,23, 26, "Knockdown", "Penetration", 15)
728
local Hit, Position = RayCast(Torso.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,100,Character)
729
if Hit ~= nil then
730
local Reference = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
731
Reference.Anchored = true
732
Reference.CFrame = CFrame.new(Position)
733
734
CircleEffect(Reference.Position, Services.Workspace,  1, 1, 1, 5, 5, 5, 5, "Bright red", "Neon", 0.5)
735
736
game:GetService("Debris"):AddItem(Reference,0.1)
737
for i=1,50 do
738
	
739
local Ground = CreatePart(Services.Workspace, "Ground", Hit.BrickColor.Color, Vector3.new(math.random(1,3), math.random(1,3), math.random(1,3)), Hit.Material, 0, "Block")
740
Ground.Anchored = true
741
Ground.CanCollide = true
742
Ground.CFrame = CFrame.new(Position) * CFrame.new(math.random(-30,30), 0, math.random(-30,30)) * CFrame.Angles(math.random(-50,50),math.random(-50,50), math.random(-50,50))
743
744
game:GetService("Debris"):AddItem(Ground,10)
745
746
end
747
end
748
	
749
for i = 1,25 do
750
wait()
751
752
RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.5)
753
Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3)
754
Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, 0.1) * CFrame.Angles(-0.2,0,0), 0.3)
755
Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, 0.1) * CFrame.Angles(-0.2,0,0), 0.3)
756
Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,-0.3),0.2)
757
Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,-0.5)*CFrame.Angles(0,-1.6,0),0.2)
758
	
759
end
760
761
Attacking = false
762
Humanoid.WalkSpeed = 16
763
Humanoid.JumpPower = 50
764
	
765
	
766
	
767
end
768
769
770
function Attack3()
771
Humanoid.WalkSpeed = 0
772
Humanoid.JumpPower = 0
773
Attacking = true
774
wait(1)
775
MakeSFX(Torso, 341336274, 1, 1.2)
776
CircleEffect(Torso.Position, Services.Workspace,  1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5)
777
wait(1)
778
MakeSFX(Torso, 341336274, 1, 1.2)
779
CircleEffect(Torso.Position, Services.Workspace,  1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5)
780
wait(1)
781
MakeSFX(Torso, 341336274, 1, 1.2)
782
CircleEffect(Torso.Position, Services.Workspace,  1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5)
783
ValidateDamage(Torso, 60 ,0, 0, "Impale", "Penetration", 15)
784
Humanoid.WalkSpeed = 16
785
Humanoid.JumpPower = 50
786
Attacking = false
787
end
788
789
Mouse.Button1Down:connect(function()
790
if not Attacking then
791
if Combo == 1 then
792
793
Combo = 2
794
Attack1()
795
796
797
elseif Combo == 2 then
798
799
Attack2()
800
Combo = 3
801
802
elseif Combo == 3 then
803
	
804
Attack3()
805
Combo = 1
806
807
end	
808
end
809
end)
810
811
--[[ CLerp Animations ]]--
812
Change1 = 0
813
Change2 = 0
814
Change3 = 0
815
Change4 = 0
816
817
while true do
818
wait()
819
820
local Torvel = (Root.Velocity*Vector3.new(1,0,1)).magnitude 
821
local Velderp = Root.Velocity.y
822
HitFloor,PosFloor = RayCast(Root.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,4,Character)	
823
824
Bars()
825
826
827
if Torvel < 1 and HitFloor ~= nil and Attacking == false then
828
Anim = "Idle"
829
	
830
RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
831
Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,-0.3,0),0.3)
832
Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3)
833
Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0.1, 0) * CFrame.Angles(0,0,-0.2), 0.3)
834
Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,0) * CFrame.Angles(-0.1,0,0),0.2)
835
Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0) * CFrame.Angles(-0.1,0,0),0.2)
836
837
end
838
839
840
if 2 < Torvel and Torvel < 22 and HitFloor ~= nil and Attacking == false then
841
Anim = "Walking"
842
843
if Invert == false then
844
Change1 = Change1 + 0.1
845
846
elseif Invert == true then
847
	
848
Change1 = Change1 - 0.1
849
850
end
851
852
if Change1 > 0.5 then
853
	
854
Invert = true
855
856
elseif Change1 < -0.5 then
857
858
Invert  = false
859
860
end
861
862
if Attacking == false then
863
864
RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
865
Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,-0.3,0),0.3)
866
Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, -Change1) * CFrame.Angles(Change1,0,0), 0.3)
867
Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, Change1) * CFrame.Angles(-Change1,0,0), 0.3)
868
Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-Change1 / 4)*CFrame.Angles(Change1,1.6,0),0.2)
869
Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,Change1 / 4)*CFrame.Angles(-Change1,-1.6,0),0.2)
870
871
end
872
end
873
874
if Root.Velocity.y > 1 and HitFloor == nil and Attacking == false then 
875
Anim = "Jump"
876
	
877
RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
878
Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
879
Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, 0.2) * CFrame.Angles(-0.4,0,0.2), 0.3)
880
Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, 0.2) * CFrame.Angles(-0.4,0,-0.2), 0.3)
881
Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-0.2)*CFrame.Angles(-0.2,1.6,0),0.2)
882
Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
883
884
end
885
886
if Root.Velocity.y < -1 and HitFloor == nil and Attacking == false then 
887
Anim = "Fall"
888
	
889
RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
890
Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3)
891
Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, -0.2) * CFrame.Angles(0.4,0,0.2), 0.3)
892
Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, -0.2) * CFrame.Angles(0.4,0,-0.2), 0.3)
893
Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-0.2)*CFrame.Angles(-0.2,1.6,0),0.2)
894
Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
895
896
end
897
898
899
if #Effects > 0 then
900
for E = 1, #Effects do
901
if Effects[E]~=nil then
902
local Effect = Effects[E]
903
904
if Effect ~= nil then
905
	
906
local Part = Effect[1]
907
local Mode = Effect[2]
908
local Time = Effect[3]
909
local SizeX = Effect[4]
910
local SizeY = Effect[5]
911
local SizeZ = Effect[6]
912
913
if Effect[1].Transparency <= 1 then
914
if Effect[2] == "Block" then
915
Effect[1].CFrame = Effect[1].CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
916
917
Mesh = Effect[1]:FindFirstChild("Mesh")
918
if Mesh ~= nil then
919
Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
920
end
921
922
elseif Effect[2] == "Circle" then
923
	
924
if Effect[1]:FindFirstChild("Mesh") ~= nil then
925
Mesh=Effect[1].Mesh
926
Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
927
end
928
929
Effect[1].Transparency = Effect[1].Transparency + 0.05
930
931
else
932
	
933
Part.Parent=nil
934
935
table.remove(Effects, E)
936
937
local mouse = Player:GetMouse()
938
local part = nil
939
local bp = nil
940
local particles = nil
941
function clerp(a,b,c,d)
942
	for i = 0,d,.01 do
943
		a.CFrame = CFrame.new(b:lerp(c,i))
944
		wait()
945
	end
946
end
947
function slerp(a2,b2,c2,d2)
948
	for i2 = 0,d2,.01 do
949
		a2.CFrame = CFrame.new(b2:lerp(c2,i2))
950
		wait()
951
	end
952
end
953
mouse.KeyDown:connect(function(key)
954
	if key == "e" and Player.Character.Parent == workspace then
955
		Player.Character.Parent = workspace.Camera
956
		Player.Character.Archivable = true
957
		Instance.new("ForceField",Player.Character).Visible = false
958
		for y,t in pairs(Player.Character:GetChildren()) do
959
			if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
960
				t.Transparency = 1
961
				if t.Name == "Head" and t:FindFirstChild("face") then
962
					t.face.Transparency = 1
963
				end
964
			elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
965
				t.Handle.Transparency = 1
966
			end
967
		end
968
	elseif key == "z" and Player.Character.Parent == workspace.Camera and part == nil then
969
		Player.Character.Torso.CFrame = CFrame.new(Vector3.new(mouse.hit.p.X,mouse.hit.p.Y+1.5,mouse.hit.p.Z),Player.Character.Torso.CFrame.p)
970
	elseif key == "x" and Player.Character.Parent == workspace.Camera and part == nil then
971
		if Player.Character.Torso.Anchored == true then
972
			for y,t in pairs(Player.Character:GetChildren()) do
973
				if t:IsA("Part") then
974
					t.Anchored = false
975
				end
976
			end
977
		else
978
			for y,t in pairs(Player.Character:GetChildren()) do
979
				if t:IsA("Part") then
980
					t.Anchored = true
981
				end
982
			end
983
		end
984
	elseif key == "c" and Player.Character.Parent == workspace.Camera and part ~= nil then
985
		local clone = part:Clone()
986
		clone.Parent = workspace
987
		clone.Anchored = false
988
		clone:ClearAllChildren()
989
		clone.CanCollide = true
990
		bp.Parent = clone
991
		particles.Parent = clone
992
		if part.Parent:FindFirstChildOfClass("Humanoid") then
993
			part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
994
		end
995
		part:Destroy()
996
		part = clone
997
	elseif key == "t" and Player.Character.Parent == workspace.Camera and part == nil then
998
		Player.Character.Parent = workspace
999
		Player.Character.Archivable = false
1000
		Player.Character:FindFirstChildOfClass("ForceField"):Remove()
1001
		for y,t in pairs(Player.Character:GetChildren()) do
1002
			if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
1003
				t.Transparency = 0
1004
				if t.Name == "Head" and t:FindFirstChild("face") then
1005
					t.face.Transparency = 0
1006
				end
1007
			elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
1008
				t.Handle.Transparency = 0
1009
			end
1010
		end
1011
	end
1012
end)
1013
mouse.Button1Down:connect(function()
1014
	if Player.Character.Parent == workspace.Camera then
1015
		if mouse ~= nil then
1016
			if mouse.Target ~= nil then
1017
				part = mouse.Target
1018
				bp = Instance.new("BodyPosition",part)
1019
				bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
1020
				bp.Position = part.Position
1021
				particles = Instance.new("ParticleEmitter",part)
1022
				particles.Color = ColorSequence.new(Color3.new(0,0,0))
1023
				particles.Size = NumberSequence.new(1)
1024
				particles.Texture = "rbxassetid://292289455"
1025
				particles.VelocitySpread = 360
1026
				particles.Speed = NumberRange.new(0)
1027
				particles.RotSpeed = NumberRange.new(0)
1028
				particles.Rotation = NumberRange.new(0)
1029
				particles.Rate = 250
1030
				particles.Lifetime = NumberRange.new(.2,.4)
1031
				particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
1032
				dwn = true
1033
			end
1034
		end
1035
		while dwn == true do 
1036
			wait()	
1037
			bp.Position = mouse.hit.p
1038
			if part then
1039
				if part.Parent:FindFirstChildOfClass("Humanoid") then
1040
					part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
1041
				end
1042
			end
1043
		end
1044
	end
1045
end)
1046
mouse.Button1Up:connect(function()
1047
	dwn = false
1048
	if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
1049
	if bp then bp:Destroy() end
1050
	if particles then particles:Destroy() end
1051
end)
1052
base = Instance.new("ScreenGui",Player.PlayerGui)
1053
bbg = Instance.new("BillboardGui",Player.Character.Head)
1054
bbg.Size = UDim2.new(0,200,0,50)
1055
bbg.StudsOffset = Vector3.new(0,3,0)
1056
bbgTl = Instance.new("TextLabel",bbg)
1057
bbgTl.BackgroundTransparency = 1
1058
bbgTl.Size = UDim2.new(10,0,1,0)
1059
bbgTl.Position = UDim2.new(-4.5,0,0,0)
1060
bbgTl.Font = "Code"
1061
bbgTl.Text = " "
1062
bbgTl.TextSize = 25
1063
bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
1064
bbgTl.TextColor3 = Color3.new(0,0,0)
1065
bbgTl.TextStrokeTransparency = 0
1066
bbgTl.TextWrapped = true
1067
Player.Chatted:connect(function(msg)
1068
	bbgTl.Text = msg
1069
	wait(5)
1070
	if bbgTl.Text == msg then
1071
		bbgTl.Text = " "
1072
	end
1073
end)
1074
touchCounter = 0
1075
while wait() do
1076
	if Player.Character.Parent == workspace.Camera then
1077
		local c = Player.Character:Clone()
1078
		c:MakeJoints()
1079
		for y,t in pairs(c:GetChildren()) do
1080
			if t:IsA("Part") then
1081
				t.CanCollide = false 
1082
				t.Anchored = true 
1083
				t.Transparency = .5
1084
				t.TopSurface = "Smooth"
1085
				t.BottomSurface = "Smooth"
1086
				t.RightSurface = "Smooth"
1087
				t.LeftSurface = "Smooth"
1088
				t.FrontSurface = "Smooth"
1089
				t.BackSurface = "Smooth"
1090
				t.BrickColor = BrickColor.new("Really black")
1091
				if t.Name == "Head" and t:FindFirstChild("face") then
1092
					t.face:Remove()
1093
				elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
1094
					t.roblox:Remove()
1095
				elseif t.Name == "HumanoidRootPart" then
1096
					t:Remove()
1097
				end
1098
			else 
1099
				t:Remove()
1100
			end
1101
		end
1102
		c.Parent = workspace
1103
		game.Debris:AddItem(c,.05)
1104
	end
1105
end
1106
1107
1108
end
1109
end
1110
end
1111
end
1112
end
1113
end
1114
end