View difference between Paste ID: dQZ34TwB and eXBnZ7Dt
SHOW: | | - or go back to the newest paste.
1-
--By NoobyGames12
1+
if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
2
print("FE Compatibility: by WaverlyCole & Mokiros")
3
InternalData = {}
4
do
5
	script.Parent = owner.Character
6
	local Event = Instance.new("RemoteEvent")
7
	Event.Name = "UserInput"
8
	local function NewFakeEvent()
9
		local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
10
		return Fake
11
	end
12
	local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
13
	local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
14
	local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
15
		self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
16
	end};ContextActionService.UnBindAction = ContextActionService.BindAction
17
	local function TriggerEvent(self,Event,...)
18
		local Trigger = Mouse[Event]
19
		if Trigger and Trigger.fakeEvent and Trigger.Function then
20
			Trigger.Function(...)
21
		end
22
	end
23
	Mouse.TrigEvent = TriggerEvent
24
	UserInputService.TrigEvent = TriggerEvent
25
	Event.OnServerEvent:Connect(function(FiredBy,Input)
26
		if FiredBy.Name ~= owner.Name then end
27
		if Input.MouseEvent then
28
			Mouse.Target = Input.Target
29
			Mouse.Hit = Input.Hit
30
		else
31
			local Begin = Input.UserInputState == Enum.UserInputState.Begin
32
			if Input.UserInputType == Enum.UserInputType.MouseButton1 then
33
				return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
34
			end
35
			for _,Action in pairs(ContextActionService.Actions) do
36
				for _,Key in pairs(Action.Keys) do
37
					if Key==Input.KeyCode then
38
						Action.Function(Action.Name,Input.UserInputState,Input)
39
					end
40
				end
41
			end
42
			Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
43
			UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
44
		end
45
	end)
46
	InternalData["Mouse"] = Mouse
47
	InternalData["ContextActionService"] = ContextActionService
48
	InternalData["UserInputService"] = UserInputService
49
	Event.Parent = NLS([[
50
		local Player = owner
51
		local Event = script:WaitForChild("UserInput")
52
		local UserInputService = game:GetService("UserInputService")
53
		local Mouse = Player:GetMouse()
54
		local Input = function(Input,gameProcessedEvent)
55
			if gameProcessedEvent then return end
56
			Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
57
		end
58
		UserInputService.InputBegan:Connect(Input)
59
		UserInputService.InputEnded:Connect(Input)
60
		local Hit,Target
61
		while wait(1/30) do
62
			if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
63
				Hit,Target = Mouse.Hit,Mouse.Target
64
				Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
65
			end
66
		end
67
	]],owner.Character)
68
end
69
RealGame = game;game = setmetatable({},{
70
	__index = function (self,Index)
71
		local Sandbox = function (Thing)
72
			if Thing:IsA("Player") then
73
				local RealPlayer = Thing
74
				return setmetatable({},{
75
					__index = function (self,Index)
76
						local Type = type(RealPlayer[Index])
77
						if Type == "function" then
78
							if Index:lower() == "getmouse" or Index:lower() == "mouse" then
79
								return function (self)
80
									return InternalData["Mouse"]
81
								end
82
							end
83
							return function (self,...)
84
								return RealPlayer[Index](RealPlayer,...)
85
							end
86
						else
87
							if Index == "PlrObj" then
88
								return RealPlayer
89
							end
90
							return RealPlayer[Index]
91
						end
92
					end;
93
					__tostring = function(self)
94
						return RealPlayer.Name
95
					end
96
				})
97
			end
98
		end
99
		if RealGame[Index] then
100
			local Type = type(RealGame[Index])
101
			if Type == "function" then
102
				if Index:lower() == "getservice" or Index:lower() == "service" then
103
					return function (self,Service)
104
						if Service:lower() == "players" then
105
							return setmetatable({},{
106
								__index = function (self2,Index2)
107
									local RealService = RealGame:GetService(Service)
108
									local Type2 = type(Index2)
109
									if Type2 == "function" then
110
										return function (self,...)
111
											return RealService[Index2](RealService,...)
112
										end
113
									else
114
										if Index2:lower() == "localplayer" then
115
											return Sandbox(owner)
116
										end
117
										return RealService[Index2]
118
									end
119
								end;
120
								__tostring = function(self)
121
									return RealGame:GetService(Service).Name
122
								end
123
							})
124
						elseif Service:lower() == "contextactionservice" then
125
							return InternalData["ContextActionService"]
126
						elseif Service:lower() == "contextactionservice" then
127
							return InternalData["UserInputService"]
128
						elseif Service:lower() == "runservice" then
129
							return setmetatable({},{
130
								__index = function(self2,Index2)
131
									local RealService = RealGame:GetService(Service)
132
									local Type2 = type(Index2)
133
									if Type2 == "function" then
134
										return function (self,...)
135
											return RealService[Index2](RealService,...)
136
										end
137
									else
138
										if Index2:lower() == "bindtorenderstep" then
139
											return function (self,Name,Priority,Function)
140
												return RealGame:GetService("RunService").Stepped:Connect(Function)
141
											end
142
										end
143
										if Index2:lower() == "renderstepped" then
144
											return RealService["Stepped"]
145
										end
146
										return RealService[Index2]
147
									end
148
								end
149
							})
150
						else
151
							return RealGame:GetService(Service)
152
						end
153
					end
154
				end
155
				return function (self,...)
156
					return RealGame[Index](RealGame,...)
157
				end
158
			else
159
				if game:GetService(Index) then
160
					return game:GetService(Index)
161
				end
162
				return RealGame[Index]
163
			end
164
		else
165
			return nil
166
		end
167
	end
168
});Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
169
print("Complete! Running...")
170
171
p = game.Players.LocalPlayer
172
char = p.Character
173
torso = char.Torso
174
neck = char.Torso.Neck
175
176
Player=game:GetService("Players").LocalPlayer
177
Character=Player.Character 
178
PlayerGui=Player.PlayerGui
179
Backpack=Player.Backpack 
180
Torso=Character.Torso 
181
Head=Character.Head 
182
Humanoid=Character.Humanoid
183
LeftArm=Character["Left Arm"] 
184
LeftLeg=Character["Left Leg"] 
185
RightArm=Character["Right Arm"] 
186
RightLeg=Character["Right Leg"] 
187
cam=game.Workspace.CurrentCamera
188
LS=Torso["Left Shoulder"] 
189
LH=Torso["Left Hip"] 
190
RS=Torso["Right Shoulder"] 
191
RH=Torso["Right Hip"] 
192
Face = Head.face
193
Neck=Torso.Neck
194
it=Instance.new
195
attacktype=1
196
vt=Vector3.new
197
cf=CFrame.new
198
euler=CFrame.fromEulerAnglesXYZ
199
angles=CFrame.Angles
200
cloaked=false
201
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
202
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
203
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
204
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
205
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
206
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
207
RootPart=Character.HumanoidRootPart
208
RootJoint=RootPart.RootJoint
209
RootCF=euler(-1.57,0,3.14)
210
attack = false 
211
bounce=false
212
cooldown=false
213
deeznuts=false
214
attackdebounce = false 
215
deb=false
216
equipped=true
217
hand=false
218
MMouse=nil
219
combo=0
220
mana=0
221
trispeed=.2
222
attackmode='none'
223
local idle=0
224
local Anim="Idle"
225
local Effects={}
226
local gun=false
227
local shoot=false
228
player=nil 
229
mana=0
230
cam = workspace.CurrentCamera
231
ZTarget = nil
232
RocketTarget = nil
233
local m = Instance.new("Model",Character)
234
m.Name = "WeaponModel"
235
236
mouse=Player:GetMouse()
237
--save shoulders 
238
RSH, LSH=nil, nil 
239
--welds 
240
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
241
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
242
LH=Torso["Left Hip"]
243
RH=Torso["Right Hip"]
244
TorsoColor=Torso.BrickColor
245
function NoOutline(Part)
246
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
247
end
248
player=Player 
249
ch=Character
250
RSH=ch.Torso["Right Shoulder"] 
251
LSH=ch.Torso["Left Shoulder"] 
252
-- 
253
RSH.Parent=nil 
254
LSH.Parent=nil 
255
-- 
256
RW.Name="Right Shoulder"
257
RW.Part0=ch.Torso 
258
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
259
RW.C1=cf(0, 0.5, 0) 
260
RW.Part1=ch["Right Arm"] 
261
RW.Parent=ch.Torso 
262
-- 
263
LW.Name="Left Shoulder"
264
LW.Part0=ch.Torso 
265
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
266
LW.C1=cf(0, 0.5, 0) 
267
LW.Part1=ch["Left Arm"] 
268
LW.Parent=ch.Torso 
269
270
	function swait(num)
271
    if num==0 or num==nil then
272
    game:service'RunService'.Heartbeat:wait(0)
273
    else
274
    for i=0,num do
275
    game:service'RunService'.Heartbeat:wait(0)
276
    end
277
    end
278
	end
279
	
280
281
local Player = game.Players.localPlayer
282
local Character = Player.Character
283
local red = 255
284
local green = 255
285
local blue = 255
286
local Humanoid = Character.Humanoid
287
local mouse = Player:GetMouse()
288
local m = Instance.new("Model", Character)
289
m.Name = "WeaponModel"
290
local LeftArm = Character["Left Arm"]
291
local RightArm = Character["Right Arm"]
292
local LeftLeg = Character["Left Leg"]
293
local RightLeg = Character["Right Leg"]
294
local Head = Character.Head
295
local Torso = Character.Torso
296
local cam = game.Workspace.CurrentCamera
297
local RootPart = Character.HumanoidRootPart
298
local RootJoint = RootPart.RootJoint
299
local equipped = false
300
local attack = false
301
local Anim = "Idle"
302
local idle = 0
303
local attacktype = 1
304
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
305
local velocity = RootPart.Velocity.y
306
local sine = 0
307
local change = 1
308
local grabbed = false
309
local cn = CFrame.new
310
local mr = math.rad
311
local angles = CFrame.Angles
312
local ud = UDim2.new
313
local c3 = Color3.new
314
local lim = 0
315
local st = 0
316
local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
317
local attacktype = 1
318
local ZTarget, RocketTarget = nil, nil
319
local euler = CFrame.fromEulerAnglesXYZ
320
function clerp(a,b,t) 
321
local qa = {QuaternionFromCFrame(a)}
322
local qb = {QuaternionFromCFrame(b)} 
323
local ax, ay, az = a.x, a.y, a.z 
324
local bx, by, bz = b.x, b.y, b.z
325
local _t = 1-t
326
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
327
end 
328
 
329
function QuaternionFromCFrame(cf) 
330
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
331
local trace = m00 + m11 + m22 
332
if trace > 0 then 
333
local s = math.sqrt(1 + trace) 
334
local recip = 0.5/s 
335
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
336
else 
337
local i = 0 
338
if m11 > m00 then
339
i = 1
340
end
341
if m22 > (i == 0 and m00 or m11) then 
342
i = 2 
343
end 
344
if i == 0 then 
345
local s = math.sqrt(m00-m11-m22+1) 
346
local recip = 0.5/s 
347
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
348
elseif i == 1 then 
349
local s = math.sqrt(m11-m22-m00+1) 
350
local recip = 0.5/s 
351
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
352
elseif i == 2 then 
353
local s = math.sqrt(m22-m00-m11+1) 
354
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
355
end 
356
end 
357
end
358
 
359
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
360
local xs, ys, zs = x + x, y + y, z + z 
361
local wx, wy, wz = w*xs, w*ys, w*zs 
362
local xx = x*xs 
363
local xy = x*ys 
364
local xz = x*zs 
365
local yy = y*ys 
366
local yz = y*zs 
367
local zz = z*zs 
368
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)) 
369
end
370
 
371
function QuaternionSlerp(a, b, t) 
372
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
373
local startInterp, finishInterp; 
374
if cosTheta >= 0.0001 then 
375
if (1 - cosTheta) > 0.0001 then 
376
local theta = math.acos(cosTheta) 
377
local invSinTheta = 1/math.sin(theta) 
378
startInterp = math.sin((1-t)*theta)*invSinTheta 
379
finishInterp = math.sin(t*theta)*invSinTheta  
380
else 
381
startInterp = 1-t 
382
finishInterp = t 
383
end 
384
else 
385
if (1+cosTheta) > 0.0001 then 
386
local theta = math.acos(-cosTheta) 
387
local invSinTheta = 1/math.sin(theta) 
388
startInterp = math.sin((t-1)*theta)*invSinTheta 
389
finishInterp = math.sin(t*theta)*invSinTheta 
390
else 
391
startInterp = t-1 
392
finishInterp = t 
393
end 
394
end 
395
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 
396
end
397
rayCast = function(Position, Direction, Range, Ignore)
398
  return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
399
end
400
local v = game.Players.localPlayer
401
local torso = v.Character.Torso
402
403
plr = game.Players.LocalPlayer
404
char = game.Players.LocalPlayer.Character
405
hum = game.Players.LocalPlayer.Character.Humanoid
406
t = game.Players.LocalPlayer.Character.Torso
407
h = game.Players.LocalPlayer.Character.Head
408
ra = game.Players.LocalPlayer.Character["Right Arm"]
409
la = game.Players.LocalPlayer.Character["Left Arm"]
410
rl = game.Players.LocalPlayer.Character["Right Leg"]
411
ll = game.Players.LocalPlayer.Character["Left Leg"]
412
tors = Character.Torso
413
lleg = Character["Left Leg"]
414
root = Character.HumanoidRootPart
415
hed = Character.Head
416
rleg = Character["Right Leg"]
417
rarm = Character["Right Arm"]
418
larm = Character["Left Arm"]
419
bsize1 = NumberSequenceKeypoint.new(3,3,3)
420
bsize2 = NumberSequenceKeypoint.new(10,10,10)
421
local Effects = {}
422
attack = false
423
local attacking = false
424
vt = Vector3.new
425
bc = BrickColor.new
426
br = BrickColor.random
427
it = Instance.new
428
cf = CFrame.new
429
euler = CFrame.fromEulerAnglesXYZ
430
angles = CFrame.Angles
431
matr = math.random
432
local colororg = BrickColor.new("Dark indigo") -- set color u like
433
local meshtype = "Sphere" -- only for specialmesh
434
mouse = plr:GetMouse()
435
436
437
Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
438
        if hit.Parent==nil then
439
                return
440
        end
441
        h=hit.Parent:FindFirstChild("Humanoid")
442
        for _,v in pairs(hit.Parent:children()) do
443
        if v:IsA("Humanoid") then
444
        h=v
445
        end
446
        end
447
        if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
448
        h=hit.Parent.Parent:FindFirstChild("Humanoid")
449
        end
450
        if hit.Parent.className=="Hat" then
451
        hit=hit.Parent.Parent:findFirstChild("Head")
452
        end
453
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
454
        if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
455
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
456
                        return
457
                end]]
458
--                        hs(hit,1.2) 
459
                        c=Instance.new("ObjectValue")
460
                        c.Name="creator"
461
                        c.Value=game:service("Players").LocalPlayer
462
                        c.Parent=h
463
                        game:GetService("Debris"):AddItem(c,.5)
464
                Damage=math.random(minim,maxim)
465
--                h:TakeDamage(Damage)
466
                blocked=false
467
                block=hit.Parent:findFirstChild("Block")
468
                if block~=nil then
469
                print(block.className)
470
                if block.className=="NumberValue" then
471
                if block.Value>0 then
472
                blocked=true
473
                if decreaseblock==nil then
474
                block.Value=block.Value-1
475
                end
476
                end
477
                end
478
                if block.className=="IntValue" then
479
                if block.Value>0 then
480
                blocked=true
481
                if decreaseblock~=nil then
482
                block.Value=block.Value-1
483
                end
484
                end
485
                end
486
                end
487
                if blocked==false then
488
--                h:TakeDamage(Damage)
489
                h.Health=h.Health-Damage
490
                showDamage(hit.Parent,Damage,3,TorsoColor)
491
                else
492
                h.Health=h.Health-(Damage/2)
493
                showDamage(hit.Parent,Damage/2,3,BrickColor.new("Bright blue"))
494
                end
495
                if Type=="Knockdown" then
496
                hum=hit.Parent.Humanoid
497
hum.PlatformStand=true
498
coroutine.resume(coroutine.create(function(HHumanoid)
499
swait(1)
500
HHumanoid.PlatformStand=false
501
end),hum)
502
                local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
503
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
504
local bodvol=Instance.new("BodyVelocity")
505
bodvol.velocity=angle*knockback
506
bodvol.P=5000
507
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
508
bodvol.Parent=hit
509
rl=Instance.new("BodyAngularVelocity")
510
rl.P=3000
511
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
512
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
513
rl.Parent=hit
514
game:GetService("Debris"):AddItem(bodvol,.5)
515
game:GetService("Debris"):AddItem(rl,.5)
516
                elseif Type=="Normal" then
517
                vp=Instance.new("BodyVelocity")
518
                vp.P=500
519
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
520
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
521
                if KnockbackType==1 then
522
                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
523
                elseif KnockbackType==2 then
524
                vp.velocity=Property.CFrame.lookVector*knockback
525
                end
526
                if knockback>0 then
527
                        vp.Parent=hit.Parent.Torso
528
                end
529
                game:GetService("Debris"):AddItem(vp,.5)
530
                elseif Type=="Up" then
531
                local bodyVelocity=Instance.new("BodyVelocity")
532
                bodyVelocity.velocity=vt(0,10,0)
533
                bodyVelocity.P=1000
534
                bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
535
                bodyVelocity.Parent=hit
536
                game:GetService("Debris"):AddItem(bodyVelocity,1)
537
                rl=Instance.new("BodyAngularVelocity")
538
                rl.P=3000
539
                rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
540
                rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
541
                rl.Parent=hit
542
                game:GetService("Debris"):AddItem(rl,.5)
543
                elseif Type=="Snare" then
544
                bp=Instance.new("BodyPosition")
545
                bp.P=2000
546
                bp.D=100
547
                bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
548
                bp.position=hit.Parent.Torso.Position
549
                bp.Parent=hit.Parent.Torso
550
                game:GetService("Debris"):AddItem(bp,1)
551
                elseif Type=="Target" then
552
                if Targetting==false then
553
                ZTarget=hit.Parent.Torso
554
                coroutine.resume(coroutine.create(function(Part) 
555
                swait(5)
556
                end),ZTarget)
557
                TargHum=ZTarget.Parent:findFirstChild("Humanoid")
558
                targetgui=Instance.new("BillboardGui")
559
                targetgui.Parent=ZTarget
560
                targetgui.Size=UDim2.new(10,100,10,100)
561
                targ=Instance.new("ImageLabel")
562
                targ.Parent=targetgui
563
                targ.BackgroundTransparency=1
564
                targ.Image="rbxassetid://4834067"
565
                targ.Size=UDim2.new(1,0,1,0)
566
                cam.CameraType="Scriptable"
567
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
568
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
569
                workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
570
                Targetting=true
571
                RocketTarget=ZTarget
572
                for i=1,Property do
573
                --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
574
                if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
575
                swait()
576
                end
577
                --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
578
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
579
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
580
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
581
                end
582
                Targetting=false
583
                RocketTarget=nil
584
                targetgui.Parent=nil
585
                cam.CameraType="Custom"
586
                end
587
                end
588
                        debounce=Instance.new("BoolValue")
589
                        debounce.Name="DebounceHit"
590
                        debounce.Parent=hit.Parent
591
                        debounce.Value=true
592
                        game:GetService("Debris"):AddItem(debounce,Delay)
593
                        c=Instance.new("ObjectValue")
594
                        c.Name="creator"
595
                        c.Value=Player
596
                        c.Parent=h
597
                        game:GetService("Debris"):AddItem(c,.5)
598
                CRIT=false
599
                hitDeb=true
600
                AttackPos=6
601
        end
602
end
603
 
604
showDamage=function(Char,Dealt,du,Color)
605
        m=Instance.new("Model")
606
        m.Name=""
607
        h=Instance.new("Humanoid")
608
        h.Health=0
609
        h.MaxHealth=0
610
        h.Parent=m
611
        c=Instance.new("Part")
612
        c.Transparency=0
613
        c.Material = "Neon"
614
        c.BrickColor=bc("Bright red")
615
        c.Name="Head"
616
        c.TopSurface=0
617
        c.BottomSurface=0
618
CV="Hot pink"
619
620
local txt = Instance.new("BillboardGui", c)
621
txt.Adornee = c
622
txt.Name = "_status"
623
txt.Size = UDim2.new(2, 0, 1.2, 0)
624
txt.StudsOffset = Vector3.new(-9, 8, 0)
625
local text = Instance.new("TextLabel", txt)
626
text.Size = UDim2.new(10, 0, 7, 0)
627
text.FontSize = "Size24"
628
text.TextScaled = true
629
text.TextTransparency = 0
630
text.BackgroundTransparency = 1 
631
text.TextTransparency = 0
632
text.TextStrokeTransparency = 0
633
if Dealt < 12 then
634
text.Font = "Highway"
635
elseif Dealt < 20 then
636
text.Font = "SourceSansBold"
637
elseif Dealt >= 20 then
638
text.Font = "Fantasy"
639
end
640
text.TextStrokeColor3 = BrickColor.new("Really black").Color
641
local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
642
v=Instance.new("Part")
643
v.Name = "ColorBrick"
644
v.Parent=c
645
v.FormFactor="Symmetric"
646
v.Anchored=true
647
v.CanCollide=false
648
v.BottomSurface="Smooth"
649
v.TopSurface="Smooth"
650
v.Size=Vector3.new(10,5,3)
651
v.Transparency=1
652
v.CFrame=c.CFrame
653
v.BrickColor=BrickColor.new(CV)
654
v.Transparency=1
655
if Dealt < 12 then
656
text.TextColor3 = BrickColor.new("White").Color
657
elseif Dealt < 20 then
658
text.TextColor3 = BrickColor.new("Bright yellow").Color
659
elseif Dealt >= 20 then
660
text.TextColor3 = BrickColor.new("Really red").Color
661
end
662
v.Shape="Block"
663
text.Text = tostring(Dealt).. "!"
664
  local dam = Instance.new("Sound",c)
665
  local rndm=math.random(1,#hitsounds)
666
  local r=rndm
667
  dam.SoundId = "http://www.roblox.com/asset/?id="..hitsounds[r]
668
  dam.Volume = 1.25
669
  dam.Pitch = 1
670
  dam:Play()
671
        c.formFactor="Plate"
672
c.Transparency = 1
673
        c.Size=Vector3.new(1,.4,1)
674
        ms=Instance.new("CylinderMesh")
675
        ms.Scale=Vector3.new(.8,.8,.8)
676
        if CRIT==true then
677
                ms.Scale=Vector3.new(1,1.25,1)
678
        end
679
        ms.Parent=c
680
        c.Reflectance=0
681
        Instance.new("BodyGyro").Parent=c
682
        c.Parent=m
683
        if Char:findFirstChild("Head")~=nil then
684
        c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
685
        elseif Char.Parent:findFirstChild("Head")~=nil then
686
        c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
687
        end
688
        f=Instance.new("BodyPosition")
689
        f.P=2000
690
        f.D=100
691
        f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
692
        f.position=c.Position+Vector3.new(0,3,0)
693
        f.Parent=c
694
        game:GetService("Debris"):AddItem(m,.5+du)
695
        c.CanCollide=false
696
        m.Parent=workspace
697
        c.CanCollide=false
698
        wait(1)
699
        for l = 0, 9 do
700
         text.TextTransparency = text.TextTransparency + 0.1
701
         text.TextStrokeTransparency = text.TextStrokeTransparency + 0.1
702
         wait()
703
        end
704
end
705
706
gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
707
  local gui = it(GuiType)
708
  gui.Parent = parent
709
  gui.Text = text
710
  gui.BackgroundTransparency = backtrans
711
  gui.BackgroundColor3 = backcol
712
  gui.SizeConstraint = "RelativeXY"
713
  gui.TextXAlignment = "Center"
714
  gui.TextYAlignment = "Center"
715
  gui.Position = pos
716
  gui.Size = size
717
  gui.Font = "SourceSans"
718
  gui.FontSize = "Size14"
719
  gui.TextWrapped = false
720
  gui.TextStrokeTransparency = 0
721
  gui.TextColor = BrickColor.new("White")
722
  return gui
723
end
724
---- GUI set
725
local basgui = it("GuiMain")
726
basgui.Parent = Player.PlayerGui
727
basgui.Name = "CooldownsGUI"
728
local basframe = it("Frame")
729
basframe.Parent = basgui
730
basframe.BackgroundColor3 = Color3.new(255, 255, 255)
731
basframe.BackgroundTransparency = 1
732
basframe.BorderColor3 = Color3.new(17, 17, 17)
733
basframe.Size = UDim2.new(0.2, 0, 0.2, 0)
734
basframe.Position = UDim2.new(0.8, 0, 0.8, 0)
735
local basicgui = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("White").Color, UDim2.new(0.35, 0, -0.125, 0), UDim2.new(0.45, 0, 0.35, 0))
736
basicgui.ZIndex = 2
737
basicgui.Font = "Highway"
738
basicgui.BackgroundTransparency = 0.5
739
basicgui.BorderSizePixel = 0.65
740
basicgui.TextScaled = true
741
basicgui.Text = "(X)\nMeteor"
742
basicgui.TextSize = 24
743
local basicgui2 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("White").Color, UDim2.new(-0.15, 0, -0.125, 0), UDim2.new(0.45, 0, 0.35, 0))
744
basicgui2.ZIndex = 2
745
basicgui2.Font = "Highway"
746
basicgui2.BackgroundTransparency = 0.5
747
basicgui2.BorderSizePixel = 0.65
748
basicgui2.TextScaled = true
749
basicgui2.Text = "(Z)\nLarge Bullet"
750
basicgui2.TextSize = 24
751
local basicgui3 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("White").Color, UDim2.new(-0.15, 0, 0.225, 0), UDim2.new(0.45, 0, 0.35, 0))
752
basicgui3.ZIndex = 2
753
basicgui3.Font = "Highway"
754
basicgui3.BackgroundTransparency = 0.5
755
basicgui3.BorderSizePixel = 0.65
756
basicgui3.TextScaled = true
757
basicgui3.Text = "(C)\nMeteor Rain"
758
basicgui3.TextSize = 24
759
local basicgui4 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("White").Color, UDim2.new(0.35, 0, 0.225, 0), UDim2.new(0.45, 0, 0.35, 0))
760
basicgui4.ZIndex = 2
761
basicgui4.Font = "Highway"
762
basicgui4.BackgroundTransparency = 0.5
763
basicgui4.BorderSizePixel = 0.65
764
basicgui4.TextScaled = true
765
basicgui4.Text = "(V)\nKarma Meteor"
766
basicgui4.TextSize = 24
767
768
local healthg = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Really black").Color, UDim2.new(-0.15, 0, 0.675, 0), UDim2.new(0.95, 0, 0.15, 0))
769
healthg.ZIndex = 2
770
healthg.Font = "Highway"
771
healthg.BackgroundTransparency = 0.5
772
healthg.BorderSizePixel = 0.65
773
healthg.TextScaled = true
774
healthg.Text = "health"
775
healthg.TextSize = 24
776
777
char.Humanoid.Animator.Parent = nil
778
779
function BasicProjectile()
780
	attack = true
781
		for i = 0,2,0.1 do
782
		swait()
783
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
784
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3)
785
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(90)), 0.3)
786
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
787
		end
788
		local sa = Instance.new("Sound",rarm)
789
sa.SoundId = "rbxassetid://365002938" -- needs current appropiate sound for this
790
sa.Volume = 1
791
sa.Pitch = 1.5
792
sa:Play()
793
	 local lb = Instance.new("Part")
794
  lb.Parent = char
795
   lb.Material = "Neon"
796
    lb.Color = BrickColor.new("White").Color
797
     lb.CanCollide = false
798
     lb.Shape = "Ball"
799
     lb.CFrame = rarm.CFrame
800
     lb.Anchored = true
801
     lb.Transparency = 0
802
     lb.Size = vt(2.5,2.5,2.5)
803
     local thing = Instance.new("SpecialMesh",lb)
804
     thing.MeshType = meshtype
805
local hitted = false
806
lb.Anchored = false
807
  local bv = Instance.new("BodyVelocity")
808
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
809
  bv.velocity = mouse.Hit.lookVector *75
810
  bv.Parent = lb
811
wait(0.05)
812
lb.Touched:connect(function(hit)
813
if hitted == false then
814
hitted = true
815
		local sa = Instance.new("Sound",lb)
816
sa.SoundId = "rbxassetid://138210320" -- needs current appropiate sound for this
817
sa.Volume = 1
818
sa.Pitch = 1
819
sa:Play()
820
lb.Anchored = true
821
lb.Transparency = 1
822
local aa = Instance.new("Part")
823
  aa.Parent = lb
824
   aa.Material = "Neon"
825
    aa.Color = BrickColor.new("White").Color
826
     aa.CanCollide = false
827
     aa.Shape = "Ball"
828
     aa.CFrame = lb.CFrame
829
     aa.Anchored = true
830
     aa.Transparency = 0
831
     aa.Size = vt(1,1,1)
832
     aa.CFrame = lb.CFrame
833
     local thinger = Instance.new("SpecialMesh",aa)
834
     thinger.MeshType = meshtype
835
thinger.Scale = vt(2.5,2.5,2.5)
836
for i = 0, 19 do
837
	wait()
838
	thinger.Scale = thinger.Scale + vt(1.5,1.5,1.5)
839
	aa.Transparency = aa.Transparency + 0.05
840
end
841
Damagefunc(hit,1,5,5,"Normal",root,.2,1)
842
wait(3)
843
lb:Destroy()
844
end
845
end)
846
	attack = false
847
	wait(2.5)
848
	sa:Destroy()
849
	wait(50)
850
	lb:Destroy()
851
end
852
853
function FirstSkill()
854
	attack = true
855
		for i = 0,2,0.1 do
856
		swait()
857
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
858
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3)
859
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(90)), 0.3)
860
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
861
		end
862
		local sa = Instance.new("Sound",rarm)
863
sa.SoundId = "rbxassetid://365002938" -- needs current appropiate sound for this
864
sa.Volume = 1
865
sa.Pitch = 1
866
sa:Play()
867
	 local lb = Instance.new("Part")
868
  lb.Parent = char
869
   lb.Material = "Neon"
870
    lb.Color = BrickColor.new("White").Color
871
     lb.CanCollide = false
872
     lb.Shape = "Ball"
873
     lb.CFrame = rarm.CFrame
874
     lb.Anchored = true
875
     lb.Transparency = 0
876
     lb.Size = vt(3,3,3)
877
     local thing = Instance.new("SpecialMesh",lb)
878
     thing.MeshType = meshtype
879
     thing.Scale = vt(1.5,1.5,1.5)
880
local hitted = false
881
lb.Anchored = false
882
  local bv = Instance.new("BodyVelocity")
883
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
884
  bv.velocity = mouse.Hit.lookVector *75
885
  bv.Parent = lb
886
wait(0.05)
887
lb.Touched:connect(function(hit)
888
if hitted == false then
889
hitted = true
890
		local sa = Instance.new("Sound",lb)
891
sa.SoundId = "rbxassetid://138210320" -- needs current appropiate sound for this
892
sa.Volume = 1
893
sa.Pitch = 0.85
894
sa:Play()
895
lb.Anchored = true
896
lb.Transparency = 1
897
local aa = Instance.new("Part")
898
  aa.Parent = lb
899
   aa.Material = "Neon"
900
    aa.Color = BrickColor.new("White").Color
901
     aa.CanCollide = false
902
     aa.Shape = "Ball"
903
     aa.CFrame = lb.CFrame
904
     aa.Anchored = true
905
     aa.Transparency = 0
906
     aa.Size = vt(1,1,1)
907
     aa.CFrame = lb.CFrame
908
     local thinger = Instance.new("SpecialMesh",aa)
909
     thinger.MeshType = meshtype
910
thinger.Scale = vt(4,4,4)
911
for i = 0, 19 do
912
	wait()
913
	thinger.Scale = thinger.Scale + vt(1.5,1.5,1.5)
914
	aa.Transparency = aa.Transparency + 0.05
915
end
916
Damagefunc(hit,4,10,5,"Normal",root,.2,1)
917
wait(3)
918
lb:Destroy()
919
end
920
end)
921
	attack = false
922
	wait(2.5)
923
	sa:Destroy()
924
	wait(50)
925
	lb:Destroy()
926
end
927
928
function SecondSkill()
929
	attack = true
930
		for i = 0,2,0.1 do
931
		swait()
932
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
933
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
934
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3)
935
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
936
		end
937
		local sa = Instance.new("Sound",rarm)
938
sa.SoundId = "rbxassetid://365002938" -- needs current appropiate sound for this
939
sa.Volume = 0
940
sa.Pitch = 0
941
sa:Play()
942
	 local lb = Instance.new("Part")
943
  lb.Parent = char
944
   lb.Material = "Neon"
945
    lb.Color = BrickColor.new("White").Color
946
     lb.CanCollide = false
947
     lb.Shape = "Ball"
948
     lb.CFrame = tors.CFrame + Vector3.new(0,50,0)
949
     lb.Anchored = true
950
     lb.Transparency = 0
951
     lb.Size = vt(15,15,15)
952
     local thing = Instance.new("SpecialMesh",lb)
953
     thing.MeshType = meshtype
954
local hitted = false
955
lb.Anchored = false
956
  local bv = Instance.new("BodyVelocity")
957
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
958
  bv.velocity = mouse.Hit.lookVector *75
959
  bv.Parent = lb
960
wait(0.05)
961
lb.Touched:connect(function(hit)
962
if hitted == false then
963
hitted = true
964
		local sa = Instance.new("Sound",lb)
965
sa.SoundId = "rbxassetid://633129949" -- needs current appropiate sound for this
966
sa.Volume = 2.25
967
sa.Pitch = 0.75
968
sa:Play()
969
		local sa = Instance.new("Sound",lb)
970
sa.SoundId = "rbxassetid://633129949" -- needs current appropiate sound for this
971
sa.Volume = 1.75
972
sa.Pitch = 0.65
973
sa:Play()
974
		local sa = Instance.new("Sound",lb)
975
sa.SoundId = "rbxassetid://138186576" -- needs current appropiate sound for this
976
sa.Volume = 5
977
sa.Pitch = 1
978
sa:Play()
979
lb.Anchored = true
980
lb.Transparency = 1
981
local aa = Instance.new("Part")
982
  aa.Parent = lb
983
   aa.Material = "Neon"
984
    aa.Color = BrickColor.new("White").Color
985
     aa.CanCollide = false
986
     aa.Shape = "Ball"
987
     aa.CFrame = lb.CFrame
988
     aa.Anchored = true
989
     aa.Transparency = 0
990
     aa.Size = vt(1,1,1)
991
     aa.CFrame = lb.CFrame
992
     local thinger = Instance.new("SpecialMesh",aa)
993
     thinger.MeshType = meshtype
994
thinger.Scale = vt(15,15,15)
995
996
local aa2 = Instance.new("Part")
997
  aa2.Parent = lb
998
   aa2.Material = "Neon"
999
    aa2.Color = BrickColor.new("White").Color
1000
     aa2.CanCollide = false
1001
     aa2.Shape = "Ball"
1002
     aa2.CFrame = lb.CFrame
1003
     aa2.Anchored = true
1004
     aa2.Transparency = 0.5
1005
     aa2.Size = vt(1,1,1)
1006
     aa2.CFrame = lb.CFrame
1007
     local thinger2 = Instance.new("SpecialMesh",aa2)
1008
     thinger2.MeshType = meshtype
1009
thinger2.Scale = vt(14.5,14.5,14.5)
1010
for i = 0, 19 do
1011
	wait()
1012
	thinger.Scale = thinger.Scale + vt(4.5,4.5,4.5)
1013
	thinger2.Scale = thinger2.Scale + vt(1.5,1.5,1.5)
1014
end
1015
for i = 0, 9 do
1016
	wait()
1017
	thinger.Scale = thinger.Scale + vt(3.25,3.25,3.25)
1018
	thinger2.Scale = thinger2.Scale + vt(1.25,1.25,1.25)
1019
	aa.Transparency = aa.Transparency + 0.05
1020
end
1021
for i = 0, 9 do
1022
	wait()
1023
	thinger.Scale = thinger.Scale + vt(1.5,1.5,1.5)
1024
    thinger2.Scale = thinger2.Scale + vt(1,1,1)
1025
	aa.Transparency = aa.Transparency + 0.05
1026
end
1027
Damagefunc(hit,10,16,5,"Normal",root,.2,1)
1028
for i = 0, 99 do
1029
	wait()
1030
    thinger2.Scale = thinger2.Scale + vt(0.75,0.75,0.75)
1031
    aa2.Transparency = aa2.Transparency + 0.01
1032
end
1033
lb:Destroy()
1034
end
1035
end)
1036
	attack = false
1037
for i = 0, 49 do
1038
	wait()
1039
	bv.velocity = mouse.Hit.lookVector *75
1040
end
1041
	wait(2.5)
1042
	sa:Destroy()
1043
	wait(50)
1044
	lb:Destroy()
1045
end
1046
1047
function ThirdSkill()
1048
	attack = true
1049
		for i = 0,5,0.1 do
1050
		swait()
1051
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1052
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
1053
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3)
1054
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
1055
		end
1056
		local sa = Instance.new("Sound",rarm)
1057
sa.SoundId = "rbxassetid://365002938" -- needs current appropiate sound for this
1058
sa.Volume = 0
1059
sa.Pitch = 0
1060
sa:Play()
1061
for e = 0, 4 do
1062
	 local lb = Instance.new("Part")
1063
  lb.Parent = char
1064
   lb.Material = "Neon"
1065
    lb.Color = BrickColor.new("White").Color
1066
     lb.CanCollide = false
1067
     lb.Shape = "Ball"
1068
     lb.CFrame = tors.CFrame + Vector3.new(math.random(-50,50),100,math.random(-50,50))
1069
     lb.Anchored = true
1070
     lb.Transparency = 0
1071
     lb.Size = vt(15,15,15)
1072
     local thing = Instance.new("SpecialMesh",lb)
1073
     thing.MeshType = meshtype
1074
local hitted = false
1075
lb.Anchored = false
1076
wait(0.05)
1077
lb.Touched:connect(function(hit)
1078
if hitted == false then
1079
hitted = true
1080
		local sa = Instance.new("Sound",lb)
1081
sa.SoundId = "rbxassetid://633129949" -- needs current appropiate sound for this
1082
sa.Volume = 2.25
1083
sa.Pitch = 0.75
1084
sa:Play()
1085
		local sa = Instance.new("Sound",lb)
1086
sa.SoundId = "rbxassetid://633129949" -- needs current appropiate sound for this
1087
sa.Volume = 1.75
1088
sa.Pitch = 0.65
1089
sa:Play()
1090
		local sa = Instance.new("Sound",lb)
1091
sa.SoundId = "rbxassetid://138186576" -- needs current appropiate sound for this
1092
sa.Volume = 5
1093
sa.Pitch = 1
1094
sa:Play()
1095
lb.Anchored = true
1096
lb.Transparency = 1
1097
local aa = Instance.new("Part")
1098
  aa.Parent = lb
1099
   aa.Material = "Neon"
1100
    aa.Color = BrickColor.new("White").Color
1101
     aa.CanCollide = false
1102
     aa.Shape = "Ball"
1103
     aa.CFrame = lb.CFrame
1104
     aa.Anchored = true
1105
     aa.Transparency = 0
1106
     aa.Size = vt(1,1,1)
1107
     aa.CFrame = lb.CFrame
1108
     local thinger = Instance.new("SpecialMesh",aa)
1109
     thinger.MeshType = meshtype
1110
thinger.Scale = vt(15,15,15)
1111
1112
local aa2 = Instance.new("Part")
1113
  aa2.Parent = lb
1114
   aa2.Material = "Neon"
1115
    aa2.Color = BrickColor.new("White").Color
1116
     aa2.CanCollide = false
1117
     aa2.Shape = "Ball"
1118
     aa2.CFrame = lb.CFrame
1119
     aa2.Anchored = true
1120
     aa2.Transparency = 0.5
1121
     aa2.Size = vt(1,1,1)
1122
     aa2.CFrame = lb.CFrame
1123
     local thinger2 = Instance.new("SpecialMesh",aa2)
1124
     thinger2.MeshType = meshtype
1125
thinger2.Scale = vt(14.5,14.5,14.5)
1126
for i = 0, 19 do
1127
	wait()
1128
	thinger.Scale = thinger.Scale + vt(4.5,4.5,4.5)
1129
	thinger2.Scale = thinger2.Scale + vt(1.5,1.5,1.5)
1130
end
1131
for i = 0, 9 do
1132
	wait()
1133
	thinger.Scale = thinger.Scale + vt(3.25,3.25,3.25)
1134
	thinger2.Scale = thinger2.Scale + vt(1.25,1.25,1.25)
1135
	aa.Transparency = aa.Transparency + 0.05
1136
end
1137
for i = 0, 9 do
1138
	wait()
1139
	thinger.Scale = thinger.Scale + vt(1.5,1.5,1.5)
1140
    thinger2.Scale = thinger2.Scale + vt(1,1,1)
1141
	aa.Transparency = aa.Transparency + 0.05
1142
end
1143
Damagefunc(hit,14,19,5,"Normal",root,.2,1)
1144
for i = 0, 99 do
1145
	wait()
1146
    thinger2.Scale = thinger2.Scale + vt(0.75,0.75,0.75)
1147
    aa2.Transparency = aa2.Transparency + 0.01
1148
end
1149
lb:Destroy()
1150
end
1151
end)
1152
end
1153
	attack = false
1154
	wait(2.5)
1155
	sa:Destroy()
1156
end
1157
1158
function ForthSkill()
1159
	attack = true
1160
		for i = 0,1,0.1 do
1161
		swait()
1162
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1163
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
1164
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3)
1165
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
1166
		end
1167
			 local l = Instance.new("Part")
1168
  l.Parent = char
1169
   l.Material = "Neon"
1170
    l.Color = BrickColor.new("White").Color
1171
     l.CanCollide = false
1172
     l.Shape = "Ball"
1173
     l.CFrame = mouse.Hit
1174
     l.Anchored = true
1175
     l.Transparency = 0.5
1176
     l.Size = vt(1,1,1)
1177
     local thing = Instance.new("SpecialMesh",l)
1178
     thing.MeshType = meshtype
1179
     thing.Scale = vt(30,30,30)
1180
for i = 0, 99 do
1181
	wait()
1182
	l.CFrame = mouse.Hit
1183
end
1184
		local sa = Instance.new("Sound",l)
1185
sa.SoundId = "rbxassetid://742818884" -- needs current appropiate sound for this
1186
sa.Volume = 5
1187
sa.Pitch = 1
1188
sa:Play()
1189
for i = 0, 19 do
1190
	wait()
1191
	thing.Scale = thing.Scale + vt(1,1,1)
1192
	l.Transparency = l.Transparency + 0.025
1193
end
1194
		local sa = Instance.new("Sound",rarm)
1195
sa.SoundId = "rbxassetid://365002938" -- needs current appropiate sound for this
1196
sa.Volume = 0
1197
sa.Pitch = 0
1198
sa:Play()
1199
	 local lb = Instance.new("Part")
1200
  lb.Parent = char
1201
   lb.Material = "Neon"
1202
    lb.Color = BrickColor.new("White").Color
1203
     lb.CanCollide = false
1204
     lb.Shape = "Ball"
1205
     lb.CFrame = l.CFrame + Vector3.new(0,750,0)
1206
     lb.Anchored = true
1207
     lb.Transparency = 0
1208
     lb.Size = vt(30,30,30)
1209
     local thing = Instance.new("SpecialMesh",lb)
1210
     thing.MeshType = meshtype
1211
local hitted = false
1212
l:Destroy()
1213
lb.Anchored = false
1214
wait(0.05)
1215
lb.Touched:connect(function(hit)
1216
if hitted == false then
1217
hitted = true
1218
		local sa = Instance.new("Sound",lb)
1219
sa.SoundId = "rbxassetid://402347142" -- needs current appropiate sound for this
1220
sa.Volume = 2.25
1221
sa.Pitch = 0.75
1222
sa:Play()
1223
		local sa = Instance.new("Sound",lb)
1224
sa.SoundId = "rbxassetid://402347142" -- needs current appropiate sound for this
1225
sa.Volume = 1.75
1226
sa.Pitch = 0.65
1227
sa:Play()
1228
		local sa = Instance.new("Sound",lb)
1229
sa.SoundId = "rbxassetid://138186576" -- needs current appropiate sound for this
1230
sa.Volume = 5
1231
sa.Pitch = 1
1232
sa:Play()
1233
lb.Anchored = true
1234
lb.Transparency = 1
1235
local aa = Instance.new("Part")
1236
  aa.Parent = lb
1237
   aa.Material = "Neon"
1238
    aa.Color = BrickColor.new("White").Color
1239
     aa.CanCollide = false
1240
     aa.Shape = "Ball"
1241
     aa.CFrame = lb.CFrame
1242
     aa.Anchored = true
1243
     aa.Transparency = 0
1244
     aa.Size = vt(1,1,1)
1245
     aa.CFrame = lb.CFrame
1246
     local thinger = Instance.new("SpecialMesh",aa)
1247
     thinger.MeshType = meshtype
1248
thinger.Scale = vt(30,30,30)
1249
1250
local aa2 = Instance.new("Part")
1251
  aa2.Parent = lb
1252
   aa2.Material = "Neon"
1253
    aa2.Color = BrickColor.new("White").Color
1254
     aa2.CanCollide = false
1255
     aa2.Shape = "Ball"
1256
     aa2.CFrame = lb.CFrame
1257
     aa2.Anchored = true
1258
     aa2.Transparency = 0
1259
     aa2.Size = vt(1,1,1)
1260
     aa2.CFrame = lb.CFrame
1261
     local thinger2 = Instance.new("SpecialMesh",aa2)
1262
     thinger2.MeshType = meshtype
1263
thinger2.Scale = vt(29.5,29.5,29.5)
1264
for i = 0, 19 do
1265
	wait()
1266
	thinger.Scale = thinger.Scale + vt(4.5*2,4.5*2,4.5*2)
1267
	thinger2.Scale = thinger2.Scale + vt(1.5*2,1.5*80,1.5*2)
1268
end
1269
for i = 0, 9 do
1270
	wait()
1271
	thinger.Scale = thinger.Scale + vt(3.25*2,3.25*2,3.25*2)
1272
	thinger2.Scale = thinger2.Scale + vt(1.25*2,1.25*80,1.25*2)
1273
	aa.Transparency = aa.Transparency + 0.05
1274
end
1275
for i = 0, 9 do
1276
	wait()
1277
	thinger.Scale = thinger.Scale + vt(1.5*2,1.5*2,1.5*2)
1278
    thinger2.Scale = thinger2.Scale + vt(1*2,1*80,1*2)
1279
	aa.Transparency = aa.Transparency + 0.05
1280
end
1281
Damagefunc(hit,3400,7700,5,"Normal",root,.2,1)
1282
for i = 0, 99 do
1283
	wait()
1284
    thinger2.Scale = thinger2.Scale + vt(0.75*2,0.75*80,0.75*2)
1285
    aa2.Transparency = aa2.Transparency + 0.01
1286
end
1287
lb:Destroy()
1288
end
1289
end)
1290
	attack = false
1291
	wait(2.5)
1292
	sa:Destroy()
1293
end
1294
1295
mouse.Button1Down:connect(function()
1296
	if attack == false then
1297
		BasicProjectile()
1298
	end
1299
end)
1300
1301
mouse.KeyDown:connect(function(key)
1302
if key == "z" and attack == false then
1303
FirstSkill()
1304
elseif key == "x" and attack == false then
1305
SecondSkill()
1306
elseif key == "c" and attack == false then
1307
ThirdSkill()
1308
elseif key == "v" and attack == false then
1309
ForthSkill()
1310
end
1311
end)
1312
1313
game:GetService("RunService").Stepped:connect(function()
1314
  Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
1315
  velocity = RootPart.Velocity.y
1316
  sine = sine + change
1317
  local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
1318
  if equipped == true or equipped == false then
1319
	healthg.Text = math.floor(hum.Health).. "/" ..math.floor(hum.MaxHealth)
1320
    if RootPart.Velocity.y > 1 and hit == nil then
1321
      Anim = "Jump"
1322
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1323
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1324
      if attack == false then
1325
		RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1326
        Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2.5),math.rad(0),math.rad(0)),.3)
1327
              RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(50)), 0.3)
1328
              LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-50)), 0.3)
1329
      end
1330
    else
1331
      if RootPart.Velocity.y < -1 and hit == nil then
1332
        Anim = "Fall"
1333
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1334
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1335
        if attack == false then
1336
			RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),.3)
1337
        Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2.5),math.rad(0),math.rad(0)),.3)
1338
              RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(90)), 0.3)
1339
              LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-90)), 0.3)
1340
end
1341
      else
1342
        if Torsovelocity < 1 and hit ~= nil then
1343
          Anim = "Idle"
1344
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1345
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1346
          if attack == false then
1347
            change = 1
1348
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 32))* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1349
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1350
             RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5 - 1.5 * math.cos(sine / 32))), 0.3)
1351
             LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5 + 1.5 * math.cos(sine / 32))), 0.3)
1352
          end
1353
        else
1354
          if Torsovelocity > 2 and hit ~= nil then
1355
            Anim = "Walk"
1356
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 50 * math.cos(sine / 6))),.3)
1357
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 50 * math.cos(sine / 6))),.3)
1358
            if attack == false then
1359
	          RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 32))* angles(math.rad(5),math.rad(0),math.rad(0)),.3)
1360
              Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1361
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0 + 45 * math.cos(sine / 5)), math.rad(0), math.rad(5)), 0.3)
1362
              LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0 - 45 * math.cos(sine / 5)), math.rad(0), math.rad(-5)), 0.3)
1363
            end
1364
          end
1365
        end
1366
      end
1367
    end
1368
  end
1369
end)