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