View difference between Paste ID: S9wevpks and iHpAbEW0
SHOW: | | - or go back to the newest paste.
1
p = game.Players.LocalPlayer
2
char = p.Character
3
torso = char.Torso
4
hed = char.Head
5
neck = char.Torso.Neck
6
hum = char.Humanoid
7
hum.MaxHealth = "inf"
8
hum.Health = "inf"
9
local msg = game:GetService("Chat")
10
torso.BrickColor = BrickColor.new("Institutional white")
11
hed.BrickColor = BrickColor.new("Institutional white")
12
char["Right Arm"].BrickColor = BrickColor.new("Institutional white")
13
char["Left Arm"].BrickColor = BrickColor.new("Institutional white")
14
char["Left Leg"].BrickColor = BrickColor.new("Institutional white") 
15
char["Right Leg"].BrickColor = BrickColor.new("Institutional white")
16
ypcall(function()
17
shirt = Instance.new("Shirt", char)
18
shirt.Name = "Shirt"
19
pants = Instance.new("Pants", char)
20
pants.Name = "Pants"
21
char.Shirt.ShirtTemplate = "rbxassetid://527139198"
22
char.Pants.PantsTemplate = "rbxassetid://1002356841"
23
end)
24
hed.face.Texture = "http://www.roblox.com/asset/?id=888434012"
25
p1 = Instance.new("Part",char)
26
p1.FormFactor = Enum.FormFactor.Custom
27
p1.Size = Vector3.new(2,4,3)
28
p1.CanCollide = false
29
p1.Locked = true
30
p1.BottomSurface = Enum.SurfaceType.Smooth
31
p1.TopSurface = Enum.SurfaceType.Smooth
32
SMesh = Instance.new("SpecialMesh", p1)
33
SMesh.MeshId = "http://www.roblox.com/asset/?id=0"
34
SMesh.MeshType = Enum.MeshType.FileMesh
35
SMesh.Name = "Mesh"
36
SMesh.TextureId = "http://www.roblox.com/asset/?id=0"
37
w1 = Instance.new("Weld", hed)
38
w1.Part0 = hed
39
w1.C0 = CFrame.new(0,0.76,0.2)*CFrame.Angles(0.3,0,0)
40
w1.Part1 = p1
41
w1.C1 = CFrame.new(0, 0, 0)
42
CV="Maroon"
43
	Player = game.Players.LocalPlayer
44
	Character = Player.Character
45
	local txt = Instance.new("BillboardGui", Character)
46
	txt.Adornee = Character .Head
47
	txt.Name = "_status"
48
	txt.Size = UDim2.new(2, 0, 1.2, 0)
49
	txt.StudsOffset = Vector3.new(-9, 8, 0)
50
	local text = Instance.new("TextLabel", txt)
51
	text.Size = UDim2.new(10, 0, 7, 0)
52
	text.FontSize = "Size24"
53
	text.TextScaled = true
54
	text.TextTransparency = 0
55
	text.BackgroundTransparency = 1 
56
	text.TextTransparency = 0
57
	text.TextStrokeTransparency = 0
58
	text.Font = "Bodoni"
59
	text.TextStrokeColor3 = Color3.new(255,85,0)
60
61
	v=Instance.new("Part")
62
	v.Name = "ColorBrick"
63
	v.Parent=Player.Character
64
	v.FormFactor="Symmetric"
65
	v.Anchored=true
66
	v.CanCollide=false
67
	v.BottomSurface="Smooth"
68
	v.TopSurface="Smooth"
69
	v.Size=Vector3.new(10,5,3)
70
	v.Transparency=1
71
	v.CFrame=Character.Torso.CFrame
72
	v.BrickColor=BrickColor.new(CV)
73
	v.Transparency=1
74
	text.TextColor3 = Color3.new(255,170,0)
75
	v.Shape="Block"
76
	text.Text = "Papyrus Disbelief"
77
----------------------------------------------------
78
z = Instance.new("Sound", char)
79
z.SoundId = "rbxassetid://321451733"--321451733
80
z.Looped = true
81
z.Pitch = 1
82
z.Volume = 20
83
wait(.001)
84
z:Play()
85
----------------------------------------------------
86
--Shark op
87
--by osama44
88
--for shark nigger
89
--Converted to local by Scenius
90
91
Player=game.Players.LocalPlayer
92
o1 = Instance.new("ParticleEmitter")
93
o1.Name = "ora"
94
o1.Parent = script
95
o1.Transparency = NumberSequence.new(0,1)
96
o1.Size = NumberSequence.new(1.5,3.5)
97
o1.Color = ColorSequence.new(Color3.new(0, 0.333333, 1),Color3.new(0, 0.333333, 1))
98
o1.Enabled = false
99
o1.LightEmission = 1
100
o1.Texture = "rbxassetid://243086902"
101
o1.Lifetime = NumberRange.new(1,1)
102
o1.Rate = 500
103
o1.RotSpeed = NumberRange.new(90,90)
104
o1.Speed = NumberRange.new(0,0)
105
sv = Instance.new("Part")
106
for i = 1, 2 do
107
sv.Parent = script
108
end
109
sv.BrickColor = BrickColor.new("Deep orange")
110
sv.Name = "sword"
111
sv.Size = Vector3.new(0.248, 8.654, 1.153)
112
sv.Orientation = Vector3.new(90, 90, 0)
113
svm = Instance.new("FileMesh", sv)
114
svm.MeshId = "rbxassetid://445556170"
115
repeat wait() until Player.Character
116
repeat wait() until #script:children() >= 0
117
script.Parent=Player.PlayerGui
118
Effects = { }
119
--[[Credits to SazErenos for his Artificical Heartbeat]]--
120
ArtificialHB = Instance.new("BindableEvent", script)
121
ArtificialHB.Name = "Heartbeat"
122
123
script:WaitForChild("Heartbeat")
124
125
frame = 1 / 30
126
tf = 0
127
allowframeloss = false
128
tossremainder = false
129
lastframe = tick()
130
script.Heartbeat:Fire()
131
132
game:GetService("RunService").Heartbeat:connect(function(s, p)
133
	tf = tf + s
134
	if tf >= frame then
135
		if allowframeloss then
136
			script.Heartbeat:Fire()
137
			lastframe = tick()
138
		else
139
			for i = 1, math.floor(tf / frame) do
140
				script.Heartbeat:Fire()
141
			end
142
			lastframe = tick()
143
		end
144
		if tossremainder then
145
			tf = 0
146
		else
147
			tf = tf - frame * math.floor(tf / frame)
148
		end
149
	end
150
end)
151
152
function swait(num)
153
	if num == 0 or num == nil then
154
		ArtificialHB.Event:wait()
155
	else
156
		for i = 0, num do
157
			ArtificialHB.Event:wait()
158
		end
159
	end
160
end
161
------------------[[Variables and Main Stuff]]--------------------
162
163
164
165
local Player = game.Players.localPlayer
166
local Character = Player.Character
167
local Humanoid = Character.Humanoid
168
local char=Character
169
local LeftArm = Character["Left Arm"]
170
local RightArm = Character["Right Arm"]
171
local LeftLeg = Character["Left Leg"]
172
local RightLeg = Character["Right Leg"]
173
local Head = Character.Head
174
local Torso = Character.Torso
175
local cam = game.Workspace.CurrentCamera
176
local RootPart = Character.HumanoidRootPart
177
local RootJoint = RootPart.RootJoint
178
local equipped = false
179
local attack = false
180
local Anim = 'Idle'
181
local idle = 0
182
local attacktype = 1
183
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
184
local velocity = RootPart.Velocity.y
185
local sine = 0
186
local change = 1
187
local grabbed = false
188
local cn = CFrame.new
189
local mr = math.rad
190
local angles = CFrame.Angles
191
local ud = UDim2.new
192
local c3 = Color3.new
193
local ORW=Torso["Right Shoulder"]
194
local OLW=Torso["Left Shoulder"]
195
local OLH=Torso["Left Hip"]
196
local ORH=Torso["Right Hip"]
197
local DesiredSpeed=15
198
local desiredjp=50
199
EffectModel = Instance.new("Model", Character)
200
it=Instance.new
201
vt=Vector3.new
202
cf=CFrame.new
203
euler=CFrame.Angles
204
EffectModel.Name = "Effects"
205
local Animator=Humanoid.Animator
206
local Animate=char.Animate
207
local EffecMo=EffectModel
208
euler=CFrame.Angles
209
RotCF = euler(-1.57, 0, 3.14)
210
it=Instance.new
211
vt=Vector3.new
212
LastMove=""
213
Orbs={}
214
EffecMo=EffectModel
215
RootCF = CFrame.Angles(0, 0, 0)
216
NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
217
local RW=Instance.new("Motor",nil)
218
RW.Name="Right Shoulder"
219
local LW=Instance.new("Motor",nil)
220
LW.Name="Left Shoulder"
221
local RH=Instance.new("Motor",nil)
222
RH.Name="Right Hip"
223
local LH=Instance.new("Motor",nil)
224
LH.Name="Left Hip"
225
Neck=Torso.Neck
226
r1m=RootJoint.C1
227
r0m=RootJoint.C0
228
n1m=Neck.C1
229
n0m=Neck.C0
230
local rarmc1 = RW.C1
231
local larmc1 = LW.C1
232
local rlegc1 = RH.C1
233
local llegc1 = LH.C1
234
local resetc1 = false
235
Comboing=false
236
HTime=0
237
LastDamage=0
238
ComboHits=0
239
240
	local co1 = 10
241
	local co2 = 10
242
	local co3 = 20
243
	local co4 = 1
244
	local cooldown1 = 0
245
	local cooldown2 = 0
246
	local cooldown3 = 0
247
	local cooldown4 = 0
248
	local skillcolorscheme = BrickColor.new("Deep orange").Color
249
	local scrn = Instance.new("ScreenGui", Player.PlayerGui)
250
	makeframe = function(par, trans, pos, size, color)
251
	
252
	local frame = Instance.new("Frame", par)
253
	frame.BackgroundTransparency = trans
254
	frame.BorderSizePixel = 0
255
	frame.Position = pos
256
	frame.Size = size
257
	frame.BackgroundColor3 = color
258
	return frame
259
end
260
261
	makelabel = function(par, text)
262
	
263
	local label = Instance.new("TextLabel", par)
264
	label.BackgroundTransparency = 1
265
	label.Size = UDim2.new(1, 0, 1, 0)
266
	label.Position = UDim2.new(0, 0, 0, 0)
267
	label.TextColor3 = Color3.new(255, 255, 255)
268
	label.TextStrokeTransparency = 0
269
	label.FontSize = Enum.FontSize.Size32
270
	label.Font = Enum.Font.SourceSansLight
271
	label.BorderSizePixel = 0
272
	label.TextScaled = true
273
	label.Text = text
274
end
275
276
	framesk1 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.85, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
277
	framesk2 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.74, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
278
	framesk3 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.63, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
279
	framesk4 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.52, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
280
	bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
281
	bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
282
	bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
283
	bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
284
	text1 = Instance.new("TextLabel", framesk1)
285
	text1.BackgroundTransparency = 1
286
	text1.Size = UDim2.new(1, 0, 1, 0)
287
	text1.Position = UDim2.new(0, 0, 0, 0)
288
	text1.TextColor3 = Color3.new(255, 255, 255)
289
	text1.TextStrokeTransparency = 0
290
	text1.FontSize = Enum.FontSize.Size18
291
	text1.Font = Enum.Font.SourceSansLight
292
	text1.BorderSizePixel = 0
293
	text1.TextScaled = true
294
	text1.Text = "[Z]"
295
	text2 = Instance.new("TextLabel", framesk2)
296
	text2.BackgroundTransparency = 1
297
	text2.Size = UDim2.new(1, 0, 1, 0)
298
	text2.Position = UDim2.new(0, 0, 0, 0)
299
	text2.TextColor3 = Color3.new(255, 255, 255)
300
	text2.TextStrokeTransparency = 0
301
	text2.FontSize = Enum.FontSize.Size18
302
	text2.Font = Enum.Font.SourceSansLight
303
	text2.BorderSizePixel = 0
304
	text2.TextScaled = true
305
	text2.Text = "[X]"
306
	text3 = Instance.new("TextLabel", framesk3)
307
	text3.BackgroundTransparency = 1
308
	text3.Size = UDim2.new(1, 0, 1, 0)
309
	text3.Position = UDim2.new(0, 0, 0, 0)
310
	text3.TextColor3 = Color3.new(255, 255, 255)
311
	text3.TextStrokeTransparency = 0
312
	text3.FontSize = Enum.FontSize.Size18
313
	text3.Font = Enum.Font.SourceSansLight
314
	text3.BorderSizePixel = 0
315
	text3.TextScaled = false
316
	text3.Text = "[C]"
317
	text4 = Instance.new("TextLabel", framesk4)
318
	text4.BackgroundTransparency = 1
319
	text4.Size = UDim2.new(1, 0, 1, 0)
320
	text4.Position = UDim2.new(0, 0, 0, 0)
321
	text4.TextColor3 = Color3.new(255, 255, 255)
322
	text4.TextStrokeTransparency = 0
323
	text4.FontSize = Enum.FontSize.Size18
324
	text4.Font = Enum.Font.SourceSansLight
325
	text4.BorderSizePixel = 0
326
	text4.TextScaled = true
327
	text4.Text = "[V]"
328
329
------------[[Particle Emitters]]---------------------
330
local pe=Instance.new("ParticleEmitter",script)
331
pe.Enabled=false
332
pe.Name="pe"
333
local col1= Color3.new(0, 85, 255)
334
pe.Color=ColorSequence.new(col1)
335
pe.Texture="rbxassetid://436792038"
336
pe.LightEmission=1
337
pe.Size=NumberSequence.new({NumberSequenceKeypoint.new(0, 1.65), NumberSequenceKeypoint.new(1, 0)})
338
pe.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
339
pe.Lifetime=NumberRange.new(1.5)
340
pe.Rate=500
341
pe.Acceleration=Vector3.new(5,0,5)
342
pe.Rotation=NumberRange.new(5)
343
pe.RotSpeed=NumberRange.new(10)
344
pe.Speed=NumberRange.new(5)
345
346
local pe=Instance.new("ParticleEmitter",script)
347
pe.Enabled=false
348
pe.Name="pe2"
349
local col1= BrickColor.new("Deep orange").Color
350
pe.Color=ColorSequence.new(col1)
351
pe.Texture="rbxassetid://436792038"
352
pe.LightEmission=.5
353
pe.Size=NumberSequence.new({NumberSequenceKeypoint.new(0, 1.65), NumberSequenceKeypoint.new(1, 0)})
354
pe.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
355
pe.Lifetime=NumberRange.new(1)
356
pe.Rate=500
357
pe.Rotation=NumberRange.new(5)
358
pe.RotSpeed=NumberRange.new(10)
359
pe.Speed=NumberRange.new(5)
360
pe.VelocitySpread=360
361
362
------------------[[Main Functions]]--------------------
363
364
function CameraShake(Times, Power)
365
coroutine.resume(coroutine.create(function()
366
FV = Instance.new("BoolValue", Character)
367
FV.Name = "CameraShake"
368
for ShakeNum=1,Times do
369
swait()
370
local ef=Power
371
  if ef>=1 then
372
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
373
  else
374
   ef=Power*10
375
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
376
  end	
377
end
378
Humanoid.CameraOffset = Vector3.new(0,0,0)
379
FV:Destroy()
380
end))
381
end
382
383
so = function(id, par, vol, pit)
384
  local sou = Instance.new("Sound", par or workspace)
385
if par==char then sou.Parent=char.Torso end
386
  sou.Volume = vol
387
  sou.Pitch = pit or 1
388
  sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
389
  coroutine.resume(coroutine.create(function(Sound)
390
    swait()
391
    Sound:play()
392
    while sou.Parent.Parent ~= nil and sou.TimePosition >= sou.TimeLength do
393
      swait()
394
    end
395
    sou.Parent = char.Torso
396
  end), sou)
397
  game:GetService("Debris"):AddItem(sou, sou.TimeLength + 0.5)
398
end
399
400
part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
401
  local fp = it("Part")
402
  fp.Parent = parent
403
  fp.Reflectance = reflectance
404
  fp.Transparency = transparency
405
  fp.CanCollide = false
406
  fp.Locked = true
407
  fp.BrickColor = brickcolor
408
  fp.Name = name
409
  fp.Size = size
410
  fp.Position = Torso.Position
411
  fp.Material = "SmoothPlastic"
412
  fp:BreakJoints()
413
  return fp
414
end
415
mesh = function(Mesh, part, meshtype, meshid, offset, scale)
416
  local mesh = it(Mesh)
417
  mesh.Parent = part
418
  if Mesh == "SpecialMesh" then
419
    mesh.MeshType = meshtype
420
    if meshid ~= "nil" then
421
      mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
422
    end
423
  end
424
  mesh.Offset = offset
425
  mesh.Scale = scale
426
  return mesh
427
end
428
local function weldBetween(a, b)
429
    local OR=CFrame.new(a.Position)
430
    local P1C, P2C=a.CFrame:inverse()*OR,b.CFrame:inverse()*OR
431
    local weld = Instance.new("ManualWeld", a)
432
    weld.Part0 = a
433
    weld.Part1 = b
434
    weld.C0 = P1C
435
    weld.C1=P2C
436
    return weld
437
end
438
lock=function(a,b)
439
local vp2=Instance.new("BodyPosition",a)
440
vp2.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
441
vp2.P=1e7
442
vp2.D=1e3
443
vp2.Position=b.Position
444
local vp3=Instance.new("BodyGyro",a)
445
vp3.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
446
vp3.P=1e7
447
vp3.D=1e3
448
vp3.cframe=a.CFrame
449
return vp2,vp3
450
end
451
weld = function(parent, part0, part1, c0)
452
  local weld = it("Motor")
453
  weld.Parent = parent
454
  weld.Part0 = part0
455
  weld.Part1 = part1
456
  weld.C0 = c0
457
  return weld
458
end
459
function NoOutline(Part)
460
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
461
end
462
463
Par=function(Parent,Name,Col,size,Mater)
464
p=Instance.new("Part",Parent)
465
p.Anchored=true
466
p.CanCollide=false
467
p.BrickColor=BrickColor.new(Col)
468
p.Locked=true
469
NoOutline(p)
470
p.Size=size or Vector3.new(1,1,1)
471
p.Material=Mater
472
return p
473
end
474
Par2=function(size,cframe,color,meshtype,meshscale) --returns a basic part for further manipulation
475
	local par = Instance.new("Part")
476
	par.formFactor="Custom"
477
	par.TopSurface=0
478
	par.BottomSurface=0
479
	par.Size=size
480
	par.CFrame=cframe
481
	par.BrickColor=BrickColor.new(color)
482
	if meshtype then
483
		local m = Instance.new(meshtype,par)
484
		m.Scale=meshscale
485
	end
486
	return par
487
end
488
BillboardGui = function(image, position, size)
489
  local billpar = Instance.new("Part")
490
  billpar.Transparency = 1
491
  billpar.formFactor = "Custom"
492
  billpar.Size = Vector3.new(1, 1, 1)
493
  billpar.Anchored = true
494
  billpar.CanCollide = false
495
  billpar.CFrame = CFrame.new(position)
496
  billpar.Name = "BillboardGuiPart"
497
  local bill = Instance.new("BillboardGui", billpar)
498
  bill.Adornee = billpar
499
  bill.Size = UDim2.new(1, 0, 1, 0)
500
  bill.SizeOffset = Vector2.new(size, size)
501
  local d = Instance.new("ImageLabel", bill)
502
  d.BackgroundTransparency = 1
503
  d.Size = UDim2.new(1, 0, 1, 0)
504
  d.Image = image
505
  return billpar
506
end
507
gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
508
  local gui = it(GuiType)
509
  gui.Parent = parent
510
  gui.Text = text
511
  gui.BackgroundTransparency = backtrans
512
  gui.BackgroundColor3 = backcol
513
  gui.SizeConstraint = "RelativeXY"
514
  gui.TextXAlignment = "Center"
515
  gui.TextYAlignment = "Center"
516
  gui.Position = pos
517
  gui.Size = size
518
  gui.Font = "SciFi"
519
  gui.FontSize = "Size14"
520
  gui.TextWrapped = false
521
  gui.TextStrokeTransparency = 0
522
  gui.TextColor3 = Color3.new(255,255,127)
523
  return gui
524
end
525
526
local TotalSuppressedTable = {}
527
	CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
528
	local RbxUtility = LoadLibrary("RbxUtility")
529
	local Create = RbxUtility.Create
530
	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})
531
	RemoveOutlines(Part)
532
	return Part
533
end
534
535
function BreakEffect(brickcolor,cframe,x1,y1,z1) --Credits to Ace
536
local prt=part(3,EffectModel,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
537
prt.Anchored=true
538
prt.Material="Neon"
539
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
540
game:GetService("Debris"):AddItem(prt,10)
541
local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
542
local num=math.random(10,50)/1000
543
table.insert(Effects,{prt,"Shatter",num,prt.CFrame,math.random()-math.random(),0,math.random(50,100)/100})
544
end
545
546
local function CFrameFromTopBack(at, top, back)
547
    local right = top:Cross(back)
548
    return CFrame.new(at.x, at.y, at.z,
549
    right.x, top.x, back.x,
550
    right.y, top.y, back.y,
551
    right.z, top.z, back.z)
552
end
553
function clerp(a,b,t)
554
return a:Lerp(b,t)
555
end
556
function QuaternionFromCFrame(cf)
557
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
558
local trace = m00 + m11 + m22
559
if trace > 0 then
560
local s = math.sqrt(1 + trace)
561
local recip = 0.5/s
562
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
563
else
564
local i = 0
565
if m11 > m00 then
566
i = 1
567
end
568
if m22 > (i == 0 and m00 or m11) then
569
i = 2
570
end
571
if i == 0 then
572
local s = math.sqrt(m00-m11-m22+1)
573
local recip = 0.5/s
574
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
575
elseif i == 1 then
576
local s = math.sqrt(m11-m22-m00+1)
577
local recip = 0.5/s
578
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
579
elseif i == 2 then
580
local s = math.sqrt(m22-m00-m11+1)
581
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
582
end
583
end
584
end
585
function QuaternionToCFrame(px, py, pz, x, y, z, w)
586
local xs, ys, zs = x + x, y + y, z + z
587
local wx, wy, wz = w*xs, w*ys, w*zs
588
local xx = x*xs
589
local xy = x*ys
590
local xz = x*zs
591
local yy = y*ys
592
local yz = y*zs
593
local zz = z*zs
594
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))
595
end
596
function QuaternionSlerp(a, b, t)
597
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
598
local startInterp, finishInterp;
599
if cosTheta >= 0.0001 then
600
if (1 - cosTheta) > 0.0001 then
601
local theta = math.acos(cosTheta)
602
local invSinTheta = 1/math.sin(theta)
603
startInterp = math.sin((1-t)*theta)*invSinTheta
604
finishInterp = math.sin(t*theta)*invSinTheta  
605
else
606
startInterp = 1-t
607
finishInterp = t
608
end
609
else
610
if (1+cosTheta) > 0.0001 then
611
local theta = math.acos(-cosTheta)
612
local invSinTheta = 1/math.sin(theta)
613
startInterp = math.sin((t-1)*theta)*invSinTheta
614
finishInterp = math.sin(t*theta)*invSinTheta
615
else
616
startInterp = t-1
617
finishInterp = t
618
end
619
end
620
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
621
end
622
623
local newMotor = function(part0, part1, c0, c1)
624
	local w = Instance.new('Motor', part0)
625
	w.Part0 = part0
626
	w.Part1 = part1
627
	w.C0 = c0
628
	w.C1 = c1
629
	return w
630
end
631
632
Triangle=function(a, b, c)
633
	local col=BrickColor.new("White")
634
	--Credit to Fenrier
635
	local edg1 = (c-a):Dot((b-a).unit)
636
	local edg2 = (a-b):Dot((c-b).unit)
637
	local edg3 = (b-c):Dot((a-c).unit)
638
	if edg1 <= (b-a).magnitude and edg1 >= 0 then
639
		a, b, c = a, b, c
640
	elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
641
		a, b, c = b, c, a
642
	elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
643
		a, b, c = c, a, b
644
	else 
645
		assert(false, "unreachable")
646
	end
647
	
648
	local len1 = (c-a):Dot((b-a).unit)
649
	local len2 = (b-a).magnitude - len1
650
	local width = (a + (b-a).unit*len1 - c).magnitude
651
	local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
652
	
653
	local list = {}
654
655
	if len1 > 0.01 then
656
		local w1 = Instance.new('WedgePart', EffectModel)
657
		game:GetService("Debris"):AddItem(w1,5)
658
		coroutine.resume(coroutine.create(function(p)
659
			for i=1, 10 do
660
				p.Transparency=i/10
661
				swait()
662
			end
663
			p:Remove()
664
		end),w1)
665
		w1.FormFactor = "Custom"
666
		w1.BrickColor = col
667
		w1.Material = "SmoothPlastic"
668
		w1.CanCollide = false
669
		local sz = Vector3.new(0.2, width, len1)
670
		w1.Size = sz
671
		local sp = Instance.new("SpecialMesh",w1)
672
		sp.MeshType = "Wedge"
673
		sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
674
		w1:BreakJoints()
675
		w1.Anchored = true
676
		w1.Transparency = 0
677
		w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
678
	end
679
680
	if len2 > 0.01 then
681
		local w2 = Instance.new('WedgePart', EffectModel)
682
		game:GetService("Debris"):AddItem(w2,5)
683
		coroutine.resume(coroutine.create(function(p)
684
			for i=1, 10 do
685
				p.Transparency=i/10
686
				swait()
687
			end
688
			p:Remove()
689
		end),w2)
690
691
		w2.FormFactor = "Custom"
692
		w2.BrickColor = col
693
		w2.Material = "SmoothPlastic"
694
		w2.CanCollide = false
695
		local sz = Vector3.new(0.2, width, len2)
696
		w2.Size = sz
697
		local sp = Instance.new("SpecialMesh",w2)
698
		sp.MeshType = "Wedge"
699
		sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
700
		w2:BreakJoints()
701
		w2.Anchored = true
702
		w2.Transparency = 0
703
		w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
704
	end
705
	return unpack(list)
706
end
707
708
osamachain = function(P0,P1,Color1,Color2,thickness1,thickness2,T)
709
local Part0=P0.Position
710
local Part1=P1.Position
711
local magz = (Part0 - Part1).magnitude
712
local curpos = Part0
713
local parts = {} 
714
local lastpart=P0
715
local model = Instance.new("Model",EffecMo) 
716
model.Name = "osama_chain" 
717
local par=model
718
if par:FindFirstChild("TimeLeft")~=nil then
719
par:FindFirstChild("TimeLeft"):Destroy()	
720
end
721
local chains = {} 
722
local WAT=false
723
local cb=Instance.new("Part",model)
724
cb.Name="Main_chain"
725
cb.Size=Vector3.new(.2,1,.2)
726
cb.BrickColor=BrickColor.new(Color1)
727
cb.Anchored=false
728
cb.CanCollide=false
729
cb.Locked=true
730
cbM=Instance.new("CylinderMesh",cb) 
731
cbM.Name="Mesh"               
732
cb.CFrame = CFrame.new((Part0 + Part1)/2, Part0) * CFrame.Angles(math.pi/2, 0, 0)      
733
for j = 1, T do
734
local Part0=P0.Position
735
local Part1=P1.Position
736
local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/T).p
737
                local p = Instance.new("Part") 
738
                p.Name="Outline"..j
739
                p.Size = Vector3.new(.2,1,.2) 
740
                p.BrickColor = BrickColor.new(Color2)
741
                p.TopSurface = 0 
742
                p.BottomSurface = 0 
743
                p.CanCollide = false 
744
                p.Locked=true
745
                p.Anchored=true
746
                p.Material = "Neon" 
747
                p.TopSurface = 0 
748
                p.BottomSurface = 0 
749
                local mesh = Instance.new("CylinderMesh",p) 
750
                mesh.Name = "Mesh" 
751
                mesh.Scale = Vector3.new(1.5,magz/T,1.5) 
752
                p.Parent = model
753
                p.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/T/2)
754
                curpos = p.CFrame*CFrame.new(0,0,magz/T/2).p
755
                p.CFrame=p.CFrame*CFrame.Angles(math.rad(90),0,0)
756
                p.Transparency=0.35
757
local str=Instance.new("ObjectValue",p)
758
str.Value=lastpart 
759
str.Name="LP"
760
lastpart=p
761
table.insert(parts,{p,p})
762
table.insert(chains,{0,0,parts,0})
763
764
coroutine.resume(coroutine.create(function()
765
while WAT==false do
766
game:GetService("RunService").RenderStepped:wait()
767
local Part0=P0.Position
768
local Part1=P1.Position
769
local ow=j
770
local magz = (Part0 - Part1).magnitude
771
local oldT=T
772
local wtf=magz
773
mesh.Scale = Vector3.new(thickness2,magz/T,thickness2) 
774
if ow>1 then
775
local dangnigga=CFrame.new(str.Value.Position)*CFrame.new(0,0,wtf/oldT/2).p
776
local trolpos = CFrame.new(dangnigga,Part1)*CFrame.new(0,0,wtf/oldT).p
777
p.CFrame = CFrame.new(str.Value.Position,Part1)*CFrame.new(0,0,-(wtf/oldT))*CFrame.Angles(math.rad(90),0,0)
778
end
779
if ow<=1 then
780
local dangnigga=Part0
781
local trolpos = CFrame.new(dangnigga,Part1)*CFrame.new(0,0,wtf/oldT).p
782
p.CFrame = CFrame.new(dangnigga,trolpos)*CFrame.new(0,0,wtf/oldT/2)*CFrame.Angles(math.rad(90),0,0)
783
end
784
end
785
end))
786
end
787
788
789
coroutine.resume(coroutine.create(function()
790
while WAT==false do
791
local Part0=P0.Position
792
local Part1=P1.Position
793
cbM.Scale = Vector3.new(thickness1, (Part0 - Part1).magnitude, thickness1)
794
cb.CFrame = CFrame.new((Part0 + Part1)/2, Part0) * CFrame.Angles(math.pi/2, 0, 0) 
795
for i, v in pairs(chains) do 
796
                v[1] = v[1] %200 +4
797
                local dir = i%2 == 0 and 1 or -1 
798
                for j, V in pairs(v[3]) do 
799
                        local val = math.sin(math.pi/2 * 2 * (((v[1] + (100 * j/#v[3])*dir) % 100)/100)) 
800
                        V[2].Transparency = 0.12 + val * 0.85
801
                 end 
802
        end 
803
game:GetService("RunService").RenderStepped:wait()
804
end
805
end)) 
806
807
local t=Instance.new("BoolValue",par)
808
t.Name="TimeLeft"
809
810
coroutine.resume(coroutine.create(function()
811
repeat wait() until par:FindFirstChild("TimeLeft")==nil
812
WAT=true
813
for _,v in pairs(model:children()) do
814
coroutine.resume(coroutine.create(function()
815
 for i=1,30 do
816
swait() 
817
 v.Mesh.Scale=v.Mesh.Scale-Vector3.new(.05,0,.05)
818
v.Transparency=i/30
819
   end	
820
     v:Destroy()
821
       end))	
822
game.Debris:AddItem(model,1)
823
end
824
end))
825
826
return t
827
end
828
AnimTab={}
829
angles=CFrame.Angles
830
euler=CFrame.fromEulerAnglesXYZ
831
cf=CFrame.new
832
AnimTab["Idle"]=function(frameN,sine)
833
local frame={}	
834
frame[1]={
835
         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), 
836
         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), 
837
         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))), 
838
         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),  
839
         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),
840
         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),
841
}
842
843
return frame[frameN]
844
end
845
846
AnimTab["Walk"]=function(frameN,sine,num)
847
local frame={}	
848
frame[1]={
849
         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), 
850
         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), 
851
         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), 
852
         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), 
853
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)),
854
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)),
855
}
856
return frame[frameN]
857
end
858
859
AnimTab["Fall"]=function(frameN)
860
local frame={}	
861
frame[1]={
862
         CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
863
         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), 
864
         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), 
865
         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), 
866
         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), 
867
         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), 
868
		}
869
return frame[frameN]
870
end
871
872
AnimTab["Jump"]=function(frameN)
873
local frame={}	
874
frame[1]={
875
         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), 
876
         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), 
877
         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), 
878
         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), 
879
         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), 
880
         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), 
881
		}
882
return frame[frameN]
883
end
884
885
AnimTab["ClickCombo"]=function(frameN)
886
local frame={}	
887
frame[1]={
888
         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), 
889
         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), 
890
         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), 
891
         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), 
892
         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), 
893
         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), 
894
		}
895
frame[2]={
896
         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), 
897
         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), 
898
         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), 
899
         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), 
900
         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), 
901
         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), 
902
		}
903
frame[3]={
904
         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), 
905
         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), 
906
         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), 
907
         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), 
908
         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), 
909
         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), 
910
}
911
frame[4]={
912
         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), 
913
         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), 
914
         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), 
915
         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), 
916
         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), 
917
         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), 
918
}
919
frame[5]={
920
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), 
921
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), 
922
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), 
923
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), 
924
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), 
925
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), 
926
}
927
frame[6]={
928
         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), 
929
         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), 
930
         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), 
931
         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), 
932
         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), 
933
         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), 
934
}
935
frame[7]={
936
         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), 
937
         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), 
938
         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), 
939
         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), 
940
         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), 
941
         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), 
942
}
943
return frame[frameN]
944
end
945
946
AnimTab["C"]=function(frameN)
947
local frame={}	
948
frame[1]={
949
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), 
950
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), 
951
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), 
952
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), 
953
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), 
954
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), 
955
}
956
return frame[frameN]
957
end
958
959
AnimTab["Z"]=function(frameN)
960
local frame={}	
961
frame[1]={
962
         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), 
963
         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), 
964
         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), 
965
         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), 
966
         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), 
967
         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), 
968
		}
969
return frame[frameN]
970
end
971
972
AnimTab["X"]=function(frameN)
973
local frame={}	
974
frame[1]={
975
         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), 
976
         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), 
977
         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), 
978
         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), 
979
         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), 
980
         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), 
981
		}
982
return frame[frameN]
983
end
984
lastcframe={RootJoint.C0,Neck.C0,RW.C0,LW.C0,RH.C0,LH.C0}
985
function PlayAnimationFromTable(tabl, speed, bool)
986
	RootJoint.C0 = clerp(RootJoint.C0, tabl[1], speed) 
987
	Neck.C0 = clerp(Neck.C0, tabl[2], speed) 
988
	RW.C0 = clerp(RW.C0, tabl[3], speed) 
989
	LW.C0 = clerp(LW.C0, tabl[4], speed) 
990
	RH.C0 = clerp(RH.C0, tabl[5], speed) 
991
	LH.C0 = clerp(LH.C0, tabl[6], speed)
992
	lastcframe={RootJoint.C0,Neck.C0,RW.C0,LW.C0,RH.C0,LH.C0} 
993
	if bool == true then
994
		if resetc1 == false then
995
			resetc1 = true
996
			RootJoint.C1 = RootJoint.C1
997
			Torso.Neck.C1 = Torso.Neck.C1
998
			RW.C1 = rarmc1
999
			LW.C1 = larmc1
1000
			RH.C1 = rlegc1
1001
			LH.C1 = llegc1
1002
		end
1003
	end
1004
1005
end
1006
1007
CamShake=function(Part,Distan,Power,Times) 
1008
local de=Part.Position
1009
for i,v in pairs(workspace:children()) do
1010
 if v:IsA("Model") and v:findFirstChild("Humanoid") then
1011
for _,c in pairs(v:children()) do
1012
if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
1013
local Noob=v.Humanoid
1014
if Noob~=nil then
1015
if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
1016
--[[local ss=script.CamShake:clone()
1017
ss.Parent=Noob
1018
ss.Power.Value=Power
1019
ss.Times.Value=Times
1020
ss.Disabled=false]]
1021
CameraShake(Times, Power)
1022
end
1023
end
1024
end
1025
end
1026
end
1027
end
1028
end
1029
1030
local RbxUtility = LoadLibrary("RbxUtility")
1031
local Create = RbxUtility.Create
1032
1033
function RemoveOutlines(part)
1034
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
1035
end
1036
1037
function rayCast(Position, Direction, Range, Ignore)
1038
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
1039
end 
1040
function rayCastWithIngore(Position, Direction, Range, Ignore)
1041
	return game:service("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
1042
end 
1043
1044
detect_state = function()
1045
Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
1046
velocity = RootPart.Velocity.y
1047
sine = sine + change
1048
local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
1049
if equipped == true then
1050
if RootPart.Velocity.y > 1 and hit == nil then 
1051
Anim = "Jump"
1052
elseif RootPart.Velocity.y < -1 and hit == nil then 
1053
Anim = "Fall"
1054
elseif Torsovelocity < 1 and hit ~= nil then
1055
Anim = "Idle"
1056
elseif Torsovelocity > 2 and hit ~= nil  then
1057
Anim = "Walk"
1058
end
1059
end
1060
end
1061
1062
function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module
1063
       local magz = (Part0 - Part1).magnitude
1064
    local curpos = Part0
1065
    local trz = {-Offset,Offset}
1066
    for i=1,Times do
1067
        local li =Par(EffectModel,"Lightning",Color,Vector3.new(Thickness,Thickness,magz/Times),"Neon")
1068
		li.Transparency = Trans 
1069
		li.BrickColor = BrickColor.new(Color)
1070
ora=Instance.new("BlockMesh",li)
1071
ora.Scale=Vector3.new(Thickness,Thickness,1)     
1072
   local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
1073
        local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
1074
        if Times == i then
1075
        local magz2 = (curpos - Part1).magnitude
1076
        li.Size = Vector3.new(Thickness,Thickness,magz2)
1077
        li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
1078
        else
1079
        li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
1080
        end
1081
        curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
1082
        game.Debris:AddItem(li,.1)
1083
    end
1084
end
1085
function Lightning2(Part0,Part1,Times,Offset,Color,Thickness,Trans,V) -- Lightning module
1086
       local magz = (Part0 - Part1).magnitude
1087
    local curpos = Part0
1088
    local trz = {-Offset,Offset}
1089
    for i=1,Times do
1090
         local li =Par(EffectModel,"Lightning",Color,Vector3.new(Thickness,Thickness,magz/Times),"Neon")
1091
		li.Transparency = Trans 
1092
ora=Instance.new("BlockMesh",li)
1093
ora.Scale=Vector3.new(Thickness,Thickness,1)     
1094
   local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
1095
        local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
1096
        if Times == i then
1097
        local magz2 = (curpos - Part1).magnitude
1098
        li.Size = Vector3.new(Thickness,Thickness,magz2)
1099
        li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
1100
        else
1101
        li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
1102
        end
1103
        curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
1104
coroutine.resume(coroutine.create(function() 
1105
      for i=1,V do
1106
swait()
1107
li.Transparency=i/V	
1108
end
1109
li:Destroy()
1110
end))
1111
    end
1112
end
1113
function Lightning3(Part0,Part1,Times,Offset,Color,Thickness,Trans,last) -- Lightning module
1114
       local magz = (Part0 - Part1).magnitude
1115
    local curpos = Part0
1116
    local trz = {-Offset,Offset}
1117
    for i=1,Times do
1118
         local li =Par(EffectModel,"Lightning",Color,Vector3.new(Thickness,Thickness,magz/Times),"Neon")
1119
		li.Transparency = Trans 
1120-
   local Offzet = Vector3.new(trz[math.random(9999,9999)],trz[math.random(9999,9999)],trz[math.random(9999,9999)])
1120+
   local Offzet = Vector3.new(trz[math.random(999999,999999)],trz[math.random(999999,999999)],trz[math.random(999999,999999)])
1121
        local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
1122
        if Times == i then
1123
        local magz2 = (curpos - Part1).magnitude
1124
        li.Size = Vector3.new(Thickness,Thickness,magz2)
1125
        li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
1126
        else
1127
        li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
1128
        end
1129
        curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
1130
        game.Debris:AddItem(li,5)
1131
coroutine.resume(coroutine.create(function()
1132
for i=1,20 do
1133
swait()
1134
li.Transparency=li.Transparency+last	
1135
end
1136
li:Destroy()   
1137
end))
1138
 end
1139
end
1140
1141
GET_THE_NEAREST_FAGGOT = function(pos)
1142
  local list = (game.Workspace:children())
1143
  local torso = nil
1144
  local DISTANCE_u_BITCH = 1000
1145
  local temp, human, temp2 = nil, nil, nil
1146
  for x = 1, #list do
1147
    temp2 = list[x]
1148
    if temp2.className == "Model" and temp2.Name ~= Character.Name then
1149
      temp = temp2:findFirstChild("Torso")
1150
      human = temp2:findFirstChild("Humanoid")
1151
      if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < DISTANCE_u_BITCH then
1152
        local FOUND_YOU = true
1153
        if Player.Neutral == false and game.Players:GetPlayerFromCharacter(temp.Parent) ~= nil  then
1154
          FOUND_YOU = false
1155
        end
1156
        if FOUND_YOU == true then
1157
          torso = temp
1158
          DISTANCE_u_BITCH = (temp.Position - pos).magnitude
1159
        end
1160
      end
1161
    end
1162
  end
1163
  return torso, DISTANCE_u_BITCH
1164
end
1165
Damagefunc=function(hit,Damage, knockback,tiem, Type, Delay,stun,removebodypos)
1166
local Hited=false
1167
 if hit.Parent == nil then
1168
    return 
1169
  end
1170
1171
 h = hit.Parent:FindFirstChild("Humanoid")
1172
  if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
1173
    if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
1174
      return 
1175
    end
1176
if h.Health<=0 then return end 
1177
  h = hit.Parent:FindFirstChild("Humanoid")
1178
     c = Instance.new("ObjectValue")
1179
    c.Name = "creator"
1180
    c.Value = game:service("Players").LocalPlayer
1181
    c.Parent = h
1182
    game:GetService("Debris"):AddItem(c, 0.5)
1183
if Type=="H2" then
1184
	   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))
1185
      eff.Parent = EffectModel
1186
      eff.Name = "BloodEffect"
1187
      eff.Mesh.MeshType = "Sphere"
1188
      eff.Anchored = true
1189
      eff.CanCollide = false
1190
      game:GetService("Debris"):AddItem(eff, 5)
1191
      coroutine.resume(coroutine.create(function(p, A)
1192
      local R = Vector3.new(math.random(-5, 5), math.random(7, 9), math.random(-5, 5)) / 50
1193
      for i = 1, 6 do
1194
        p.Mesh.Scale = p.Mesh.Scale + Vector3.new(0.85, 0.85, 0.85)
1195
        p.Transparency =1
1196
        p.CFrame = p.CFrame * A
1197
        swait()
1198
      end
1199
      p:Remove()
1200-
    end), eff, CFrame.Angles(math.rad(math.random(-9999, 9999) * 4), math.rad(math.random(-4, 4) * 3), math.rad(math.random(-9999, 9999) * 2)), 0)
1200+
    end), eff, CFrame.Angles(math.rad(math.random(-999999, 999999) * 4), math.rad(math.random(-4, 4) * 3), math.rad(math.random(-999999, 999999) * 2)), 0)
1201
      local eb = BillboardGui("http://www.roblox.com/asset/?id=233069772", eff.Position, 0)
1202
      eb.Parent = EffectModel
1203
      eb.BillboardGui.ImageLabel.ImageColor3=Color3.new(255, 0, 0)
1204
      eb.BillboardGui.ImageLabel.Rotation = math.random(-180, 180)
1205
      eb.BillboardGui.Size = UDim2.new(2, 0, 2, 0)
1206
      game:GetService("Debris"):AddItem(eb, 3)
1207
      coroutine.resume(coroutine.create(function(p)
1208
      local r = math.random(-3, 3) * 9
1209
      if r > -12 and r < 1 then
1210
        r = -12
1211
      else
1212
        if r < 12 and r > -1 then
1213
          r = 12
1214
        end
1215
      end
1216
      for i = 1, 6 do
1217
        p.BillboardGui.ImageLabel.ImageTransparency = 0.25 + i / 6
1218
        p.BillboardGui.Size = UDim2.new(2 + i / 1.75, 0, 2 + i / 1.75, 0)
1219
        p.BillboardGui.ImageLabel.Rotation = p.BillboardGui.ImageLabel.Rotation + r
1220
        swait()
1221
      end
1222
      p:Remove()
1223
    end), eb)
1224
1225
    local hitnum = math.random(1, 8)
1226
            if hitnum == 1 then
1227
              so("153092274", hit, 1, 1)
1228
            end
1229
              if hitnum == 2 then
1230
                so("199149186", hit, 2, .5)
1231
              end
1232
                if hitnum == 3 then
1233
                  so("153092296", hit, 1, .3)
1234
                end
1235
                  if hitnum == 4 then
1236
                    so("199149235", hit, 1, .5)
1237
                  end
1238
                    if hitnum == 5 then
1239
                      so("199149269", hit, 1, .4)
1240
                    end
1241
                      if hitnum == 6 then
1242
                        so("199149297", hit, 1, .5)
1243
                       end
1244
                      if hitnum == 7 then
1245
                        so("201858024", hit, 1, .6)
1246
                       end
1247
                      if hitnum == 8 then
1248
                        so("201858024", hit, 1, .5)
1249
                       end
1250
end   
1251
1252
if Type=="H1" then
1253
local hitnum=math.random(2,4)       
1254
        p=Par(EffectModel,"EffectHi","White",Vector3.new(1,1,1),"SmoothPlastic")
1255
        p.CFrame=hit.Parent.Torso.CFrame
1256
		m=Instance.new("SpecialMesh")
1257
		m.MeshType="Sphere"
1258
		m.Parent=p
1259
		game:GetService("Debris"):AddItem(p,5)
1260
		coroutine.resume(coroutine.create(function(p)
1261
		for i=1, 8 do
1262
			p.Transparency=i/8
1263
			p.Mesh.Scale=p.Mesh.Scale+Vector3.new(.5,.5,.5)
1264
			swait(.5)
1265
		end
1266
		p:Remove() end),p)
1267
1268
if hitnum==1 then
1269
              so("153092274", hit, 1, 1)
1270
            else
1271
              if hitnum == 2 then
1272
                so("153092217", hit, 1, 1)
1273
              else
1274
                if hitnum == 3 then
1275
                  so("153092227", hit, 1, 1)
1276
                else
1277
                  if hitnum == 4 then
1278
                    so("153092238", hit, 1, 1)
1279
                                   end
1280
                end
1281
 end     end
1282
end
1283
1284
        Noob=hit.Parent
1285
		HTime=time()+1.8
1286-
		LastDamage=LastDamage + Damage*9999
1286+
		LastDamage=LastDamage + Damage*999999
1287
		ComboHits=ComboHits+1
1288
		Comboing=true
1289
        Hited=true
1290
        local ded=false
1291
		Comboing=true
1292
 
1293
h:TakeDamage(Damage)
1294
local Part=hit
1295
ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 9999).p + Vector3.new(0, 3.5, 0), -Damage, 1.5, BrickColor.new("Deep orange").Color)
1296
if stun==true then
1297
local t=hit.Parent.Torso	
1298
if hit.Parent.Torso:FindFirstChild("EBOLA")==nil then
1299
			local   r=Instance.new("BodyGyro")
1300
                    r.P=1e7
1301
                    r.D=1e3
1302
					r.maxTorque=Vector3.new(50000,50000,50000)*50000000000
1303
					r.cframe=r.CFrame*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
1304
					r.Parent=t
1305
					game:GetService("Debris"):AddItem(r,1)
1306
                    r.Name="EBOLA"
1307
	                local fff=Instance.new("BodyForce")
1308
			        fff.force=Vector3.new(0,1200,0)
1309
				    fff.Parent=t
1310
					game:GetService("Debris"):AddItem(fff,1)
1311
     local hum = hit.Parent.Humanoid
1312
            local bodvol = Instance.new("BodyVelocity")
1313
            bodvol.velocity = Vector3.new(0,0,0)+RootPart.CFrame.lookVector*4
1314
            bodvol.Name="EBOLA"           
1315
            bodvol.P = 4000
1316
            bodvol.maxForce=Vector3.new(50000000,5000000,50000000)*10000
1317
            bodvol.Parent = hit
1318
            game.Debris:AddItem(bodvol,.5)
1319
 				
1320
end
1321
			
1322
end
1323
if stun~=true  then
1324
if removebodypos==true then
1325
for _,v in pairs(hit:children()) do
1326
	if v.ClassName=="BodyPosition" or v.ClassName=="BodyVelocity" then
1327
		v.Parent=nil
1328
	end
1329
end
1330
end
1331
     local hum = hit.Parent.Humanoid
1332
            if hit:FindFirstChild("EBOLA")~=nil then hit:FindFirstChild("EBOLA").Parent=nil end
1333
            local bodvol = Instance.new("BodyVelocity")
1334
            bodvol.Name="EBOLA"            
1335
            bodvol.velocity = knockback
1336
            bodvol.P = 4000
1337
            bodvol.maxForce=Vector3.new(50000000,5000000,50000000)*10000
1338
            bodvol.Parent = hit
1339
            game.Debris:AddItem(bodvol,tiem)
1340
      
1341
end
1342
         
1343
 local debounce = Instance.new("BoolValue")
1344
              debounce.Name = "DebounceHit"
1345
              debounce.Parent = hit.Parent
1346
              debounce.Value = true
1347
              game:GetService("Debris"):AddItem(debounce, Delay)
1348
              c = Instance.new("ObjectValue")
1349
              c.Name = "creator"
1350
              c.Value = Player
1351
              c.Parent = h
1352
              game:GetService("Debris"):AddItem(c, 0.5)
1353
            local  CRIT = false
1354
     end
1355
end     
1356
function MagnitudeDamage(Part, magni,Damage, knockback,tiem, Type, Delay ,stun,removebodypos)
1357
	for _, c in pairs(workspace:children()) do
1358
		local hum = c:findFirstChild("Humanoid")
1359
		if hum ~= nil then
1360
			local head = c:findFirstChild("Torso")
1361
			if head ~= nil then
1362
				local targ = head.Position - Part.Position
1363
				local mag = targ.magnitude
1364
				if mag <= magni and c.Name ~= Player.Name then 
1365
					Damagefunc(head,Damage, knockback,tiem, Type, Delay,stun,removebodypos)
1366
				end
1367
			end
1368
		end
1369
	end
1370
end
1371
Cooldown=function(name,duration)
1372
local t=Instance.new("BoolValue",char)
1373
t.Name=name
1374
coroutine.resume(coroutine.create(function()
1375
	swait((duration*30)-1)
1376
	game.Debris:AddItem(t,.1)
1377
end))
1378
end
1379
1380
Koy=""
1381
Dmoves=nil
1382
1383
Stop = function()
1384
  canjump = false
1385
end
1386
Resume= function()
1387
  canjump = true
1388
end
1389
1390
Player.Character.Humanoid.Changed:connect(function()
1391
  if canjump == false then
1392
    Player.Character.Humanoid.Jump = false
1393
  end
1394
end)
1395
1396
doingmoves=function(value)
1397
if value==true then
1398
LastMove=""
1399
Stop()
1400
input=""
1401
Koy=""
1402
CanCancel=false
1403
Dmoves=true	
1404
DIR=RootPart.CFrame.lookVector
1405
end	
1406
1407
if value==false then
1408
Dmoves=false
1409
LastMove=""
1410
Koy=""
1411
if Dmoves==false then
1412
CanCancel=true
1413
char.Humanoid.WalkSpeed=DesiredSpeed
1414
Resume()
1415
end
1416
Dmoves=false
1417
end	
1418
1419
end
1420
1421
Dmoves=false
1422
1423
input=""
1424
age=0
1425
cam_ing=false
1426
local Input_MaxTime=.8
1427
local Input_Time=Input_MaxTime
1428
local Input_Addition=.2
1429
local Input_Lose=.1
1430
local Max_Input=20
1431
local Running_Timer=false
1432
1433
coroutine.resume(coroutine.create(function()
1434
	while true do
1435
		swait()
1436
		if Input_Time>0 then
1437
			Input_Time=Input_Time-Input_Lose
1438
		elseif Input_Time < 0 then
1439
			Input_Time=0
1440
			input=""
1441
		elseif Input_Time == 0 then
1442
			input=""
1443
		elseif Input_Time > Input_MaxTime then
1444
			Input_Time = Input_MaxTime
1445
		end
1446
	end
1447
end))
1448
1449
getDirection=function()
1450
	local par=RootPart
1451
	Cam=workspace.CurrentCamera
1452
	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)}
1453
end
1454
getrek=function()
1455
	Cam=workspace.CurrentCamera
1456
	Cam=workspace.CurrentCamera
1457
	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)}
1458
end
1459
FaceMouse=function()
1460
	Cam=workspace.CurrentCamera
1461
	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)}
1462
end
1463
FaceForward=function() 
1464
	RootPart.CFrame=getDirection()[1]
1465
	return RootPart.CFrame
1466
end
1467
1468
1469
ph0segui = function(Char, Dealt,color)
1470
  local holder = Instance.new("Model",Char)
1471
  holder.Name = "Effect"
1472
  local c = Par(holder,"Head","White",Vector3.new(1, 0.4, 1),"SmoothPlastic")
1473
  c.Transparency = 1
1474
  local b = Instance.new("BillboardGui", c)
1475
  b.Size = UDim2.new(5, 0, 5, 0)
1476
  b.AlwaysOnTop = true
1477
  local damgui = it("TextLabel")
1478
  damgui.Parent = b
1479
  damgui.Text = Dealt
1480
  damgui.BackgroundTransparency = 1
1481
  damgui.BackgroundColor3 = Color3.new(0, 0, 0)
1482
  damgui.SizeConstraint = "RelativeXY"
1483
  damgui.TextXAlignment = "Center"
1484
  damgui.TextYAlignment = "Center"
1485
  damgui.Position =  UDim2.new(0, 0, 0, 0)
1486
  damgui.Size = UDim2.new(1, 0, 1, 0)
1487
  damgui.Font = "ArialBold"
1488
  damgui.FontSize = "Size14"
1489
  damgui.TextWrapped = false
1490
  damgui.TextStrokeTransparency = 0
1491
  damgui.TextColor3 = BrickColor.new(color).Color
1492
  damgui.TextScaled = true
1493
  local ms = Instance.new("CylinderMesh")
1494
  ms.Scale = Vector3.new(0.8, 0.8, 0.8)
1495
  ms.Parent = c
1496
  c.Reflectance = 0
1497
  Instance.new("BodyGyro").Parent = c
1498
  c.Parent = holder
1499
  if Char:findFirstChild("Head") ~= nil then
1500
    c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
1501
  else
1502
    if Char.Parent:findFirstChild("Head") ~= nil then
1503
      c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
1504
    end
1505
  end
1506
  local f = Instance.new("BodyPosition")
1507
  f.P = 2000
1508
  f.D = 100
1509
  f.maxForce = Vector3.new(545000, 545000, 545000)
1510
  f.position = c.Position + Vector3.new(0, 1, 0)
1511
  f.Parent = c
1512
  c.CanCollide = false
1513
  c.CanCollide = false
1514
  coroutine.resume(coroutine.create(function()
1515
swait(20)
1516
for i=1,15 do
1517
swait()
1518
damgui.TextTransparency=i/15
1519
damgui.TextStrokeTransparency=i/15	
1520
f.position=f.position+Vector3.new(0,.3,0)
1521
end	
1522
end))
1523
game:GetService("Debris"):AddItem(m, 1)
1524
end
1525
mouse=nil
1526
	ShowDamage = function(Pos, Text, Time, Color)
1527
	
1528
	local Rate = 0.033333333333333
1529
	if not Pos then
1530
		local Pos = Vector3.new(0, 0, 0)
1531
	end
1532
	local Text = Text or ""
1533
	local Time = Time or 2
1534
	if not Color then
1535
		local Color = Color3.new(1, 0, 1)
1536
	end
1537
	local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
1538
	EffectPart.Anchored = true
1539
	local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
1540
	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})
1541
	game.Debris:AddItem(EffectPart, Time + 0.1)
1542
	EffectPart.Parent = game:GetService("Workspace")
1543
	delay(0, function()
1544
		
1545
		local Frames = Time / Rate
1546
		for Frame = 1, Frames do
1547
			wait(Rate)
1548
			local Percent = Frame / Frames
1549
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
1550
			TextLabel.TextTransparency = Percent
1551
		end
1552
		if EffectPart and EffectPart.Parent then
1553
			EffectPart:Destroy()
1554
		end
1555
	end
1556
)
1557
end
1558
equip=function()
1559
repeat wait() until Dmoves==false
1560
input=""
1561
Koy=""
1562
ORH=Torso["Right Hip"]
1563
OLW=Torso["Left Shoulder"]
1564
OLH=Torso["Left Hip"]
1565
ORW=Torso["Right Shoulder"]
1566
ORH.Parent=nil
1567
OLW.Parent=nil
1568
OLH.Parent=nil
1569
ORW.Parent=nil
1570
Animate.Parent=nil
1571
Animator.Parent=nil	
1572
RW.Parent=Torso
1573
RW.Part0=Torso
1574
RW.Part1=RightArm
1575
RW.C0=CFrame.new(1.5, 0, 0)
1576
RW.C1=CFrame.new(0, 0, 0)
1577
LW.Parent=Torso
1578
LW.Part0=Torso
1579
LW.Part1=LeftArm
1580
LW.C0=CFrame.new(-1.5, 0, 0)
1581
LW.C1=CFrame.new(0, 0, 0)
1582
RH.Parent=Torso
1583
RH.Part0=Torso
1584
RH.Part1=RightLeg
1585
RH.C0=CFrame.new(.5, -2, 0)
1586
RH.C1=CFrame.new(0, 0, 0)
1587
LH.Parent=Torso
1588
LH.Part0=Torso
1589
LH.Part1=LeftLeg
1590
LH.C0=CFrame.new(-.5, -2, 0)
1591
LH.C1=CFrame.new(0, 0, 0)
1592
RootJoint.C1 = CFrame.new(0, 0, 0)
1593
RootJoint.C0 = CFrame.new(0, 0, 0)
1594
Torso.Neck.C1 = CFrame.new(0, 0, 0)
1595
Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
1596
equipped=true
1597
doingmoves(true)
1598
--hi
1599
doingmoves(false)
1600
end
1601
1602
1603
de_equip=function()
1604
if equipped==false then return end
1605
repeat wait() until Dmoves==false
1606
doingmoves(true)
1607
1608
--bye
1609
doingmoves(false)
1610
input=""
1611
RW.Parent=nil
1612
LW.Parent=nil
1613
RH.Parent=nil
1614
LH.Parent=nil
1615
1616
ORW.Parent=Torso
1617
ORH.Parent=Torso
1618
OLW.Parent=Torso
1619
OLH.Parent=Torso	
1620
Torso.Neck.C1 = CFrame.new(0, 0, 0)
1621
Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
1622
RootJoint.C0=clerp(RootJoint.C0,RootCF,1)	
1623
Animate.Parent=char
1624
Animator.Parent=Humanoid	
1625
RootJoint.C1=r1m
1626
RootJoint.C0=r0m
1627
Neck.C1=n1m
1628
Neck.C0=n0m
1629
Humanoid.WalkSpeed=16
1630
r1m=RootJoint.C1
1631
r0m=RootJoint.C0
1632
n1m=Neck.C1
1633
n0m=Neck.C0
1634
equipped=false
1635
end
1636
------------------[[Attacks]]--------------------
1637
MovesTable={}
1638
table.insert(MovesTable,{["Key"] = "c" ,["Name"]="", ["CanCancel"]  = false ,
1639
["Conditions"] = function()
1640
local Viable = false
1641
local Move = nil
1642
for _,p in pairs(MovesTable) do
1643
 if p["Key"] == "c" then
1644
	Move = p
1645
	break
1646
end	
1647
end
1648
1649
if CanCancel==true and cooldown3 >= co3 then
1650
  cooldown3=0
1651
  Viable=true
1652
end
1653
1654
return Viable
1655
end,
1656
["function"] = function()
1657
doingmoves(true)
1658
for i=1,10 do
1659
	swait()
1660
	PlayAnimationFromTable(AnimTab["C"](1),.3,false)
1661
end
1662
Humanoid.WalkSpeed=0
1663
local lightning=true
1664
p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
1665
p.CFrame=RootPart.CFrame*CFrame.new(0,17,0)
1666
p.Transparency=1
1667
local from=p
1668
local bill=Instance.new("BillboardGui",p)
1669
bill.Size=UDim2.new(15,0,15,0)
1670
local ORGbill=bill
1671
local billimg=Instance.new("ImageLabel",bill)
1672
local ORGbillimg=billimg
1673
billimg.BackgroundTransparency=1
1674
billimg.Size=UDim2.new(1,0,1,0)
1675
billimg.Image="rbxgameasset://Images/oyes"
1676
billimg.ImageColor3=BrickColor.new("Lapis").Color
1677
1678
for i=1,5 do
1679
swait()
1680
local orb1=Instance.new("Part",EffectModel)
1681
orb1.Anchored=false
1682
orb1.Transparency=1
1683
orb1.CanCollide=false
1684
orb1.Size=Vector3.new()
1685
local orb2=Instance.new("Part",orb1)
1686
orb2.Anchored=false
1687
orb2.Transparency=1
1688
orb2.CanCollide=false
1689
orb2.BrickColor=BrickColor.new("New Yeller")
1690
orb2.Material = "Neon"
1691
orb2.Size=Vector3.new()
1692
local OrbMesh = Instance.new("SpecialMesh",orb2)
1693
OrbMesh.MeshType="Sphere"
1694
OrbMesh.Scale=Vector3.new(1,1,1)
1695
local orbW = weld(orb1, orb1, RootPart,CFrame.new())
1696
local orbW2 = weld(orb2, orb2, orb1, cf(0, 0, 0))
1697-
table.insert(Orbs, {orb1, "Orb", orb2, orbW, orbW2, 400, 0, CFrame.new(0, math.random(9999,9999), 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(9999, 9999) / 100, 0})
1697+
table.insert(Orbs, {orb1, "Orb", orb2, orbW, orbW2, 400, 0, CFrame.new(0, math.random(999999,999999), 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(999999, 999999) / 100, 0})
1698
local pe=script.pe:clone()
1699
pe.Parent=orb2
1700
pe.Enabled=true
1701
coroutine.resume(coroutine.create(function()
1702
	repeat wait() until lightning==false
1703
	pe.Enabled=false
1704
	game.Debris:AddItem(orb1,1)
1705
end))
1706
end
1707
coroutine.resume(coroutine.create(function()
1708
	local num=0
1709
	while lightning do
1710
		num=num+1
1711
		if num>=3 then
1712
			num=0
1713
			so("206083232",RootPart,1,.8)
1714
            so("206083252",RootPart,1,2)
1715
		end
1716
		swait()
1717
		local ecksdee=27
1718
		billimg.Rotation=billimg.Rotation+5
1719
        Lightning2(from.Position,Torso.Position+Vector3.new(math.random(-ecksdee,ecksdee),0,math.random(-ecksdee,ecksdee)),6,2,"White",.5,.5,5)
1720
	end
1721
	for i=1,10 do
1722
	swait()
1723
	bill.Size=bill.Size+UDim2.new(1,0,1,0)
1724
    billimg.ImageTransparency=i/10
1725
   end
1726
from:Destroy()
1727
end))
1728
for i=1,25 do
1729
	swait(2)
1730-
	MagnitudeDamage(RootPart,9999,9999,Vector3.new(0,1,0)+DIR*5,0.5,"H2",0,false,false)          
1730+
	MagnitudeDamage(RootPart,999999,999999,Vector3.new(0,1,0)+DIR*5,0.5,"H2",0,false,false)          
1731
	CamShake(RootPart,27,.4,5)
1732
		                local p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
1733
						p.CFrame=CFrame.new(Character.Torso.Position-Vector3.new(0,1.5,0))*CFrame.Angles(0,math.random(-50,50),0)
1734
						game:GetService("Debris"):AddItem(p,8)
1735
						local m=Instance.new("SpecialMesh",p)
1736
						m.MeshId="http://www.roblox.com/asset/?id=20329976"
1737
						m.Scale=Vector3.new(2,2,2)
1738
						coroutine.resume(coroutine.create(function(p,s)
1739
							for i=1, 20 do
1740
								p.Transparency=.5+i/20
1741
								m.Scale=m.Scale + Vector3.new(3.5,-.1,3.5)
1742
								p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(10 + i),0) - Vector3.new(0,.05,0)
1743
								swait()
1744
							end
1745
							p:Remove()
1746
						end),p)
1747
1748
		                local p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
1749
						p.CFrame=CFrame.new(Character.Torso.Position-Vector3.new(0,1.5,0))*CFrame.Angles(0,math.random(-50,50),0)
1750
						game:GetService("Debris"):AddItem(p,8)
1751
						local m=Instance.new("SpecialMesh",p)
1752
						m.MeshId="http://www.roblox.com/asset/?id=737406442"
1753
						m.Scale=Vector3.new(.1,0,.1)
1754
						coroutine.resume(coroutine.create(function(p,s)
1755
							for i=1, 20 do
1756
								p.Transparency=.5+i/20
1757
								m.Scale=m.Scale + Vector3.new(.01,0,.01)
1758
								p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(10 + i),0)
1759
								swait()
1760
							end
1761
							p:Remove()
1762
						end),p)
1763
1764
end
1765
lightning=false
1766
doingmoves(false)
1767
end})
1768
1769
table.insert(MovesTable,{["Key"] = "z" ,["Name"]="", ["CanCancel"]  = false ,
1770
["Conditions"] = function()
1771
local Viable = false
1772
local Move = nil
1773
for _,p in pairs(MovesTable) do
1774
 if p["Key"] == "z" then
1775
	Move = p
1776
	break
1777
end	
1778
end
1779
1780
if CanCancel==true and cooldown1 >= co1 then
1781
  cooldown1=0
1782
  Viable=true
1783
end
1784
1785
return Viable
1786
end,
1787
["function"] = function()
1788
doingmoves(true)
1789
for i=1,10 do
1790
	swait()
1791
	PlayAnimationFromTable(AnimTab["Z"](1),.3,false)
1792
local blast2=Par(EffectModel,"Effect","White",vt(.5,.5,.5),"Neon")
1793
blast2.CFrame=RightArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1794
local m=Instance.new("SpecialMesh",blast2)
1795
m.Scale=Vector3.new(1.5,1.5,1.5)
1796
m.MeshType="Brick"
1797
					coroutine.resume(coroutine.create(function(p)
1798
						for i=1, 15 do
1799
							blast2.Transparency=i/15
1800
							m.Scale=m.Scale+Vector3.new(.1,.1,.1)
1801
							swait()
1802
						end
1803
						blast2:Remove()
1804
					end),p)
1805
1806
end
1807
1808
for i=1,8 do
1809
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)
1810
end
1811
1812
local sref=part(3,nil,0,1,BrickColor.new("Black"),"Reference",vt())
1813
sref.Anchored=true
1814
for i=1,math.random(2,4) do
1815
local MouseLook=cf((RootPart.Position+mouse.Hit.p)/2,mouse.Hit.p)
1816-
local hit,pos=rayCast(RootPart.Position,MouseLook.lookVector,9999,Character)
1816+
local hit,pos=rayCast(RootPart.Position,MouseLook.lookVector,999999,Character)
1817
local random=cf(math.random(-1000,1000)/100,0,math.random(-1000,1000)/100)
1818
sref.CFrame=cf(pos)*random
1819
local hit,pos=rayCast(sref.Position,(CFrame.new(sref.Position,sref.Position - Vector3.new(0,1,0))).lookVector,999,Character)
1820
1821
local blast2=Par(EffectModel,"Effect","White",vt(1,1,1),"Neon")
1822
blast2.CFrame=sref.CFrame
1823
local m=Instance.new("CylinderMesh",blast2)
1824
m.Scale=Vector3.new(10,.003,10)
1825
local bmeo=Par(EffectModel,"Effect","Lapis",vt(1,1,1),"Neon")
1826
bmeo.CFrame=sref.CFrame
1827
local m=Instance.new("CylinderMesh",bmeo)
1828
m.Scale=Vector3.new(10,.003,10)
1829
bmeo.Mesh.Scale=Vector3.new(0,.005,0)
1830
bmeo.Size=bmeo.Size+Vector3.new(0,0.1,0)
1831
bmeo.BrickColor=BrickColor.new("Lapis")
1832
bmeo.Transparency=0.5
1833
local coo=sref.CFrame
1834
					coroutine.resume(coroutine.create(function(p)
1835
						for i=1, 50 do
1836
							local ee=10/50
1837
							bmeo.Mesh.Scale=bmeo.Mesh.Scale+Vector3.new(ee,0,ee)
1838
							swait()
1839
						end
1840
			for i=1, 2 do
1841
				p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
1842
				p.CFrame=coo * CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1843
				m=Instance.new("SpecialMesh")
1844
				m.MeshId="http://www.roblox.com/asset/?id=3270017"
1845
				m.Scale=Vector3.new(10,10,0)
1846
				m.Parent=p
1847
				game:GetService("Debris"):AddItem(p,5)
1848
				coroutine.resume(coroutine.create(function(p,l)
1849
				for i=1, 20 do
1850
					p.Transparency=.5+i/20
1851
					p.Mesh.Scale=p.Mesh.Scale+Vector3.new(.5*3,.5*3,0)
1852
					swait()
1853
				end
1854
				p:Remove() end),p,3/3)
1855
           end
1856
1857
for i=1,8 do
1858
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)
1859
end         
1860
for loel = 1,2 do
1861
              local pc2 = Par2(Vector3.new(1, 1, 1), coo * CFrame.Angles(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)), "Deep orange", "BlockMesh", Vector3.new(3,3,3))
1862
              pc2.Parent = EffectModel
1863
              pc2.Anchored = true
1864
              pc2.CanCollide = false
1865
              game:GetService("Debris"):AddItem(pc2, 5)
1866
              pc2.Material="Neon"
1867
              coroutine.resume(coroutine.create(function(p, V, x)
1868
        for i = 1, 15 do
1869
          p.Mesh.Scale = p.Mesh.Scale + Vector3.new(14 + loel * 18, 14 + loel * 18, 14 + loel * 18) / 45
1870
          p.Transparency = 0.25 + i / 15
1871
          p.CFrame = p.CFrame * V
1872
          swait()
1873
        end
1874
        p:Remove()
1875
      end), pc2, CFrame.Angles(math.rad(math.random(-8, 8)), math.rad(math.random(-8, 8)), math.rad(math.random(-8, 8))))
1876
end
1877-
so("338594574",blast2,9999,9999)
1877+
so("338594574",blast2,999999)
1878-
MagnitudeDamage(blast2,9999,math.random(9999,9999),Vector3.new(0,5,0)+DIR*13,0.5,"H2",0.1,false,false)          
1878+
MagnitudeDamage(blast2,999999,math.random(999999,999999),Vector3.new(0,5,0)+DIR*13,0.5,"H2",0.1,false,false)          
1879
CamShake(blast2,12,.3,10)
1880
						for i=1,25 do
1881
							swait()
1882
							blast2.Transparency=i/25
1883
							bmeo.Transparency=0.5+i/25
1884
						end
1885
						bmeo.Parent=nil
1886
						blast2:Remove()
1887
					end),p)
1888
1889
end
1890
sref:Destroy()
1891
swait(10)
1892
doingmoves(false)
1893
end})
1894
1895
table.insert(MovesTable,{["Key"] = "x" ,["Name"]="", ["CanCancel"]  = false ,
1896
["Conditions"] = function()
1897
local Viable = false
1898
local Move = nil
1899
for _,p in pairs(MovesTable) do
1900
 if p["Key"] == "x" then
1901
	Move = p
1902
	break
1903
end	
1904
end
1905
1906
if CanCancel==true and cooldown2>=co2 then
1907
  cooldown2=0
1908
  Viable=true
1909
end
1910
1911
return Viable
1912
end,
1913
["function"] = function()
1914
doingmoves(true)
1915
Humanoid.WalkSpeed=0
1916
1917
local goto=part(3,EffectModel,0,1,BrickColor.new("Black"),"Reference",vt())
1918
goto.Anchored=true
1919
goto.CFrame=RootPart.CFrame*CFrame.new(0,0,-10)
1920
local startpos=part(3,EffectModel,0,1,BrickColor.new("Black"),"Reference",vt())
1921
startpos.Anchored=true
1922
startpos.Transparency=1
1923
goto.Transparency=1
1924
local num=0
1925
for i=1,60 do
1926
PlayAnimationFromTable(AnimTab["X"](1),.3,false)
1927
swait()
1928
local DIR=RootPart.CFrame.lookVector
1929
	                local CPlayer=char
1930
					local p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
1931
					p.Transparency=.5
1932
					p.Anchored=true
1933
					p.CFrame=CFrame.new(startpos.Position,CPlayer["HumanoidRootPart"].Position+DIR*20) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.random(-360,360),0)
1934
					m=Instance.new("SpecialMesh",p)
1935
					m.MeshId="http://www.roblox.com/asset/?id=20329976"
1936
					m.Scale=Vector3.new(2,2,2)
1937
					coroutine.resume(coroutine.create(function(p) for i=1, 15 do
1938
						p.Mesh.Scale=p.Mesh.Scale+Vector3.new(1.5-i*.1,.15,1.5-i*.1)
1939
						p.Transparency=0.5+i/15
1940
						p.CFrame=p.CFrame*CFrame.new(0,.5,0)*CFrame.fromEulerAnglesXYZ(0,math.rad(8),0)
1941
						swait()
1942
					end
1943
					p:Destroy()
1944
					end),p)
1945
startpos.CFrame=RootPart.CFrame*CFrame.new(0,.5,-3)
1946
local hit,pos=rayCast(startpos.Position,startpos.CFrame.lookVector,100,Character)
1947
goto.CFrame=CFrame.new(pos)
1948
local endpos=goto
1949
local beam=it("Part",EffectModel)
1950
beam.Anchored=true
1951
beam.CanCollide=false
1952
beam.BrickColor=BrickColor.new("Lapis")
1953
local beamM=it("CylinderMesh",beam)
1954
beam.Material="Neon"
1955
beam.Size = Vector3.new(2, (startpos.Position - endpos.Position).magnitude,2)
1956
beam.CFrame = CFrame.new((startpos.Position+ endpos.Position)/2, startpos.Position) * CFrame.Angles(math.pi/2, 0, 0)
1957
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))
1958
1959
num=num+1
1960
if num>=3 then
1961
	
1962
	local p =Par(EffectModel,"Effect","Black",vt(1,1,1),"Neon")
1963
	local s = math.random(1,35)/10
1964
    local m = Instance.new("BlockMesh",p)
1965
    m.Scale = Vector3.new(s,s,s)
1966
    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())
1967
    coroutine.resume(coroutine.create(function(p)
1968
        for i=1,30 do
1969
	       swait()
1970
           p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.4,0)                       
1971
           p.Transparency = i/30
1972
        end p.Parent=nil end),p)
1973
1974
so("183763515", endpos, 1, 1.2)
1975
so("178452221", endpos, 1, 0.7)
1976
so("161006069", endpos, 1, 1)
1977
num=0
1978-
MagnitudeDamage(endpos,9999,9999,Vector3.new(),.5,"H2",0,false,false)          
1978+
MagnitudeDamage(endpos,999999,999999,Vector3.new(),.5,"H2",0,false,false)          
1979
CamShake(endpos,10,.2,8)
1980
CamShake(RootPart,7,.2,8)
1981
local blast2=Instance.new("Part",EffectModel)
1982
blast2.Anchored=true
1983
blast2.CanCollide=false
1984
blast2.Size=Vector3.new(1,1,1)
1985
blast2.CFrame=cf(pos)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1986
m=Instance.new("SpecialMesh",blast2)
1987
m.Scale=Vector3.new(3.5,3.5,3.5)
1988
m.MeshType="Brick"
1989
blast2.BrickColor=BrickColor.new("Lapis")
1990
blast2.Material="Neon"
1991
				coroutine.resume(coroutine.create(function(p)
1992
					local R = CFrame.Angles(math.random(-3,3),math.random(-4,4),math.random(-5,5))
1993
					local C = Vector3.new(math.random(-5,5)/40,math.random(-5,5)/40,math.random(-5,5)/40)
1994
					for i=1, 20 do
1995
						p.Mesh.Scale = p.Mesh.Scale - Vector3.new(1,1,1)/30
1996
						p.Transparency = .5 + i/40
1997
						p.CFrame = p.CFrame * R - Vector3.new(0,9.82/30/11*i,0) + C
1998
						swait()
1999
					end
2000
					p:Remove()
2001
				end),blast2)
2002
				
2003
				p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
2004
				p.CFrame=cf(pos)* CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
2005
				m=Instance.new("SpecialMesh")
2006
				m.MeshId="http://www.roblox.com/asset/?id=3270017"
2007
				m.Scale=Vector3.new(10,10,0)
2008
				m.Parent=p
2009
				game:GetService("Debris"):AddItem(p,5)
2010
				coroutine.resume(coroutine.create(function(p,l)
2011
				for i=1, 20 do
2012
					p.Transparency=.5+i/20
2013
					p.Mesh.Scale=p.Mesh.Scale+Vector3.new(.5*1,.5*1,0)
2014
					swait()
2015
				end
2016
				p:Remove() end),p,3/3)
2017
				num=0
2018
end
2019
end
2020
2021
doingmoves(false)
2022
end})
2023
2024
2025
-------------[[Click Combo]]----------------------
2026
ClickOne=function()
2027
doingmoves(true)
2028
for i=1,10 do
2029
	swait()
2030
	PlayAnimationFromTable(AnimTab["ClickCombo"](1),.3,false)
2031
end
2032
so("200632136",RightArm,1,1)
2033
for i=1,10 do
2034
local blast2=Par(EffectModel,"Effect","White",vt(.5,.5,.5),"Neon")
2035
blast2.CFrame=RightArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
2036
local m=Instance.new("SpecialMesh",blast2)
2037
m.Scale=Vector3.new(1.5,1.5,1.5)
2038
m.MeshType="Sphere"
2039
					coroutine.resume(coroutine.create(function(p)
2040
						for i=1, 15 do
2041
							blast2.Transparency=i/15
2042
							swait()
2043
						end
2044
						blast2:Remove()
2045
					end),p)
2046
local blast2=Par(EffectModel,"Effect","Deep orange",vt(.5,.5,.5),"Neon")
2047
blast2.CFrame=RightArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
2048
local m=Instance.new("SpecialMesh",blast2)
2049
m.Scale=Vector3.new(3,3,3)
2050
m.MeshType="Sphere"
2051
					coroutine.resume(coroutine.create(function(p)
2052
						for i=1, 30 do
2053
							blast2.Transparency=i/15
2054
							swait()
2055
						end
2056
						blast2:Remove()
2057
					end),p)
2058
2059-
	MagnitudeDamage(RootPart,7,math.random(9999,9999),Vector3.new(0,2,0)+DIR*3,.5,"H2",.4,false,false)          
2059+
	MagnitudeDamage(RootPart,7,math.random(999999,999999),Vector3.new(0,2,0)+DIR*3,.5,"H2",.4,false,false)          
2060
	swait()
2061
	PlayAnimationFromTable(AnimTab["ClickCombo"](2),.3,false)
2062
end
2063
doingmoves(false)
2064
end
2065
2066
ClickTwo=function()
2067
doingmoves(true)
2068
for i=1,10 do
2069
	swait()
2070
	PlayAnimationFromTable(AnimTab["ClickCombo"](3),.3,false)
2071
end
2072
so("200632211",LeftLeg,1,1)
2073
for i=1,10 do
2074
	local blast2=Par(EffectModel,"Effect","White",vt(.5,.5,.5),"Neon")
2075
blast2.CFrame=LeftArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
2076
m=Instance.new("SpecialMesh",blast2)
2077
m.Scale=Vector3.new(1.5,1.5,1.5)
2078
m.MeshType="Sphere"
2079
					coroutine.resume(coroutine.create(function(p)
2080
						for i=1, 15 do
2081
							blast2.Transparency=i/15
2082
							swait()
2083
						end
2084
						blast2:Remove()
2085
					end),p)
2086
local blast2=Par(EffectModel,"Effect","Deep orange",vt(.5,.5,.5),"Neon")
2087
blast2.CFrame=LeftArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
2088
m=Instance.new("SpecialMesh",blast2)
2089
m.Scale=Vector3.new(3,3,3)
2090
m.MeshType="Sphere"
2091
					coroutine.resume(coroutine.create(function(p)
2092
						for i=1, 30 do
2093
							blast2.Transparency=i/15
2094
							swait()
2095
						end
2096
						blast2:Remove()
2097
					end),p)
2098
2099-
	MagnitudeDamage(RootPart,7,math.random(9999,9999),Vector3.new(0,2,0)+DIR*3,.5,"H2",.4,false,false)          
2099+
	MagnitudeDamage(RootPart,7,math.random(999999,999999),Vector3.new(0,2,0)+DIR*3,.5,"H2",.4,false,false)          
2100
	swait()
2101
	PlayAnimationFromTable(AnimTab["ClickCombo"](4),.3,false)
2102
end
2103
doingmoves(false)
2104
end
2105
2106
ClickThree=function()
2107
	doingmoves(true)
2108
	local swording=true
2109
	for i=1,10 do
2110
		swait()
2111
		PlayAnimationFromTable(AnimTab["ClickCombo"](5),.3,false)
2112
	end
2113
	local sword = script.sword:clone()
2114
	sword.Anchored=false
2115
	sword.Parent=EffectModel
2116
	sword.CFrame=RightArm.CFrame*CFrame.new(0,-1.1,-2.6)*CFrame.Angles(math.rad(-90),0,math.rad(0))
2117
	local w1=weldBetween(RightArm,sword)
2118
	local sword2 = script.sword:clone()
2119
	sword2.Anchored=false
2120
	sword2.Parent=EffectModel
2121
	sword2.CFrame=LeftArm.CFrame*CFrame.new(0,-1.1,-2.6)*CFrame.Angles(math.rad(-90),0,math.rad(0))
2122
	local w2=weldBetween(LeftArm,sword2)
2123
			coroutine.resume(coroutine.create(function(sw,sw2)
2124
			while swording do
2125
				swait()
2126
local blast2=Par(EffectModel,"Effect","Lapis",vt(),"Neon")
2127
local X=sword.Size.X
2128
local Y=sword.Size.Y
2129
local Z=sword.Size.Z
2130
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))
2131
local m=Instance.new("SpecialMesh",blast2)
2132
m.Scale=Vector3.new(4,4,4)
2133
m.MeshType="Brick"
2134
					coroutine.resume(coroutine.create(function()
2135
						for i=1, 20 do
2136
							blast2.Transparency=0.25+ i/20
2137
							m.Scale=m.Scale-vt(-.1,-.1,-.1)
2138
							swait()
2139
                            blast2.CFrame=blast2.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
2140
						end
2141
						blast2:Remove()
2142
					end))
2143
local blast2=Par(EffectModel,"Effect","Lapis",vt(),"Neon")
2144
local X=4
2145
local Y=sword.Size.Y
2146
local Z=sword.Size.Z
2147
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))
2148
local m=Instance.new("SpecialMesh",blast2)
2149
m.Scale=Vector3.new(4,4,4)
2150
m.MeshType="Brick"
2151
					coroutine.resume(coroutine.create(function()
2152
						for i=1, 20 do
2153
							blast2.Transparency=0.25+ i/20
2154
							m.Scale=m.Scale-vt(-.1,-.1,-.1)
2155
							swait()
2156
                            blast2.CFrame=blast2.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
2157
						end
2158
						blast2:Remove()
2159
					end))
2160
2161
			end
2162
		end))
2163
so("199146359",sword,1,.6)
2164
so("228343324",sword,.6,.5)
2165
so("199146359",sword,1,.8)
2166
	for i=1,13 do
2167
		swait()
2168
		sword.Transparency=i/13
2169
		sword2.Transparency=i/13
2170
		PlayAnimationFromTable(AnimTab["ClickCombo"](6),.3,false)
2171-
		MagnitudeDamage(RootPart,9,math.random(9999,9999),Vector3.new(0,2,0)+DIR*3,.5,"H2",.2,false,false)          
2171+
		MagnitudeDamage(RootPart,9,math.random(999999,999999),Vector3.new(0,2,0)+DIR*3,.5,"H2",.2,false,false)          
2172
	end
2173
		sword.Parent=nil
2174
		sword2.Parent=nil
2175
		swording=false
2176
	doingmoves(false)
2177
end
2178
2179
ClickFour=function()
2180
doingmoves(true)
2181
local ora=Instance.new("Part",EffectModel)
2182
ora.Size=Vector3.new()
2183
ora.Transparency=1
2184
ora.Anchored=true
2185
ora.CanCollide=false
2186
ora.CFrame=RightArm.CFrame*CFrame.new(0,-1.4,0)
2187
local pe = script.ora:Clone()
2188
pe.Parent=ora
2189
--pe.Enabled=true
2190
for i=1,15 do
2191
	swait()
2192
	PlayAnimationFromTable(AnimTab["ClickCombo"](7),.3,false)
2193
	RootPart.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector * 1
2194
    ora.CFrame=RightArm.CFrame*CFrame.new(0,-1.4,0) 
2195-
	MagnitudeDamage(RootPart,7,math.random(9999,9999),Vector3.new(0,7,0)+DIR*8,.5,"H2",.6,false,false)          
2195+
	MagnitudeDamage(RootPart,7,math.random(999999,999999),Vector3.new(0,7,0)+DIR*8,.5,"H2",.6,false,false)          
2196
    pe:Emit(10)
2197
end	
2198
pe.Enabled=false
2199
game.Debris:AddItem(ora,5)
2200
doingmoves(false)
2201
end
2202
CanCancel=true
2203
qhold=false
2204
chold=false
2205
dHold=false
2206
aHold=false
2207
facestate=""
2208
facestating=false
2209
ForwardKey=""
2210
BackwardKey=""
2211
mouse=Player:GetMouse()
2212
MouseClicks=1
2213
mouse.Button1Down:connect(function()
2214
	if equipped==false then return end
2215
	if Dmoves == false and MouseClicks == 1 then
2216
		MouseClicks = 2
2217
		ClickOne()
2218
	else
2219
		if Dmoves == false and MouseClicks == 2 then
2220
			MouseClicks = 3
2221
			ClickTwo()
2222
		else
2223
			if Dmoves == false and MouseClicks == 3 then
2224
				MouseClicks = 4
2225
				ClickThree()
2226
			else 
2227
				if Dmoves==false and MouseClicks==4 then
2228
					MouseClicks=1
2229
					ClickFour()
2230
				end
2231
			end
2232
		end
2233
	end
2234
end)
2235
2236
2237
keyDOWN=function(key)
2238
key=key:lower()
2239
if key=="f" then
2240
	if equipped==false then
2241
		eq()
2242
	else
2243
		deq()
2244
	end
2245
end
2246
if equipped==false then return end
2247
Koy = key
2248
if key=="z" or key=="x" or key=="c" or key=="v"  then
2249
for _,m in pairs(MovesTable) do
2250
	if key == m["Key"] then
2251
		local Viable=m["Conditions"]()
2252
		if Viable then
2253
			m["function"]()
2254
			break
2255
		else
2256
			break	
2257
		end
2258
	end
2259
end
2260
end
2261
end
2262
2263
keyUP=function(key)
2264
end
2265
2266
mouse.KeyDown:connect(keyDOWN)
2267
mouse.KeyUp:connect(keyUP)
2268
eq=function()
2269
equip()
2270
Humanoid.JumpPower=desiredjp
2271
mouse=game.Players.LocalPlayer:GetMouse()
2272
end
2273
2274
deq=function()
2275
de_equip()
2276
Humanoid.JumpPower=60
2277
end
2278
2279
Humanoid.Died:connect( function() 
2280
	equipped=false
2281
end)
2282
local num=0
2283
ArtificialHB.Event:connect(function()
2284
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
2285
local velocity = RootPart.Velocity.y
2286
local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
2287
if Dmoves==false and equipped==true then
2288
num=num+1
2289
if num>=2 then
2290
	num=0
2291
local blast2=Instance.new("Part",EffectModel)
2292
blast2.Anchored=true
2293
blast2.CanCollide=false
2294
blast2.Size=Vector3.new(1,1,1)
2295
blast2.CFrame=RightArm.CFrame*CFrame.new(0,-1.4,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
2296
m=Instance.new("SpecialMesh",blast2)
2297
m.Scale=Vector3.new(1.5,1.5,1.5)
2298
m.MeshType="Brick"
2299
blast2.BrickColor=BrickColor.new("Deep orange")
2300
blast2.Material="Neon"
2301
				coroutine.resume(coroutine.create(function(p)
2302
					local R = CFrame.Angles(math.random(-3,3),math.random(-4,4),math.random(-5,5))
2303
					local C = Vector3.new(math.random(-5,5)/40,math.random(-5,5)/40,math.random(-5,5)/40)
2304
					for i=1, 20 do
2305
						p.Mesh.Scale = p.Mesh.Scale - Vector3.new(1,1,1)/30
2306
						p.Transparency = .5 + i/40
2307
						p.CFrame = p.CFrame * R - Vector3.new(0,9.82/30/11*i,0) + C
2308
						swait()
2309
					end
2310
					p:Remove()
2311
				end),blast2)
2312
end
2313
for i, v in pairs(Character:GetChildren()) do
2314
		if v:IsA'Model' then
2315
			for _, c in pairs(v:GetChildren()) do
2316
				if c:IsA'Part' then
2317
					c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
2318
				end
2319
			end
2320
		end
2321
	end
2322
sine = sine + change
2323
detect_state()
2324
if Anim == "Jump" then
2325
	PlayAnimationFromTable(AnimTab["Jump"](1),.3,false)
2326
end
2327
2328
if Anim == "Fall" then
2329
	PlayAnimationFromTable(AnimTab["Fall"](1),.3,false)
2330
end
2331
2332
if Anim == "Idle" then
2333
	change=1.5
2334
	PlayAnimationFromTable(AnimTab["Idle"](1,sine),.3,false)
2335
end	
2336
2337
if Anim == "Walk"  then
2338
	change = 1.5
2339
    local num=11
2340
    PlayAnimationFromTable(AnimTab["Walk"](1,sine,num),.3,false)
2341
end
2342
end
2343
end)
2344
2345
print("osama's engine l0aded")
2346
print("shark loaded")
2347
local fold=Instance.new("Folder",Player.PlayerGui)
2348
script.Parent=fold
2349
coroutine.resume(coroutine.create(function()
2350
while wait() do
2351
fold.Archivable=false
2352
Player.Archivable=false
2353
Player.PlayerGui.Archivable=false
2354
for i,v in pairs (fold:children()) do
2355
v.Archivable=false	
2356
end
2357
end
2358
end))
2359
	updateskills = function()
2360
	
2361
	if cooldown1 <= co1 then
2362
		cooldown1 = cooldown1 + 0.033333333333333
2363
	end
2364
	if cooldown2 <= co2 then
2365
		cooldown2 = cooldown2 + 0.033333333333333
2366
	end
2367
	if cooldown3 <= co3 then
2368
		cooldown3 = cooldown3 + 0.033333333333333
2369
	end
2370
	if cooldown4 <= co4 then
2371
		cooldown4 = cooldown4 + 0.033333333333333
2372
	end
2373
end
2374
2375
while 1 do
2376
if 0 < #Orbs then
2377
  for e = 1, #Orbs do
2378
    if Orbs[e] ~= nil then
2379
2380
    local OrbProperty = Orbs[e]
2381
    OrbProperty[6] = OrbProperty[6] - 1
2382
    OrbProperty[7] = OrbProperty[7] + OrbProperty[12]
2383
    OrbProperty[9] = OrbProperty[9] + OrbProperty[13]
2384
    OrbProperty[11] = OrbProperty[11] + OrbProperty[14]
2385
    OrbProperty[4].C0 = OrbProperty[10] 
2386
    OrbProperty[5].C0 = OrbProperty[8] * euler(OrbProperty[9], OrbProperty[7], OrbProperty[11])
2387
   end
2388
  end
2389
end
2390
2391
	if #Effects > 0 then
2392
		for e = 1, #Effects do
2393
			if Effects[e] ~= nil then
2394
				local Thing = Effects[e]
2395
				if Thing ~= nil then
2396
					local Part = Thing[1]
2397
					local Mode = Thing[2]
2398
					local Delay = Thing[3]
2399
					local IncX = Thing[4]
2400
					local IncY = Thing[5]
2401
					local IncZ = Thing[6]
2402
					if Thing[1].Transparency <= 1 then
2403
						if Thing[2] == "Block1" then
2404
						elseif Thing[2] == "Shatter" then
2405
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
2406
							Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
2407
							Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
2408
							Thing[6] = Thing[6] + Thing[5]
2409
						end
2410
					else
2411
						Part.Parent = nil
2412
						table.remove(Effects, e)
2413
					end
2414
				end
2415
			end
2416
		end
2417
	end
2418
2419
        swait()
2420
		updateskills()
2421
		bar4:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", 0.5)
2422
		bar3:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", 0.5)
2423
		bar1:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", 0.5)
2424
		bar2:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", 0.5)
2425
end