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