View difference between Paste ID: wE9r1Ys8 and m1QLJ8NU
SHOW: | | - or go back to the newest paste.
1
local remote = NS ([==[
2
Player = owner
3
Character = Player.Character 
4
PlayerGui = Player.PlayerGui
5
Backpack = Player.Backpack 
6
Torso = Character.Torso 
7
Head = Character.Head 
8
Humanoid = Character.Humanoid
9
LeftArm = Character["Left Arm"] 
10
LeftLeg = Character["Left Leg"] 
11
RightArm = Character["Right Arm"] 
12
RightLeg = Character["Right Leg"]
13
Character = Player.Character 
14
PlayerGui = Player.PlayerGui
15
Backpack = Player.Backpack 
16
Torso = Character.Torso 
17
Head = Character.Head 
18
Humanoid = Character.Humanoid
19
LeftArm = Character["Left Arm"] 
20
LeftLeg = Character["Left Leg"] 
21
RightArm = Character["Right Arm"] 
22
RightLeg = Character["Right Leg"] 
23
LS = Torso["Left Shoulder"] 
24
LH = Torso["Left Hip"] 
25
RS = Torso["Right Shoulder"] 
26
RH = Torso["Right Hip"] 
27
Neck = Torso.Neck
28
attacktype = 1
29
vt = Vector3.new
30
cf = CFrame.new
31
euler = CFrame.fromEulerAnglesXYZ
32
angles = CFrame.Angles
33
necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
34
necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
35
LHC0 = cf(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
36
LHC1 = cf(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
37
RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
38
RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
39
RootPart = Character.HumanoidRootPart
40
RootJoint = RootPart.RootJoint
41
RootCF = euler(-1.57, 0, 3.14)
42
attack = false 
43
equipped = true
44
local Anim = "Idle"
45
local Effects = {}
46
cam = workspace.CurrentCamera
47
ZTarget = nil
48
RocketTarget = nil
49
local RbxUtility = LoadLibrary("RbxUtility")
50
local Create = RbxUtility.Create
51
local m = Create("Model"){
52
	Parent = Character,
53
	Name = "WeaponModel",
54
}
55
RSH, LSH = nil, nil 
56
LH = Torso["Left Hip"]
57
RH = Torso["Right Hip"]
58
RSH = Torso["Right Shoulder"] 
59
LSH = Torso["Left Shoulder"]
60
61
local glasses = Instance.new("Part",Head)
62
		glasses.CanCollide = false
63
		glasses.TopSurface = 10
64
		glasses.BottomSurface = 10
65
		glasses.Size = Vector3.new(1.4, 0.6, 1.4)
66
		local glassesmesh = Instance.new("SpecialMesh",glasses)
67
		glassesmesh.MeshId = "rbxassetid://121910245"
68
		glassesmesh.TextureId = "rbxassetid://182196075"
69
		glassesmesh.Scale = Vector3.new(0.7,0.7,0.7)
70
		local glassesweld = Instance.new("Weld",glasses)
71
		glassesweld.Part0 = Head
72
		glassesweld.Part1 = glasses
73
		glassesweld.C0 = CFrame.new(0,0.1,-0.05)
74
75
local hair = Instance.new("Part",Char)
76
hair.Name = "Hair"
77
hair.CanCollide = false
78
hair.Size = Vector3.new(1.2, 1, 1.6)
79
hair.BrickColor = BrickColor.new("Really black")
80
local hairmesh = Instance.new("SpecialMesh",hair)
81
hairmesh.MeshId = "rbxassetid://16627529"
82
hairmesh.TextureId = "rbxassetid://16627494"
83
hairmesh.Scale = Vector3.new(1.05,1.05,1.05)
84
hairmesh.VertexColor = Vector3.new(0.1,0.1,0.1)
85
local hairweld = Instance.new("Weld",hair)
86
hairweld.Part0 = Head
87
hairweld.Part1 = hair
88
hairweld.C0 = CFrame.new(0,0.5,0)
89
90
local hair = Instance.new("Part",Char)
91
hair.Name = "Hair"
92
hair.CanCollide = false
93
hair.Size = Vector3.new(1.2, 1, 1.6)
94
hair.BrickColor = BrickColor.new("Really black")
95
local hairmesh = Instance.new("SpecialMesh",hair)
96
hairmesh.MeshId = "rbxassetid://1029012"
97
hairmesh.TextureId = "rbxassetid://1028814"
98
hairmesh.Scale = Vector3.new(1.1,1.1,1.1)
99
hairmesh.VertexColor = Vector3.new(0.1,0.1,0.1)
100
local hairweld = Instance.new("Weld",hair)
101
hairweld.Part0 = Head
102
hairweld.Part1 = hair
103
hairweld.C0 = CFrame.new(0,0.5,0)
104
105
local hair = Instance.new("Part",Char)
106
hair.Name = "Hair"
107
hair.CanCollide = false
108
hair.Size = Vector3.new(1.2, 1, 1.6)
109
hair.BrickColor = BrickColor.new("Really black")
110
local hairmesh = Instance.new("SpecialMesh",hair)
111
hairmesh.MeshId = "rbxassetid://1577360"
112
hairmesh.TextureId = "rbxassetid://1577349"
113
hairmesh.Scale = Vector3.new(1,1.3,1)
114
hairmesh.VertexColor = Vector3.new(0.1,0.1,0.1)
115
local hairweld = Instance.new("Weld",hair)
116
hairweld.Part0 = Head
117
hairweld.Part1 = hair
118
hairweld.C0 = CFrame.new(0,0.5,0)
119
120
local hair = Instance.new("Part",Char)
121
hair.Name = "Hair"
122
hair.CanCollide = false
123
hair.Size = Vector3.new(1.2, 1, 1.6)
124
hair.BrickColor = BrickColor.new("Really black")
125
local hairmesh = Instance.new("SpecialMesh",hair)
126
hairmesh.MeshId = "rbxassetid://1051545"
127
hairmesh.TextureId = "rbxassetid://1051546"
128
hairmesh.Scale = Vector3.new(1,1.3,1)
129
hairmesh.VertexColor = Vector3.new(0.1,0.1,0.1)
130
local hairweld = Instance.new("Weld",hair)
131
hairweld.Part0 = Head
132
hairweld.Part1 = hair
133
hairweld.C0 = CFrame.new(0,0.5,0)
134
135
blackhand = Instance.new("Part",char)
136
blackhand.Material = "Neon"
137
blackhand.Transparency = 1
138
blackhand.BrickColor = BrickColor.new("Really red")
139
blackhand.Position = Vector3.new(999,999,999)
140
blackhand.Size = Vector3.new(1.01,1.01,1.01)
141
blackweld = Instance.new("Weld",blackhand)
142
blackweld.Part0 = rarm
143
blackweld.Part1 = blackhand
144
blackweld.C0 = CFrame.new(0,-0.5,0)
145
146
local InfernusTheme = Instance.new("Sound",Character)
147
InfernusTheme.Name = "WorldEaterTheme"
148
InfernusTheme.Looped = true
149
InfernusTheme.SoundId = "http://www.roblox.com/asset?id=152828706"
150
InfernusTheme:Play()
151
152
RSH.Parent = nil 
153
LSH.Parent = nil 
154
155
RW = Create("Weld"){
156
	Name = "Right Shoulder",
157
	Part0 = Torso ,
158
	C0 = cf(1.5, 0.5, 0),
159
	C1 = cf(0, 0.5, 0), 
160
	Part1 = RightArm ,
161
	Parent = Torso ,
162
}
163
164
LW = Create("Weld"){
165
	Name = "Left Shoulder",
166
	Part0 = Torso ,
167
	C0 = cf(-1.5, 0.5, 0),
168
	C1 = cf(0, 0.5, 0) ,
169
	Part1 = LeftArm ,
170
	Parent = Torso ,
171
}
172
----------------------------------------------------
173
cn,ca,bc,v3,r = CFrame.new,CFrame.Angles,BrickColor.new,Vector3.new,function(a)return (math.random()-.5)*2*(a or 1) end
174
deg,nf,c3,ins,ma,pi,mr = math.deg,math.floor,Color3.new,Instance.new,math.abs,math.pi,math.rad
175
local part = function(prnt,cfr,siz,col,anc,canc,tra,mat,typ)
176
                local p = ins(typ or "Part")
177
                p.FormFactor = "Custom"
178
                p.Material = mat
179
                p.Transparency = tra
180
                p.CanCollide = canc
181
                p.Anchored = anc
182
                p.BrickColor = bc(col)
183
                p.Size = siz
184
                p.CFrame = cfr
185
                p.Parent = prnt
186
                p.Locked = true
187
                p.TopSurface,p.BottomSurface = 0,0
188
                p:BreakJoints()
189
                return p
190
end
191
local mesh = function(typ,prnt,scal,mtyp,mid,mtx)
192
                local m = ins(typ or "SpecialMesh")
193
                if mtyp then m.MeshType = mtyp end
194
                if mid then m.MeshId = mid end
195
                if mtx then m.TextureId = mtx end
196
                if scal then m.Scale = scal end
197
                m.Parent = prnt
198
                return m
199
end
200
function cylinderOpen(cf,col,col2)
201
        local p = part(Character,cf,v3(0,1000,0),col,true,false,.1,"SmoothPlastic")
202
        local pm = mesh("CylinderMesh",p)
203
        local p2 = part(Character,cf,v3(0,1000,0),col2,true,false,.1,"SmoothPlastic")
204
        local p2m = mesh("CylinderMesh",p2)
205
        Spawn(function()
206
                        for i=.1,1.1,.0125 do
207
                                        p.Transparency = i
208
                                        p2.Transparency = i
209
                                        pm.Scale = pm.Scale + v3(.8,0,.8)
210
                                        p2m.Scale = p2m.Scale + v3(.5,0,.5)
211
                                        wait()
212
                        end
213
                        p:Destroy()
214
                        p2:Destroy()
215
        end)
216
end
217
218
function expandDong()
219
        local nTarg = Torso
220
        local Orbi = Instance.new('Part')
221
        Orbi.Size = Vector3.new(3,3,3)
222
        Orbi.CanCollide = false
223
        Orbi.Locked = true
224
        Orbi.Shape = 'Ball'
225
        Orbi.Anchored = true
226
        Orbi.Transparency = .6
227
        Orbi.TopSurface,Orbi.BottomSurface = 0,0
228
        Orbi.Name = 'Expand Dong'
229-
        Orbi.BrickColor = BrickColor.new('Really red')
229+
        Orbi.BrickColor = BrickColor.new('Royal purple')
230
        
231
        local OrbiMesh = Instance.new('SpecialMesh',Orbi)
232
        OrbiMesh.Name = 'Dxpand Eong'
233
        OrbiMesh.Scale = Vector3.new(2, 2, 2)
234
        OrbiMesh.MeshType = 'Sphere'
235
        Orbi.Parent = Character
236
        ypcall(function()
237
                for i = 3,.35,-1 do 
238
                        OrbiMesh.Scale = OrbiMesh.Scale + Vector3.new(.7, .7, .7)
239
                        Orbi.CFrame = nTarg.CFrame
240
                end
241
                for i = .6,1,.05 do
242
                wait(0.04)
243
                        Orbi.Transparency = i
244
                end
245
                Orbi:Destroy()
246
        end)
247
end
248
249
250
function expandDong2()
251
        local nTarg = Torso
252
        local Orbi = Instance.new('Part')
253
        Orbi.Size = Vector3.new(3,3,3)
254
        Orbi.CanCollide = false
255
        Orbi.Locked = true
256
        Orbi.Shape = 'Ball'
257
        Orbi.Anchored = true
258
        Orbi.Transparency = .6
259
        Orbi.TopSurface,Orbi.BottomSurface = 0,0
260
        Orbi.Name = 'Expand Dong'
261
        Orbi.BrickColor = BrickColor.new('Really black')
262
        
263
        local OrbiMesh = Instance.new('SpecialMesh',Orbi)
264
        OrbiMesh.Name = 'Dxpand Eong'
265
        OrbiMesh.Scale = Vector3.new(2.5, 2.5, 2.5)
266
        OrbiMesh.MeshType = 'Sphere'
267
        Orbi.Parent = Character
268
        ypcall(function()
269
                for i = 3,0,-1 do 
270
                        OrbiMesh.Scale = OrbiMesh.Scale + Vector3.new(.7, .7, .7)
271
                        Orbi.CFrame = nTarg.CFrame
272
                end
273
                for i = .6,1,.05 do
274
                wait(0.04)
275
                        Orbi.Transparency = i
276
                end
277
                Orbi:Destroy()
278
        end)
279
end
280
cylinderOpen(Torso.CFrame,"Really red","Really black")
281
expandDong2()
282
expandDong()
283
----------------------------------------------------
284
z = Instance.new("Sound", Character)
285-
z.SoundId = "rbxassetid://"--Sao Crossing: 155183751 -- SAN HOLO DOnkeykong: 246056418 -- "Innocence" - Sword Art Online OP 2: 142357253 -- OnePunch Hero: 339250412 (Fav) -- Sethbling: 170902050
285+
z.SoundId = "rbxassetid://1384066755"--Sao Crossing: 155183751 -- SAN HOLO DOnkeykong: 246056418 -- "Innocence" - Sword Art Online OP 2: 142357253 -- OnePunch Hero: 339250412 (Fav) -- Sethbling: 170902050
286
z.Looped = true
287
z.Pitch = .9
288
z.Volume = .5
289
wait(.1)
290
z:Play()
291
----------------------------------------------------
292
293
local co1 = 0--how long it will take for skill to cooldown
294
local co2 = 0
295
local co3 = 0
296
local co4 = 3
297
298
local cooldown1 = 16
299
local cooldown2 = 12
300
local cooldown3 = 9
301
local cooldown4 = 15
302
303
local maxEnergy = 100
304
local Energy = 100--Energy you start out with
305
local skill1stam = 17--how much Energy is needed for a skill
306
local skill2stam = 15
307
local skill3stam = 20
308
local skill4stam = 70
309
local recovermana = 3--how much mana per second
310
311-
local skillcolorscheme = BrickColor.new("Really red").Color
311+
local skillcolorscheme = BrickColor.new("Royal purple").Color
312
313
local scrn = Instance.new('ScreenGui', Player.PlayerGui)
314
function makeframe(par, trans, pos, size, color)
315
	local frame = Instance.new('Frame', par)
316
	frame.BackgroundTransparency = trans
317
	frame.BorderSizePixel = 0
318
	frame.Position = pos
319
	frame.Size = size
320
	frame.BackgroundColor3 = color
321
	return frame
322
end
323
function makelabel(par, text)
324
	local label = Instance.new('TextLabel', par)
325
	label.BackgroundTransparency = 1
326
	label.Size = UDim2.new(1, 0, 1, 0)
327
	label.Position = UDim2.new(0, 0, 0, 0)
328
	label.TextColor3 = Color3.new(255, 255, 255)
329
	label.TextStrokeTransparency = 0
330
	label.FontSize = Enum.FontSize.Size32
331
	label.Font = Enum.Font.SourceSansBold
332
	label.BorderSizePixel = 0
333
	label.TextScaled = true
334
	label.Text = text
335
end
336
framesk1 = makeframe(scrn, .5, UDim2.new(.23, 0, .93, 0), UDim2.new(.26, 0, .06, 0), skillcolorscheme)
337
framesk2 = makeframe(scrn, .5, UDim2.new(.5, 0, .93, 0), UDim2.new(.26, 0, .06, 0), skillcolorscheme)
338
framesk3 = makeframe(scrn, .5, UDim2.new(.5, 0, .86, 0), UDim2.new(.26, 0, .06, 0), skillcolorscheme)
339
framesk4 = makeframe(scrn, .5, UDim2.new(.23, 0, .86, 0), UDim2.new(.26, 0, .06, 0), skillcolorscheme)
340
bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
341
bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
342
bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
343
bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
344
text1 = makelabel(framesk1, '[R] Energy Wave')
345
text2 = makelabel(framesk2, '[F] Energy Cannon')
346
text3 = makelabel(framesk3, "[E] Energy Rapid-Fire")
347
text4 = makelabel(framesk4, '[Q] Energy Shots')
348
Energybar = makeframe(scrn, .5, UDim2.new(.23, 0, .82, 0), UDim2.new(.26, 0, .03, 0), BrickColor.new("Really black").Color)
349-
Energycover = makeframe(Energybar, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), BrickColor.new("Really red").Color)
349+
Energycover = makeframe(Energybar, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), BrickColor.new("Royal purple").Color)
350
Energytext = makelabel(Energybar, 'Energy')
351
healthbar = makeframe(scrn, .5, UDim2.new(.5, 0, .82, 0), UDim2.new(.26, 0, .03, 0), BrickColor.new("Really black").Color)
352-
healthcover = makeframe(healthbar, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), BrickColor.new("Really red").Color)
352+
healthcover = makeframe(healthbar, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), BrickColor.new("Royal purple").Color)
353
healthtext = makelabel(healthbar, 'Health')
354
355
local stats=Instance.new('Folder',Character)
356
stats.Name='Stats'
357
local block=Instance.new('BoolValue',stats)
358
block.Name='Block'
359
block.Value=false
360
local stun=Instance.new('BoolValue',stats)
361
stun.Name='Stun'
362
stun.Value=false
363
local defense=Instance.new('NumberValue',stats)
364
defense.Name='Defence'
365
defense.Value=1
366
local speed=Instance.new('NumberValue',stats)
367
speed.Name='Speed'
368
speed.Value=1
369
local damagea=Instance.new('NumberValue',stats)
370
damagea.Name='Damage'
371
damagea.Value=1
372
373
function NoOutline(Part)
374
	Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
375
end
376
	
377
function nooutline(part)
378
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
379
end
380
	
381
function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
382
	local fp = Create("Part"){
383
		formFactor = formfactor,
384
		Parent = parent,
385
		Reflectance = reflectance,
386
		Transparency = transparency,
387
		CanCollide = false,
388
		Locked = true,
389
		BrickColor = BrickColor.new(tostring(brickcolor)),
390
		Name = name,
391
		Size = size,
392
		Position = Character.Torso.Position,
393
		Material = material,
394
	}
395
	nooutline(fp)
396
	return fp
397
end
398
	
399
function mesh(Mesh, part, meshtype, meshid, offset, scale)
400
	local Msh = Create(Mesh){
401
		Parent = part,
402
		Offset = offset,
403
		Scale = scale,
404
	}
405
	if Mesh == "SpecialMesh" then
406
		Msh.MeshType = meshtype
407
		Msh.MeshId = meshid
408
	end
409
	return Msh
410
end
411
	
412
function weld(parent, part0, part1, c0, c1)
413
	local Weld = Create("Weld"){
414
		Parent = parent,
415
		Part0 = part0,
416
		Part1 = part1,
417
		C0 = c0,
418
		C1 = c1,
419
	}
420
	return Weld
421
end
422
	
423
	
424
local function CFrameFromTopBack(at, top, back)
425
	local right = top:Cross(back)
426
	return CFrame.new(at.x, at.y, at.z,
427
right.x, top.x, back.x,
428
right.y, top.y, back.y,
429
right.z, top.z, back.z)
430
end
431
432
function Triangle(a, b, c)
433
	local edg1 = (c - a):Dot((b - a).unit)
434
	local edg2 = (a - b):Dot((c - b).unit)
435
	local edg3 = (b - c):Dot((a - c).unit)
436
	if edg1 <= (b - a).magnitude and edg1 >= 0 then
437
		a, b, c = a, b, c
438
	elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
439
		a, b, c = b, c, a
440
	elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
441
		a, b, c = c, a, b
442
	else
443
		assert(false, "unreachable")
444
	end
445
 
446
	local len1 = (c - a):Dot((b - a).unit)
447
	local len2 = (b - a).magnitude - len1
448
	local width = (a + (b - a).unit * len1 - c).magnitude
449
 
450
	local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
451
 
452
	local list = {}
453
454
	local Color = BrickColor.new("Dark stone grey")
455
 
456
	if len1 > 0.01 then
457
		local w1 = Create('WedgePart', m){
458
			Material = "SmoothPlastic",
459
			FormFactor = 'Custom',
460
			BrickColor = Color,
461
			Transparency = 0,
462
			Reflectance = 0,
463
			Material = "SmoothPlastic",
464
			CanCollide = false,
465
			Anchored = true,
466
			Parent = workspace,
467
			Transparency = 0.3,
468
		}
469
		game:GetService("Debris"):AddItem(w1, 5)
470
		NoOutline(w1)
471
		local sz = Vector3.new(0.2, width, len1)
472
		w1.Size = sz
473
		local sp = Create("SpecialMesh"){
474
			Parent = w1,
475
			MeshType = "Wedge",
476
			Scale = Vector3.new(0, 1, 1) * sz / w1.Size,
477
		}
478
		w1:BreakJoints()
479
		table.insert(Effects, {
480
			w1,
481
			"Disappear",
482
			.03
483
		})
484
		w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
485
		table.insert(list, w1)
486
	end
487
	if len2 > 0.01 then
488
		local w2 = Create('WedgePart', m){
489
			Material = "SmoothPlastic",
490
			FormFactor = 'Custom',
491
			BrickColor = Color,
492
			Transparency = 0,
493
			Reflectance = 0,
494
			Material = "SmoothPlastic",
495
			CanCollide = false,
496
			Anchored = true,
497
			Parent = workspace,
498
			Transparency = 0.3,
499
		}
500
		game:GetService("Debris"):AddItem(w2, 5)
501
		NoOutline(w2)
502
		local sz = Vector3.new(0.2, width, len2)
503
		w2.Size = sz
504
		local sp = Create("SpecialMesh"){
505
			Parent = w2,
506
			MeshType = "Wedge",
507
			Scale = Vector3.new(0, 1, 1) * sz / w2.Size,
508
		}
509
		w2:BreakJoints()
510
		table.insert(Effects, {
511
			w2,
512
			"Disappear",
513
			.03
514
		})
515
		w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
516
		table.insert(list, w2)
517
	end
518
	return unpack(list)
519
end
520
		
521
function so(id, par, vol, pit) 
522
	coroutine.resume(coroutine.create(function()
523
		local sou = Instance.new("Sound", par or workspace)
524
		sou.Volume = vol
525
		sou.Pitch = pit or 1
526
		sou.SoundId = Sounds[id].Id or id
527
		swait() 
528
		sou:play() 
529
		swait(6) 
530
		sou:Remove() 
531
	end))
532
end
533
 
534
function clerp(a, b, t)
535
	return a:lerp(b, t)
536
end
537
538
--[[Credits to SazErenos for his Artificial ]]--
539
540
ArtificialHB = Instance.new("BindableEvent", script)
541
ArtificialHB.Name = "Heartbeat"
542
543
script:WaitForChild("Heartbeat")
544
545
frame = 1 / 60
546
tf = 0
547
allowframeloss = false
548
tossremainder = false
549
lastframe = tick()
550
script.Heartbeat:Fire()
551
552
game:GetService("RunService").Heartbeat:connect(function(s, p)
553
	tf = tf + s
554
	if tf >= frame then
555
		if allowframeloss then
556
			script.Heartbeat:Fire()
557
			lastframe = tick()
558
		else
559
			for i = 1, math.floor(tf / frame) do
560
				script.Heartbeat:Fire()
561
			end
562
			lastframe = tick()
563
		end
564
		if tossremainder then
565
			tf = 0
566
		else
567
			tf = tf - frame * math.floor(tf / frame)
568
		end
569
	end
570
end)
571
572
function swait(num)
573
	if num == 0 or num == nil then
574
		ArtificialHB.Event:wait()
575
	else
576
		for i = 0, num do
577
			ArtificialHB.Event:wait()
578
		end
579
	end
580
end
581
582
function rayCast(Pos, Dir, Max, Ignore)
583
	return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
584
end 
585
586
Asset = "http://www.roblox.com/asset/?id="
587
588
Sounds = {
589
	Hit1 = {
590
		Id = Asset..(199149137)
591
	},
592
	Hit2 = {
593
		Id = Asset..(199149186)
594
	},
595
	Hit3 = {
596
		Id = Asset..(199149221)
597
	},
598
	Hit4 = {
599
		Id = Asset..(199149235)
600
	},
601
	Slash1 = {
602
		Id = Asset..(161006195)
603
	},
604
	Slash2 = {
605
		Id = Asset..(161006212)
606
	},
607
	Fire = {
608
		Id = Asset..(168413145)
609
	},
610
	Beam = {
611
		Id = Asset..(278596476)
612
	},
613
	Appear = {
614
		Id = Asset..(200633077)
615
	},
616
	Disappear = {
617
		Id = Asset..(200633029)
618
	},
619
}
620
 
621
ContentProvider = game:GetService("ContentProvider")
622
for _, v in pairs(Sounds) do
623
	ContentProvider:Preload(v.Id)
624
end
625
626
627
628
Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
629
	if hit.Parent == nil then
630
		return
631
	end
632
	local h = hit.Parent:FindFirstChild("Humanoid")
633
	for _, v in pairs(hit.Parent:children()) do
634
		if v:IsA("Humanoid") then
635
			h = v
636
		end
637
	end
638
	if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
639
		if hit.Parent:findFirstChild("DebounceHit") ~= nil then
640
			if hit.Parent.DebounceHit.Value == true then
641
				return
642
			end
643
		end
644
		if h.MaxHealth >= math.huge then
645
			hit:BreakJoints()
646
		end
647
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
648
                        return
649
                end]]
650
--                        hs(hit,1.2) 
651
		local c = Create("ObjectValue"){
652
			Name = "creator",
653
			Value = owner,
654
			Parent = h,
655
		}
656
		game:GetService("Debris"):AddItem(c, .5)
657
		if HitSound ~= nil and HitPitch ~= nil then
658
			so(HitSound, hit, 1, HitPitch) 
659
		end
660
		local Damage = math.random(minim, maxim)
661
--                h:TakeDamage(Damage)
662
		local blocked = false
663
		local block = hit.Parent:findFirstChild("Block")
664
		if block ~= nil then
665
			if block.className == "IntValue" then
666
				if block.Value > 0 then
667
					blocked = true
668
					block.Value = block.Value - 1
669
					print(block.Value)
670
				end
671
			end
672
		end
673
		if blocked == false then
674
--                h:TakeDamage(Damage)
675
			h.Health = h.Health - Damage
676
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
677
		else
678
			h.Health = h.Health - (Damage / 2)
679
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
680
		end
681
		if Type == "Knockdown" then
682
			local hum = hit.Parent.Humanoid
683
			hum.PlatformStand = true
684
			coroutine.resume(coroutine.create(function(HHumanoid)
685
				swait(1)
686
				HHumanoid.PlatformStand = false
687
			end), hum)
688
			local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
689
			local bodvol = Create("BodyVelocity"){
690
				velocity = angle * knockback,
691
				P = 5000,
692
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
693
				Parent = hit,
694
			}
695
			local rl = Create("BodyAngularVelocity"){
696
				P = 3000,
697
				maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
698
				angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
699
				Parent = hit,
700
			}
701
			game:GetService("Debris"):AddItem(bodvol, .5)
702
			game:GetService("Debris"):AddItem(rl, .5)
703
		elseif Type == "Normal" then
704
			local vp = Create("BodyVelocity"){
705
				P = 500,
706
				maxForce = Vector3.new(math.huge, 0, math.huge),
707
				velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
708
			}
709
			if knockback > 0 then
710
				vp.Parent = hit.Parent.Torso
711
			end
712
			game:GetService("Debris"):AddItem(vp, .5)
713
		elseif Type == "Up" then
714
			local bodyVelocity = Create("BodyVelocity"){
715
				velocity = vt(0, 20, 0),
716
				P = 5000,
717
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
718
				Parent = hit,
719
			}
720
			game:GetService("Debris"):AddItem(bodyVelocity, .5)
721
		elseif Type == "Snare" then
722
			local bp = Create("BodyPosition"){
723
				P = 2000,
724
				D = 100,
725
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
726
				position = hit.Parent.Torso.Position,
727
				Parent = hit.Parent.Torso,
728
			}
729
			game:GetService("Debris"):AddItem(bp, 1)
730
		elseif Type == "Freeze" then
731
			local BodPos = Create("BodyPosition"){
732
				P = 50000,
733
				D = 1000,
734
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
735
				position = hit.Parent.Torso.Position,
736
				Parent = hit.Parent.Torso,
737
			}
738
			local BodGy = Create("BodyGyro") {
739
				maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
740
				P = 20e+003,
741
				Parent = hit.Parent.Torso,
742
				cframe = hit.Parent.Torso.CFrame,
743
			}
744
			hit.Parent.Torso.Anchored = true
745
			coroutine.resume(coroutine.create(function(Part) 
746
				swait(1.5)
747
				Part.Anchored = false
748
			end), hit.Parent.Torso)
749
			game:GetService("Debris"):AddItem(BodPos, 3)
750
			game:GetService("Debris"):AddItem(BodGy, 3)
751
		end
752
		local debounce = Create("BoolValue"){
753
			Name = "DebounceHit",
754
			Parent = hit.Parent,
755
			Value = true,
756
		}
757
		game:GetService("Debris"):AddItem(debounce, Delay)
758
		c = Instance.new("ObjectValue")
759
		c.Name = "creator"
760
		c.Value = Player
761
		c.Parent = h
762
		game:GetService("Debris"):AddItem(c, .5)
763
	end
764
end
765
766
function ShowDamage(Pos, Text, Time, Color)
767
	local Rate = (1 / 30)
768
	local Pos = (Pos or Vector3.new(0, 0, 0))
769
	local Text = (Text or "")
770
	local Time = (Time or 2)
771
	local Color = (Color or Color3.new(1, 0, 0))
772
	local EffectPart = part("Custom", workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
773
	EffectPart.Anchored = true
774
	local BillboardGui = Create("BillboardGui"){
775
		Size = UDim2.new(3, 0, 3, 0),
776
		Adornee = EffectPart,
777
		Parent = EffectPart,
778
	}
779
	local TextLabel = Create("TextLabel"){
780
		BackgroundTransparency = 1,
781
		Size = UDim2.new(1, 0, 1, 0),
782
		Text = Text,
783
		TextColor3 = Color,
784
		TextScaled = true,
785
		Font = Enum.Font.ArialBold,
786
		Parent = BillboardGui,
787
	}
788
	game.Debris:AddItem(EffectPart, (Time + 0.1))
789
	EffectPart.Parent = game:GetService("Workspace")
790
	delay(0, function()
791
		local Frames = (Time / Rate)
792
		for Frame = 1, Frames do
793
			wait(Rate)
794
			local Percent = (Frame / Frames)
795
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
796
			TextLabel.TextTransparency = Percent
797
		end
798
		if EffectPart and EffectPart.Parent then
799
			EffectPart:Destroy()
800
		end
801
	end)
802
end
803
804
Handle = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Really red", "Handle", Vector3.new(2.20000005, 0.200000003, 2.20000005))
805
Handleweld = weld(m, Character["Torso"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0396080017, -4.09992504, 0.0598115921, 1, -7.6153174e-011, -2.01268858e-006, 8.22890089e-011, 1, 3.084431e-006, 2.01269063e-006, -3.084431e-006, 1))
806
mesh("CylinderMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.660000086, 1))
807
Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(2.44000006, 0.600000003, 1.44000006))
808
Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.14984131e-005, 1.62124634e-005, -1.04904175e-005, 1, 1.23146328e-011, 1.07286201e-006, -1.13079598e-011, 1, -1.07284109e-006, -1.07285791e-006, 1.07284109e-006, 1))
809
mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
810
Layer2Handle = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Layer2Handle", Vector3.new(0.480000019, 0.200000003, 12.480001062))
811
Layer2Handleweld = weld(m, Handle, Layer2Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000301361084, 2.28881836e-005, -0.000202178955, 1, 2.70082467e-007, -1.75730406e-006, -2.70091959e-007, 1, -8.66388018e-006, 1.7573052e-006, 8.66388655e-006, 1))
812
Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Really red", "Part", Vector3.new(0.480000019, 2.200000003, 2.720000625))
813
Partweld = weld(m, Layer2Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.14984131e-005, -9.53674316e-007, -2.8800478, 0.999997914, -1.93837602e-011, -1.48245363e-008, 3.90257063e-011, 1, -7.13953341e-011, 1.48336312e-008, 8.91304808e-011, 0.999997914))
814
mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
815
Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Really red", "Part", Vector3.new(0.480000019, 2.200000003, 2.720000625))
816
Partweld = weld(m, Layer2Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.19616699e-005, -3.24249268e-005, 2.87992668, 0.999985158, 2.87014509e-012, -1.48093022e-008, 5.66184322e-011, 1, -5.45696821e-012, 1.48470463e-008, 8.04902811e-011, 0.999985158))
817
mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
818
Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.480000019, 0.200000003, 12.04000092))
819
Partweld = weld(m, Layer2Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.33514404e-005, -9.53674316e-007, -0.0001039505, 0.999987781, -7.77617137e-011, -1.49125299e-008, 1.16872789e-010, 1, -1.96905603e-010, 1.493936e-008, 2.51930032e-010, 0.999987781))
820
mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
821
mesh("BlockMesh", Layer2Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
822
Layer3Handle = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 1, "Really red", "Layer3Handle", Vector3.new(0.720000029, 0.720000029, 0.200000003))
823
Layer3Handleweld = weld(m, Handle, Layer3Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000802993774, -0.000151634216, 3.05175781e-005, 0.999999404, 4.16033836e-005, 1.96785777e-006, 1.96798396e-006, -2.12107511e-006, -0.999999404, -4.16014955e-005, 1, -2.12118243e-006))
824
Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
825
Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(9.53674316e-007, -0.840223312, 7.5397892, 4.89614176e-005, 5.0135186e-006, 0.999999762, -0.999999046, 1.22189522e-005, 4.8959475e-005, -1.22783813e-005, -0.999998689, 5.01443719e-006))
826
mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
827
Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
828
Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000864028931, -6.00814819e-005, -7.59964466, -0.999999404, 9.70068322e-006, 3.31623378e-005, 3.31642768e-005, 4.86649742e-006, 1, 9.70056226e-006, 0.999999404, -4.86679755e-006))
829
mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
830
Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
831
Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.76565552e-005, -0.840137482, 7.54048443, -3.42451713e-005, -5.10578684e-006, -0.99999994, -0.999998927, -1.21146441e-005, 3.4243305e-005, -1.2144611e-005, 0.999998927, -5.10543578e-006))
832
mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
833
Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
834
Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000713348389, -0.76565552e-005, -7.6005826, -0.999993503, -9.68569748e-006, 5.00400529e-005, -5.00420938e-005, -4.89724516e-006, -0.999999881, 9.62627109e-006, -0.999993503, 4.89690592e-006))
835
mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
836
Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
837
Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-7.62939453e-006, -0.838525772, 7.54048347, 3.57801182e-005, 5.10578639e-006, 0.99999994, 0.999999046, 1.0341405e-005, -3.57782446e-005, -1.03266702e-005, 0.999998927, -5.10551126e-006))
838
mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
839
Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
840
Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.7220459e-006, -0.84022522, 7.53960228, -3.45465851e-005, -1.12046393e-006, -1, 5.82638359e-006, -0.999999225, 1.12023974e-006, -0.999999225, -5.82638404e-006, 3.45446933e-005))
841
mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
842
Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
843
Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.86102295e-006, -0.839550018, 7.53951263, 3.41143859e-005, 1.04596313e-006, 1, -6.24368704e-006, 0.999999225, -1.04572723e-006, -0.999999225, -6.24369022e-006, 3.41124942e-005))
844
mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
845
Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
846
Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000238418579, -9.53674316e-006, -7.59959984, 6.28840098e-006, -0.999999225, 1.09042128e-006, -3.40994848e-005, -1.09065854e-006, -1, 0.999999225, 6.2884028e-006, -3.4097593e-005))
847
mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
848
Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0.19999998807907, "Really red", "Part", Vector3.new(0.480000019, 0.480000019, 0.200000003))
849
Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 3.81469727e-006, 0.999998808, 7.0078163e-011, 1.9098958e-009, 4.0078163e-011, 0.999998808, 2.42152964e-011, 1.9098958e-009, 2.42152964e-011, 1))
850
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(6.58200026, 6.58200002, 2.9532001))
851
Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
852
Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.00543213e-005, -0.838380814, 7.53930187, -4.74264707e-005, -5.02687499e-006, -0.999999762, 0.999999046, -1.03116026e-005, -4.74245317e-005, -1.0311428e-005, -0.999998808, 5.02768307e-006))
853
mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
854
Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Really black", "Part", Vector3.new(0.480000019, 7.480000019, 0.200000003))
855
Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 0.999998808, 7.0078163e-011, 5.9098958e-009, 4.0078163e-011, 0.999998808, 2.42152964e-011, 1.9098958e-009, 2.42152964e-011, 1))
856
mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(6.60000014, 6.60000014, 6.60000014))
857
Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
858
Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-006, -0.839694977, 7.53992653, -3.91442991e-005, -8.80631774e-007, -0.999993026, 2.27987925e-006, 0.999991357, -8.80696462e-007, 0.999997556, -2.29477519e-006, -3.92767397e-005))
859
mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
860
Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
861
Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000235557556, -2.38418579e-005, -7.60028458, 1.50501114e-006, -0.999997199, 8.35720812e-007, 3.47488422e-005, 8.35786693e-007, 1, -0.999997199, -1.50502308e-006, 3.47468304e-005))
862
mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
863
Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
864
Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.28881836e-005, -0.840080261, 7.54010582, 3.91591857e-005, 8.0613512e-007, 0.999993026, -2.25008012e-006, -0.999991, 8.06197477e-007, 0.999997556, -2.29477519e-006, -3.92916445e-005))
865
mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
866
HitboxA = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "HitboxA", Vector3.new(0.200000003, 2.48000002, 0.840000391))
867
HitboxAweld = weld(m, Layer3Handle, HitboxA, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-6.67572021e-006, -0.039557457, 7.53951645, 3.44422551e-005, 1.04596529e-006, 1, -5.90090622e-006, 0.999999225, -1.04573905e-006, -0.999999225, -5.90090895e-006, 3.44403634e-005))
868
HitboxB = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "HitboxB", Vector3.new(0.200000003, 2.48000026, 0.840000391))
869
HitboxBweld = weld(m, Layer3Handle, HitboxB, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(9.53674316e-007, -0.0402240753, 7.5397892, 4.89614176e-005, 5.0135186e-006, 0.999999762, -0.999999046, 1.22189522e-005, 4.8959475e-005, -1.22783813e-005, -0.999998689, 5.01443719e-006))
870
HitboxC = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "HitboxC", Vector3.new(0.200000003, 2.28000021, 0.840000391))
871
HitboxCweld = weld(m, Layer3Handle, HitboxC, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.76565552e-005, 0.0598621368, 7.54048443, -3.42451713e-005, -5.10578684e-006, -0.99999994, -0.999998927, -1.21146441e-005, 3.4243305e-005, -1.2144611e-005, 0.999998927, -5.10543578e-006))
872
mesh("SpecialMesh", HitboxC, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
873
HitboxD = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "HitboxD", Vector3.new(0.200000003, 2.28000021, 0.840000391))
874
HitboxDweld = weld(m, Layer3Handle, HitboxD, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.28881836e-005, 0.0599050522, 7.54010582, 3.91591857e-005, 8.0613512e-007, 0.999993026, -2.25008012e-006, -0.999991, 8.06197477e-007, 0.999997556, -2.29477519e-006, -3.92916445e-005))
875
mesh("SpecialMesh", HitboxD, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
876
mesh("SpecialMesh", Layer3Handle, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(6, 6, -1.21799994))
877
878
local Lite = Create("PointLight"){
879
	Parent = Handle,
880-
	Color = BrickColor.new("Really red").Color,
880+
	Color = BrickColor.new("Royal purple").Color,
881
	Shadows = true,
882
	Range = 20,
883
	Brightness = 0.5,
884
}
885
886
local Spin = Create("Sound"){
887
Parent = Handle,
888
SoundId = "rbxassetid://143301643",
889
Volume = 1,
890
Pitch = 1,
891
Looped = true,
892
}
893
894
local Spin2 = Create("Sound"){
895
Parent = Handle,
896
SoundId = "rbxassetid://149560784",
897
Volume = .7,
898
Pitch = .8,
899
Looped = true,
900
}
901
902
Spin:Play()
903
904
Spin2:Play()
905
906
local PE1 = Create("ParticleEmitter"){
907
Parent = Layer3Handle,
908-
Color = ColorSequence.new(BrickColor.new("Really red").Color),
908+
Color = ColorSequence.new(BrickColor.new("Royal purple").Color),
909
Transparency = NumberSequence.new(.5),
910
Size = NumberSequence.new(0.2),
911
Texture = "rbxassetid://320043786",
912
Lifetime = NumberRange.new(1),
913
Rate = 200,
914
VelocitySpread = 180,
915
Rotation = NumberRange.new(-360, 360),
916
RotSpeed = NumberRange.new(-180, 180),
917
Rotation = NumberRange.new(100),
918
Speed = NumberRange.new(10),
919
LightEmission = 1000,
920
Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}),
921
}
922
923
local PE2 = Create("ParticleEmitter"){
924
Parent = Handle,
925-
Color = ColorSequence.new(BrickColor.new("Really red").Color),
925+
Color = ColorSequence.new(BrickColor.new("Royal purple").Color),
926
Transparency = NumberSequence.new(.5),
927
Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 2, 0), NumberSequenceKeypoint.new(1, 2, 0)}),
928
Texture = "rbxassetid://31727915",
929
Lifetime = NumberRange.new(1),
930
Rate = 1000,
931
VelocitySpread = 30,
932
Rotation = NumberRange.new(-360, 360),
933
RotSpeed = NumberRange.new(-180, 180),
934
Rotation = NumberRange.new(100),
935
Speed = NumberRange.new(10),
936
LightEmission = 1000,
937
EmissionDirection = "Bottom",
938
Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}),
939
Enabled = false,
940
}
941
942
943
breakpart=function(part)
944
945
away1 = part.Size.x/4
946
947
away2 = part.Size.z/4
948
949
away3 = part.Size.y/4
950
951
if part.Size.x<=4 and part.Size.z<=4 and part.Size.y<=4 then 
952
part:Destroy(); return 
953
end
954
955
if part.Name~="Base" or part.Name~="Baseplate" then
956
zx,zy,zz=part.Size.x,part.Size.y,part.Size.z
957
local part1,part2,part3,part4,part5,part6,part7,part8 = part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone()
958
part1.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
959
part2.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
960
part3.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
961
part4.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
962
part5.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
963
part6.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
964
part7.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
965
part8.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
966
pare1=part.Parent
967
--pare2=part.Parent.Parent
968
part1.Parent=pare1
969
part2.Parent=pare1
970
part3.Parent=pare1
971
part4.Parent=pare1
972
--part5.Parent=pare1
973
--part6.Parent=pare1
974
--part7.Parent=pare1
975
--part8.Parent=pare1
976
part1.CFrame=part.CFrame*CFrame.new(-away1,0,-away2)
977
part2.CFrame=part.CFrame*CFrame.new(away1,0,-away2)
978
part3.CFrame=part.CFrame*CFrame.new(away1,0,away2)
979
part4.CFrame=part.CFrame*CFrame.new(-away1,0,away2)
980
--part5.CFrame=part.CFrame*CFrame.new(-away1,-away3,-away2)
981
--part6.CFrame=part.CFrame*CFrame.new(away1,-away3,-away2)
982
--part7.CFrame=part.CFrame*CFrame.new(away1,-away3,away2)
983
--part8.CFrame=part.CFrame*CFrame.new(-away1,-away3,away2)
984
part.Anchored = false
985
part:Destroy()
986
else
987
zx,zy,zz=part.Size.x,part.Size.y,part.Size.z
988
local part1,part2,part3,part4,part5,part6,part7,part8 = part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone()
989
part1.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
990
part2.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
991
part3.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
992
part4.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
993
part5.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
994
part6.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
995
part7.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
996
part8.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
997
pare1=part.Parent
998
--pare2=part.Parent.Parent
999
part1.Parent=pare1
1000
part2.Parent=pare1
1001
part3.Parent=pare1
1002
part4.Parent=pare1
1003
part5.Parent=pare1
1004
part6.Parent=pare1
1005
part7.Parent=pare1
1006
part8.Parent=pare1
1007
part1.CFrame=part.CFrame*CFrame.new(-away1,away3,-away2)
1008
part2.CFrame=part.CFrame*CFrame.new(away1,away3,-away2)
1009
part3.CFrame=part.CFrame*CFrame.new(away1,away3,away2)
1010
part4.CFrame=part.CFrame*CFrame.new(-away1,away3,away2)
1011
part5.CFrame=part.CFrame*CFrame.new(-away1,-away3,-away2)
1012
part6.CFrame=part.CFrame*CFrame.new(away1,-away3,-away2)
1013
part7.CFrame=part.CFrame*CFrame.new(away1,-away3,away2)
1014
part8.CFrame=part.CFrame*CFrame.new(-away1,-away3,away2)
1015
part1.Anchored = false
1016
part2.Anchored = false
1017
part3.Anchored = false
1018
part4.Anchored = false
1019
part5.Anchored = false
1020
part6.Anchored = false
1021
part7.Anchored = false
1022
part8.Anchored = false
1023
part:Destroy()
1024
wait(5)
1025
for i = 1,3 do
1026
 wait(.2)
1027
 part1.Transparency = i
1028
 part2.Transparency = i
1029
 part3.Transparency = i
1030
 part5.Transparency = i
1031
 part6.Transparency = i
1032
 part7.Transparency = i
1033
 part8.Transparency = i
1034
end
1035
end
1036
end
1037
1038
function Reappear()
1039
	for _, i in pairs(m:children()) do
1040
		if i.Name == "Layer3Handle" then
1041
			Part.Transparency = 1
1042
			coroutine.resume(coroutine.create(function(Part) 
1043
				for i = 0, 1, 0.1 do
1044
					swait()
1045
					Part.Transparency = i
1046
				end
1047
				Part.Transparency = 0.5
1048
			end), i)
1049
		end
1050
	end
1051
end
1052
1053
function Disappear()
1054
	for _, i in pairs(m:children()) do
1055
		if i.Name == "Layer3Handle" then
1056
			Part.Transparency = .5
1057
			coroutine.resume(coroutine.create(function(Part) 
1058
				for i = 0, 1, 0.1 do
1059
					swait()
1060
					Part.Transparency = i
1061
				end
1062
				Part.Transparency = 1
1063
			end), i)
1064
		end
1065
	end
1066
end
1067
1068
function attackone()
1069
	attack = true
1070
	local con1 = HitboxA.Touched:connect(function(hit)
1071
		Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit1", 1)
1072
		breakpart(hit)
1073
	end) 
1074
	local con2 = HitboxB.Touched:connect(function(hit)
1075
		Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit2", 1)
1076
		breakpart(hit)
1077
	end) 
1078
	local con3 = HitboxC.Touched:connect(function(hit)
1079
		Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit3", 1)
1080
		breakpart(hit)
1081
	end) 
1082
	local con4 = HitboxD.Touched:connect(function(hit)
1083
		Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit4", 1)
1084
		breakpart(hit)
1085
	end) 
1086
	
1087
--[[HitboxA.Touched:connect(function(hit)
1088
 if hit.Name == 'Base' then else
1089
  for i = 1,100 do 
1090
  breakpart(hit)
1091
  end
1092
 end
1093
end)
1094
HitboxB.Touched:connect(function(hit)
1095
 if hit.Name == 'Base' then else
1096
  for i = 1,100 do 
1097
  breakpart(hit)
1098
  end
1099
 end
1100
end)
1101
HitboxC.Touched:connect(function(hit)
1102
 if hit.Name == 'Base' then else
1103
  for i = 1,100 do 
1104
  breakpart(hit)
1105
  end
1106
 end
1107
end)
1108
HitboxD.Touched:connect(function(hit)
1109
 if hit.Name == 'Base' then else
1110
  for i = 1,100 do 
1111
  breakpart(hit)
1112
  end
1113
 end
1114
end)]]
1115
1116
      
1117
	Reappear()
1118
	for i = 0, 1, 0.1 do
1119
		swait()
1120
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
1121
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(50)), .3)
1122
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(30)), 0.3)
1123
		LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
1124
		RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(120), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
1125
		LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
1126
		Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(5, -4, -7) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1127
		Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
1128
		Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
1129
	end
1130
	so("Slash1", Handle, 1, 1)
1131
	for i = 0, 1, 0.1 do
1132
		swait()
1133
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .5)
1134
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(-50)), .5)
1135
		RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-30)), 0.5)
1136
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.5)
1137
		RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
1138
		LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-120), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
1139
		Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-2, -4, -8) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1140
		Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
1141
		Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
1142
	end
1143
	Disappear()
1144
	con1:disconnect()
1145
	con2:disconnect()
1146
	con3:disconnect() 
1147
	con4:disconnect()
1148
	attack = false
1149
end
1150
1151
1152
function attacktwo()
1153
	attack = true
1154
	local con1 = HitboxA.Touched:connect(function(hit)
1155
		Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit1", 1)
1156
		breakpart(hit)
1157
	end) 
1158
	local con2 = HitboxB.Touched:connect(function(hit)
1159
		Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit2", 1)
1160
		breakpart(hit)
1161
	end) 
1162
	local con3 = HitboxC.Touched:connect(function(hit)
1163
		Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit3", 1)
1164
		breakpart(hit)
1165
	end) 
1166
	local con4 = HitboxD.Touched:connect(function(hit)
1167
		Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit4", 1)
1168
		breakpart(hit)
1169
	end)
1170
	
1171
--[[HitboxA.Touched:connect(function(hit)
1172
 if hit.Name == 'Base' then else
1173
  for i = 1,100 do 
1174
  breakpart(hit)
1175
  end
1176
 end
1177
end)
1178
HitboxB.Touched:connect(function(hit)
1179
 if hit.Name == 'Base' then else
1180
  for i = 1,100 do 
1181
  breakpart(hit)
1182
  end
1183
 end
1184
end)
1185
HitboxC.Touched:connect(function(hit)
1186
 if hit.Name == 'Base' then else
1187
  for i = 1,100 do 
1188
  breakpart(hit)
1189
  end
1190
 end
1191
end)
1192
HitboxD.Touched:connect(function(hit)
1193
 if hit.Name == 'Base' then else
1194
  for i = 1,100 do 
1195
  breakpart(hit)
1196
  end
1197
 end
1198
end)]]
1199
1200
	Reappear()
1201
	for i = 0, 1, 0.1 do
1202
		swait()
1203
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1204
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
1205
		RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, -.5) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
1206
		LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
1207
		RH.C0 = clerp(RH.C0, cf(1, -1, -.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
1208
		LH.C0 = clerp(LH.C0, cf(-1, -1, .2) * angles(math.rad(0), math.rad(-85), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
1209
		Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, 10, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
1210
		Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
1211
		Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
1212
	end
1213
	so("Slash2", Handle, 1, 1.2)
1214
	for i = 0, 1, 0.1 do
1215
		swait()
1216
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
1217
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .5)
1218
		RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.5) * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.5)
1219
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.5)
1220
		RH.C0 = clerp(RH.C0, cf(1, -1, -.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
1221
		LH.C0 = clerp(LH.C0, cf(-1, -1, .2) * angles(math.rad(0), math.rad(-85), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
1222
		Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, .5, -8) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.4)
1223
		Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
1224
		Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
1225
	end
1226
	Disappear()
1227
	con1:disconnect()
1228
	con2:disconnect()
1229
	con3:disconnect() 
1230
	con4:disconnect()
1231
	attack = false
1232
end
1233
1234
function attackthree()
1235
	attack = true
1236
	local con1 = HitboxA.Touched:connect(function(hit)
1237
		Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit1", 1)
1238
		breakpart(hit)
1239
	end) 
1240
	local con2 = HitboxB.Touched:connect(function(hit)
1241
		Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit2", 1)
1242
		breakpart(hit)
1243
	end) 
1244
	local con3 = HitboxC.Touched:connect(function(hit)
1245
		Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit3", 1)
1246
		breakpart(hit)
1247
	end) 
1248
	local con4 = HitboxD.Touched:connect(function(hit)
1249
		Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit4", 1)
1250
		breakpart(hit)
1251
	end) 
1252
	
1253
--[[HitboxA.Touched:connect(function(hit)
1254
 if hit.Name == 'Base' then else
1255
  for i = 1,100 do 
1256
  breakpart(hit)
1257
  end
1258
 end
1259
end)
1260
HitboxB.Touched:connect(function(hit)
1261
 if hit.Name == 'Base' then else
1262
  for i = 1,100 do 
1263
  breakpart(hit)
1264
  end
1265
 end
1266
end)
1267
HitboxC.Touched:connect(function(hit)
1268
 if hit.Name == 'Base' then else
1269
  for i = 1,100 do 
1270
  breakpart(hit)
1271
  end
1272
 end
1273
end)
1274
HitboxD.Touched:connect(function(hit)
1275
 if hit.Name == 'Base' then else
1276
  for i = 1,100 do 
1277
  breakpart(hit)
1278
  end
1279
 end
1280
end)]]
1281
1282
      
1283
	Reappear()
1284
	for i = 0, 1, 0.1 do
1285
		swait()
1286
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
1287
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
1288
		RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.8, -.5) * angles(math.rad(120), math.rad(0), math.rad(-30)), 0.3)
1289
		LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
1290
		RH.C0 = clerp(RH.C0, cf(1, -1, -.3) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
1291
		LH.C0 = clerp(LH.C0, cf(-1, -1, .2) * angles(math.rad(0), math.rad(-140), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
1292
		Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-10, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
1293
		Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
1294
		Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
1295
	end
1296
	so("Slash1", Handle, 1, 1.2)
1297
	for i = 0, 1, 0.1 do
1298
		swait()
1299
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .5)
1300
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(50)), .5)
1301
		RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(30)), 0.5)
1302
		LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.5)
1303
		RH.C0 = clerp(RH.C0, cf(1, -1, -.3) * angles(math.rad(0), math.rad(140), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
1304
		LH.C0 = clerp(LH.C0, cf(-1, -1, .2) * angles(math.rad(0), math.rad(-50), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
1305
		Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -5, -10) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
1306
		Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
1307
		Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
1308
	end
1309
	Disappear()
1310
	con1:disconnect()
1311
	con2:disconnect()
1312
	con3:disconnect() 
1313
	con4:disconnect()
1314
	attack = false
1315
end
1316
1317
local hovering = false
1318
1319
local Hover = false
1320
1321
local Animator = Humanoid.Animator
1322
1323
function OnHover()
1324
	so("Appear",Handle,1,1)
1325
	attack = true
1326
	Animator.Parent = nil
1327
	Character.Animate.Disabled = true
1328
	Hover = true
1329
	Humanoid.JumpPower = 0
1330
	Reappear()
1331
	attack = false
1332
end
1333
1334
function OffHover()
1335
	so("Disappear",Handle,1,1)
1336
	attack = true
1337
	Animator.Parent = Humanoid
1338
	Character.Animate.Disabled = false
1339
	Hover = false
1340
	Humanoid.JumpPower = 50
1341
	Disappear()
1342
	attack = false
1343
end
1344
1345
function MagniDamage(Hit,Part,magni,mindam,maxdam,knock,Type)
1346
for _,c in pairs(workspace:children()) do
1347
local hum=c:findFirstChild("Humanoid")
1348
if hum~=nil then
1349
local head=c:findFirstChild("Torso")
1350
if head~=nil then
1351
local targ=head.Position-Part.Position
1352
local mag=targ.magnitude
1353
if mag<=magni and c.Name~=Player.Name then 
1354
Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,"Hit1",1)
1355
end
1356
end
1357
end
1358
end
1359
end
1360
1361
function CylinderEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1362
local prt=part(3,Character,"Neon",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
1363
prt.Anchored=true
1364
prt.CFrame=cframe
1365
local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1366
game:GetService("Debris"):AddItem(prt,5)
1367
Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
1368
end
1369
1370
RocketTarget = RootPart
1371
function ShootCannon(asd)
1372
local MainPos=asd.Position
1373
local MainPos2=getMouseHit()
1374
local MouseLook=cf((MainPos+MainPos2)/2,MainPos2)
1375
num=30
1376
coroutine.resume(coroutine.create(function() 
1377
repeat
1378
wait()
1379
local hit,pos = rayCast(MainPos,MouseLook.lookVector,10,RocketTarget.Parent)
1380
local mag=(MainPos-pos).magnitude 
1381-
CylinderEffect(BrickColor.new("Really red"),CFrame.new((MainPos+pos)/2,pos)*angles(1.57,0,0),3,mag*5,3,1.5,0,1.5,0.1)
1381+
CylinderEffect(BrickColor.new("Royal purple"),CFrame.new((MainPos+pos)/2,pos)*angles(1.57,0,0),3,mag*5,3,1.5,0,1.5,0.1)
1382
MainPos=MainPos+(MouseLook.lookVector*10)
1383
num=num-1
1384
if hit~=nil then
1385
num=0
1386-
local ref=part(3,workspace,"Neon",0,1,BrickColor.new("Really red"),"Reference",vt())
1386+
local ref=part(3,workspace,"Neon",0,1,BrickColor.new("Royal purple"),"Reference",vt())
1387
ref.Anchored=true
1388
ref.CFrame=cf(pos)
1389
MagniDamage(ref,hit,5,30,50,1,"Normal")
1390
game:GetService("Debris"):AddItem(ref,5) 
1391
end
1392
until num<=0
1393
end))
1394
end
1395
1396
function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2)
1397
	local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1398
	prt.Anchored = true
1399
	prt.CFrame = cframe
1400
	local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
1401
	coroutine.resume(coroutine.create(function() 
1402
		for i = 0, 1, 0.05 do
1403
			wait()
1404
			prt.Transparency = i
1405
			msh.Scale = msh.Scale + vt(x2, y2, z2)
1406
		end
1407
		prt.Parent = nil
1408
	end))
1409
end
1410
1411
function BlockEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1412
local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt())
1413
prt.Anchored=true
1414
prt.CFrame=cframe
1415
local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1416
game:GetService("Debris"):AddItem(prt,5)
1417
table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
1418
end
1419
1420
function FireProjectiles()
1421
attack = true
1422
so("Appear",Handle,1,1)
1423
Reappear()
1424
for i = 0,1,0.1 do
1425
swait()
1426
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1427
Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-30), math.rad(0), math.rad(0)), .3)
1428
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
1429
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-20)), 0.3)
1430
RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
1431
LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
1432
Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1433
Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
1434
Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
1435
end
1436
Humanoid.WalkSpeed = 0
1437
for i = 1,8 do
1438
ShootCannon(Handle)
1439-
BlockEffect(BrickColor.new("Really red"),Handle.CFrame,.5,.5,.5,.9,.9,.9,0.05)
1439+
BlockEffect(BrickColor.new("Royal purple"),Handle.CFrame,.5,.5,.5,.9,.9,.9,0.05)
1440
so("Beam",Handle,1,1.5)
1441
for i = 0,1,0.1 do
1442
swait()
1443
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
1444
Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
1445
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(85), math.rad(0), math.rad(30)), 0.5)
1446
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(85), math.rad(0), math.rad(-30)), 0.5)
1447
RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
1448
LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
1449
Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 1, 0) * angles(math.rad(-90), math.rad(0), math.rad(0)), 0.3)
1450
Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
1451
Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
1452
end
1453
end
1454
Disappear()
1455
so("Disappear",Handle,1,1)
1456
Humanoid.WalkSpeed = 16
1457
attack = false
1458
end
1459
1460
function EnergyBurst()
1461
attack = true
1462
so("Appear",Handle,1,1)
1463
for i = 0,1,0.1 do
1464
swait()
1465
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
1466
Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
1467
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.3)
1468
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-20)), 0.3)
1469
RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(130), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
1470
LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
1471
Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(10, -4, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1472
Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
1473
Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
1474
end
1475
Reappear()
1476
so("Slash1", Handle, 1, 1.2)
1477
for i = 1,2 do
1478
for i = 0,1,0.1 do
1479
swait()
1480-
BlockEffect(BrickColor.new("Really red"),Handle.CFrame,.5,.5,.5,.9,.9,.9,0.05)
1480+
BlockEffect(BrickColor.new("Royal purple"),Handle.CFrame,.5,.5,.5,.9,.9,.9,0.05)
1481
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(70)), .3)
1482
Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-70)), .3)
1483
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.3)
1484
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-50)), 0.3)
1485
RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
1486
LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-130), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
1487
Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(15, -4, -7) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1488
Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
1489
Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
1490
end
1491
end
1492
Disappear()
1493
so("Disappear",Handle,1,1)
1494
so("Fire", Handle, 1, 1.2)
1495
so("Fire", Handle, 1, .8)
1496
MagniDamage(Handle,Handle,30,30,50,1,"Knockdown")
1497-
BlastEffect(BrickColor.new("Really red"), Handle.CFrame, .1, .1, .1, 1, 1, 1)
1497+
BlastEffect(BrickColor.new("Royal purple"), Handle.CFrame, .1, .1, .1, 1, 1, 1)
1498
for i = 1,5 do
1499-
BlockEffect(BrickColor.new("Really red"),Handle.CFrame,1,1,1,5,5,5,0.05)
1499+
BlockEffect(BrickColor.new("Royal purple"),Handle.CFrame,1,1,1,5,5,5,0.05)
1500
end
1501
attack = false
1502
end
1503
1504
function WaveEffect(Part,cframe1,cframe2,Damage,Size)
1505
coroutine.resume(coroutine.create(function() 
1506-
local wave=part(1,workspace,"Neon",0,0,BrickColor.new("Deep orange"),"Effect",vt(3,3,10))
1506+
local wave=part(1,workspace,"Neon",0,0,BrickColor.new("Royal purple"),"Effect",vt(3,3,10))
1507
wave.Anchored=true 
1508
wave.CFrame=Part.CFrame*cframe1
1509
so("Beam",wave,1,1.3)
1510
MagniDamage(wave,wave,10,10,30,1,"Normal")
1511
local Msh = Create("SpecialMesh"){
1512
Parent = wave,
1513
MeshType = "Sphere"
1514
}
1515-
BlockEffect(BrickColor.new("Really red"),wave.CFrame,1,1,1,3,3,3,0.05)
1515+
BlockEffect(BrickColor.new("Royal purple"),wave.CFrame,1,1,1,3,3,3,0.05)
1516
local PE1 = Create("ParticleEmitter"){
1517
Parent = wave,
1518-
Color = ColorSequence.new(BrickColor.new("Really red").Color),
1518+
Color = ColorSequence.new(BrickColor.new("Royal purple").Color),
1519
Transparency = NumberSequence.new(.5),
1520
Size = NumberSequence.new(1),
1521
Texture = "rbxassetid://249270319",
1522
Lifetime = NumberRange.new(1),
1523
Rate = 50,
1524
VelocitySpread = 180,
1525
Rotation = NumberRange.new(0),
1526
Speed = NumberRange.new(5),
1527
LightEmission = 1000,
1528
}
1529
for i=0,1,0.2 do
1530
wait()
1531
local dir = wave.CFrame.lookVector*-1
1532
local pos = rayCast(wave.Position,dir,5,Character)
1533
wave.CFrame=wave.CFrame*cframe2
1534
Effects[#Effects+1]={wave,"Cylinder",0.01,.03,.03,.03}
1535
end
1536
end))
1537
end
1538
1539
function Wave()
1540
attack = true
1541
Reappear()
1542
so("Appear",Handle,1,.8)
1543
for i = 1,3 do
1544
for i = 0, 1, 0.1 do
1545
	swait()
1546-
	BlockEffect(BrickColor.new("Really red"),Handle.CFrame,.1,.1,.1,1,1,1,0.05)
1546+
	BlockEffect(BrickColor.new("Royal purple"),Handle.CFrame,.1,.1,.1,1,1,1,0.05)
1547
	RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1548
	Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
1549
	RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.8, 0) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
1550
	LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
1551
	RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
1552
	LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
1553
	Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, 10, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.4)
1554
	Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
1555
	Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
1556
end
1557
end
1558
so("Slash2",Handle,1,.4)
1559
local inc=-10
1560
for i=1,8 do
1561
WaveEffect(Torso,CFrame.new(0,-5,inc)*CFrame.fromEulerAnglesXYZ(-2,0,1.57),CFrame.new(0,0,0.8),10,5)
1562
inc=inc-7
1563
end
1564
for i = 1,2 do
1565
for i = 0, 1, 0.1 do
1566
	swait()
1567-
	BlockEffect(BrickColor.new("Really red"),Handle.CFrame,.1,.1,.1,1,1,1,0.05)
1567+
	BlockEffect(BrickColor.new("Royal purple"),Handle.CFrame,.1,.1,.1,1,1,1,0.05)
1568
	RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .5)
1569
	Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-5), math.rad(0), math.rad(0)), .5)
1570
	RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.5) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.5)
1571
	LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-50)), 0.5)
1572
	RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(10)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
1573
	LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(-10)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
1574
	Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, .5, -10) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
1575
	Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
1576
	Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
1577
end
1578
end
1579
Disappear()
1580
so("Disappear",Handle,1,.8)
1581
attack = false
1582
end
1583
1584
function LaserBarrage(Prt,Parent)
1585
attack=true
1586
--so("BeamLockon",Prt,1,1) 
1587-
local efprt=part(3,Parent,"Neon",0,0.5,BrickColor.new("Really red"),"Effect",vt(5,5,5))
1587+
local efprt=part(3,Parent,"Neon",0,0.5,BrickColor.new("Royal purple"),"Effect",vt(5,5,5))
1588
efprt.Anchored=true
1589
local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
1590
local spread=vt(0,0,0)
1591
coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded) 
1592
game:GetService("Debris"):AddItem(Part,22)
1593
local TheHit=getMouseHit()
1594
local MouseLook=cf((Prt.Position+TheHit)/2,TheHit+Spreaded)
1595
local hit,pos = rayCast(Prt.Position,MouseLook.lookVector,1000,Parent)
1596
so("Elec",Prt,0.2,1) 
1597
local tefprt=part(3,workspace,"Neon",0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
1598
tefprt.CFrame=cf(pos)
1599-
BlastEffect(BrickColor.new("Really red"),cf(pos),5,5,5,5,3,5,0.07)
1599+
BlastEffect(BrickColor.new("Royal purple"),cf(pos),5,5,5,5,3,5,0.07)
1600-
MagicCircle(BrickColor.new("Really red"),cf(pos),5,5,5,5,3,5,0.04)
1600+
MagicCircle(BrickColor.new("Royal purple"),cf(pos),5,5,5,5,3,5,0.04)
1601-
BlastEffect(BrickColor.new("Really red"),cf(pos),5,5,5,5,3,5,0.07)
1601+
BlastEffect(BrickColor.new("Royal purple"),cf(pos),5,5,5,5,3,5,0.07)
1602
so("Elec",tefprt,0.3,1) 
1603
game:GetService("Debris"):AddItem(tefprt,22)
1604
Part.CFrame=CFrame.new((Prt.Position+pos)/2,pos)*angles(1.57,0,0) 
1605
if(hit.Parent:findFirstChild("Humanoid")~= nil)then 
1606
if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then 
1607
MagniDamage(efprt,efprt,math.huge,math.huge,math.huge,math.huge,1)
1608
end 
1609
end 
1610
local mag=(Prt.Position-pos).magnitude 
1611-
MagicCylinder(BrickColor.new("Really red"),Part.CFrame,1,mag*5,1,5,5,5,0.25)
1611+
MagicCylinder(BrickColor.new("Royal purple"),Part.CFrame,1,mag*5,1,5,5,5,0.25)
1612
Part.Parent=nil
1613
end),efprt,efmsh,spread)
1614
end
1615
1616
function SuperLaser()
1617
attack = true
1618
so("Appear",Handle,1,0.5)
1619
Humanoid.WalkSpeed = 5
1620
Reappear()
1621
for i = 0,1,0.01 do
1622
swait()
1623-
BlockEffect(BrickColor.new("Really red"),Handle.CFrame,0,0,0,.2,.2,.2,0.25)
1623+
BlockEffect(BrickColor.new("Royal purple"),Handle.CFrame,0,0,0,.2,.2,.2,0.25)
1624
1625
local c = owner.Character
1626
local radius = 10
1627
local pos = Handle.CFrame
1628
local clrz = {'Really black','Really red'};
1629
for HAAA = 1, 10 do
1630
for i = 1,1 do
1631
local clr = clrz[math.random(1,#clrz)]
1632
pos = Handle.CFrame
1633
local p = Instance.new('Part',c)
1634
local mafc,mafa = math.random(-100000,100000), math.random(-360000,360000)
1635
p.CanCollide = false
1636
p.FormFactor = 3
1637
p.Size = Vector3.new(1,1,1)
1638
local m = Instance.new('SpecialMesh',p)
1639
m.MeshType = 'Brick'
1640
spawn(function()
1641
  for i = 0,50 do
1642
    local int,int2 = .02,.02
1643
    m.Scale = m.Scale - Vector3.new(int,int,int)
1644
	p.Transparency = p.Transparency + int2
1645
	game:service'RunService'.Heartbeat:wait()
1646
  end
1647
  pcall(function()
1648
  	p:Destroy()
1649
  end)
1650
end)
1651
p.BrickColor = BrickColor.new(clr)
1652
p.Material = 'Neon'
1653
p.CFrame = pos * CFrame.new(math.random(-radius,radius),math.random(-radius,radius),math.random(-radius,radius)) * CFrame.Angles(mafa,mafa,mafa)
1654
local bp = Instance.new('BodyPosition',p)
1655
bp.MaxForce = Vector3.new(1/0,1/0,1/0)
1656
bp.D = 1000
1657
bp.P = 10000
1658
	bp.Position = pos.p
1659
game.Debris:AddItem(p,10)
1660
end
1661
end
1662
wait(.1)
1663-
BlastEffect(BrickColor.new("Really red"),Handle.CFrame,0,0,0,.2,.2,.2,0.01)
1663+
BlastEffect(BrickColor.new("Royal purple"),Handle.CFrame,0,0,0,.2,.2,.2,0.01)
1664
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
1665
Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-5), math.rad(0), math.rad(0)), .5)
1666
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(85), math.rad(0), math.rad(50)), 0.5)
1667
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(85), math.rad(0), math.rad(-50)), 0.5)
1668
RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
1669
LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
1670
Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 1, 0) * angles(math.rad(-90), math.rad(0), math.rad(0)), 0.3)
1671
Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
1672
Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
1673
end
1674
Humanoid.WalkSpeed = 0
1675
LaserBarrage(Handle,Character)
1676
so("Beam",Handle,1,0.8)
1677
for i = 0,1,0.05 do
1678
swait()
1679
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
1680
Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
1681
RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(85), math.rad(0), math.rad(0)), 0.2)
1682
LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.5) * angles(math.rad(85), math.rad(0), math.rad(0)), 0.2)
1683
RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
1684
LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
1685
Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 1, 0) * angles(math.rad(-90), math.rad(0), math.rad(0)), 0.2)
1686
Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.2)
1687
Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.2)
1688
end
1689
Disappear()
1690
so("Disappear",Handle,1,.7)
1691
Humanoid.WalkSpeed = 16
1692
attack = false
1693
end
1694
1695
function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1696
local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
1697
prt.Anchored=true
1698
prt.CFrame=cframe
1699
msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
1700
game:GetService("Debris"):AddItem(prt,2)
1701
coroutine.resume(coroutine.create(function(Part,Mesh) 
1702
for i=0,1,delay do
1703
swait()
1704
Part.CFrame=Part.CFrame
1705
Part.Transparency=i
1706
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1707
end
1708
Part.Parent=nil
1709
end),prt,msh)
1710
end
1711
 
1712
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1713
local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1714
prt.Anchored=true
1715
prt.CFrame=cframe
1716
prt.CanCollide = false
1717
msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1718
game:GetService("Debris"):AddItem(prt,2)
1719
coroutine.resume(coroutine.create(function(Part,Mesh) 
1720
for i=0,1,delay do
1721
swait()
1722
Part.CFrame=Part.CFrame
1723
Part.Transparency=i
1724
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1725
end
1726
Part.Parent=nil
1727
end),prt,msh)
1728
end
1729
1730
1731
function subtractEnergy(k)
1732
	if Energy>=k then
1733
		Energy=Energy-k
1734
	end
1735
end
1736
1737
function updateskills()
1738
	if cooldown1 <= co1 then
1739
		cooldown1 = cooldown1 + 1 / 30
1740
	end
1741
	if cooldown2 <= co2 then
1742
		cooldown2 = cooldown2 + 1 / 30
1743
	end
1744
	if cooldown3 <= co3 then
1745
		cooldown3 = cooldown3 + 1 / 30
1746
	end
1747
	if cooldown4 <= co4 then
1748
		cooldown4 = cooldown4 + 1 / 30
1749
	end
1750
	if Energy<=skill1stam then
1751
	bar4.BackgroundColor3=Color3.new(104/255,104/255,104/255)
1752
	else
1753
		bar4.BackgroundColor3=skillcolorscheme
1754
	end
1755
	if Energy<=skill2stam then
1756
	bar3.BackgroundColor3=Color3.new(104/255,104/255,104/255)
1757
	else
1758
		bar3.BackgroundColor3=skillcolorscheme
1759
	end
1760
	if Energy<=skill3stam then
1761
		bar1.BackgroundColor3=Color3.new(104/255,104/255,104/255)
1762
	else
1763
		bar1.BackgroundColor3=skillcolorscheme
1764
	end
1765
	if Energy<=skill4stam then
1766
		bar2.BackgroundColor3=Color3.new(104/255,104/255,104/255)
1767
	else
1768
		bar2.BackgroundColor3=skillcolorscheme
1769
	end
1770
	if Energy <= maxEnergy then
1771
		Energy = Energy + recovermana / 30
1772
	end
1773
end
1774
1775
1776
remote = Instance.new 'RemoteFunction';
1777
remote.Parent = script;
1778
remote.OnServerInvoke = function (player, request, ...)
1779
	if (player ~= owner) then
1780
		return error ('You cannot invoke this remote', 0);
1781
	end;
1782
	
1783
	if (request == 1) then
1784
		local k = ...;
1785
		
1786
		if attack == false and k == ' ' and Anim == "Jump" and Hover == false then
1787
			hovering = true
1788
			OnHover()
1789
			Humanoid.WalkSpeed = 30
1790
			PE2.Enabled = true
1791
		elseif attack == false and k == ' ' and Hover == true then
1792
			hovering = false
1793
			OffHover()
1794
			Humanoid.WalkSpeed = 16
1795
			PE2.Enabled = false
1796
			PE1.EmissionDirection = "Top"
1797
		elseif attack == false and k == 'q' and Hover == false and cooldown1 >= co1 and Energy>=skill1stam then
1798
			subtractEnergy(skill1stam)
1799
			cooldown1=0
1800
			FireProjectiles()
1801
		elseif attack == false and k == 'e' and Hover == false and cooldown2 >= co2 and Energy>=skill2stam then
1802
			subtractEnergy(skill2stam)
1803
			cooldown2=0
1804
			EnergyBurst()
1805
		elseif attack == false and k == 'r' and Hover == false and cooldown3 >= co3 and Energy>=skill3stam then
1806
			subtractEnergy(skill3stam)
1807
			cooldown3=0
1808
			Wave()
1809
		elseif attack == false and k == 'f' and Hover == false and cooldown4 >= co4 and Energy>=skill4stam then
1810
			subtractEnergy(skill4stam)
1811
			cooldown4=0
1812
			SuperLaser()
1813
		end
1814
	elseif (request == 2) then
1815
		
1816
		if attack == false and Hover == false and attacktype == 1 then
1817
			attacktype = 2
1818
			attackone()
1819
		elseif attack == false and Hover == false and attacktype == 2 then
1820
			attacktype = 3
1821
			attacktwo()
1822
		elseif attack == false and Hover == false and attacktype == 3 then
1823
			attacktype = 1
1824
			attackthree()
1825
		end
1826
	end;
1827
end;
1828
remote.Name = 'ServerRemote';
1829
1830
function getMouseHit()
1831
	return remote:InvokeClient (owner, 1);
1832
end;
1833
1834
local sine = 0
1835
local change = 1
1836
local val = 0
1837
local idle = 0
1838
local donum = 0
1839
local donum2 = 0
1840
1841
while true do
1842
	swait()
1843
	updateskills()
1844
	healthcover:TweenSize(UDim2.new(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), 'Out', 'Quad', .5)
1845
	Energycover:TweenSize(UDim2.new(1 * (Energy / maxEnergy), 0, 1, 0), 'Out', 'Quad', .5)
1846
	bar4:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), 'Out', 'Quad', .5)
1847
	bar3:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), 'Out', 'Quad', .5)
1848
	bar1:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), 'Out', 'Quad', .5)
1849
	bar2:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), 'Out', 'Quad', .5)
1850
	sine = sine + change
1851
	torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
1852
	velderp = RootPart.Velocity.y
1853
	hitfloor, posfloor = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
1854
	if equipped == true or equipped == false then
1855
		if attack == false then
1856
			idle = idle + 1
1857
		else
1858
			idle = 0
1859
		end
1860
		if idle >= 500 then
1861
			if attack == false then
1862
			end
1863
		end
1864
		if donum2 >= .5 then
1865
			handidle = true
1866
		elseif donum2 <= 0 then
1867
			handidle = false
1868
		end
1869
		if handidle == false then
1870
			donum2 = donum2 + 0.003
1871
		else
1872
			donum2 = donum2 - 0.003
1873
		end
1874
		donum = donum + 0.003
1875
		if RootPart.Velocity.y > 1 and hitfloor == nil then 
1876
			Anim = "Jump"
1877
			if attack == false then
1878
				RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
1879
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
1880
				RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
1881
				LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
1882
				RH.C0 = clerp(RH.C0, cf(1, -.8, -.5) * angles(math.rad(0), math.rad(90), math.rad(-20)), .3)
1883
				LH.C0 = clerp(LH.C0, cf(-1, -1, -.3) * angles(math.rad(0), math.rad(-90), math.rad(30)), .3)
1884
				Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, .5+0.2*math.cos(sine/15), 0) * angles(math.rad(0), math.rad(0), math.rad(20) - donum2 / 1), 0.3)
1885
				Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
1886
				Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
1887
			end
1888
		elseif RootPart.Velocity.y < -1 and hitfloor == nil then 
1889
			Anim = "Fall"
1890
			if attack == false then
1891
				RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
1892
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
1893
				RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
1894
				LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
1895
				RH.C0 = clerp(RH.C0, cf(1, -.7, -.5) * angles(math.rad(0), math.rad(90), math.rad(-20)), .3)
1896
				LH.C0 = clerp(LH.C0, cf(-1, -.9, -.3) * angles(math.rad(0), math.rad(-90), math.rad(30)), .3)
1897
				Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, .5+0.2*math.cos(sine/15), 0) * angles(math.rad(0), math.rad(0), math.rad(20) - donum2 / 1), 0.3)
1898
				Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
1899
				Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
1900
			elseif attack == false and Hover == true then
1901
			    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 5) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1902
			    Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
1903
			    RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
1904
			    LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
1905
			    RH.C0 = clerp(RH.C0, cf(1, -.8, -.3) * angles(math.rad(0), math.rad(90), math.rad(-30)) * angles(math.rad(3), math.rad(0), math.rad(0)), .3)
1906
			    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(40)) * angles(math.rad(2), math.rad(0), math.rad(0)), .3)
1907
			    Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -8, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1908
				Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
1909
				Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
1910
			end
1911
		elseif torvel < 1 and hitfloor ~= nil then
1912
			Anim = "Idle"
1913
			change = 1
1914
			if attack == false and Hover == false then
1915
				RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
1916
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(30)), .3)
1917
				RW.C0 = clerp(RW.C0, CFrame.new(.8, 0.5, -.7) * angles(math.rad(85), math.rad(0), math.rad(-70)), 0.3)
1918
				LW.C0 = clerp(LW.C0, CFrame.new(-.8, 0.5, -.3) * angles(math.rad(70), math.rad(0), math.rad(70)), 0.3)
1919
				RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
1920
				LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
1921
				Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, .5+0.2*math.cos(sine/15), 0) * angles(math.rad(0), math.rad(0), math.rad(20) - donum2 / 1), 0.3)
1922
				Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
1923
				Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
1924
			elseif attack == false and Hover == true then
1925
			    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8+2*math.cos(sine/15)) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1926
			    Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
1927
			    RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
1928
			    LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
1929
			    RH.C0 = clerp(RH.C0, cf(1, -.8, -.3) * angles(math.rad(0), math.rad(90), math.rad(-30)) * angles(math.rad(3), math.rad(0), math.rad(0)), .3)
1930
			    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(40)) * angles(math.rad(2), math.rad(0), math.rad(0)), .3)
1931
			    Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -8, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1932
				Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
1933
				Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
1934
			end
1935
		elseif torvel > 2 and hitfloor ~= nil then
1936
			Anim = "Walk"
1937
			if attack == false and Hover == false then
1938
				change = 1
1939
				RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
1940
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
1941
				RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40) * math.cos(sine / 7), math.rad(0), math.rad(5)), 0.3)
1942
				LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40) * math.cos(sine / 7), math.rad(0), math.rad(-5)), 0.3)
1943
				RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2), math.rad(0), math.rad(0)), .3)
1944
				LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2), math.rad(0), math.rad(0)), .3)
1945
				Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, .5+0.2*math.cos(sine/15), 0) * angles(math.rad(20), math.rad(0), math.rad(20) - donum2 / 1), 0.3)
1946
				Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
1947
				Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
1948
			elseif attack == false and Hover == true then
1949
				change = 1
1950
			    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8+2*math.cos(sine/15)) * angles(math.rad(30+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
1951
			    Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-15-3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
1952
			    RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.45, 0) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
1953
			    LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.45, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
1954
			    RH.C0 = clerp(RH.C0, cf(1, -.8, -.3) * angles(math.rad(0), math.rad(90), math.rad(-30)) * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
1955
			    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(40)) * angles(math.rad(3), math.rad(0), math.rad(0)), .3)
1956
			    Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -8, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1957
				Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .008, math.rad(0)), 0.3)
1958
				Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .009, math.rad(0)), 0.3)
1959
			end
1960
		end
1961
	end
1962
	if #Effects > 0 then
1963
		for e = 1, #Effects do
1964
			if Effects[e] ~= nil then
1965
				local Thing = Effects[e]
1966
				if Thing ~= nil then
1967
					local Part = Thing[1]
1968
					local Mode = Thing[2]
1969
					local Delay = Thing[3]
1970
					local IncX = Thing[4]
1971
					local IncY = Thing[5]
1972
					local IncZ = Thing[6]
1973
					if Thing[1].Transparency <= 1 then
1974
						if Thing[2] == "Block1" then
1975
							Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1976
							Mesh = Thing[1].Mesh
1977
							Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
1978
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1979
						elseif Thing[2] == "Cylinder" then
1980
							Mesh = Thing[1].Mesh
1981
							Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
1982
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1983
						elseif Thing[2] == "Blood" then
1984
							Mesh = Thing[7]
1985
							Thing[1].CFrame = Thing[1].CFrame * cf(0, .5, 0)
1986
							Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
1987
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1988
						elseif Thing[2] == "Elec" then
1989
							Mesh = Thing[1].Mesh
1990
							Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
1991
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1992
						elseif Thing[2] == "Disappear" then
1993
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1994
						end
1995
					else
1996
						Part.Parent = nil
1997
						table.remove(Effects, e)
1998
					end
1999
				end
2000
			end
2001
		end
2002
	end
2003
end
2004
]==], owner.Character):WaitForChild 'ServerRemote';
2005
2006
mouse = owner:GetMouse ();
2007
2008
mouse.KeyDown:connect(function(k)
2009
	k = k:lower()
2010
	
2011
	remote:InvokeServer (1, k);
2012
end)
2013
2014
mouse.Button1Down:connect(function()
2015
	remote:InvokeServer (2);
2016
end)
2017
2018
remote.OnClientInvoke = function (request, ...)
2019
	if (request == 1) then
2020
		return mouse.Hit.p;
2021
	end;
2022
end;