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