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