View difference between Paste ID: fBUW0Y95 and x2PBan2z
SHOW: | | - or go back to the newest paste.
1
--Shark op
2
--by osama44
3
--for shark nigger
4
--Converted to local by Scenius
5
6
Player=game.Players.LocalPlayer
7
o1 = Instance.new("ParticleEmitter")
8
o1.Name = "ora"
9
o1.Parent = script
10
o1.Transparency = NumberSequence.new(0,1)
11
o1.Size = NumberSequence.new(1.5,3.5)
12
o1.Color = ColorSequence.new(Color3.new(0, 0.333333, 1),Color3.new(0, 0.333333, 1))
13
o1.Enabled = false
14
o1.LightEmission = 1
15
o1.Texture = "rbxassetid://243086902"
16
o1.Lifetime = NumberRange.new(1,1)
17
o1.Rate = 500
18
o1.RotSpeed = NumberRange.new(90,90)
19
o1.Speed = NumberRange.new(0,0)
20
sv = Instance.new("Part")
21
for i = 1, 2 do
22
sv.Parent = script
23
end
24
sv.BrickColor = BrickColor.new("Deep blue")
25
sv.Name = "sword"
26
sv.Size = Vector3.new(0.248, 8.654, 1.153)
27
sv.Orientation = Vector3.new(90, 90, 0)
28
svm = Instance.new("FileMesh", sv)
29
svm.MeshId = "rbxassetid://211683906"
30
repeat wait() until Player.Character
31
repeat wait() until #script:children() >= 0
32
script.Parent=Player.PlayerGui
33
Effects = { }
34
--[[Credits to SazErenos for his Artificical Heartbeat]]--
35
ArtificialHB = Instance.new("BindableEvent", script)
36
ArtificialHB.Name = "Heartbeat"
37
38
script:WaitForChild("Heartbeat")
39
40
frame = 1 / 30
41
tf = 0
42
allowframeloss = false
43
tossremainder = false
44
lastframe = tick()
45
script.Heartbeat:Fire()
46
47
game:GetService("RunService").Heartbeat:connect(function(s, p)
48
	tf = tf + s
49
	if tf >= frame then
50
		if allowframeloss then
51
			script.Heartbeat:Fire()
52
			lastframe = tick()
53
		else
54
			for i = 1, math.floor(tf / frame) do
55
				script.Heartbeat:Fire()
56
			end
57
			lastframe = tick()
58
		end
59
		if tossremainder then
60
			tf = 0
61
		else
62
			tf = tf - frame * math.floor(tf / frame)
63
		end
64
	end
65
end)
66
67
function swait(num)
68
	if num == 0 or num == nil then
69
		ArtificialHB.Event:wait()
70
	else
71
		for i = 0, num do
72
			ArtificialHB.Event:wait()
73
		end
74
	end
75
end
76
------------------[[Variables and Main Stuff]]--------------------
77
78
79
80
local Player = game.Players.localPlayer
81
local Character = Player.Character
82
local Humanoid = Character.Humanoid
83
local char=Character
84
local LeftArm = Character["Left Arm"]
85
local RightArm = Character["Right Arm"]
86
local LeftLeg = Character["Left Leg"]
87
local RightLeg = Character["Right Leg"]
88
local Head = Character.Head
89
local Torso = Character.Torso
90
local cam = game.Workspace.CurrentCamera
91
local RootPart = Character.HumanoidRootPart
92
local RootJoint = RootPart.RootJoint
93
local equipped = false
94
local attack = false
95
local Anim = 'Idle'
96
local idle = 0
97
local attacktype = 1
98
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
99
local velocity = RootPart.Velocity.y
100
local sine = 0
101
local change = 1
102
local grabbed = false
103
local cn = CFrame.new
104
local mr = math.rad
105
local angles = CFrame.Angles
106
local ud = UDim2.new
107
local c3 = Color3.new
108
local ORW=Torso["Right Shoulder"]
109
local OLW=Torso["Left Shoulder"]
110
local OLH=Torso["Left Hip"]
111
local ORH=Torso["Right Hip"]
112
local DesiredSpeed=15
113
local desiredjp=50
114
EffectModel = Instance.new("Model", Character)
115
it=Instance.new
116
vt=Vector3.new
117
cf=CFrame.new
118
euler=CFrame.Angles
119
EffectModel.Name = "Effects"
120
local Animator=Humanoid.Animator
121
local Animate=char.Animate
122
local EffecMo=EffectModel
123
euler=CFrame.Angles
124
RotCF = euler(-1.57, 0, 3.14)
125
it=Instance.new
126
vt=Vector3.new
127
LastMove=""
128
Orbs={}
129
EffecMo=EffectModel
130
RootCF = CFrame.Angles(0, 0, 0)
131
NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
132
local RW=Instance.new("Motor",nil)
133
RW.Name="Right Shoulder"
134
local LW=Instance.new("Motor",nil)
135
LW.Name="Left Shoulder"
136
local RH=Instance.new("Motor",nil)
137
RH.Name="Right Hip"
138
local LH=Instance.new("Motor",nil)
139
LH.Name="Left Hip"
140
Neck=Torso.Neck
141
r1m=RootJoint.C1
142
r0m=RootJoint.C0
143
n1m=Neck.C1
144
n0m=Neck.C0
145
local rarmc1 = RW.C1
146
local larmc1 = LW.C1
147
local rlegc1 = RH.C1
148
local llegc1 = LH.C1
149
local resetc1 = false
150
Comboing=false
151
HTime=0
152
LastDamage=0
153
ComboHits=0
154
155
	local co1 = 10
156
	local co2 = 10
157
	local co3 = 20
158
	local co4 = 1
159
	local cooldown1 = 0
160
	local cooldown2 = 0
161
	local cooldown3 = 0
162
	local cooldown4 = 0
163
	local skillcolorscheme = BrickColor.new("Dark blue").Color
164
	
165
166
------------[[Particle Emitters]]---------------------
167
local pe=Instance.new("ParticleEmitter",script)
168
pe.Enabled=false
169
pe.Name="pe"
170
local col1= Color3.new(0, 85, 255)
171
pe.Color=ColorSequence.new(col1)
172
pe.Texture="rbxassetid://436792038"
173
pe.LightEmission=1
174
pe.Size=NumberSequence.new({NumberSequenceKeypoint.new(0, 1.65), NumberSequenceKeypoint.new(1, 0)})
175
pe.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
176
pe.Lifetime=NumberRange.new(1.5)
177
pe.Rate=500
178
pe.Acceleration=Vector3.new(5,0,5)
179
pe.Rotation=NumberRange.new(5)
180
pe.RotSpeed=NumberRange.new(10)
181
pe.Speed=NumberRange.new(5)
182
183
local pe=Instance.new("ParticleEmitter",script)
184
pe.Enabled=false
185
pe.Name="pe2"
186
local col1= BrickColor.new("Dark blue").Color
187
pe.Color=ColorSequence.new(col1)
188
pe.Texture="rbxassetid://436792038"
189
pe.LightEmission=.5
190
pe.Size=NumberSequence.new({NumberSequenceKeypoint.new(0, 1.65), NumberSequenceKeypoint.new(1, 0)})
191
pe.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
192
pe.Lifetime=NumberRange.new(1)
193
pe.Rate=500
194
pe.Rotation=NumberRange.new(5)
195
pe.RotSpeed=NumberRange.new(10)
196
pe.Speed=NumberRange.new(5)
197
pe.VelocitySpread=360
198
199
------------------[[Main Functions]]--------------------
200
201
function CameraShake(Times, Power)
202
coroutine.resume(coroutine.create(function()
203
FV = Instance.new("BoolValue", Character)
204
FV.Name = "CameraShake"
205
for ShakeNum=1,Times do
206
swait()
207
local ef=Power
208
  if ef>=1 then
209
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
210
  else
211
   ef=Power*10
212
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
213
  end	
214
end
215
Humanoid.CameraOffset = Vector3.new(0,0,0)
216
FV:Destroy()
217
end))
218
end
219
220
so = function(id, par, vol, pit)
221
  local sou = Instance.new("Sound", par or workspace)
222
if par==char then sou.Parent=char.Torso end
223
  sou.Volume = vol
224
  sou.Pitch = pit or 1
225
  sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
226
  coroutine.resume(coroutine.create(function(Sound)
227
    swait()
228
    Sound:play()
229
    while sou.Parent.Parent ~= nil and sou.TimePosition >= sou.TimeLength do
230
      swait()
231
    end
232
    sou.Parent = char.Torso
233
  end), sou)
234
  game:GetService("Debris"):AddItem(sou, sou.TimeLength + 0.5)
235
end
236
237
part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
238
  local fp = it("Part")
239
  fp.Parent = parent
240
  fp.Reflectance = reflectance
241
  fp.Transparency = transparency
242
  fp.CanCollide = false
243
  fp.Locked = true
244
  fp.BrickColor = brickcolor
245
  fp.Name = name
246
  fp.Size = size
247
  fp.Position = Torso.Position
248
  fp.Material = "SmoothPlastic"
249
  fp:BreakJoints()
250
  return fp
251
end
252
mesh = function(Mesh, part, meshtype, meshid, offset, scale)
253
  local mesh = it(Mesh)
254
  mesh.Parent = part
255
  if Mesh == "SpecialMesh" then
256
    mesh.MeshType = meshtype
257
    if meshid ~= "nil" then
258
      mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
259
    end
260
  end
261
  mesh.Offset = offset
262
  mesh.Scale = scale
263
  return mesh
264
end
265
local function weldBetween(a, b)
266
    local OR=CFrame.new(a.Position)
267
    local P1C, P2C=a.CFrame:inverse()*OR,b.CFrame:inverse()*OR
268
    local weld = Instance.new("ManualWeld", a)
269
    weld.Part0 = a
270
    weld.Part1 = b
271
    weld.C0 = P1C
272
    weld.C1=P2C
273
    return weld
274
end
275
lock=function(a,b)
276
local vp2=Instance.new("BodyPosition",a)
277
vp2.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
278
vp2.P=1e7
279
vp2.D=1e3
280
vp2.Position=b.Position
281
local vp3=Instance.new("BodyGyro",a)
282
vp3.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
283
vp3.P=1e7
284
vp3.D=1e3
285
vp3.cframe=a.CFrame
286
return vp2,vp3
287
end
288
weld = function(parent, part0, part1, c0)
289
  local weld = it("Motor")
290
  weld.Parent = parent
291
  weld.Part0 = part0
292
  weld.Part1 = part1
293
  weld.C0 = c0
294
  return weld
295
end
296
function NoOutline(Part)
297
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
298
end
299
300
Par=function(Parent,Name,Col,size,Mater)
301
p=Instance.new("Part",Parent)
302
p.Anchored=true
303
p.CanCollide=false
304
p.BrickColor=BrickColor.new(Col)
305
p.Locked=true
306
NoOutline(p)
307
p.Size=size or Vector3.new(1,1,1)
308
p.Material=Mater
309
return p
310
end
311
Par2=function(size,cframe,color,meshtype,meshscale) --returns a basic part for further manipulation
312
	local par = Instance.new("Part")
313
	par.formFactor="Custom"
314
	par.TopSurface=0
315
	par.BottomSurface=0
316
	par.Size=size
317
	par.CFrame=cframe
318
	par.BrickColor=BrickColor.new(color)
319
	if meshtype then
320
		local m = Instance.new(meshtype,par)
321
		m.Scale=meshscale
322
	end
323
	return par
324
end
325
BillboardGui = function(image, position, size)
326
  local billpar = Instance.new("Part")
327
  billpar.Transparency = 1
328
  billpar.formFactor = "Custom"
329
  billpar.Size = Vector3.new(1, 1, 1)
330
  billpar.Anchored = true
331
  billpar.CanCollide = false
332
  billpar.CFrame = CFrame.new(position)
333
  billpar.Name = "BillboardGuiPart"
334
  local bill = Instance.new("BillboardGui", billpar)
335
  bill.Adornee = billpar
336
  bill.Size = UDim2.new(1, 0, 1, 0)
337
  bill.SizeOffset = Vector2.new(size, size)
338
  local d = Instance.new("ImageLabel", bill)
339
  d.BackgroundTransparency = 1
340
  d.Size = UDim2.new(1, 0, 1, 0)
341
  d.Image = image
342
  return billpar
343
end
344
gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
345
  local gui = it(GuiType)
346
  gui.Parent = parent
347
  gui.Text = text
348
  gui.BackgroundTransparency = backtrans
349
  gui.BackgroundColor3 = backcol
350
  gui.SizeConstraint = "RelativeXY"
351
  gui.TextXAlignment = "Center"
352
  gui.TextYAlignment = "Center"
353
  gui.Position = pos
354
  gui.Size = size
355
  gui.Font = "SciFi"
356
  gui.FontSize = "Size14"
357
  gui.TextWrapped = false
358
  gui.TextStrokeTransparency = 0
359
  gui.TextColor3 = Color3.new(255,255,127)
360
  return gui
361
end
362
363
local TotalSuppressedTable = {}
364
	CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
365
	local RbxUtility = LoadLibrary("RbxUtility")
366
	local Create = RbxUtility.Create
367
	local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
368
	RemoveOutlines(Part)
369
	return Part
370
end
371
372
function BreakEffect(brickcolor,cframe,x1,y1,z1) --Credits to Ace
373
local prt=part(3,EffectModel,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
374
prt.Anchored=true
375
prt.Material="Neon"
376
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
377
game:GetService("Debris"):AddItem(prt,10)
378
local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
379
local num=math.random(10,50)/1000
380
table.insert(Effects,{prt,"Shatter",num,prt.CFrame,math.random()-math.random(),0,math.random(50,100)/100})
381
end
382
383
local function CFrameFromTopBack(at, top, back)
384
    local right = top:Cross(back)
385
    return CFrame.new(at.x, at.y, at.z,
386
    right.x, top.x, back.x,
387
    right.y, top.y, back.y,
388
    right.z, top.z, back.z)
389
end
390
function clerp(a,b,t)
391
return a:Lerp(b,t)
392
end
393
function QuaternionFromCFrame(cf)
394
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
395
local trace = m00 + m11 + m22
396
if trace > 0 then
397
local s = math.sqrt(1 + trace)
398
local recip = 0.5/s
399
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
400
else
401
local i = 0
402
if m11 > m00 then
403
i = 1
404
end
405
if m22 > (i == 0 and m00 or m11) then
406
i = 2
407
end
408
if i == 0 then
409
local s = math.sqrt(m00-m11-m22+1)
410
local recip = 0.5/s
411
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
412
elseif i == 1 then
413
local s = math.sqrt(m11-m22-m00+1)
414
local recip = 0.5/s
415
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
416
elseif i == 2 then
417
local s = math.sqrt(m22-m00-m11+1)
418
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
419
end
420
end
421
end
422
function QuaternionToCFrame(px, py, pz, x, y, z, w)
423
local xs, ys, zs = x + x, y + y, z + z
424
local wx, wy, wz = w*xs, w*ys, w*zs
425
local xx = x*xs
426
local xy = x*ys
427
local xz = x*zs
428
local yy = y*ys
429
local yz = y*zs
430
local zz = z*zs
431
return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
432
end
433
function QuaternionSlerp(a, b, t)
434
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
435
local startInterp, finishInterp;
436
if cosTheta >= 0.0001 then
437
if (1 - cosTheta) > 0.0001 then
438
local theta = math.acos(cosTheta)
439
local invSinTheta = 1/math.sin(theta)
440
startInterp = math.sin((1-t)*theta)*invSinTheta
441
finishInterp = math.sin(t*theta)*invSinTheta  
442
else
443
startInterp = 1-t
444
finishInterp = t
445
end
446
else
447
if (1+cosTheta) > 0.0001 then
448
local theta = math.acos(-cosTheta)
449
local invSinTheta = 1/math.sin(theta)
450
startInterp = math.sin((t-1)*theta)*invSinTheta
451
finishInterp = math.sin(t*theta)*invSinTheta
452
else
453
startInterp = t-1
454
finishInterp = t
455
end
456
end
457
return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
458
end
459
460
local newMotor = function(part0, part1, c0, c1)
461
	local w = Instance.new('Motor', part0)
462
	w.Part0 = part0
463
	w.Part1 = part1
464
	w.C0 = c0
465
	w.C1 = c1
466
	return w
467
end
468
469
Triangle=function(a, b, c)
470
	local col=BrickColor.new("White")
471
	--Credit to Fenrier
472
	local edg1 = (c-a):Dot((b-a).unit)
473
	local edg2 = (a-b):Dot((c-b).unit)
474
	local edg3 = (b-c):Dot((a-c).unit)
475
	if edg1 <= (b-a).magnitude and edg1 >= 0 then
476
		a, b, c = a, b, c
477
	elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
478
		a, b, c = b, c, a
479
	elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
480
		a, b, c = c, a, b
481
	else 
482
		assert(false, "unreachable")
483
	end
484
	
485
	local len1 = (c-a):Dot((b-a).unit)
486
	local len2 = (b-a).magnitude - len1
487
	local width = (a + (b-a).unit*len1 - c).magnitude
488
	local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
489
	
490
	local list = {}
491
492
	if len1 > 0.01 then
493
		local w1 = Instance.new('WedgePart', EffectModel)
494
		game:GetService("Debris"):AddItem(w1,5)
495
		coroutine.resume(coroutine.create(function(p)
496
			for i=1, 10 do
497
				p.Transparency=i/10
498
				swait()
499
			end
500
			p:Remove()
501
		end),w1)
502
		w1.FormFactor = "Custom"
503
		w1.BrickColor = col
504
		w1.Material = "SmoothPlastic"
505
		w1.CanCollide = false
506
		local sz = Vector3.new(0.2, width, len1)
507
		w1.Size = sz
508
		local sp = Instance.new("SpecialMesh",w1)
509
		sp.MeshType = "Wedge"
510
		sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
511
		w1:BreakJoints()
512
		w1.Anchored = true
513
		w1.Transparency = 0
514
		w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
515
	end
516
517
	if len2 > 0.01 then
518
		local w2 = Instance.new('WedgePart', EffectModel)
519
		game:GetService("Debris"):AddItem(w2,5)
520
		coroutine.resume(coroutine.create(function(p)
521
			for i=1, 10 do
522
				p.Transparency=i/10
523
				swait()
524
			end
525
			p:Remove()
526
		end),w2)
527
528
		w2.FormFactor = "Custom"
529
		w2.BrickColor = col
530
		w2.Material = "SmoothPlastic"
531
		w2.CanCollide = false
532
		local sz = Vector3.new(0.2, width, len2)
533
		w2.Size = sz
534
		local sp = Instance.new("SpecialMesh",w2)
535
		sp.MeshType = "Wedge"
536
		sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
537
		w2:BreakJoints()
538
		w2.Anchored = true
539
		w2.Transparency = 0
540
		w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
541
	end
542
	return unpack(list)
543
end
544
545
osamachain = function(P0,P1,Color1,Color2,thickness1,thickness2,T)
546
local Part0=P0.Position
547
local Part1=P1.Position
548
local magz = (Part0 - Part1).magnitude
549
local curpos = Part0
550
local parts = {} 
551
local lastpart=P0
552
local model = Instance.new("Model",EffecMo) 
553
model.Name = "osama_chain" 
554
local par=model
555
if par:FindFirstChild("TimeLeft")~=nil then
556
par:FindFirstChild("TimeLeft"):Destroy()	
557
end
558
local chains = {} 
559
local WAT=false
560
local cb=Instance.new("Part",model)
561
cb.Name="Main_chain"
562
cb.Size=Vector3.new(.2,1,.2)
563
cb.BrickColor=BrickColor.new(Color1)
564
cb.Anchored=false
565
cb.CanCollide=false
566
cb.Locked=true
567
cbM=Instance.new("CylinderMesh",cb) 
568
cbM.Name="Mesh"               
569
cb.CFrame = CFrame.new((Part0 + Part1)/2, Part0) * CFrame.Angles(math.pi/2, 0, 0)      
570
for j = 1, T do
571
local Part0=P0.Position
572
local Part1=P1.Position
573
local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/T).p
574
                local p = Instance.new("Part") 
575
                p.Name="Outline"..j
576
                p.Size = Vector3.new(.2,1,.2) 
577
                p.BrickColor = BrickColor.new(Color2)
578
                p.TopSurface = 0 
579
                p.BottomSurface = 0 
580
                p.CanCollide = false 
581
                p.Locked=true
582
                p.Anchored=true
583
                p.Material = "Neon" 
584
                p.TopSurface = 0 
585
                p.BottomSurface = 0 
586
                local mesh = Instance.new("CylinderMesh",p) 
587
                mesh.Name = "Mesh" 
588
                mesh.Scale = Vector3.new(1.5,magz/T,1.5) 
589
                p.Parent = model
590
                p.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/T/2)
591
                curpos = p.CFrame*CFrame.new(0,0,magz/T/2).p
592
                p.CFrame=p.CFrame*CFrame.Angles(math.rad(90),0,0)
593
                p.Transparency=0.35
594
local str=Instance.new("ObjectValue",p)
595
str.Value=lastpart 
596
str.Name="LP"
597
lastpart=p
598
table.insert(parts,{p,p})
599
table.insert(chains,{0,0,parts,0})
600
601
coroutine.resume(coroutine.create(function()
602
while WAT==false do
603
game:GetService("RunService").RenderStepped:wait()
604
local Part0=P0.Position
605
local Part1=P1.Position
606
local ow=j
607
local magz = (Part0 - Part1).magnitude
608
local oldT=T
609
local wtf=magz
610
mesh.Scale = Vector3.new(thickness2,magz/T,thickness2) 
611
if ow>1 then
612
local dangnigga=CFrame.new(str.Value.Position)*CFrame.new(0,0,wtf/oldT/2).p
613
local trolpos = CFrame.new(dangnigga,Part1)*CFrame.new(0,0,wtf/oldT).p
614
p.CFrame = CFrame.new(str.Value.Position,Part1)*CFrame.new(0,0,-(wtf/oldT))*CFrame.Angles(math.rad(90),0,0)
615
end
616
if ow<=1 then
617
local dangnigga=Part0
618
local trolpos = CFrame.new(dangnigga,Part1)*CFrame.new(0,0,wtf/oldT).p
619
p.CFrame = CFrame.new(dangnigga,trolpos)*CFrame.new(0,0,wtf/oldT/2)*CFrame.Angles(math.rad(90),0,0)
620
end
621
end
622
end))
623
end
624
625
626
coroutine.resume(coroutine.create(function()
627
while WAT==false do
628
local Part0=P0.Position
629
local Part1=P1.Position
630
cbM.Scale = Vector3.new(thickness1, (Part0 - Part1).magnitude, thickness1)
631
cb.CFrame = CFrame.new((Part0 + Part1)/2, Part0) * CFrame.Angles(math.pi/2, 0, 0) 
632
for i, v in pairs(chains) do 
633
                v[1] = v[1] %200 +4
634
                local dir = i%2 == 0 and 1 or -1 
635
                for j, V in pairs(v[3]) do 
636
                        local val = math.sin(math.pi/2 * 2 * (((v[1] + (100 * j/#v[3])*dir) % 100)/100)) 
637
                        V[2].Transparency = 0.12 + val * 0.85
638
                 end 
639
        end 
640
game:GetService("RunService").RenderStepped:wait()
641
end
642
end)) 
643
644
local t=Instance.new("BoolValue",par)
645
t.Name="TimeLeft"
646
647
coroutine.resume(coroutine.create(function()
648
repeat wait() until par:FindFirstChild("TimeLeft")==nil
649
WAT=true
650
for _,v in pairs(model:children()) do
651
coroutine.resume(coroutine.create(function()
652
 for i=1,30 do
653
swait() 
654
 v.Mesh.Scale=v.Mesh.Scale-Vector3.new(.05,0,.05)
655
v.Transparency=i/30
656
   end	
657
     v:Destroy()
658
       end))	
659
game.Debris:AddItem(model,1)
660
end
661
end))
662
663
return t
664
end
665
AnimTab={}
666
angles=CFrame.Angles
667
euler=CFrame.fromEulerAnglesXYZ
668
cf=CFrame.new
669
AnimTab["Idle"]=function(frameN,sine)
670
local frame={}	
671
frame[1]={
672
         CFrame.new(0.0749855712, -0.0629398525, 0.0235529467, 0.819152057, -0.0499904789, -0.571393847, 0.0499904789, 0.998626292, -0.0157019496, 0.571393847, -0.0157019496, 0.820525885)  * CFrame.new(0, .05*math.cos(sine/16), 0) * CFrame.Angles(0, 0, 0), 
673
         CFrame.new(-2.23517418e-008, 1.49999809, -5.96046448e-008, 0.707106829, 0, 0.707106948, -0.0616284125, 0.99619478, 0.0616284236, -0.704416037, -0.0871557444, 0.704416215) * CFrame.new(0, .02*math.cos(sine/16), 0) * CFrame.Angles( math.rad(2*math.cos(sine/16)), 0, 0), 
674
         CFrame.new(1.39567375, 0.0430115312, 0.0315978527, 0.694800496, -0.393022656, -0.602318823, 0.404297799, 0.90606755, -0.12484619, 0.594807148, -0.156772524, 0.788436532) * CFrame.new(0, .05* math.cos(sine/16), 0) * CFrame.Angles(0, 0, math.rad(3.5*math.cos(sine/16))), 
675
         CFrame.new(-1.58251691, 0.206372619, 0.0614111423, 0.471944094, 0.547303855, 0.691178441, -0.39397791, 0.832269073, -0.39001283, -0.788701952, -0.0882446468, 0.608410358) * CFrame.new(0, .05 * math.cos(sine/16), 0) * CFrame.Angles( math.rad(3.5*math.cos(sine/16)), 0, 0),  
676
         CFrame.new(0.560000062, -1.83199704, 8.94069672e-008, 0.99619472, -0.0871557444, 2.98023224e-008, 0.0841859877, 0.962250233, 0.258819044, -0.0225575566, -0.257834196, 0.965925813) * CFrame.new(0,-.05*math.cos(sine/16), 0) * CFrame.Angles(0, 0, 0),
677
         CFrame.new(-0.612000167, -1.99999762, -4.47034836e-008, 0.936116815, 0.0871557519, 0.340718925, -0.0818995982, 0.996194839, -0.0298090391, -0.342020333, 1.3038516e-008, 0.939692676)* CFrame.new(0,-.05*math.cos(sine/16), 0) * CFrame.Angles(0, 0, 0),
678
}
679
680
return frame[frameN]
681
end
682
683
AnimTab["Walk"]=function(frameN,sine,num)
684
local frame={}	
685
frame[1]={
686
         CFrame.new(-0.0113935694, 0.00570777431, 0.130231544, 0.984834015, 0.0075960937, -0.173317313, 0.00759613095, 0.99619472, 0.0868239552, 0.173317313, -0.0868239775, 0.981028795) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
687
         CFrame.new(4.61004674e-007, 1.49999475, -2.23517418e-007, 0.996191978, 0.00759613141, 0.0868240595, -9.31322575e-010, 0.99619472, -0.0871556401, -0.0871557146, 0.0868239626, 0.992401242) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
688
         CFrame.new(1.46789289, 0.0982637256, -0.144648015, 0.950443208, -0.30540812, -0.058124274, 0.310294747, 0.943467736, 0.116559155, 0.0192402601, -0.128818408, 0.99147892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
689
         CFrame.new(-1.51850045, 0.0611076728, -0.0488293171, 0.793944538, 0.343733251, -0.501494884, -0.374889195, 0.926151514, 0.0412922278, 0.478652835, 0.155221671, 0.864171624) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
690
CFrame.new(.5, -1.85 - 0.5 * math.cos(sine / num) / 2, 0 + 2 *  math.sin(sine / num) / 2) * angles(math.rad(-60 *  math.sin(sine / num)), math.rad(-5), math.rad(0)),
691
CFrame.new(-.5, -1.85 + 0.5 * math.cos(sine / num) / 2, 0 - 2 * math.sin(sine / num) / 2) * angles(math.rad(60 *  math.sin(sine / num)), math.rad(5), math.rad(0)),
692
}
693
return frame[frameN]
694
end
695
696
AnimTab["Fall"]=function(frameN)
697
local frame={}	
698
frame[1]={
699
         CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
700
         CFrame.new(0, 1.49999714, 4.47034836e-008, 1, 0, -0, 0, 0.996194601, -0.0871557221, 0, 0.0871557221, 0.996194601) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
701
         CFrame.new(1.52677226, 0.170301318, 0.120866239, 0.615058243, -0.725984514, -0.307655036, 0.75595212, 0.653862953, -0.0316542089, 0.224143073, -0.213102654, 0.950971305) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
702
         CFrame.new(-1.74943757, 0.22577554, 0.248999774, -0.467496186, 0.588313401, 0.659799039, -0.437883109, 0.494264781, -0.750973344, -0.767922878, -0.639991939, 0.0265456047) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
703
         CFrame.new(0.5, -1.79199886, 0.372999966, 1, 0, 0, 0, 0.965925813, 0.258819044, 0, -0.258819044, 0.965925813) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
704
         CFrame.new(-0.5, -1.56999934, 3.57627869e-007, 1, 0, 0, 0, 0.906307697, 0.422618449, 0, -0.422618449, 0.906307697) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
705
		}
706
return frame[frameN]
707
end
708
709
AnimTab["Jump"]=function(frameN)
710
local frame={}	
711
frame[1]={
712
         CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), 0, 0), 
713
         CFrame.new(0, 1.49999642, -2.98023224e-007, 1, 0, -0, 0, 0.984807611, -0.173648387, 0, 0.173648387, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), 0, 0), 
714
         CFrame.new(1.52818167, 0.149664342, 0.34200123, 0.642788768, -0.627507448, -0.439385235, 0.766045749, 0.526541293, 0.368688077, 2.44126284e-008, -0.573576927, 0.8191517) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
715
         CFrame.new(-1.55943918, 0.108779103, 0.407002598, 0.0947543383, 0.640856326, 0.761791289, -0.612354636, 0.640856147, -0.462954849, -0.784887373, -0.422618419, 0.4531537) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
716
         CFrame.new(0.5, -1.79199874, 0.372999489, 1, 0, 0, 0, 0.819151998, 0.573576391, 0, -0.573576391, 0.819151998) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
717
         CFrame.new(-0.5, -1.18119395, -0.181302905, 1, 0, 0, 0, 0.906307697, 0.422618449, 0, -0.422618449, 0.906307697) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
718
		}
719
return frame[frameN]
720
end
721
722
AnimTab["ClickCombo"]=function(frameN)
723
local frame={}	
724
frame[1]={
725
         CFrame.new(-0.0197398271, 0.00017363939, -0.0113914032, 0.819431186, 0.0131589621, -0.573026359, -0.0151344128, 0.999884605, 0.00131906569, 0.572977841, 0.00759153441, 0.819535732) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
726
         CFrame.new(-5.12972474e-006, 1.49999857, 6.86198473e-006, 0.939692736, 0, -0.342020154, -0.0298089944, 0.99619472, -0.081899412, 0.340719104, 0.0871555582, 0.936116457) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
727
         CFrame.new(1.46780205, 0.710095406, 0.234785587, -0.355826288, -0.865559995, 0.352411389, -0.172264263, -0.30988273, -0.935039043, 0.918538094, -0.393419534, -0.038840577) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
728
         CFrame.new(-1.43954968, -2.52574682e-006, 0.129604459, 0.836516142, 0.258819044, 0.482963055, -0.224143833, 0.965925813, -0.129409522, -0.499999762, 5.96046448e-008, 0.866025388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
729
         CFrame.new(0.679453552, -2.00000072, -0.0836714357, 0.984807849, -0.173648208, 1.78813934e-007, 0.173648164, 0.984807789, 1.49011612e-008, 2.08616257e-007, -2.23517418e-008, 0.999999762) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
730
         CFrame.new(-0.604891539, -2.00168324, 0.0733468086, 0.902858794, 0.0789898112, 0.422619224, -0.0871558189, 0.996194482, -8.33533704e-008, -0.421009451, -0.0368335843, 0.906307936) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
731
		}
732
frame[2]={
733
         CFrame.new(-0.0613368936, 0.00152878393, 0.0285331458, 0.76637429, 0.0408957675, 0.641089976, -0.0435777232, 0.99898237, -0.0116322488, -0.640913188, -0.0190227255, 0.767376542) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
734
         CFrame.new(-7.62548461e-006, 1.49999809, -3.71038914e-006, 0.999998212, 0, 2.98023224e-008, 5.58793545e-009, 0.99619478, 0.0871554092, 0, -0.0871555507, 0.996193051) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
735
         CFrame.new(0.00463496707, 0.187205061, -0.965997756, 0.367293179, 0.711594164, 0.598938942, 0.427254975, 0.442903399, -0.788219512, -0.826164603, 0.545407176, -0.141356587) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
736
         CFrame.new(-1.49999774, 3.53902578e-006, 1.47521496e-005, 0.907670081, 0.258818388, 0.330364645, -0.243210018, 0.965925872, -0.0885214061, -0.342019051, -2.08616257e-007, 0.939689517) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
737
         CFrame.new(0.499999136, -2.00000024, -3.50921755e-006, 0.999998271, 1.86264515e-009, 5.96046448e-008, 1.86264515e-009, 1.00000012, -1.37835741e-007, 5.96046448e-008, -1.37835741e-007, 0.99999845) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
738
         CFrame.new(-0.645505011, -2.00401926, 0.0868109241, 0.924950242, 0.16841127, 0.340715557, -0.168411225, 0.985266805, -0.0298095532, -0.340716124, -0.0298096016, 0.939684689) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
739
		}
740
frame[3]={
741
         CFrame.new(1.55471647e-009, -0.0068855267, -5.47999889e-006, 0.793305218, -2.25794793e-007, 0.608824253, 0.000484734424, 0.999999702, -0.000631258881, -0.608824015, 0.000795871951, 0.79330498) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
742
         CFrame.new(0.0225859769, 1.49797451, 0.0388732702, 0.883248448, 0.0451714694, 0.466724664, -0.00345645775, 0.995949268, -0.089850761, -0.468892813, 0.0777472705, 0.879826784) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
743
         CFrame.new(1.58917701, 0.14805764, 0.334518611, 0.0183337033, -0.201969534, -0.979220271, 0.697920084, 0.70388478, -0.132113129, 0.715941131, -0.680995286, 0.153863311) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
744
         CFrame.new(-1.88436937, 0.643480539, -0.285786152, 0.300701588, 0.768738747, 0.564463854, 0.950921416, -0.286961168, -0.115765437, 0.0729858056, 0.571571708, -0.817299783) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
745
         CFrame.new(0.412421823, -2.00387192, 0.0902987272, 0.791517377, 0.00115086511, -0.611145437, 0.00795604475, 0.999894083, 0.0121870684, 0.611094832, -0.0145086367, 0.791424394) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
746
         CFrame.new(-0.409770161, -1.99211299, -0.0764102042, 0.792799294, 0.000281186076, -0.609482467, 0.00198945496, 0.999993384, 0.00304915174, 0.609479368, -0.00362995872, 0.792793512) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
747
}
748
frame[4]={
749
         CFrame.new(2.62498816e-007, -0.000344276341, -2.2777408e-007, 0.803031087, 0, -0.595937431, -0.000474512577, 0.999999702, -0.000639379025, 0.595937312, 0.000796243548, 0.80303061) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
750
         CFrame.new(-0.0595012531, 1.49132609, -0.0711210817, 0.77105993, -0.119002283, 0.62554419, 0.00120455027, 0.982652485, 0.185453147, -0.636761785, -0.14224194, 0.757826924) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
751
         CFrame.new(1.59903359, 0.230916396, 0.409287423, 0.0014244318, -0.198947608, -0.980009317, 0.835885108, 0.538167715, -0.108036242, 0.54890269, -0.819021165, 0.167063877) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
752
         CFrame.new(-0.625070512, 0.361982256, -0.745636106, 0.285767585, -0.796516061, 0.532822251, 0.955926418, 0.276036203, -0.100043766, -0.0673916936, 0.537928045, 0.840292692) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
753
         CFrame.new(0.398624241, -1.9999733, -0.0658840984, 0.804467261, -0.000422894955, 0.593996882, -5.37931919e-005, 0.999999702, 0.000784777105, -0.593996882, -0.000663250685, 0.804466903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
754
         CFrame.new(-0.398404002, -1.99966228, 0.0658915937, 0.803506851, -0.000106021762, 0.595295787, -1.34408474e-005, 1, 0.000196315348, -0.595295668, -0.000165745616, 0.803506553) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
755
}
756
frame[5]={
757
CFrame.new(-1.14056382e-008, -0.196045384, -0.000156056514, 1, 5.81785571e-008, -0.00159262121, -1.21010919e-006, 0.99999994, -0.000796537439, 0.00159247965, 0.000796022301, 0.999999464) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
758
CFrame.new(9.34411162e-008, 1.47852278, -0.144922316, 0.99999392, 7.4505806e-008, -5.21540642e-008, 5.78365871e-008, 0.957062781, 0.289872348, -7.4505806e-008, -0.289865702, 0.957063496) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
759
CFrame.new(0.663555026, 0.49231568, -0.850663185, 0.015370708, 0.692666352, 0.721096218, 0.999231637, 0.0153704779, -0.036063727, -0.0360642895, 0.721095979, -0.691897511) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
760
CFrame.new(-0.663553596, 0.492314607, -0.850663126, 0.0153705887, -0.692666411, -0.721096218, -0.999231517, 0.015370396, -0.0360638089, 0.0360642895, 0.721096158, -0.691897392) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
761
CFrame.new(0.499701917, -1.92411804, 0.38171339, 0.999994397, 0.000301316381, -0.000750280917, 5.81403583e-006, 0.924113035, 0.382118583, 0.000808849931, -0.382119298, 0.924106598) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
762
CFrame.new(-0.401899934, -1.79915607, -0.00056552887, 0.999996126, -7.83959404e-005, 0.000813350081, -9.8903547e-007, 0.995200098, 0.0978638232, -0.000817283988, -0.0978644416, 0.995195687) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
763
}
764
frame[6]={
765
         CFrame.new(-0, -0.828355193, 0.211025894, 1, 0, 0, 0, 0.939692676, 0.342019737, 0, -0.342019737, 0.939692676) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
766
         CFrame.new(0, 1.49999678, 3.7252903e-006, 1, 0, 0, 0, 0.996194541, -0.0871557444, 0, 0.0871557444, 0.996194541) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
767
         CFrame.new(1.87859392, 0.514964342, 0.34640047, -0.0871552005, -0.936116815, -0.340718567, 0.996194661, -0.0818997845, -0.029810369, -1.13248825e-006, -0.342018634, 0.939689815) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
768
         CFrame.new(-1.68897307, 0.493994951, 0.408263475, 2.7980894e-008, 0.906309366, 0.422614932, -0.999999881, 6.40749931e-007, -1.28149986e-006, -1.43051147e-006, -0.422614932, 0.906309187) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
769
         CFrame.new(0.5, -1.59677243, -0.49357605, 1, 0, 0, 0, 0.984807909, -0.17364797, 0, 0.17364797, 0.984807909) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
770
         CFrame.new(-0.5, -1.90224135, 0.424649239, 1, 0, 0, 0, 0.906307638, 0.422618598, 0, -0.422618598, 0.906307638) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
771
}
772
frame[7]={
773
         CFrame.new(-0, 0, 0, 0.960631907, 0.00137611502, 0.277821034, -0.159289986, 0.822030306, 0.546711087, -0.227624968, -0.569442153, 0.789887726) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
774
         CFrame.new(-0.0181836374, 1.50775862, -0.0594066978, 0.999913454, -0.0105673671, -0.00784052908, 0.0118241087, 0.983038306, 0.183019012, 0.00577357411, -0.183095813, 0.983078241) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
775
         CFrame.new(1.5073173, 1.31327307, -0.909579456, 0.94229573, -0.200924531, 0.267783791, 0.109451406, -0.571028471, -0.813601255, 0.316384584, 0.795962393, -0.516086161) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
776
         CFrame.new(-1.57927585, 0.317291111, 0.397556216, 0.809802711, 0.208654553, 0.548345804, -0.517000973, 0.695623755, 0.498816311, -0.277362049, -0.687437952, 0.671192646) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
777
         CFrame.new(0.655821919, -1.91117561, 0.471306443, 0.991203368, 0.0697749257, 0.112460986, -0.110218167, 0.905595839, 0.409570932, -0.0732664168, -0.418363273, 0.905320168) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
778
         CFrame.new(-0.524112225, -1.89465261, -0.507151604, 0.994412482, 0.0338317044, -0.100033343, -0.0809665471, 0.852411568, -0.516580105, 0.0677920207, 0.521791637, 0.850385308) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
779
}
780
return frame[frameN]
781
end
782
783
AnimTab["C"]=function(frameN)
784
local frame={}	
785
frame[1]={
786
CFrame.new(2.84053385e-007, -0.699999809, -2.38418579e-007, 0.965778768, -0.258819073, -0.0168577731, 0.232835919, 0.836516201, 0.496012032, -0.114275634, -0.482962906, 0.868152142) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
787
CFrame.new(-5.63820706e-008, 1.49240422, 0.0868239999, 1, -4.84287739e-008, -8.94069672e-008, -4.47034836e-008, 0.98480767, -0.173648149, -2.98023224e-008, 0.173648193, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
788
CFrame.new(1.74633741, 0.23793821, 0.0817345008, 0.855079293, -0.517596483, -0.0305508971, 0.513783395, 0.837906241, 0.18422699, -0.0697565079, -0.173225164, 0.982408822) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
789
CFrame.new(-1.49061811, 0.166142434, -1.07410741, -0.0469467044, 0.428182781, -0.9024719, -0.761570275, 0.569285035, 0.309717506, 0.64637953, 0.701836109, 0.299365371) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
790
CFrame.new(0.463051915, -0.780309081, -0.937637031, 0.941776395, 0.166060507, -0.29237175, -0.294348687, 0.827483535, -0.478152335, 0.162530512, 0.536371887, 0.828184247) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
791
CFrame.new(-0.799590945, -1.51444077, -0.389154136, 0.970662296, 0.0849219561, 0.224951029, -0.22485368, 0.652014375, 0.724098086, -0.0851795673, -0.75343585, 0.651980817) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
792
}
793
return frame[frameN]
794
end
795
796
AnimTab["Z"]=function(frameN)
797
local frame={}	
798
frame[1]={
799
         CFrame.new(-0, -0, 0, 0.939692557, 0, 0.342020363, 0, 1, 0, -0.342020363, 0, 0.939692557) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
800
         CFrame.new(7.67409801e-007, 1.49999976, -2.84612179e-006, 0.965925753, -0.0449434593, -0.254887015, 0, 0.98480773, -0.173648164, 0.258819044, 0.167731255, 0.951251149) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
801
         CFrame.new(1.45801651, 1.30391252, -0.184753254, 0.908105314, -0.402072936, 0.116977036, -0.316420078, -0.841866553, -0.43720898, 0.274269402, 0.360022634, -0.891720653) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
802
         CFrame.new(-1.49999797, -1.36718154e-006, -4.20212746e-006, 0.907673359, 0.258819044, -0.330366075, -0.243210346, 0.965925813, 0.0885213241, 0.342020154, 0, 0.939692616) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
803
         CFrame.new(0.552665412, -2.01035452, 0.0304116532, 0.962249815, -0.0871557146, -0.257833838, 0.0841859728, 0.996194422, -0.022557551, 0.258818924, -5.58793545e-009, 0.965926111) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
804
         CFrame.new(-0.49999544, -2, -1.74716115e-006, 0.99619472, 0, 0.0871555209, 0, 1, 0, -0.0871555209, 0, 0.99619472) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
805
		}
806
return frame[frameN]
807
end
808
809
AnimTab["X"]=function(frameN)
810
local frame={}	
811
frame[1]={
812
         CFrame.new(0, -0, 0, -4.37113883e-008, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-008) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
813
         CFrame.new(0, 1.5, 0, 1.19248824e-008, 0, -1, 0, 1, 0, 1, 0, 1.19248824e-008) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
814
         CFrame.new(1.875, 0.443000317, 2.5331974e-007, -3.09086197e-008, -1, 3.09086197e-008, 0.707106769, -4.37113883e-008, -0.707106769, 0.707106769, 0, 0.707106769) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
815
         CFrame.new(-1.30599999, 0.0260016322, -4.529953e-006, 0.694272041, 0.422618032, 0.58256346, -0.323744178, 0.906307817, -0.271653652, -0.642787516, 1.08828191e-008, 0.766044438) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
816
         CFrame.new(0.677001357, -1.99999976, 0, 0.98480773, -0.173648179, 0, 0.173648179, 0.98480773, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
817
         CFrame.new(-0.500001073, -2, 7.00354576e-007, 0.866025329, 0, 0.500000179, 0, 1, 0, -0.500000179, 0, 0.866025329) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
818
		}
819
return frame[frameN]
820
end
821
lastcframe={RootJoint.C0,Neck.C0,RW.C0,LW.C0,RH.C0,LH.C0}
822
function PlayAnimationFromTable(tabl, speed, bool)
823
	RootJoint.C0 = clerp(RootJoint.C0, tabl[1], speed) 
824
	Neck.C0 = clerp(Neck.C0, tabl[2], speed) 
825
	RW.C0 = clerp(RW.C0, tabl[3], speed) 
826
	LW.C0 = clerp(LW.C0, tabl[4], speed) 
827
	RH.C0 = clerp(RH.C0, tabl[5], speed) 
828
	LH.C0 = clerp(LH.C0, tabl[6], speed)
829
	lastcframe={RootJoint.C0,Neck.C0,RW.C0,LW.C0,RH.C0,LH.C0} 
830
	if bool == true then
831
		if resetc1 == false then
832
			resetc1 = true
833
			RootJoint.C1 = RootJoint.C1
834
			Torso.Neck.C1 = Torso.Neck.C1
835
			RW.C1 = rarmc1
836
			LW.C1 = larmc1
837
			RH.C1 = rlegc1
838
			LH.C1 = llegc1
839
		end
840
	end
841
842
end
843
844
CamShake=function(Part,Distan,Power,Times) 
845
local de=Part.Position
846
for i,v in pairs(workspace:children()) do
847
 if v:IsA("Model") and v:findFirstChild("Humanoid") then
848
for _,c in pairs(v:children()) do
849
if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
850
local Noob=v.Humanoid
851
if Noob~=nil then
852
if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
853
--[[local ss=script.CamShake:clone()
854
ss.Parent=Noob
855
ss.Power.Value=Power
856
ss.Times.Value=Times
857
ss.Disabled=false]]
858
CameraShake(Times, Power)
859
end
860
end
861
end
862
end
863
end
864
end
865
end
866
867
local RbxUtility = LoadLibrary("RbxUtility")
868
local Create = RbxUtility.Create
869
870
function RemoveOutlines(part)
871
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
872
end
873
874
function rayCast(Position, Direction, Range, Ignore)
875
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
876
end 
877
function rayCastWithIngore(Position, Direction, Range, Ignore)
878
	return game:service("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
879
end 
880
881
detect_state = function()
882
Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
883
velocity = RootPart.Velocity.y
884
sine = sine + change
885
local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
886
if equipped == true then
887
if RootPart.Velocity.y > 1 and hit == nil then 
888
Anim = "Jump"
889
elseif RootPart.Velocity.y < -1 and hit == nil then 
890
Anim = "Fall"
891
elseif Torsovelocity < 1 and hit ~= nil then
892
Anim = "Idle"
893
elseif Torsovelocity > 2 and hit ~= nil  then
894
Anim = "Walk"
895
end
896
end
897
end
898
899
function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module
900
       local magz = (Part0 - Part1).magnitude
901
    local curpos = Part0
902
    local trz = {-Offset,Offset}
903
    for i=1,Times do
904
        local li =Par(EffectModel,"Lightning",Color,Vector3.new(Thickness,Thickness,magz/Times),"Neon")
905
		li.Transparency = Trans 
906
		li.BrickColor = BrickColor.new(Color)
907
ora=Instance.new("BlockMesh",li)
908
ora.Scale=Vector3.new(Thickness,Thickness,1)     
909
   local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
910
        local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
911
        if Times == i then
912
        local magz2 = (curpos - Part1).magnitude
913
        li.Size = Vector3.new(Thickness,Thickness,magz2)
914
        li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
915
        else
916
        li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
917
        end
918
        curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
919
        game.Debris:AddItem(li,.1)
920
    end
921
end
922
function Lightning2(Part0,Part1,Times,Offset,Color,Thickness,Trans,V) -- Lightning module
923
       local magz = (Part0 - Part1).magnitude
924
    local curpos = Part0
925
    local trz = {-Offset,Offset}
926
    for i=1,Times do
927
         local li =Par(EffectModel,"Lightning",Color,Vector3.new(Thickness,Thickness,magz/Times),"Neon")
928
		li.Transparency = Trans 
929
ora=Instance.new("BlockMesh",li)
930
ora.Scale=Vector3.new(Thickness,Thickness,1)     
931
   local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
932
        local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
933
        if Times == i then
934
        local magz2 = (curpos - Part1).magnitude
935
        li.Size = Vector3.new(Thickness,Thickness,magz2)
936
        li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
937
        else
938
        li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
939
        end
940
        curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
941
coroutine.resume(coroutine.create(function() 
942
      for i=1,V do
943
swait()
944
li.Transparency=i/V	
945
end
946
li:Destroy()
947
end))
948
    end
949
end
950
function Lightning3(Part0,Part1,Times,Offset,Color,Thickness,Trans,last) -- Lightning module
951
       local magz = (Part0 - Part1).magnitude
952
    local curpos = Part0
953
    local trz = {-Offset,Offset}
954
    for i=1,Times do
955
         local li =Par(EffectModel,"Lightning",Color,Vector3.new(Thickness,Thickness,magz/Times),"Neon")
956
		li.Transparency = Trans 
957
   local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
958
        local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
959
        if Times == i then
960
        local magz2 = (curpos - Part1).magnitude
961
        li.Size = Vector3.new(Thickness,Thickness,magz2)
962
        li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
963
        else
964
        li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
965
        end
966
        curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
967
        game.Debris:AddItem(li,5)
968
coroutine.resume(coroutine.create(function()
969
for i=1,20 do
970
swait()
971
li.Transparency=li.Transparency+last	
972
end
973
li:Destroy()   
974
end))
975
 end
976
end
977
978
GET_THE_NEAREST_FAGGOT = function(pos)
979
  local list = (game.Workspace:children())
980
  local torso = nil
981
  local DISTANCE_u_BITCH = 1000
982
  local temp, human, temp2 = nil, nil, nil
983
  for x = 1, #list do
984
    temp2 = list[x]
985
    if temp2.className == "Model" and temp2.Name ~= Character.Name then
986
      temp = temp2:findFirstChild("Torso")
987
      human = temp2:findFirstChild("Humanoid")
988
      if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < DISTANCE_u_BITCH then
989
        local FOUND_YOU = true
990
        if Player.Neutral == false and game.Players:GetPlayerFromCharacter(temp.Parent) ~= nil  then
991
          FOUND_YOU = false
992
        end
993
        if FOUND_YOU == true then
994
          torso = temp
995
          DISTANCE_u_BITCH = (temp.Position - pos).magnitude
996
        end
997
      end
998
    end
999
  end
1000
  return torso, DISTANCE_u_BITCH
1001
end
1002
Damagefunc=function(hit,Damage, knockback,tiem, Type, Delay,stun,removebodypos)
1003
local Hited=false
1004
 if hit.Parent == nil then
1005
    return 
1006
  end
1007
1008
 h = hit.Parent:FindFirstChild("Humanoid")
1009
  if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
1010
    if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
1011
      return 
1012
    end
1013
if h.Health<=0 then return end 
1014
  h = hit.Parent:FindFirstChild("Humanoid")
1015
     c = Instance.new("ObjectValue")
1016
    c.Name = "creator"
1017
    c.Value = game:service("Players").LocalPlayer
1018
    c.Parent = h
1019
    game:GetService("Debris"):AddItem(c, 0.5)
1020
if Type=="H2" then
1021
	   local eff = Par2(Vector3.new(1, 1, 1), hit.CFrame * CFrame.new(math.random(-15, 15) / 10, math.random(-20, 15) / 10, math.random(-5, 5) / 10) * CFrame.Angles(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)), "Really black", "SpecialMesh", Vector3.new(0.5, 0.5, 0.5))
1022
      eff.Parent = EffectModel
1023
      eff.Name = "BloodEffect"
1024
      eff.Mesh.MeshType = "Sphere"
1025
      eff.Anchored = true
1026
      eff.CanCollide = false
1027
      game:GetService("Debris"):AddItem(eff, 5)
1028
      coroutine.resume(coroutine.create(function(p, A)
1029
      local R = Vector3.new(math.random(-5, 5), math.random(7, 9), math.random(-5, 5)) / 50
1030
      for i = 1, 6 do
1031
        p.Mesh.Scale = p.Mesh.Scale + Vector3.new(0.85, 0.85, 0.85)
1032
        p.Transparency =1
1033
        p.CFrame = p.CFrame * A
1034
        swait()
1035
      end
1036
      p:Remove()
1037
    end), eff, CFrame.Angles(math.rad(math.random(-4, 4) * 4), math.rad(math.random(-4, 4) * 3), math.rad(math.random(-4, 4) * 2)), 0)
1038
      local eb = BillboardGui("http://www.roblox.com/asset/?id=233069772", eff.Position, 0)
1039
      eb.Parent = EffectModel
1040
      eb.BillboardGui.ImageLabel.ImageColor3=Color3.new(255, 0, 0)
1041
      eb.BillboardGui.ImageLabel.Rotation = math.random(-180, 180)
1042
      eb.BillboardGui.Size = UDim2.new(2, 0, 2, 0)
1043
      game:GetService("Debris"):AddItem(eb, 3)
1044
      coroutine.resume(coroutine.create(function(p)
1045
      local r = math.random(-3, 3) * 9
1046
      if r > -12 and r < 1 then
1047
        r = -12
1048
      else
1049
        if r < 12 and r > -1 then
1050
          r = 12
1051
        end
1052
      end
1053
      for i = 1, 6 do
1054
        p.BillboardGui.ImageLabel.ImageTransparency = 0.25 + i / 6
1055
        p.BillboardGui.Size = UDim2.new(2 + i / 1.75, 0, 2 + i / 1.75, 0)
1056
        p.BillboardGui.ImageLabel.Rotation = p.BillboardGui.ImageLabel.Rotation + r
1057
        swait()
1058
      end
1059
      p:Remove()
1060
    end), eb)
1061
1062
    local hitnum = math.random(1, 8)
1063
            if hitnum == 1 then
1064
              so("153092274", hit, 1, 1)
1065
            end
1066
              if hitnum == 2 then
1067
                so("199149186", hit, 2, .5)
1068
              end
1069
                if hitnum == 3 then
1070
                  so("153092296", hit, 1, .3)
1071
                end
1072
                  if hitnum == 4 then
1073
                    so("199149235", hit, 1, .5)
1074
                  end
1075
                    if hitnum == 5 then
1076
                      so("199149269", hit, 1, .4)
1077
                    end
1078
                      if hitnum == 6 then
1079
                        so("199149297", hit, 1, .5)
1080
                       end
1081
                      if hitnum == 7 then
1082
                        so("201858024", hit, 1, .6)
1083
                       end
1084
                      if hitnum == 8 then
1085
                        so("201858024", hit, 1, .5)
1086
                       end
1087
end   
1088
1089
if Type=="H1" then
1090
local hitnum=math.random(2,4)       
1091
        p=Par(EffectModel,"EffectHi","White",Vector3.new(1,1,1),"SmoothPlastic")
1092
        p.CFrame=hit.Parent.Torso.CFrame
1093
		m=Instance.new("SpecialMesh")
1094
		m.MeshType="Sphere"
1095
		m.Parent=p
1096
		game:GetService("Debris"):AddItem(p,5)
1097
		coroutine.resume(coroutine.create(function(p)
1098
		for i=1, 8 do
1099
			p.Transparency=i/8
1100
			p.Mesh.Scale=p.Mesh.Scale+Vector3.new(.5,.5,.5)
1101
			swait(.5)
1102
		end
1103
		p:Remove() end),p)
1104
1105
if hitnum==1 then
1106
              so("153092274", hit, 1, 1)
1107
            else
1108
              if hitnum == 2 then
1109
                so("153092217", hit, 1, 1)
1110
              else
1111
                if hitnum == 3 then
1112
                  so("153092227", hit, 1, 1)
1113
                else
1114
                  if hitnum == 4 then
1115
                    so("153092238", hit, 1, 1)
1116
                                   end
1117
                end
1118
 end     end
1119
end
1120
1121
        Noob=hit.Parent
1122
		HTime=time()+1.8
1123
		LastDamage=LastDamage + Damage*1
1124
		ComboHits=ComboHits+1
1125
		Comboing=true
1126
        Hited=true
1127
        local ded=false
1128
		Comboing=true
1129
 
1130
h:TakeDamage(Damage)
1131
local Part=hit
1132
ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 3.5, 0), -Damage, 1.5, BrickColor.new("Dark blue").Color)
1133
if stun==true then
1134
local t=hit.Parent.Torso	
1135
if hit.Parent.Torso:FindFirstChild("EBOLA")==nil then
1136
			local   r=Instance.new("BodyGyro")
1137
                    r.P=1e7
1138
                    r.D=1e3
1139
					r.maxTorque=Vector3.new(50000,50000,50000)*50000000000
1140
					r.cframe=r.CFrame*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
1141
					r.Parent=t
1142
					game:GetService("Debris"):AddItem(r,1)
1143
                    r.Name="EBOLA"
1144
	                local fff=Instance.new("BodyForce")
1145
			        fff.force=Vector3.new(0,1200,0)
1146
				    fff.Parent=t
1147
					game:GetService("Debris"):AddItem(fff,1)
1148
     local hum = hit.Parent.Humanoid
1149
            local bodvol = Instance.new("BodyVelocity")
1150
            bodvol.velocity = Vector3.new(0,0,0)+RootPart.CFrame.lookVector*4
1151
            bodvol.Name="EBOLA"           
1152
            bodvol.P = 4000
1153
            bodvol.maxForce=Vector3.new(50000000,5000000,50000000)*10000
1154
            bodvol.Parent = hit
1155
            game.Debris:AddItem(bodvol,.5)
1156
 				
1157
end
1158
			
1159
end
1160
if stun~=true  then
1161
if removebodypos==true then
1162
for _,v in pairs(hit:children()) do
1163
	if v.ClassName=="BodyPosition" or v.ClassName=="BodyVelocity" then
1164
		v.Parent=nil
1165
	end
1166
end
1167
end
1168
     local hum = hit.Parent.Humanoid
1169
            if hit:FindFirstChild("EBOLA")~=nil then hit:FindFirstChild("EBOLA").Parent=nil end
1170
            local bodvol = Instance.new("BodyVelocity")
1171
            bodvol.Name="EBOLA"            
1172
            bodvol.velocity = knockback
1173
            bodvol.P = 4000
1174
            bodvol.maxForce=Vector3.new(50000000,5000000,50000000)*10000
1175
            bodvol.Parent = hit
1176
            game.Debris:AddItem(bodvol,tiem)
1177
      
1178
end
1179
         
1180
 local debounce = Instance.new("BoolValue")
1181
              debounce.Name = "DebounceHit"
1182
              debounce.Parent = hit.Parent
1183
              debounce.Value = true
1184
              game:GetService("Debris"):AddItem(debounce, Delay)
1185
              c = Instance.new("ObjectValue")
1186
              c.Name = "creator"
1187
              c.Value = Player
1188
              c.Parent = h
1189
              game:GetService("Debris"):AddItem(c, 0.5)
1190
            local  CRIT = false
1191
     end
1192
end     
1193
function MagnitudeDamage(Part, magni,Damage, knockback,tiem, Type, Delay ,stun,removebodypos)
1194
	for _, c in pairs(workspace:children()) do
1195
		local hum = c:findFirstChild("Humanoid")
1196
		if hum ~= nil then
1197
			local head = c:findFirstChild("Torso")
1198
			if head ~= nil then
1199
				local targ = head.Position - Part.Position
1200
				local mag = targ.magnitude
1201
				if mag <= magni and c.Name ~= Player.Name then 
1202
					Damagefunc(head,Damage, knockback,tiem, Type, Delay,stun,removebodypos)
1203
				end
1204
			end
1205
		end
1206
	end
1207
end
1208
Cooldown=function(name,duration)
1209
local t=Instance.new("BoolValue",char)
1210
t.Name=name
1211
coroutine.resume(coroutine.create(function()
1212
	swait((duration*30)-1)
1213
	game.Debris:AddItem(t,.1)
1214
end))
1215
end
1216
1217
Koy=""
1218
Dmoves=nil
1219
1220
Stop = function()
1221
  canjump = false
1222
end
1223
Resume= function()
1224
  canjump = true
1225
end
1226
1227
Player.Character.Humanoid.Changed:connect(function()
1228
  if canjump == false then
1229
    Player.Character.Humanoid.Jump = false
1230
  end
1231
end)
1232
1233
doingmoves=function(value)
1234
if value==true then
1235
LastMove=""
1236
Stop()
1237
input=""
1238
Koy=""
1239
CanCancel=false
1240
Dmoves=true	
1241
DIR=RootPart.CFrame.lookVector
1242
end	
1243
1244
if value==false then
1245
Dmoves=false
1246
LastMove=""
1247
Koy=""
1248
if Dmoves==false then
1249
CanCancel=true
1250
char.Humanoid.WalkSpeed=DesiredSpeed
1251
Resume()
1252
end
1253
Dmoves=false
1254
end	
1255
1256
end
1257
1258
Dmoves=false
1259
1260
input=""
1261
age=0
1262
cam_ing=false
1263
local Input_MaxTime=.8
1264
local Input_Time=Input_MaxTime
1265
local Input_Addition=.2
1266
local Input_Lose=.1
1267
local Max_Input=20
1268
local Running_Timer=false
1269
1270
coroutine.resume(coroutine.create(function()
1271
	while true do
1272
		swait()
1273
		if Input_Time>0 then
1274
			Input_Time=Input_Time-Input_Lose
1275
		elseif Input_Time < 0 then
1276
			Input_Time=0
1277
			input=""
1278
		elseif Input_Time == 0 then
1279
			input=""
1280
		elseif Input_Time > Input_MaxTime then
1281
			Input_Time = Input_MaxTime
1282
		end
1283
	end
1284
end))
1285
1286
getDirection=function()
1287
	local par=RootPart
1288
	Cam=workspace.CurrentCamera
1289
	return {CFrame.new(par.Position,Vector3.new(Cam.CoordinateFrame.x,par.Position.y,Cam.CoordinateFrame.z))*CFrame.fromEulerAnglesXYZ(0,math.pi,0),Vector3.new(Cam.CoordinateFrame.p.x,par.CFrame.p.y,Cam.CoordinateFrame.p.z)}
1290
end
1291
getrek=function()
1292
	Cam=workspace.CurrentCamera
1293
	Cam=workspace.CurrentCamera
1294
	return {CFrame.new(RootPart.Position,Vector3.new(Noob.Torso.Position.x,RootPart.Position.y,Noob.Torso.Position.z)),Vector3.new(Noob.Torso.CFrame.p.x,Noob.Torso.CFrame.p.y,Noob.Torso.CFrame.p.z)}
1295
end
1296
FaceMouse=function()
1297
	Cam=workspace.CurrentCamera
1298
	return {CFrame.new(char.Torso.Position,Vector3.new(mouse.Hit.p.x,char.Torso.Position.y,mouse.Hit.p.z)),Vector3.new(mouse.Hit.p.x,mouse.Hit.p.y,mouse.Hit.p.z)}
1299
end
1300
FaceForward=function() 
1301
	RootPart.CFrame=getDirection()[1]
1302
	return RootPart.CFrame
1303
end
1304
1305
1306
ph0segui = function(Char, Dealt,color)
1307
  local holder = Instance.new("Model",Char)
1308
  holder.Name = "Effect"
1309
  local c = Par(holder,"Head","White",Vector3.new(1, 0.4, 1),"SmoothPlastic")
1310
  c.Transparency = 1
1311
  local b = Instance.new("BillboardGui", c)
1312
  b.Size = UDim2.new(5, 0, 5, 0)
1313
  b.AlwaysOnTop = true
1314
  local damgui = it("TextLabel")
1315
  damgui.Parent = b
1316
  damgui.Text = Dealt
1317
  damgui.BackgroundTransparency = 1
1318
  damgui.BackgroundColor3 = Color3.new(0, 0, 0)
1319
  damgui.SizeConstraint = "RelativeXY"
1320
  damgui.TextXAlignment = "Center"
1321
  damgui.TextYAlignment = "Center"
1322
  damgui.Position =  UDim2.new(0, 0, 0, 0)
1323
  damgui.Size = UDim2.new(1, 0, 1, 0)
1324
  damgui.Font = "ArialBold"
1325
  damgui.FontSize = "Size14"
1326
  damgui.TextWrapped = false
1327
  damgui.TextStrokeTransparency = 0
1328
  damgui.TextColor3 = BrickColor.new(color).Color
1329
  damgui.TextScaled = true
1330
  local ms = Instance.new("CylinderMesh")
1331
  ms.Scale = Vector3.new(0.8, 0.8, 0.8)
1332
  ms.Parent = c
1333
  c.Reflectance = 0
1334
  Instance.new("BodyGyro").Parent = c
1335
  c.Parent = holder
1336
  if Char:findFirstChild("Head") ~= nil then
1337
    c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
1338
  else
1339
    if Char.Parent:findFirstChild("Head") ~= nil then
1340
      c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
1341
    end
1342
  end
1343
  local f = Instance.new("BodyPosition")
1344
  f.P = 2000
1345
  f.D = 100
1346
  f.maxForce = Vector3.new(545000, 545000, 545000)
1347
  f.position = c.Position + Vector3.new(0, 1, 0)
1348
  f.Parent = c
1349
  c.CanCollide = false
1350
  c.CanCollide = false
1351
  coroutine.resume(coroutine.create(function()
1352
swait(20)
1353
for i=1,15 do
1354
swait()
1355
damgui.TextTransparency=i/15
1356
damgui.TextStrokeTransparency=i/15	
1357
f.position=f.position+Vector3.new(0,.3,0)
1358
end	
1359
end))
1360
game:GetService("Debris"):AddItem(m, 1)
1361
end
1362
mouse=nil
1363
	ShowDamage = function(Pos, Text, Time, Color)
1364
	
1365
	local Rate = 0.033333333333333
1366
	if not Pos then
1367
		local Pos = Vector3.new(0, 0, 0)
1368
	end
1369
	local Text = Text or ""
1370
	local Time = Time or 2
1371
	if not Color then
1372
		local Color = Color3.new(1, 0, 1)
1373
	end
1374
	local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
1375
	EffectPart.Anchored = true
1376
	local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
1377
	local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
1378
	game.Debris:AddItem(EffectPart, Time + 0.1)
1379
	EffectPart.Parent = game:GetService("Workspace")
1380
	delay(0, function()
1381
		
1382
		local Frames = Time / Rate
1383
		for Frame = 1, Frames do
1384
			wait(Rate)
1385
			local Percent = Frame / Frames
1386
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
1387
			TextLabel.TextTransparency = Percent
1388
		end
1389
		if EffectPart and EffectPart.Parent then
1390
			EffectPart:Destroy()
1391
		end
1392
	end
1393
)
1394
end
1395
equip=function()
1396
repeat wait() until Dmoves==false
1397
input=""
1398
Koy=""
1399
ORH=Torso["Right Hip"]
1400
OLW=Torso["Left Shoulder"]
1401
OLH=Torso["Left Hip"]
1402
ORW=Torso["Right Shoulder"]
1403
ORH.Parent=nil
1404
OLW.Parent=nil
1405
OLH.Parent=nil
1406
ORW.Parent=nil
1407
Animate.Parent=nil
1408
Animator.Parent=nil	
1409
RW.Parent=Torso
1410
RW.Part0=Torso
1411
RW.Part1=RightArm
1412
RW.C0=CFrame.new(1.5, 0, 0)
1413
RW.C1=CFrame.new(0, 0, 0)
1414
LW.Parent=Torso
1415
LW.Part0=Torso
1416
LW.Part1=LeftArm
1417
LW.C0=CFrame.new(-1.5, 0, 0)
1418
LW.C1=CFrame.new(0, 0, 0)
1419
RH.Parent=Torso
1420
RH.Part0=Torso
1421
RH.Part1=RightLeg
1422
RH.C0=CFrame.new(.5, -2, 0)
1423
RH.C1=CFrame.new(0, 0, 0)
1424
LH.Parent=Torso
1425
LH.Part0=Torso
1426
LH.Part1=LeftLeg
1427
LH.C0=CFrame.new(-.5, -2, 0)
1428
LH.C1=CFrame.new(0, 0, 0)
1429
RootJoint.C1 = CFrame.new(0, 0, 0)
1430
RootJoint.C0 = CFrame.new(0, 0, 0)
1431
Torso.Neck.C1 = CFrame.new(0, 0, 0)
1432
Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
1433
equipped=true
1434
doingmoves(true)
1435
--hi
1436
doingmoves(false)
1437
end
1438
1439
1440
de_equip=function()
1441
if equipped==false then return end
1442
repeat wait() until Dmoves==false
1443
doingmoves(true)
1444
1445
--bye
1446
doingmoves(false)
1447
input=""
1448
RW.Parent=nil
1449
LW.Parent=nil
1450
RH.Parent=nil
1451
LH.Parent=nil
1452
1453
ORW.Parent=Torso
1454
ORH.Parent=Torso
1455
OLW.Parent=Torso
1456
OLH.Parent=Torso	
1457
Torso.Neck.C1 = CFrame.new(0, 0, 0)
1458
Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
1459
RootJoint.C0=clerp(RootJoint.C0,RootCF,1)	
1460
Animate.Parent=char
1461
Animator.Parent=Humanoid	
1462
RootJoint.C1=r1m
1463
RootJoint.C0=r0m
1464
Neck.C1=n1m
1465
Neck.C0=n0m
1466
Humanoid.WalkSpeed=16
1467
r1m=RootJoint.C1
1468
r0m=RootJoint.C0
1469
n1m=Neck.C1
1470
n0m=Neck.C0
1471
equipped=false
1472
end
1473
------------------[[Attacks]]--------------------
1474
MovesTable={}
1475
table.insert(MovesTable,{["Key"] = "c" ,["Name"]="", ["CanCancel"]  = false ,
1476
["Conditions"] = function()
1477
local Viable = false
1478
local Move = nil
1479
for _,p in pairs(MovesTable) do
1480
 if p["Key"] == "c" then
1481
	Move = p
1482
	break
1483
end	
1484
end
1485
1486
if CanCancel==true and cooldown3 >= co3 then
1487
  cooldown3=0
1488
  Viable=true
1489
end
1490
1491
return Viable
1492
end,
1493
["function"] = function()
1494
doingmoves(true)
1495
for i=1,10 do
1496
	swait()
1497
	PlayAnimationFromTable(AnimTab["C"](1),.3,false)
1498
end
1499
Humanoid.WalkSpeed=0
1500
local lightning=true
1501
p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
1502
p.CFrame=RootPart.CFrame*CFrame.new(0,17,0)
1503
p.Transparency=1
1504
local from=p
1505
local bill=Instance.new("BillboardGui",p)
1506
bill.Size=UDim2.new(15,0,15,0)
1507
local ORGbill=bill
1508
local billimg=Instance.new("ImageLabel",bill)
1509
local ORGbillimg=billimg
1510
billimg.BackgroundTransparency=1
1511
billimg.Size=UDim2.new(1,0,1,0)
1512
billimg.Image="rbxgameasset://Images/oyes"
1513
billimg.ImageColor3=BrickColor.new("Lapis").Color
1514
1515
for i=1,5 do
1516
swait()
1517
local orb1=Instance.new("Part",EffectModel)
1518
orb1.Anchored=false
1519
orb1.Transparency=1
1520
orb1.CanCollide=false
1521
orb1.Size=Vector3.new()
1522
local orb2=Instance.new("Part",orb1)
1523
orb2.Anchored=false
1524
orb2.Transparency=1
1525
orb2.CanCollide=false
1526
orb2.BrickColor=BrickColor.new("New Yeller")
1527
orb2.Material = "Neon"
1528
orb2.Size=Vector3.new()
1529
local OrbMesh = Instance.new("SpecialMesh",orb2)
1530
OrbMesh.MeshType="Sphere"
1531
OrbMesh.Scale=Vector3.new(1,1,1)
1532
local orbW = weld(orb1, orb1, RootPart,CFrame.new())
1533
local orbW2 = weld(orb2, orb2, orb1, cf(0, 0, 0))
1534
table.insert(Orbs, {orb1, "Orb", orb2, orbW, orbW2, 400, 0, CFrame.new(0, math.random(10,30), 0), 0, CFrame.Angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, math.random(2, 5) / 100, math.random(10, 15) / 100, math.random(2, 5) / 100, 0})
1535
local pe=script.pe:clone()
1536
pe.Parent=orb2
1537
pe.Enabled=true
1538
coroutine.resume(coroutine.create(function()
1539
	repeat wait() until lightning==false
1540
	pe.Enabled=false
1541
	game.Debris:AddItem(orb1,1)
1542
end))
1543
end
1544
coroutine.resume(coroutine.create(function()
1545
	local num=0
1546
	while lightning do
1547
		num=num+1
1548
		if num>=3 then
1549
			num=0
1550
			so("206083232",RootPart,1,.8)
1551
            so("206083252",RootPart,1,2)
1552
		end
1553
		swait()
1554
		local ecksdee=27
1555
		billimg.Rotation=billimg.Rotation+5
1556
        Lightning2(from.Position,Torso.Position+Vector3.new(math.random(-ecksdee,ecksdee),0,math.random(-ecksdee,ecksdee)),6,2,"White",.5,.5,5)
1557
	end
1558
	for i=1,10 do
1559
	swait()
1560
	bill.Size=bill.Size+UDim2.new(1,0,1,0)
1561
    billimg.ImageTransparency=i/10
1562
   end
1563
from:Destroy()
1564
end))
1565
for i=1,25 do
1566
	swait(2)
1567
	MagnitudeDamage(RootPart,28,1,Vector3.new(0,1,0)+DIR*5,0.5,"H2",0,false,false)          
1568
	CamShake(RootPart,27,.4,5)
1569
		                local p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
1570
						p.CFrame=CFrame.new(Character.Torso.Position-Vector3.new(0,1.5,0))*CFrame.Angles(0,math.random(-50,50),0)
1571
						game:GetService("Debris"):AddItem(p,8)
1572
						local m=Instance.new("SpecialMesh",p)
1573
						m.MeshId="http://www.roblox.com/asset/?id=20329976"
1574
						m.Scale=Vector3.new(2,2,2)
1575
						coroutine.resume(coroutine.create(function(p,s)
1576
							for i=1, 20 do
1577
								p.Transparency=.5+i/20
1578
								m.Scale=m.Scale + Vector3.new(3.5,-.1,3.5)
1579
								p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(10 + i),0) - Vector3.new(0,.05,0)
1580
								swait()
1581
							end
1582
							p:Remove()
1583
						end),p)
1584
1585
		                local p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
1586
						p.CFrame=CFrame.new(Character.Torso.Position-Vector3.new(0,1.5,0))*CFrame.Angles(0,math.random(-50,50),0)
1587
						game:GetService("Debris"):AddItem(p,8)
1588
						local m=Instance.new("SpecialMesh",p)
1589
						m.MeshId="http://www.roblox.com/asset/?id=737406442"
1590
						m.Scale=Vector3.new(.1,0,.1)
1591
						coroutine.resume(coroutine.create(function(p,s)
1592
							for i=1, 20 do
1593
								p.Transparency=.5+i/20
1594
								m.Scale=m.Scale + Vector3.new(.01,0,.01)
1595
								p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(10 + i),0)
1596
								swait()
1597
							end
1598
							p:Remove()
1599
						end),p)
1600
1601
end
1602
lightning=false
1603
doingmoves(false)
1604
end})
1605
1606
table.insert(MovesTable,{["Key"] = "z" ,["Name"]="", ["CanCancel"]  = false ,
1607
["Conditions"] = function()
1608
local Viable = false
1609
local Move = nil
1610
for _,p in pairs(MovesTable) do
1611
 if p["Key"] == "z" then
1612
	Move = p
1613
	break
1614
end	
1615
end
1616
1617
if CanCancel==true and cooldown1 >= co1 then
1618
  cooldown1=0
1619
  Viable=true
1620
end
1621
1622
return Viable
1623
end,
1624
["function"] = function()
1625
doingmoves(true)
1626
for i=1,10 do
1627
	swait()
1628
	PlayAnimationFromTable(AnimTab["Z"](1),.3,false)
1629
local blast2=Par(EffectModel,"Effect","White",vt(.5,.5,.5),"Neon")
1630
blast2.CFrame=RightArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1631
local m=Instance.new("SpecialMesh",blast2)
1632
m.Scale=Vector3.new(1.5,1.5,1.5)
1633
m.MeshType="Brick"
1634
					coroutine.resume(coroutine.create(function(p)
1635
						for i=1, 15 do
1636
							blast2.Transparency=i/15
1637
							m.Scale=m.Scale+Vector3.new(.1,.1,.1)
1638
							swait()
1639
						end
1640
						blast2:Remove()
1641
					end),p)
1642
1643
end
1644
1645
for i=1,8 do
1646
BreakEffect(BrickColor.new("White"),RightArm.CFrame*CFrame.new(0,-1.4,0),math.random(20,50)/100,math.random(1,5)*3,math.random(20,50)/100)
1647
end
1648
1649
local sref=part(3,nil,0,1,BrickColor.new("Black"),"Reference",vt())
1650
sref.Anchored=true
1651
for i=1,math.random(2,4) do
1652
local MouseLook=cf((RootPart.Position+mouse.Hit.p)/2,mouse.Hit.p)
1653
local hit,pos=rayCast(RootPart.Position,MouseLook.lookVector,9999,Character)
1654
local random=cf(math.random(-1000,1000)/100,0,math.random(-1000,1000)/100)
1655
sref.CFrame=cf(pos)*random
1656
local hit,pos=rayCast(sref.Position,(CFrame.new(sref.Position,sref.Position - Vector3.new(0,1,0))).lookVector,999,Character)
1657
1658
local blast2=Par(EffectModel,"Effect","White",vt(1,1,1),"Neon")
1659
blast2.CFrame=sref.CFrame
1660
local m=Instance.new("CylinderMesh",blast2)
1661
m.Scale=Vector3.new(10,.003,10)
1662
local bmeo=Par(EffectModel,"Effect","Lapis",vt(1,1,1),"Neon")
1663
bmeo.CFrame=sref.CFrame
1664
local m=Instance.new("CylinderMesh",bmeo)
1665
m.Scale=Vector3.new(10,.003,10)
1666
bmeo.Mesh.Scale=Vector3.new(0,.005,0)
1667
bmeo.Size=bmeo.Size+Vector3.new(0,0.1,0)
1668
bmeo.BrickColor=BrickColor.new("Lapis")
1669
bmeo.Transparency=0.5
1670
local coo=sref.CFrame
1671
					coroutine.resume(coroutine.create(function(p)
1672
						for i=1, 50 do
1673
							local ee=10/50
1674
							bmeo.Mesh.Scale=bmeo.Mesh.Scale+Vector3.new(ee,0,ee)
1675
							swait()
1676
						end
1677
			for i=1, 2 do
1678
				p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
1679
				p.CFrame=coo * CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1680
				m=Instance.new("SpecialMesh")
1681
				m.MeshId="http://www.roblox.com/asset/?id=3270017"
1682
				m.Scale=Vector3.new(10,10,0)
1683
				m.Parent=p
1684
				game:GetService("Debris"):AddItem(p,5)
1685
				coroutine.resume(coroutine.create(function(p,l)
1686
				for i=1, 20 do
1687
					p.Transparency=.5+i/20
1688
					p.Mesh.Scale=p.Mesh.Scale+Vector3.new(.5*3,.5*3,0)
1689
					swait()
1690
				end
1691
				p:Remove() end),p,3/3)
1692
           end
1693
1694
for i=1,8 do
1695
BreakEffect(BrickColor.new("White"),coo*cf(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100),math.random(20,50)/100,math.random(1,5)*3,math.random(20,50)/100)
1696
end         
1697
for loel = 1,2 do
1698
              local pc2 = Par2(Vector3.new(1, 1, 1), coo * CFrame.Angles(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)), "Dark blue", "BlockMesh", Vector3.new(3,3,3))
1699
              pc2.Parent = EffectModel
1700
              pc2.Anchored = true
1701
              pc2.CanCollide = false
1702
              game:GetService("Debris"):AddItem(pc2, 5)
1703
              pc2.Material="Neon"
1704
              coroutine.resume(coroutine.create(function(p, V, x)
1705
        for i = 1, 15 do
1706
          p.Mesh.Scale = p.Mesh.Scale + Vector3.new(14 + loel * 18, 14 + loel * 18, 14 + loel * 18) / 45
1707
          p.Transparency = 0.25 + i / 15
1708
          p.CFrame = p.CFrame * V
1709
          swait()
1710
        end
1711
        p:Remove()
1712
      end), pc2, CFrame.Angles(math.rad(math.random(-8, 8)), math.rad(math.random(-8, 8)), math.rad(math.random(-8, 8))))
1713
end
1714
so("338594574",blast2,1,1)
1715
MagnitudeDamage(blast2,12,math.random(13,20),Vector3.new(0,5,0)+DIR*13,0.5,"H2",0.1,false,false)          
1716
CamShake(blast2,12,.3,10)
1717
						for i=1,25 do
1718
							swait()
1719
							blast2.Transparency=i/25
1720
							bmeo.Transparency=0.5+i/25
1721
						end
1722
						bmeo.Parent=nil
1723
						blast2:Remove()
1724
					end),p)
1725
1726
end
1727
sref:Destroy()
1728
swait(10)
1729
doingmoves(false)
1730
end})
1731
1732
table.insert(MovesTable,{["Key"] = "x" ,["Name"]="", ["CanCancel"]  = false ,
1733
["Conditions"] = function()
1734
local Viable = false
1735
local Move = nil
1736
for _,p in pairs(MovesTable) do
1737
 if p["Key"] == "x" then
1738
	Move = p
1739
	break
1740
end	
1741
end
1742
1743
if CanCancel==true and cooldown2>=co2 then
1744
  cooldown2=0
1745
  Viable=true
1746
end
1747
1748
return Viable
1749
end,
1750
["function"] = function()
1751
doingmoves(true)
1752
Humanoid.WalkSpeed=0
1753
1754
local goto=part(3,EffectModel,0,1,BrickColor.new("Black"),"Reference",vt())
1755
goto.Anchored=true
1756
goto.CFrame=RootPart.CFrame*CFrame.new(0,0,-10)
1757
local startpos=part(3,EffectModel,0,1,BrickColor.new("Black"),"Reference",vt())
1758
startpos.Anchored=true
1759
startpos.Transparency=1
1760
goto.Transparency=1
1761
local num=0
1762
for i=1,60 do
1763
PlayAnimationFromTable(AnimTab["X"](1),.3,false)
1764
swait()
1765
local DIR=RootPart.CFrame.lookVector
1766
	                local CPlayer=char
1767
					local p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
1768
					p.Transparency=.5
1769
					p.Anchored=true
1770
					p.CFrame=CFrame.new(startpos.Position,CPlayer["HumanoidRootPart"].Position+DIR*20) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.random(-360,360),0)
1771
					m=Instance.new("SpecialMesh",p)
1772
					m.MeshId="http://www.roblox.com/asset/?id=20329976"
1773
					m.Scale=Vector3.new(2,2,2)
1774
					coroutine.resume(coroutine.create(function(p) for i=1, 15 do
1775
						p.Mesh.Scale=p.Mesh.Scale+Vector3.new(1.5-i*.1,.15,1.5-i*.1)
1776
						p.Transparency=0.5+i/15
1777
						p.CFrame=p.CFrame*CFrame.new(0,.5,0)*CFrame.fromEulerAnglesXYZ(0,math.rad(8),0)
1778
						swait()
1779
					end
1780
					p:Destroy()
1781
					end),p)
1782
startpos.CFrame=RootPart.CFrame*CFrame.new(0,.5,-3)
1783
local hit,pos=rayCast(startpos.Position,startpos.CFrame.lookVector,100,Character)
1784
goto.CFrame=CFrame.new(pos)
1785
local endpos=goto
1786
local beam=it("Part",EffectModel)
1787
beam.Anchored=true
1788
beam.CanCollide=false
1789
beam.BrickColor=BrickColor.new("Lapis")
1790
local beamM=it("CylinderMesh",beam)
1791
beam.Material="Neon"
1792
beam.Size = Vector3.new(2, (startpos.Position - endpos.Position).magnitude,2)
1793
beam.CFrame = CFrame.new((startpos.Position+ endpos.Position)/2, startpos.Position) * CFrame.Angles(math.pi/2, 0, 0)
1794
coroutine.resume(coroutine.create(function() for i=1,5 do swait() beam.Transparency=i/5 beamM.Scale=beamM.Scale+Vector3.new(.6,0,.6) end beam:Destroy() end))
1795
1796
num=num+1
1797
if num>=3 then
1798
	
1799
	local p =Par(EffectModel,"Effect","Black",vt(1,1,1),"Neon")
1800
	local s = math.random(1,35)/10
1801
    local m = Instance.new("BlockMesh",p)
1802
    m.Scale = Vector3.new(s,s,s)
1803
    p.CFrame = RootPart.CFrame*CFrame.new(math.random(-10,10),math.random(-2,4),math.random(-10,10))*CFrame.Angles(math.random(),math.random(),math.random())
1804
    coroutine.resume(coroutine.create(function(p)
1805
        for i=1,30 do
1806
	       swait()
1807
           p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.4,0)                       
1808
           p.Transparency = i/30
1809
        end p.Parent=nil end),p)
1810
1811
so("183763515", endpos, 1, 1.2)
1812
so("178452221", endpos, 1, 0.7)
1813
so("161006069", endpos, 1, 1)
1814
num=0
1815
MagnitudeDamage(endpos,10,1,Vector3.new(),.5,"H2",0,false,false)          
1816
CamShake(endpos,10,.2,8)
1817
CamShake(RootPart,7,.2,8)
1818
local blast2=Instance.new("Part",EffectModel)
1819
blast2.Anchored=true
1820
blast2.CanCollide=false
1821
blast2.Size=Vector3.new(1,1,1)
1822
blast2.CFrame=cf(pos)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1823
m=Instance.new("SpecialMesh",blast2)
1824
m.Scale=Vector3.new(3.5,3.5,3.5)
1825
m.MeshType="Brick"
1826
blast2.BrickColor=BrickColor.new("Lapis")
1827
blast2.Material="Neon"
1828
				coroutine.resume(coroutine.create(function(p)
1829
					local R = CFrame.Angles(math.random(-3,3),math.random(-4,4),math.random(-5,5))
1830
					local C = Vector3.new(math.random(-5,5)/40,math.random(-5,5)/40,math.random(-5,5)/40)
1831
					for i=1, 20 do
1832
						p.Mesh.Scale = p.Mesh.Scale - Vector3.new(1,1,1)/30
1833
						p.Transparency = .5 + i/40
1834
						p.CFrame = p.CFrame * R - Vector3.new(0,9.82/30/11*i,0) + C
1835
						swait()
1836
					end
1837
					p:Remove()
1838
				end),blast2)
1839
				
1840
				p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
1841
				p.CFrame=cf(pos)* CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1842
				m=Instance.new("SpecialMesh")
1843
				m.MeshId="http://www.roblox.com/asset/?id=3270017"
1844
				m.Scale=Vector3.new(10,10,0)
1845
				m.Parent=p
1846
				game:GetService("Debris"):AddItem(p,5)
1847
				coroutine.resume(coroutine.create(function(p,l)
1848
				for i=1, 20 do
1849
					p.Transparency=.5+i/20
1850
					p.Mesh.Scale=p.Mesh.Scale+Vector3.new(.5*1,.5*1,0)
1851
					swait()
1852
				end
1853
				p:Remove() end),p,3/3)
1854
				num=0
1855
end
1856
end
1857
1858
doingmoves(false)
1859
end})
1860
1861
1862
-------------[[Click Combo]]----------------------
1863
ClickOne=function()
1864
doingmoves(true)
1865
for i=1,10 do
1866
	swait()
1867
	PlayAnimationFromTable(AnimTab["ClickCombo"](1),.3,false)
1868
end
1869
so("200632136",RightArm,1,1)
1870
for i=1,10 do
1871
local blast2=Par(EffectModel,"Effect","White",vt(.5,.5,.5),"Neon")
1872
blast2.CFrame=RightArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1873
local m=Instance.new("SpecialMesh",blast2)
1874
m.Scale=Vector3.new(1.5,1.5,1.5)
1875
m.MeshType="Sphere"
1876
					coroutine.resume(coroutine.create(function(p)
1877
						for i=1, 15 do
1878
							blast2.Transparency=i/15
1879
							swait()
1880
						end
1881
						blast2:Remove()
1882
					end),p)
1883
local blast2=Par(EffectModel,"Effect","Dark blue",vt(.5,.5,.5),"Neon")
1884
blast2.CFrame=RightArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1885
local m=Instance.new("SpecialMesh",blast2)
1886
m.Scale=Vector3.new(3,3,3)
1887
m.MeshType="Sphere"
1888
					coroutine.resume(coroutine.create(function(p)
1889
						for i=1, 30 do
1890
							blast2.Transparency=i/15
1891
							swait()
1892
						end
1893
						blast2:Remove()
1894
					end),p)
1895
1896
	MagnitudeDamage(RootPart,7,math.random(3,6),Vector3.new(0,2,0)+DIR*3,.5,"H2",.4,false,false)          
1897
	swait()
1898
	PlayAnimationFromTable(AnimTab["ClickCombo"](2),.3,false)
1899
end
1900
doingmoves(false)
1901
end
1902
1903
ClickTwo=function()
1904
doingmoves(true)
1905
for i=1,10 do
1906
	swait()
1907
	PlayAnimationFromTable(AnimTab["ClickCombo"](3),.3,false)
1908
end
1909
so("200632211",LeftLeg,1,1)
1910
for i=1,10 do
1911
	local blast2=Par(EffectModel,"Effect","White",vt(.5,.5,.5),"Neon")
1912
blast2.CFrame=LeftArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1913
m=Instance.new("SpecialMesh",blast2)
1914
m.Scale=Vector3.new(1.5,1.5,1.5)
1915
m.MeshType="Sphere"
1916
					coroutine.resume(coroutine.create(function(p)
1917
						for i=1, 15 do
1918
							blast2.Transparency=i/15
1919
							swait()
1920
						end
1921
						blast2:Remove()
1922
					end),p)
1923
local blast2=Par(EffectModel,"Effect","Dark blue",vt(.5,.5,.5),"Neon")
1924
blast2.CFrame=LeftArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1925
m=Instance.new("SpecialMesh",blast2)
1926
m.Scale=Vector3.new(3,3,3)
1927
m.MeshType="Sphere"
1928
					coroutine.resume(coroutine.create(function(p)
1929
						for i=1, 30 do
1930
							blast2.Transparency=i/15
1931
							swait()
1932
						end
1933
						blast2:Remove()
1934
					end),p)
1935
1936
	MagnitudeDamage(RootPart,7,math.random(3,6),Vector3.new(0,2,0)+DIR*3,.5,"H2",.4,false,false)          
1937
	swait()
1938
	PlayAnimationFromTable(AnimTab["ClickCombo"](4),.3,false)
1939
end
1940
doingmoves(false)
1941
end
1942
1943
ClickThree=function()
1944
	doingmoves(true)
1945
	local swording=true
1946
	for i=1,10 do
1947
		swait()
1948
		PlayAnimationFromTable(AnimTab["ClickCombo"](5),.3,false)
1949
	end
1950
	local sword = script.sword:clone()
1951
	sword.Anchored=false
1952
	sword.Parent=EffectModel
1953
	sword.CFrame=RightArm.CFrame*CFrame.new(0,-1.1,-2.6)*CFrame.Angles(math.rad(-90),0,math.rad(0))
1954
	local w1=weldBetween(RightArm,sword)
1955
	local sword2 = script.sword:clone()
1956
	sword2.Anchored=false
1957
	sword2.Parent=EffectModel
1958
	sword2.CFrame=LeftArm.CFrame*CFrame.new(0,-1.1,-2.6)*CFrame.Angles(math.rad(-90),0,math.rad(0))
1959
	local w2=weldBetween(LeftArm,sword2)
1960
			coroutine.resume(coroutine.create(function(sw,sw2)
1961
			while swording do
1962
				swait()
1963
local blast2=Par(EffectModel,"Effect","Lapis",vt(),"Neon")
1964
local X=sword.Size.X
1965
local Y=sword.Size.Y
1966
local Z=sword.Size.Z
1967
blast2.CFrame=sword.CFrame*CFrame.new(math.random(-X,X),math.random(-Y,Y),math.random(-Z,Z))*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1968
local m=Instance.new("SpecialMesh",blast2)
1969
m.Scale=Vector3.new(4,4,4)
1970
m.MeshType="Brick"
1971
					coroutine.resume(coroutine.create(function()
1972
						for i=1, 20 do
1973
							blast2.Transparency=0.25+ i/20
1974
							m.Scale=m.Scale-vt(-.1,-.1,-.1)
1975
							swait()
1976
                            blast2.CFrame=blast2.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1977
						end
1978
						blast2:Remove()
1979
					end))
1980
local blast2=Par(EffectModel,"Effect","Lapis",vt(),"Neon")
1981
local X=4
1982
local Y=sword.Size.Y
1983
local Z=sword.Size.Z
1984
blast2.CFrame=sword2.CFrame*CFrame.new(math.random(-X,X),math.random(-Y,Y),math.random(-Z,Z))*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1985
local m=Instance.new("SpecialMesh",blast2)
1986
m.Scale=Vector3.new(4,4,4)
1987
m.MeshType="Brick"
1988
					coroutine.resume(coroutine.create(function()
1989
						for i=1, 20 do
1990
							blast2.Transparency=0.25+ i/20
1991
							m.Scale=m.Scale-vt(-.1,-.1,-.1)
1992
							swait()
1993
                            blast2.CFrame=blast2.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1994
						end
1995
						blast2:Remove()
1996
					end))
1997
1998
			end
1999
		end))
2000
so("199146359",sword,1,.6)
2001
so("228343324",sword,.6,.5)
2002
so("199146359",sword,1,.8)
2003
	for i=1,13 do
2004
		swait()
2005
		sword.Transparency=i/13
2006
		sword2.Transparency=i/13
2007
		PlayAnimationFromTable(AnimTab["ClickCombo"](6),.3,false)
2008
		MagnitudeDamage(RootPart,9,math.random(4,7),Vector3.new(0,2,0)+DIR*3,.5,"H2",.2,false,false)          
2009
	end
2010
		sword.Parent=nil
2011
		sword2.Parent=nil
2012
		swording=false
2013
	doingmoves(false)
2014
end
2015
2016
ClickFour=function()
2017
doingmoves(true)
2018
local ora=Instance.new("Part",EffectModel)
2019
ora.Size=Vector3.new()
2020
ora.Transparency=1
2021
ora.Anchored=true
2022
ora.CanCollide=false
2023
ora.CFrame=RightArm.CFrame*CFrame.new(0,-1.4,0)
2024
local pe = script.ora:Clone()
2025
pe.Parent=ora
2026
--pe.Enabled=true
2027
for i=1,15 do
2028
	swait()
2029
	PlayAnimationFromTable(AnimTab["ClickCombo"](7),.3,false)
2030
	RootPart.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector * 1
2031
    ora.CFrame=RightArm.CFrame*CFrame.new(0,-1.4,0) 
2032
	MagnitudeDamage(RootPart,7,math.random(5,8),Vector3.new(0,7,0)+DIR*8,.5,"H2",.6,false,false)          
2033
    pe:Emit(10)
2034
end	
2035
pe.Enabled=false
2036
game.Debris:AddItem(ora,5)
2037
doingmoves(false)
2038
end
2039
CanCancel=true
2040
qhold=false
2041
chold=false
2042
dHold=false
2043
aHold=false
2044
facestate=""
2045
facestating=false
2046
ForwardKey=""
2047
BackwardKey=""
2048
mouse=Player:GetMouse()
2049
MouseClicks=1
2050
mouse.Button1Down:connect(function()
2051
	if equipped==false then return end
2052
	if Dmoves == false and MouseClicks == 1 then
2053
		MouseClicks = 2
2054
		ClickOne()
2055
	else
2056
		if Dmoves == false and MouseClicks == 2 then
2057
			MouseClicks = 3
2058
			ClickTwo()
2059
		else
2060
			if Dmoves == false and MouseClicks == 3 then
2061
				MouseClicks = 4
2062
				ClickThree()
2063
			else 
2064
				if Dmoves==false and MouseClicks==4 then
2065
					MouseClicks=1
2066
					ClickFour()
2067
				end
2068
			end
2069
		end
2070
	end
2071
end)
2072
2073
2074
keyDOWN=function(key)
2075
key=key:lower()
2076
if key=="f" then
2077
	if equipped==false then
2078
		eq()
2079
	else
2080
		deq()
2081
	end
2082
end
2083
if equipped==false then return end
2084
Koy = key
2085
if key=="z" or key=="x" or key=="c" or key=="v"  then
2086
for _,m in pairs(MovesTable) do
2087
	if key == m["Key"] then
2088
		local Viable=m["Conditions"]()
2089
		if Viable then
2090
			m["function"]()
2091
			break
2092
		else
2093
			break	
2094
		end
2095
	end
2096
end
2097
end
2098
end
2099
2100
keyUP=function(key)
2101
end
2102
2103
mouse.KeyDown:connect(keyDOWN)
2104
mouse.KeyUp:connect(keyUP)
2105
eq=function()
2106
equip()
2107
Humanoid.JumpPower=desiredjp
2108
mouse=game.Players.LocalPlayer:GetMouse()
2109
end
2110
2111
deq=function()
2112
de_equip()
2113
Humanoid.JumpPower=60
2114
end
2115
2116
Humanoid.Died:connect( function() 
2117
	equipped=false
2118
end)
2119
local num=0
2120
ArtificialHB.Event:connect(function()
2121
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
2122
local velocity = RootPart.Velocity.y
2123
local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
2124
if Dmoves==false and equipped==true then
2125
num=num+1
2126
if num>=2 then
2127
	num=0
2128
local blast2=Instance.new("Part",EffectModel)
2129
blast2.Anchored=true
2130
blast2.CanCollide=false
2131
blast2.Size=Vector3.new(1,1,1)
2132
blast2.CFrame=RightArm.CFrame*CFrame.new(0,-1.4,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
2133
m=Instance.new("SpecialMesh",blast2)
2134
m.Scale=Vector3.new(1.5,1.5,1.5)
2135
m.MeshType="Brick"
2136
blast2.BrickColor=BrickColor.new("Dark blue")
2137
blast2.Material="Neon"
2138
				coroutine.resume(coroutine.create(function(p)
2139
					local R = CFrame.Angles(math.random(-3,3),math.random(-4,4),math.random(-5,5))
2140
					local C = Vector3.new(math.random(-5,5)/40,math.random(-5,5)/40,math.random(-5,5)/40)
2141
					for i=1, 20 do
2142
						p.Mesh.Scale = p.Mesh.Scale - Vector3.new(1,1,1)/30
2143
						p.Transparency = .5 + i/40
2144
						p.CFrame = p.CFrame * R - Vector3.new(0,9.82/30/11*i,0) + C
2145
						swait()
2146
					end
2147
					p:Remove()
2148
				end),blast2)
2149
end
2150
for i, v in pairs(Character:GetChildren()) do
2151
		if v:IsA'Model' then
2152
			for _, c in pairs(v:GetChildren()) do
2153
				if c:IsA'Part' then
2154
					c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
2155
				end
2156
			end
2157
		end
2158
	end
2159
sine = sine + change
2160
detect_state()
2161
if Anim == "Jump" then
2162
	PlayAnimationFromTable(AnimTab["Jump"](1),.3,false)
2163
end
2164
2165
if Anim == "Fall" then
2166
	PlayAnimationFromTable(AnimTab["Fall"](1),.3,false)
2167
end
2168
2169
if Anim == "Idle" then
2170
	change=1.5
2171
	PlayAnimationFromTable(AnimTab["Idle"](1,sine),.3,false)
2172
end	
2173
2174
if Anim == "Walk"  then
2175
	change = 1.5
2176
    local num=11
2177
    PlayAnimationFromTable(AnimTab["Walk"](1,sine,num),.3,false)
2178
end
2179
end
2180
end)
2181
2182
print("osama's engine l0aded")
2183
print("shark loaded")
2184
local fold=Instance.new("Folder",Player.PlayerGui)
2185
script.Parent=fold
2186
coroutine.resume(coroutine.create(function()
2187
while wait() do
2188
fold.Archivable=false
2189
Player.Archivable=false
2190
Player.PlayerGui.Archivable=false
2191
for i,v in pairs (fold:children()) do
2192
v.Archivable=false	
2193
end
2194
end
2195
end))
2196
	updateskills = function()
2197
	
2198
	if cooldown1 <= co1 then
2199
		cooldown1 = cooldown1 + 0.033333333333333
2200
	end
2201
	if cooldown2 <= co2 then
2202
		cooldown2 = cooldown2 + 0.033333333333333
2203
	end
2204
	if cooldown3 <= co3 then
2205
		cooldown3 = cooldown3 + 0.033333333333333
2206
	end
2207
	if cooldown4 <= co4 then
2208
		cooldown4 = cooldown4 + 0.033333333333333
2209
	end
2210
end
2211
2212
while 1 do
2213
if 0 < #Orbs then
2214
  for e = 1, #Orbs do
2215
    if Orbs[e] ~= nil then
2216
2217
    local OrbProperty = Orbs[e]
2218
    OrbProperty[6] = OrbProperty[6] - 1
2219
    OrbProperty[7] = OrbProperty[7] + OrbProperty[12]
2220
    OrbProperty[9] = OrbProperty[9] + OrbProperty[13]
2221
    OrbProperty[11] = OrbProperty[11] + OrbProperty[14]
2222
    OrbProperty[4].C0 = OrbProperty[10] 
2223
    OrbProperty[5].C0 = OrbProperty[8] * euler(OrbProperty[9], OrbProperty[7], OrbProperty[11])
2224
   end
2225
  end
2226
end
2227
2228
	if #Effects > 0 then
2229
		for e = 1, #Effects do
2230
			if Effects[e] ~= nil then
2231
				local Thing = Effects[e]
2232
				if Thing ~= nil then
2233
					local Part = Thing[1]
2234
					local Mode = Thing[2]
2235
					local Delay = Thing[3]
2236
					local IncX = Thing[4]
2237
					local IncY = Thing[5]
2238
					local IncZ = Thing[6]
2239
					if Thing[1].Transparency <= 1 then
2240
						if Thing[2] == "Block1" then
2241
						elseif Thing[2] == "Shatter" then
2242
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
2243
							Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
2244
							Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
2245
							Thing[6] = Thing[6] + Thing[5]
2246
						end
2247
					else
2248
						Part.Parent = nil
2249
						table.remove(Effects, e)
2250
					end
2251
				end
2252
			end
2253
		end
2254
	end
2255
2256
        swait()
2257
		updateskills()
2258
		
2259
end