View difference between Paste ID: XFuAwcGt and xj9kHQf4
SHOW: | | - or go back to the newest paste.
1-
Player=game:GetService("Players").LocalPlayer
1+
-- This script has been converted to FE by iPxter
2
3
4
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6
do
7
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8
	script.Parent = Player.Character
9
10
	--RemoteEvent for communicating
11
	local Event = Instance.new("RemoteEvent")
12
	Event.Name = "UserInput_Event"
13
14
	--Fake event to make stuff like Mouse.KeyDown work
15
	local function fakeEvent()
16
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
		t.connect = t.Connect
18
		return t
19
	end
20
21
	--Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
	end}
27
	--Merged 2 functions into one by checking amount of arguments
28
	CAS.UnbindAction = CAS.BindAction
29
30
	--This function will trigger the events that have been :Connect()'ed
31
	local function te(self,ev,...)
32
		local t = m[ev]
33
		if t and t._fakeEvent and t.Function then
34
			t.Function(...)
35
		end
36
	end
37
	m.TrigEvent = te
38
	UIS.TrigEvent = te
39
40
	Event.OnServerEvent:Connect(function(plr,io)
41
	    if plr~=Player then return end
42
		if io.isMouse then
43
			m.Target = io.Target
44
			m.Hit = io.Hit
45
		else
46
			local b = io.UserInputState == Enum.UserInputState.Begin
47
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
			end
50
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").LocalPlayer
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local UIS = game:GetService("UserInputService")
66
	local input = function(io,a)
67
		if a then return end
68
		--Since InputObject is a client-side instance, we create and pass table instead
69
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
	end
71
	UIS.InputBegan:Connect(input)
72
	UIS.InputEnded:Connect(input)
73
74
	local Mouse = Player:GetMouse()
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/30) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
Player=owner
87
Character=Player.Character 
88
PlayerGui=Player.PlayerGui
89-
mouse=Player:GetMouse()
89+
90
Torso=Character.Torso 
91
Head=Character.Head 
92
Humanoid=Character.Humanoid
93
LeftArm=Character["Left Arm"] 
94
LeftLeg=Character["Left Leg"] 
95
rarm=Character["Right Arm"] 
96
RightLeg=Character["Right Leg"] 
97
cam=game.Workspace.CurrentCamera
98
LS=Torso["Left Shoulder"] 
99
LH=Torso["Left Hip"] 
100
RS=Torso["Right Shoulder"] 
101
RH=Torso["Right Hip"] 
102
Face = Head.face
103
Neck=Torso.Neck
104
it=Instance.new
105
attacktype=1
106
vt=Vector3.new
107
cf=CFrame.new
108
euler=CFrame.fromEulerAnglesXYZ
109
angles=CFrame.Angles
110
cloaked=false
111
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
112
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
113
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
114
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
115
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
116
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
117
RootPart=Character.HumanoidRootPart
118
RootJoint=RootPart.RootJoint
119
RootCF=euler(-1.57,0,3.14)
120
attack = false 
121
bounce=false
122
cooldown=false
123
deeznuts=false
124
attackdebounce = false 
125
deb=false
126
equipped=true
127
hand=false
128
MMouse=nil
129
combo=0
130
mana=0
131
trispeed=.5
132
attackmode='none'
133
local idle=0
134
local Anim="Idle"
135
local Effects={}
136
local gun=false
137
local shoot=false
138
player=nil 
139
mana=0
140
cam = workspace.CurrentCamera
141
ZTarget = nil
142
RocketTarget = nil
143
local m = Instance.new("Model",Character)
144
m.Name = "WeaponModel"
145
146
local m2 = Instance.new("Model",Character)
147
m2.Name = "MetalMan"
148
149
for i,v in pairs(Character.Head:children())do
150
    if v:IsA('Decal')then v:Destroy()end
151
end
152
153
154
Reaper = Instance.new("Model",Character)
155
Reaper.Name = "Reaper"
156
rh = Instance.new("Part")
157
rh.Name = "rh"
158
rh.Parent = Reaper
159
rh.Locked = true
160
rh.CanCollide = false
161
mesh = Instance.new("SpecialMesh")
162
rh.formFactor =  "Symmetric"
163
mesh.MeshType = "FileMesh"
164
mesh.MeshId = "http://www.roblox.com/asset/?id=22149742"
165
mesh.TextureId = "rbxassetid://188438213"
166
mesh.Scale = Vector3.new(1,1,1)
167
mesh.Parent = rh
168
local weld = Instance.new("Weld")
169
weld.Parent = rh
170
weld.Part0 = rh
171
weld.Part1 = Player.Character.Head
172
weld.C0 = CFrame.new(0, 0, -0.010)*CFrame.Angles(0, 0, 0)
173
174
175
--save shoulders 
176
RSH, LSH=nil, nil 
177
--welds 
178
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
179
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
180
LH=Torso["Left Hip"]
181
RH=Torso["Right Hip"]
182
TorsoColor=Torso.BrickColor
183
function NoOutline(Part)
184
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
185
end
186
player=Player 
187
ch=Character
188
RSH=ch.Torso["Right Shoulder"] 
189
LSH=ch.Torso["Left Shoulder"] 
190
-- 
191
RSH.Parent=nil 
192
LSH.Parent=nil 
193
-- 
194
RW.Name="Right Shoulder"
195
RW.Part0=ch.Torso 
196
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
197
RW.C1=cf(0, 0.5, 0) 
198
RW.Part1=ch["Right Arm"] 
199
RW.Parent=ch.Torso 
200
-- 
201
LW.Name="Left Shoulder"	
202
LW.Part0=ch.Torso 
203
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
204
LW.C1=cf(0, 0.5, 0) 
205
LW.Part1=ch["Left Arm"] 
206
LW.Parent=ch.Torso 
207
208
	function swait(num)
209
    if num==0 or num==nil then
210
    game:service'RunService'.Heartbeat:wait(0)
211
    else
212
    for i=0,num do
213
    game:service'RunService'.Heartbeat:wait(0)
214
    end
215
    end
216
	end
217
	
218
	function nooutline(part)
219
		part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
220
	end
221
	
222
	function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
223
		local fp=it("Part")
224
		fp.formFactor=formfactor
225
		fp.Parent=parent
226
		fp.Reflectance=reflectance
227
		fp.Transparency=transparency
228
		fp.CanCollide=false
229
		fp.Locked=true
230
		fp.BrickColor=BrickColor.new(tostring(brickcolor))
231
		fp.Name=name
232
		fp.Size=size
233
		fp.Position=Character.Torso.Position
234
		nooutline(fp)
235
		fp.Material=material
236
		fp:BreakJoints()
237
		return fp
238
	end
239
	
240
	function ppart(formfactor,parent,reflectance,transparency,brickcolor,name,size)
241
		local fp = it("Part")
242
		fp.formFactor = formfactor 
243
		fp.Parent = parent
244
		fp.Reflectance = reflectance
245
		fp.Transparency = transparency
246
		fp.CanCollide = false 
247
		fp.Locked=true
248
		fp.BrickColor = brickcolor
249
		fp.Name = name
250
		fp.Size = size
251
		fp.Position = EffectPart.Position 
252
		NoOutline(fp)
253
		fp.Material="Neon"
254
		fp:BreakJoints()
255
		return fp 
256
	end 
257
	
258
	function wweld(parent,part0,part1,c0)
259
		local weld=it("Weld") 
260
		weld.Parent=parent	
261
		weld.Part0=part0 
262
		weld.Part1=part1 
263
		weld.C0=c0
264
		return weld
265
	end
266
	
267
	function mesh(Mesh,part,meshtype,meshid,offset,scale)
268
		local mesh=it(Mesh)
269
		mesh.Parent=part
270
		if Mesh=="SpecialMesh" then
271
			mesh.MeshType=meshtype
272
			mesh.MeshId=meshid
273
		end
274
		mesh.Offset=offset
275
		mesh.Scale=scale
276
		return mesh
277
	end
278
	
279
	function decal(part,face,texture,transparency,shiny,specular,name)
280
		local d=it("Decal",part)
281
		d.Shiny=shiny
282
		d.Face=face
283
		d.Specular=specular
284
		d.Transparency=transparency
285
		d.Texture=texture
286
		d.Name=name
287
		return d
288
	end
289
	
290
	function weld(parent,part0,part1,c0,c1)
291
		local weld=it("Weld")
292
		weld.Parent=parent
293
		weld.Part0=part0
294
		weld.Part1=part1
295
		weld.C0=c0
296
		weld.C1=c1
297
		return weld
298
	end
299
	
300
so = function(id,par,vol,pit) 
301
coroutine.resume(coroutine.create(function()
302
local sou = Instance.new("Sound",par or workspace)
303
sou.Volume=vol
304
sou.Pitch=pit or 1
305
sou.SoundId=id
306
swait() 
307
sou:play() 
308
game:GetService("Debris"):AddItem(sou,6)
309
end))
310
end
311
 
312
function clerp(a,b,t) 
313
local qa = {QuaternionFromCFrame(a)}
314
local qb = {QuaternionFromCFrame(b)} 
315
local ax, ay, az = a.x, a.y, a.z 
316
local bx, by, bz = b.x, b.y, b.z
317
local _t = 1-t
318
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
319
end 
320
 
321
function QuaternionFromCFrame(cf) 
322
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
323
local trace = m00 + m11 + m22 
324
if trace > 0 then 
325
local s = math.sqrt(1 + trace) 
326
local recip = 0.5/s 
327
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
328
else 
329
local i = 0 
330
if m11 > m00 then
331
i = 1
332
end
333-
                        c.Value=game:service("Players").LocalPlayer
333+
334
i = 2 
335
end 
336
if i == 0 then 
337
local s = math.sqrt(m00-m11-m22+1) 
338
local recip = 0.5/s 
339
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
340
elseif i == 1 then 
341
local s = math.sqrt(m11-m22-m00+1) 
342
local recip = 0.5/s 
343
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
344
elseif i == 2 then 
345
local s = math.sqrt(m22-m00-m11+1) 
346
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
347
end 
348
end 
349
end
350
 
351
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
352
local xs, ys, zs = x + x, y + y, z + z 
353
local wx, wy, wz = w*xs, w*ys, w*zs 
354
local xx = x*xs 
355
local xy = x*ys 
356
local xz = x*zs 
357
local yy = y*ys 
358
local yz = y*zs 
359
local zz = z*zs 
360
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)) 
361
end
362
 
363
function QuaternionSlerp(a, b, t) 
364
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
365
local startInterp, finishInterp; 
366
if cosTheta >= 0.0001 then 
367
if (1 - cosTheta) > 0.0001 then 
368
local theta = math.acos(cosTheta) 
369
local invSinTheta = 1/math.sin(theta) 
370
startInterp = math.sin((1-t)*theta)*invSinTheta 
371
finishInterp = math.sin(t*theta)*invSinTheta  
372
else 
373
startInterp = 1-t 
374
finishInterp = t 
375
end 
376
else 
377
if (1+cosTheta) > 0.0001 then 
378
local theta = math.acos(-cosTheta) 
379
local invSinTheta = 1/math.sin(theta) 
380
startInterp = math.sin((t-1)*theta)*invSinTheta 
381
finishInterp = math.sin(t*theta)*invSinTheta 
382
else 
383
startInterp = t-1 
384
finishInterp = t 
385
end 
386
end 
387
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 
388
end
389
390
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
391
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
392
end 
393
394
Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
395
        if hit.Parent==nil then
396
                return
397
        end
398
        local h=hit.Parent:FindFirstChild("Humanoid")
399
        for _,v in pairs(hit.Parent:children()) do
400
        if v:IsA("Humanoid") then
401
        h=v
402
        end
403
        end
404
        if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
405
        h=hit.Parent.Parent:FindFirstChild("Humanoid")
406
        end
407
        if hit.Parent.className=="Hat" then
408
        hit=hit.Parent.Parent:findFirstChild("Head")
409
        end
410
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
411
        if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
412
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
413
                        return
414
                end]]
415
--                        hs(hit,1.2) 
416
                        local c=Instance.new("ObjectValue")
417
                        c.Name="creator"
418
                        c.Value=owner
419
                        c.Parent=h
420
                        game:GetService("Debris"):AddItem(c,.5)
421
                local Damage=math.random(minim,maxim)
422
--                h:TakeDamage(Damage)
423
                local  blocked=false
424
                local  block=hit.Parent:findFirstChild("Block")
425
                if block~=nil then
426
                print(block.className)
427
                if block.className=="NumberValue" then
428
                if block.Value>0 then
429
                blocked=true
430
                if decreaseblock==nil then
431
                block.Value=block.Value-1
432
                end
433
                end
434
                end
435
                if block.className=="IntValue" then
436
                if block.Value>0 then
437
                blocked=true
438
                if decreaseblock~=nil then
439
                block.Value=block.Value-1
440
                end
441
                end
442
                end
443
                end
444
                if blocked==false then
445
--                h:TakeDamage(Damage)
446
                h.Health=h.Health-Damage
447
                ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
448
                else
449
                h.Health=h.Health-(Damage/2)
450
                ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
451
                end
452
                if Type=="Knockdown" then
453
                local hum=hit.Parent.Humanoid
454
hum.PlatformStand=true
455
coroutine.resume(coroutine.create(function(HHumanoid)
456
swait(1)
457
HHumanoid.PlatformStand=false
458
end),hum)
459
                local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
460
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
461
local bodvol=Instance.new("BodyVelocity")
462
bodvol.velocity=angle*knockback
463
bodvol.P=0
464
bodvol.maxForce=Vector3.new(10e+003, 10e+003, 10e+003)
465
bodvol.Parent=hit
466
local rl=Instance.new("BodyAngularVelocity")
467
rl.P=0
468
rl.maxTorque=Vector3.new(1,1,1)*1
469
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
470
rl.Parent=hit
471
game:GetService("Debris"):AddItem(bodvol,2)
472
game:GetService("Debris"):AddItem(rl,2)
473
                elseif Type=="Normal" then
474
                local vp=Instance.new("BodyVelocity")
475
                vp.P=0
476
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
477
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
478
                if KnockbackType==1 then
479
                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/4
480
                elseif KnockbackType==2 then
481
                vp.velocity=Property.CFrame.lookVector*knockback
482
                end
483
                if knockback>0 then
484
                        vp.Parent=hit.Parent.Torso
485
                end
486
                game:GetService("Debris"):AddItem(vp,.1)
487
                elseif Type=="Up" then
488
                local bodyVelocity=Instance.new("BodyVelocity")
489
                bodyVelocity.velocity=vt(0,60,0)
490
                bodyVelocity.P=0
491
                bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
492
                bodyVelocity.Parent=hit
493
                game:GetService("Debris"):AddItem(bodyVelocity,.1)
494
                local rl=Instance.new("BodyAngularVelocity")
495
                rl.P=0
496
                rl.maxTorque=Vector3.new(1,1,1)*1
497
                rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
498
                rl.Parent=hit
499
                game:GetService("Debris"):AddItem(rl,2)
500
                elseif Type=="Snare" then
501
                local bp=Instance.new("BodyPosition")
502
                bp.P=0
503
                bp.D=0
504
                bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
505
                bp.position=hit.Parent.Torso.Position
506
                bp.Parent=hit.Parent.Torso
507
                game:GetService("Debris"):AddItem(bp,.1)
508
                elseif Type=="Target" then
509
	            local Targetting = false
510
                if Targetting==false then
511
                ZTarget=hit.Parent.Torso
512
                coroutine.resume(coroutine.create(function(Part) 
513
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
514
                swait(5)
515
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
516
                end),ZTarget)
517
                local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
518
                local  targetgui=Instance.new("BillboardGui")
519
                targetgui.Parent=ZTarget
520
                targetgui.Size=UDim2.new(10,100,10,100)
521
                local targ=Instance.new("ImageLabel")
522
                targ.Parent=targetgui
523
                targ.BackgroundTransparency=1
524
                targ.Image="rbxassetid://4834067"
525
                targ.Size=UDim2.new(1,0,1,0)
526
                cam.CameraType="Scriptable"
527
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
528
                local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
529
                workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
530
                Targetting=true
531
                RocketTarget=ZTarget
532
                for i=1,Property do
533
                --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
534
                if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
535
                swait()
536
                end
537
                --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
538
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
539
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
540
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
541
                end
542
                Targetting=false
543
                RocketTarget=nil
544
                targetgui.Parent=nil
545
                cam.CameraType="Custom"
546
                end
547
                end
548
                        local debounce=Instance.new("BoolValue")
549
                        debounce.Name="DebounceHit"
550
                        debounce.Parent=hit.Parent
551
                        debounce.Value=true
552
                        game:GetService("Debris"):AddItem(debounce,1)
553
                        c=Instance.new("ObjectValue")
554
                        c.Name="creator"
555
                        c.Value=Player
556
                        c.Parent=h
557
                        game:GetService("Debris"):AddItem(c,.5)
558
559
        end
560
end
561
562
for i,v in pairs(Character:children()) do
563
    if v:IsA("Accessory") then
564
        v:Destroy()
565
    end
566
end
567
for i,v in pairs(Character:children()) do
568
    if v:IsA("Hat") then
569
        v:Destroy()
570
    end
571
end
572
573
shirt = Instance.new("Shirt", Character)
574
shirt.Name = "Shirt"
575
pants = Instance.new("Pants", Character)
576
pants.Name = "Pants"
577
Character.Shirt.ShirtTemplate = "rbxassetid://752801935"
578
Character.Pants.PantsTemplate = "rbxassetid://769974956"
579
580
function ShowDamage(Pos, Text, Time, Color)
581
	local Rate = (1 / 30)
582
	local Pos = (Pos or Vector3.new(0, 0, 0))
583
	local Text = (Text or "")
584
	local Time = (Time or 2)
585
	local Color = (Color or Color3.new(1, 0, 0))
586
	local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
587
	EffectPart.Anchored = true
588
	local BillboardGui = Instance.new("BillboardGui")
589
	BillboardGui.Size = UDim2.new(3, 0, 3, 0)
590
	BillboardGui.Adornee = EffectPart
591
	local TextLabel = Instance.new("TextLabel")
592
	TextLabel.BackgroundTransparency = 1
593
	TextLabel.Size = UDim2.new(1, 0, 1, 0)
594
	TextLabel.Text = Text
595
	TextLabel.TextColor3 = Color
596
	TextLabel.TextScaled = true
597
	TextLabel.Font = Enum.Font.ArialBold
598
	TextLabel.Parent = BillboardGui
599
	BillboardGui.Parent = EffectPart
600
	game.Debris:AddItem(EffectPart, (Time + 0.1))
601
	EffectPart.Parent = game:GetService("Workspace")
602
	delay(0, function()
603
		local Frames = (Time / Rate)
604
		for Frame = 1, Frames do
605
			wait(Rate)
606
			local Percent = (Frame / Frames)
607
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
608
			TextLabel.TextTransparency = Percent
609
		end
610
		if EffectPart and EffectPart.Parent then
611
			EffectPart:Destroy()
612
		end
613
	end)
614
end
615
616
local RbxUtility = LoadLibrary("RbxUtility")
617
	local Create = RbxUtility.Create
618
	local co1 = 9
619
	local co2 = 20
620
	local co3 = 12
621
	local co4 = 45
622
	local cooldown1 = 0
623
	local cooldown2 = 0
624
	local cooldown3 = 0
625
	local cooldown4 = 0
626
	local skillcolorscheme = BrickColor.new("Pastel Blue").Color
627
	local scrn = Instance.new("ScreenGui", Player.PlayerGui)
628
	makeframe = function(par, trans, pos, size, color)
629
		local frame = Instance.new("Frame", par)
630
	frame.BackgroundTransparency = trans
631
	frame.BorderSizePixel = 0
632
	frame.Position = pos
633
	frame.Size = size
634
	frame.BackgroundColor3 = color
635
	return frame
636
end
637
638
		
639
	
640
	
641
CreatePart = function(Parent, Material, Reflectance, Transparency, PartType, BColor, Name, Size, MeshId)
642
	
643
	if PartType == "Part" then
644
		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})
645
		Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
646
		return Part
647
	else
648
		do
649
			if PartType == "WedgePart" then
650
				local Part = Create("WedgePart")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
651
				Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
652
				return Part
653
			end
654
		end
655
	end
656
end
657
658
	CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
659
	
660
	local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
661
	if Mesh == "SpecialMesh" then
662
		Msh.MeshType = MeshType
663
		Msh.MeshId = MeshId
664
	end
665
	return Msh
666
end
667
668
	CreateWeld = function(Parent, Part0, Part1, C0, C1)
669
	
670
	local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
671
	return Weld
672
end
673
674
Weld = {Create = function(Parent, Part0, Part1, C0, C1)
675
	
676
	local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
677
	return Weld
678
end
679
}
680
681
handle=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Ghost grey","Handle",Vector3.new(0.2, .4, 0.12))
682
handle.Transparency = 1
683
handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.Angles(math.rad(0),math.rad(0),math.rad(270))*CFrame.new(-1.35, -0.0401109691, 0.0168789339, -5.23798153e-005, 0.99999994, -0.000210702419, -6.36925748e-008, -0.000210702419, -0.99999994, -1, -5.23798008e-005, 7.47295417e-008))
684
Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2))
685
WedgeWeld = CreateWeld(m, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-1.1045, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
686
mesh("SpecialMesh",Wedge,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1.9,6.84,6.84))
687
Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2))
688
WedgeWeld = CreateWeld(m, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(90))*CFrame.new(-1.7929, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
689
mesh("SpecialMesh",Wedge,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1527559",Vector3.new(0, 0, 0),Vector3.new(0.811,0.811,0.811))
690
Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2))
691
WedgeWeld = CreateWeld(m, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-2.62, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
692
mesh("SpecialMesh",Wedge,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(4.5,4.5,4.5))
693
--editing--
694
WedgeSpot = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Bright red", "Wedge", Vector3.new(0.10, 0.4, 0.2))
695
WedgeWeld = CreateWeld(m, handle, WedgeSpot, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-2.84, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
696
mesh("SpecialMesh",WedgeSpot,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1.65,1.8,3.5))
697
--editing--
698
Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,1,"Really black","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003))
699
Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.107657909, -3.55914412, 0.00325751305, 0.999999821, -0.00011339415, 2.39198562e-006, 0.000211339124, 0.999997795, -6.21902582e-005, -2.38056168e-006, 6.20116552e-005, 0.999992907))
700
EffectPart=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,1,"Really black","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
701
EffectPartweld=weld(m,handle,EffectPart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008))
702
mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(0.1,0.2,1))
703
EffectPart2=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,1,"Really black","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003))
704
EffectPart2weld=weld(m,Character["Left Arm"],EffectPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008))
705
706
707
handle=part(Enum.FormFactor.Custom,m2,Enum.Material.Metal,0,0,"Ghost grey","Handle",Vector3.new(0.2, .4, 0.12))
708
handle.Transparency = 1
709
handleweld=weld(m2,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.Angles(math.rad(0),math.rad(0),math.rad(270))*CFrame.new(-1.35, -0.0401109691, 0.0168789339, -5.23798153e-005, 0.99999994, -0.000210702419, -6.36925748e-008, -0.000210702419, -0.99999994, -1, -5.23798008e-005, 7.47295417e-008))
710
Wedge = CreatePart(m2, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2))
711
WedgeWeld = CreateWeld(m2, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-1.1045, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
712
mesh("SpecialMesh",Wedge,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1.9,6.84,6.84))
713
Wedge = CreatePart(m2, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2))
714
WedgeWeld = CreateWeld(m2, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(90))*CFrame.new(-1.7929, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
715
mesh("SpecialMesh",Wedge,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1527559",Vector3.new(0, 0, 0),Vector3.new(0.811,0.811,0.811))
716
Wedge = CreatePart(m2, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2))
717
WedgeWeld = CreateWeld(m2, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-2.62, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
718
mesh("SpecialMesh",Wedge,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(4.5,4.5,4.5))
719
--editing--
720
WedgeSpot = CreatePart(m2, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Bright red", "Wedge", Vector3.new(0.10, 0.4, 0.2))
721
WedgeWeld = CreateWeld(m2, handle, WedgeSpot, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-2.84, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
722
mesh("SpecialMesh",WedgeSpot,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1.65,1.8,3.5))
723
--editing--
724
Hitbox=part(Enum.FormFactor.Custom,m2,Enum.Material.Plastic,0,1,"Really black","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003))
725
Hitboxweld=weld(m2,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.107657909, -3.55914412, 0.00325751305, 0.999999821, -0.00011339415, 2.39198562e-006, 0.000211339124, 0.999997795, -6.21902582e-005, -2.38056168e-006, 6.20116552e-005, 0.999992907))
726
EffectPart=part(Enum.FormFactor.Custom,m2,Enum.Material.Metal,0,1,"Really black","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
727
EffectPartweld=weld(m2,handle,EffectPart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008))
728
mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(0.1,0.2,1))
729
EffectPart2=part(Enum.FormFactor.Custom,m2,Enum.Material.Metal,0,1,"Really black","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003))
730
EffectPart2weld=weld(m2,Character["Left Arm"],EffectPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008))
731
732
DarkRiftF=function(par)
733
while lol == true do 
734
wait() 
735
local PWN={}
736
for _,v in pairs(game.Workspace:children()) do
737
if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
738
if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
739
table.insert(PWN,v.Torso)
740
end
741
end
742
end
743
for _,t in pairs(PWN) do
744
local targ=par.Position-t.Position
745
local Mag=targ.magnitude
746
if not t:IsDescendantOf(Character) and t~=nil and Mag<=50 then
747
if Mag<=30 then
748
t.Parent.Humanoid:TakeDamage(.5)
749
local rl=Instance.new("BodyAngularVelocity")
750
rl.P=3000
751
rl.maxTorque=Vector3.new(500000,500000,500000)*5000
752
rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
753
rl.Parent=t
754
game:GetService("Debris"):AddItem(rl,.1)
755
end
756
if Mag<=20 then
757
t.Parent.Humanoid:TakeDamage(.1)
758
else
759
local vl=Instance.new("BodyVelocity")
760
vl.P=3000
761
vl.maxForce=Vector3.new(50000000000,50000000000,50000000000)
762
vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
763
vl.Parent=t
764
game:GetService("Debris"):AddItem(vl,.1)
765
end
766
end
767
end
768
wait(.08)
769
end
770
end
771
772
function DerpMagic(part,x1,y1,z1,x2,y2,z2,color) 
773
	local msh1 = Instance.new("BlockMesh") 
774
	msh1.Scale = Vector3.new(0.5,0.5,0.5) 
775
	local S=Instance.new("Part")
776
	S.Name="Effect"
777
	S.Material="Neon"
778
	S.formFactor=0
779
	S.Size=Vector3.new(x1,y1,z1)
780
	S.BrickColor=color
781
	S.Reflectance = 0
782
	S.TopSurface=0
783
	S.BottomSurface=0
784
	S.Transparency=0
785
	S.Anchored=false
786
	S.CanCollide=false
787
	S.CFrame=part.CFrame
788
	S.Parent=game.Workspace
789
	msh1.Parent = S
790
	local W=Instance.new("Weld")
791
	W.Parent=S
792
	W.Part0=S
793
	W.Part1=part
794
	W.C0=CFrame.new(x2,y2,z2) * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
795
	W.Parent=nil
796
	S.Anchored=true
797
	coroutine.resume(coroutine.create(function(Part,Weld) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) --[[Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))]] Part.Transparency=i*.1 wait() end Part.Parent=nil Weld.Parent=nil end),S,W)
798
end 
799
800
local function BlackHole(parent,cframe)
801
local effectsmsh = Instance.new("SpecialMesh")
802
effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
803
--effectsmsh.Scale = Vector3.new(1,1,2.5)
804
effectsmsh.Scale = Vector3.new(3,3,3)
805
local effectsg = Instance.new("Part")
806
effectsg.formFactor = 3
807
effectsg.CanCollide = false
808
effectsg.Name = "Effect"
809
effectsg.Locked = true
810
effectsg.Transparency = 1 
811
effectsg.Size = Vector3.new(0.2,0.2,0.2)
812
effectsg.Parent = parent
813
effectsg.BrickColor = BrickColor.new("Royal purple")
814
effectsg.Material="Neon"
815
coroutine.resume(coroutine.create(function(Part,Mesh)
816
	local Mesh = Instance.new("SpecialMesh") 
817
	Mesh.Scale = Vector3.new(0.5,0.5,0.5) 
818
	Mesh.MeshType = "Sphere" 
819
--	Mesh.TextureId="http://www.roblox.com/asset/?id=1529460"
820
	Part=Instance.new("Part")
821
	Part.Name="Effect"
822
	Part.formFactor=0
823
	Part.Size=Vector3.new(1,1,1)
824
	Part.BrickColor=BrickColor.new("Royal purple")
825
	Part.Material="Neon"
826
	Part.Reflectance = 0
827
	Part.TopSurface=0
828
	Part.BottomSurface=0
829
	Part.Transparency=0
830
	Part.Anchored=true
831
NoOutline(Part)	
832
	Part.CanCollide=false
833
	Part.CFrame=cframe
834
	Part.Parent=parent
835
	Mesh.Parent = Part
836
	lol=true
837
coroutine.resume(coroutine.create(function()
838
	DarkRiftF(Part)
839
end)) 
840
	for i=0,200 do
841
	wait()
842
	DerpMagic(Part,1,i/3,1,0,i/3,0,BrickColor.new("Royal purple")) 
843
	Mesh.Scale=Mesh.Scale-Vector3.new(0.2,0.2,0.2)
844
	Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
845
	end
846
	local fff=200
847
	for i=0,100 do
848
	wait()
849
	DerpMagic(Part,1,fff/3,1,0,fff/3,0,BrickColor.new("Royal purple")) 
850
	Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
851
	end
852
	for i=0,1,0.05 do
853
	wait()
854
	Part.Transparency=Part.Transparency+0.05
855
	Mesh.Scale=Mesh.Scale+Vector3.new(1.5,1.5,1.5)
856
	end
857
	lol=false
858
	Part.Parent=nil
859
end),nil,nil)
860
end
861
862
function makeShockwave(height,color,speed,range,pulse)
863
local range = range or 2000
864
local p = Instance.new("Part")
865
p.Anchored = true
866
p.CanCollide = false
867
p.FormFactor = "Custom"
868
p.BrickColor = color
869
p.Parent = workspace
870
local m = Instance.new("SpecialMesh",p)
871
m.MeshId = "rbxassetid://3270017"
872
local estimateSurvival = math.floor(range/speed) * 0.03
873
game:GetService("Debris"):AddItem(p,estimateSurvival)
874
Spawn(function ()
875
for i = 1,range,speed do
876
p.Transparency = 1-math.min(0.5,3-(i/500))
877
m.Scale = Vector3.new(i,i,i*height)
878
p.CFrame = CFrame.new(Torso.Position) * CFrame.Angles(math.rad(90),0,0)
879
wait()
880
end
881
p:Destroy()
882
end)
883
end
884
885
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
886
local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
887
prt.Anchored=true
888
prt.CFrame=cframe
889
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.1,.1,.1))
890
game:GetService("Debris"):AddItem(prt,2)
891
coroutine.resume(coroutine.create(function(Part,Mesh) 
892
for i=0,2,delay do
893
wait()
894
Part.CFrame=Part.CFrame
895
Part.Transparency=i
896
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
897
end
898
Part.Parent=nil
899
end),prt,msh)
900
end
901
902
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
903
local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
904
prt.Anchored=true
905
prt.CFrame=cframe
906
local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
907
game:GetService("Debris"):AddItem(prt,5)
908
coroutine.resume(coroutine.create(function(Part,Mesh) 
909
for i=0,1,delay do
910
wait()
911
Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
912
Part.Transparency=i
913
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
914
end
915
Part.Parent=nil
916
end),prt,msh)
917
end
918
919
local function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
920
local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt())
921
if Type~=2 then
922
prt.Anchored=true
923
end
924
prt.CFrame=cframe
925
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
926
game:GetService("Debris"):AddItem(prt,5)
927
coroutine.resume(coroutine.create(function(Part,Mesh,dur) 
928
local wld=nil
929
if dur==2 then
930
wld=weld(Part,Part,parent,euler(0,0,0)*cf(0,0,0))
931
end
932
for i=0,1,delay do
933
swait()
934
if dur==1 then
935
Part.CFrame=Part.CFrame
936
elseif dur==2 then
937
wld.C0=cframe
938
end
939
Part.Transparency=i
940
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
941
end
942
Part.Parent=nil
943
end),prt,msh,Type)
944
end
945
946
function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
947
local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
948
prt.Anchored=true
949
prt.CFrame=cframe
950
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
951
game:GetService("Debris"):AddItem(prt,5)
952
coroutine.resume(coroutine.create(function(Part,Mesh) 
953
for i=0,1,delay do
954
swait()
955
Part.CFrame=Part.CFrame*euler(0,0.7,0)
956
Part.Transparency=i
957
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
958
end
959
Part.Parent=nil
960
end),prt,msh)
961
end
962
963
function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
964
local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
965
prt.Anchored=true
966
prt.CFrame=cframe
967
local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
968
game:GetService("Debris"):AddItem(prt,5)
969
coroutine.resume(coroutine.create(function(Part,Mesh) 
970
for i=0,1,delay do
971
wait()
972
Part.CFrame=Part.CFrame
973
Part.Transparency=i
974
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
975
end
976
Part.Parent=nil
977
end),prt,msh)
978
end 
979
980
function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
981
local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt())
982
prt.Anchored=true
983
prt.CFrame=cframe
984
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
985
game:GetService("Debris"):AddItem(prt,5)
986
table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
987
end
988
989
function Blast(parent)
990
MagicBlock(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
991
MagicWaveThing(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
992
end
993
994
function ChargeBall(parent,t)
995
local counter=0
996
local size=1
997
for i=0,t,1 do
998
swait()
999
counter=counter+1
1000
if counter%10==0 then
1001
if size==3 then
1002
MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
1003
elseif size==2 then
1004
MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
1005
end
1006
end
1007
if counter%5==0 then
1008
if size==1 then
1009
MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
1010
elseif size==2 then
1011
MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
1012
elseif size==3 then
1013
MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
1014
end
1015
end
1016
end
1017
end
1018
1019
function ChargeBall2(parent,t)
1020
local counter=0
1021
local size=1
1022
for i=0,t,1 do
1023
swait()
1024
counter=counter+1
1025
if counter%10==0 then
1026
if size==3 then
1027
MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
1028
elseif size==2 then
1029
MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
1030
end
1031
end
1032
if counter%5==0 then
1033
if size==1 then
1034
MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
1035
MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
1036
elseif size==2 then
1037
MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
1038
MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
1039
elseif size==3 then
1040
MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
1041
MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
1042
end
1043
end
1044
end
1045
end
1046
1047
function MagniDamage(Part,dis,mind,maxd,force,knock)
1048
for _,c in pairs(workspace:children()) do
1049
local hum=c:findFirstChild("Humanoid")
1050
if hum~=nil then
1051
local head=c:findFirstChild("Torso")
1052
if head~=nil then
1053
local targ=head.Position-Part.Position
1054
local mag=targ.magnitude
1055
if mag<=dis and c.Name~=Character.Name then 
1056
Damagefunc(Part,hum.Parent.Torso,mind,maxd,force,knock,RootPart,.2,1)
1057
end
1058
end
1059
end
1060
end
1061
end
1062
1063
1064
function computeDirection(vec)
1065
local lenSquared = vec.magnitude * vec.magnitude
1066
local invSqrt = 1 / math.sqrt(lenSquared)
1067
return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
1068
end
1069
1070
local rarmc1 = RW.C1
1071
local larmc1 = LW.C1
1072
local rlegc1 = RH.C1
1073
local llegc1 = LH.C1
1074
function PlayAnimationFromTable(table, speed, bool)
1075
	RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) 
1076
	Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) 
1077
	RW.C0 = clerp(RW.C0, table[3], speed) 
1078
	LW.C0 = clerp(LW.C0, table[4], speed) 
1079
	RH.C0 = clerp(RH.C0, table[5], speed) 
1080
	LH.C0 = clerp(LH.C0, table[6], speed) 
1081
	if bool == true then
1082
		if resetc1 == false then
1083
			resetc1 = true
1084
			RootJoint.C1 = RootJoint.C1
1085
			Torso.Neck.C1 = Torso.Neck.C1
1086
			RW.C1 = rarmc1
1087
			LW.C1 = larmc1
1088
			RH.C1 = rlegc1
1089
			LH.C1 = llegc1
1090
		end
1091
	end
1092
end
1093
1094
function GetsugaTenshou()
1095
	attack=true
1096
	local chargecounter = 0
1097
for i=0,1,.25 do
1098
swait()
1099
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)),0.5)
1100
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
1101
end
1102
chargecounter = chargecounter + 1
1103
wait(0.1)
1104
local Wave=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"New Yeller","Wave",Vector3.new(1,1,1)) Wave.Parent = WedgeSpot
1105
Wave.Material = 'Neon'
1106
Wave.Transparency = 0
1107
Wave.Shape = "Ball"
1108
Wave.CFrame = WedgeSpot.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.random(90.6,90.6),math.random(0,0),math.random(0,0))
1109
local BV = Instance.new("BodyVelocity",Wave)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Character.HumanoidRootPart.CFrame.lookVector*185
1110
so("http://www.roblox.com/asset/?id=50638397", 22,handle,1,.9)
1111
if Humanoid~=nil and bounce==false then
1112
	bounce=true
1113
	Wave.Touched:connect(function(hit) 
1114
if hit.Anchored == false and hit.Parent ~= Character and hit.Parent.Name ~= "Reaper" and hit.Parent.Name ~= "Reaper2" and hit.Parent.Name ~= "WeaponModel" then
1115
Damagefunc(Wave,hit,5,8,math.random(3,3),"Normal",RootPart,.2,1)
1116
end
1117
end)
1118
end
1119
1120
1121
for i = 0,1,0.11 do
1122
swait()
1123
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)),0.5)
1124
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
1125
end
1126
attack=false
1127
bounce=false
1128
scfr=nil
1129
end
1130
1131
function Mugetsu()
1132
attack=true
1133
for i=0,1,.25 do
1134
swait()
1135
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)),0.5)
1136
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
1137
end
1138
wait(0.3)
1139
spawn(function()
1140
	for i=1,55 do
1141
		wait()
1142
			local c = Character
1143
			local radius = 8
1144
			local pos = WedgeSpot.CFrame
1145
			local clrz = {'Cyan','Teal'};
1146
			for i = 1,2.7 do
1147
				local clr = clrz[math.random(1,#clrz)]
1148
				pos = WedgeSpot.CFrame
1149
				local p = Instance.new('Part',c)
1150
				local mafa = math.random(-360,360)
1151
				p.CanCollide = false
1152
				p.Size = Vector3.new(1,1,1)
1153
				local m = Instance.new('SpecialMesh',p)
1154
				m.MeshType = 'Sphere'
1155
				spawn(function()
1156
				  for i = 0,50 do
1157
					local int,int2 = .05,.05
1158
					m.Scale = m.Scale - Vector3.new(int,int,int)
1159
					p.Transparency = p.Transparency + int2
1160
					swait()
1161
				  end
1162
				end)
1163
				p.BrickColor = BrickColor.new(clr)
1164
				p.Material = 'Neon'
1165
				p.CFrame = pos * CFrame.new(math.random(-radius,radius),math.random(-radius,radius),math.random(-radius,radius)) * CFrame.Angles(mafa,mafa,mafa)
1166
				local bp = Instance.new('BodyPosition',p)
1167
				bp.MaxForce = Vector3.new(0.7/0,0.7/0,0.7/0)
1168
				bp.D = 100
1169
				bp.P = 300
1170
				bp.Position = pos.p
1171
				game.Debris:AddItem(p,10)
1172
			end
1173
		end
1174
end)
1175
wait(3)
1176
local Wave=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Cyan","Wave",Vector3.new(10,10,10)) Wave.Parent = WedgeSpot
1177
Wave.Material = "Neon"
1178
Wave.Transparency = 0
1179
Wave.Shape = "Ball"
1180
Wave.CFrame = WedgeSpot.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.random(90.6,90.6),math.random(0,0),math.random(0,0))
1181
local BV = Instance.new("BodyVelocity",Wave)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Character.HumanoidRootPart.CFrame.lookVector*180
1182
so("http://www.roblox.com/asset/?id=50638397", 22,handle,1,.9)
1183
1184
if Humanoid~=nil and bounce==false then
1185
	bounce=true
1186
	Wave.Touched:connect(function(hit) 
1187
if hit.Anchored == false and hit.Parent ~= Character and hit.Parent.Name ~= "Reaper" and hit.Parent.Name ~= "Reaper2" and hit.Parent.Name ~= "WeaponModel" then
1188
Damagefunc(Wave,hit,80,90,math.random(3,3),"Normal",RootPart,.2,1)
1189
end
1190
end)
1191
end
1192
1193
1194
for i = 0,1,0.11 do
1195
swait()
1196
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)),0.5)
1197
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
1198
end
1199
attack=false
1200
bounce=false
1201
scfr=nil
1202
end	
1203
mouse.KeyDown:connect(function(k)
1204
k=k:lower()
1205
if attack == false and k == 'e' then
1206
Mugetsu()
1207
end
1208
if attack == false and k == 'q' then
1209
GetsugaTenshou()
1210
end
1211
if attack == false and k == '1' and deeznuts==false then
1212
deeznuts=true
1213
MetalMan()
1214
deeznuts=false
1215
end
1216
if attack == false and k == '0' and deeznuts==false then
1217
cooldown=true
1218
MegaMan()
1219
deeznuts=false
1220
end
1221
end)
1222
1223
1224
local sine = 0
1225
local change = 1
1226
local val = 0
1227
1228
while true do
1229
swait()
1230
sine = sine + change
1231
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
1232
local velderp=RootPart.Velocity.y
1233
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
1234
if equipped==true or equipped==false then
1235
if attack==false then
1236
idle=idle+1
1237
else
1238
idle=0
1239
end
1240
if idle>=500 then
1241
if attack==false then
1242
end
1243
end
1244
     
1245
if RootPart.Velocity.y > 1 and hitfloor==nil then 
1246
Anim="Jump"
1247
if attack==false then
1248
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1249
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
1250
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(15)), 0.3)
1251
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3)
1252
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-30),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1253
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-30),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1254
end
1255
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
1256
Anim="Fall"
1257
if attack==false then
1258
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
1259
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.3)
1260
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3)
1261
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
1262
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1263
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1264
end
1265
elseif torvel<1 and hitfloor~=nil then
1266
Anim="Idle"
1267
if attack==false then
1268
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1269
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1270
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(30)), 0.3)
1271
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
1272
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2),math.rad(85),math.rad(0)),.3)
1273
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-4),math.rad(-95),math.rad(0)),.3)
1274
handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1275
end
1276
elseif torvel>2 and hitfloor~=nil then
1277
Anim="Walk"
1278
if attack==false then
1279
change=3
1280
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1281
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
1282
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(70)*math.cos(sine/16.5), math.rad(6), math.rad(5)), 0.2)
1283
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-70)*math.cos(sine/-16.5), math.rad(-6), math.rad(-5)), 0.2)
1284
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2)*math.cos(sine/16),math.rad(90),math.rad(0)),.3)
1285
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-4*math.cos(sine/-16)),math.rad(-90),math.rad(0)),.3)
1286
handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1287
end
1288
end
1289
end
1290
if #Effects>0 then
1291
for e=1,#Effects do
1292
if Effects[e]~=nil then
1293
local Thing=Effects[e]
1294
if Thing~=nil then
1295
local Part=Thing[1]
1296
local Mode=Thing[2]
1297
local Delay=Thing[3]
1298
local IncX=Thing[4]
1299
local IncY=Thing[5]
1300
local IncZ=Thing[6]
1301
if Thing[1].Transparency<=1 then
1302
if Thing[2]=="Block1" then
1303
Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1304
Mesh=Thing[1].Mesh
1305
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
1306
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1307
elseif Thing[2]=="Cylinder" then
1308
Mesh=Thing[1].Mesh
1309
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
1310
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1311
elseif Thing[2]=="Blood" then
1312
Mesh=Thing[7]
1313
Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
1314
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
1315
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1316
elseif Thing[2]=="Elec" then
1317
Mesh=Thing[1].Mesh
1318
Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
1319
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1320
elseif Thing[2]=="Disappear" then
1321
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1322
end
1323
else
1324
Part.Parent=nil
1325
table.remove(Effects,e)
1326
end
1327
end
1328
end
1329
end
1330
end
1331
end