View difference between Paste ID: MRZT1Q18 and TT4mmcFu
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,game,owner = owner,game
3
local RealPlayer = Player
4
do
5
    print("FE Compatibility code by Mokiros")
6
    local rp = RealPlayer
7
    script.Parent = rp.Character
8
   
9
    --RemoteEvent for communicating
10
    local Event = Instance.new("RemoteEvent")
11
    Event.Name = "UserInput_Event"
12
 
13
    --Fake event to make stuff like Mouse.KeyDown work
14
    local function fakeEvent()
15
        local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
16
        t.connect = t.Connect
17
        return t
18
    end
19
 
20
    --Creating fake input objects with fake variables
21
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
22
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
23
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
24
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
25
    end}
26
    --Merged 2 functions into one by checking amount of arguments
27
    CAS.UnbindAction = CAS.BindAction
28
 
29
    --This function will trigger the events that have been :Connect()'ed
30
    local function te(self,ev,...)
31
        local t = m[ev]
32
        if t and t._fakeEvent then
33
            for _,f in pairs(t.Functions) do
34
                f(...)
35
            end
36
        end
37
    end
38
    m.TrigEvent = te
39
    UIS.TrigEvent = te
40
 
41
    Event.OnServerEvent:Connect(function(plr,io)
42
        if plr~=rp then return end
43
        m.Target = io.Target
44
        m.Hit = io.Hit
45
        if not io.isMouse then
46
            local b = io.UserInputState == Enum.UserInputState.Begin
47
            if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
                return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
            end
50
            for _,t in pairs(CAS.Actions) do
51
                for _,k in pairs(t.Keys) do
52
                    if k==io.KeyCode then
53
                        t.Function(t.Name,io.UserInputState,io)
54
                    end
55
                end
56
            end
57
            m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
        end
60
    end)
61
    Event.Parent = NLS([==[
62
    local Player = game:GetService("Players").LocalPlayer
63
    local Event = script:WaitForChild("UserInput_Event")
64
 
65
    local Mouse = Player:GetMouse()
66
    local UIS = game:GetService("UserInputService")
67
    local input = function(io,a)
68
        if a then return end
69
        --Since InputObject is a client-side instance, we create and pass table instead
70
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
71
    end
72
    UIS.InputBegan:Connect(input)
73
    UIS.InputEnded:Connect(input)
74
 
75
    local h,t
76
    --Give the server mouse data 30 times every second, but only if the values changed
77
    --If player is not moving their mouse, client won't fire events
78
    while wait(1/30) do
79
        if h~=Mouse.Hit or t~=Mouse.Target then
80
            h,t=Mouse.Hit,Mouse.Target
81
            Event:FireServer({isMouse=true,Target=t,Hit=h})
82
        end
83
    end]==],Player.Character)
84
 
85
    ----Sandboxed game object that allows the usage of client-side methods and services
86
    --Real game object
87
    local _rg = game
88
 
89
    --Metatable for fake service
90
    local fsmt = {
91
        __index = function(self,k)
92
            local s = rawget(self,"_RealService")
93
            if s then return s[k] end
94
        end,
95
        __newindex = function(self,k,v)
96
            local s = rawget(self,"_RealService")
97
            if s then s[k]=v end
98
        end,
99
        __call = function(self,...)
100
            local s = rawget(self,"_RealService")
101
            if s then return s(...) end
102
        end
103
    }
104
    local function FakeService(t,RealService)
105
        t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
106
        return setmetatable(t,fsmt)
107
    end
108
 
109
    --Fake game object
110
    local g = {
111
        GetService = function(self,s)
112
            return self[s]
113
        end,
114
        Players = FakeService({
115
            LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
116
        },"Players"),
117
        UserInputService = FakeService(UIS,"UserInputService"),
118
        ContextActionService = FakeService(CAS,"ContextActionService"),
119
    }
120
    rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
121
    g.service = g.GetService
122
 
123
    setmetatable(g,{
124
        __index=function(self,s)
125
            return _rg:GetService(s) or typeof(_rg[s])=="function"
126
            and function(_,...)return _rg[s](_rg,...)end or _rg[s]
127
        end,
128
        __newindex = fsmt.__newindex,
129
        __call = fsmt.__call
130
    })
131
    --Changing owner to fake player object to support owner:GetMouse()
132
    game,owner = g,g.Players.LocalPlayer
133
end
134
--Made by noobygames12
135
136
p = game.Players.LocalPlayer
137
char = p.Character
138
torso = char.Torso
139
neck = char.Torso.Neck
140
141
Player=game:GetService("Players").LocalPlayer
142
Character=Player.Character 
143
PlayerGui=Player.PlayerGui
144
Backpack=Player.Backpack 
145
Torso=Character.Torso 
146
Head=Character.Head 
147
Humanoid=Character.Humanoid
148
LeftArm=Character["Left Arm"] 
149
LeftLeg=Character["Left Leg"] 
150
RightArm=Character["Right Arm"] 
151
RightLeg=Character["Right Leg"] 
152
cam=game.Workspace.CurrentCamera
153
LS=Torso["Left Shoulder"] 
154
LH=Torso["Left Hip"] 
155
RS=Torso["Right Shoulder"] 
156
RH=Torso["Right Hip"] 
157
Face = Head.face
158
Neck=Torso.Neck
159
it=Instance.new
160
attacktype=1
161
vt=Vector3.new
162
cf=CFrame.new
163
euler=CFrame.fromEulerAnglesXYZ
164
angles=CFrame.Angles
165
cloaked=false
166
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
167
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
168
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
169
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
170
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
171
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
172
RootPart=Character.HumanoidRootPart
173
RootJoint=RootPart.RootJoint
174
RootCF=euler(-1.57,0,3.14)
175
attack = false 
176
bounce=false
177
cooldown=false
178
deeznuts=false
179
attackdebounce = false 
180
deb=false
181
equipped=true
182
hand=false
183
MMouse=nil
184
combo=0
185
mana=0
186
trispeed=.2
187
attackmode='none'
188
local idle=0
189
local Anim="Idle"
190
local Effects={}
191
local gun=false
192
local shoot=false
193
player=nil 
194
mana=0
195
cam = workspace.CurrentCamera
196
ZTarget = nil
197
RocketTarget = nil
198
local m = Instance.new("Model",Character)
199
m.Name = "WeaponModel"
200
201
mouse=Player:GetMouse()
202
--save shoulders 
203
RSH, LSH=nil, nil 
204
--welds 
205
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
206
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
207
LH=Torso["Left Hip"]
208
RH=Torso["Right Hip"]
209
TorsoColor=Torso.BrickColor
210
function NoOutline(Part)
211
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
212
end
213
player=Player 
214
ch=Character
215
RSH=ch.Torso["Right Shoulder"] 
216
LSH=ch.Torso["Left Shoulder"] 
217
-- 
218
RSH.Parent=nil 
219
LSH.Parent=nil 
220
-- 
221
RW.Name="Right Shoulder"
222
RW.Part0=ch.Torso 
223
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
224
RW.C1=cf(0, 0.5, 0) 
225
RW.Part1=ch["Right Arm"] 
226
RW.Parent=ch.Torso 
227
-- 
228
LW.Name="Left Shoulder"
229
LW.Part0=ch.Torso 
230
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
231
LW.C1=cf(0, 0.5, 0) 
232
LW.Part1=ch["Left Arm"] 
233
LW.Parent=ch.Torso 
234
235
	function swait(num)
236
    if num==0 or num==nil then
237
    game:service'RunService'.Heartbeat:wait(0)
238
    else
239
    for i=0,num do
240
    game:service'RunService'.Heartbeat:wait(0)
241
    end
242
    end
243
	end
244
	
245
246
local Player = game.Players.localPlayer
247
local Character = Player.Character
248
local red = 255
249
local green = 255
250
local blue = 255
251
local Humanoid = Character.Humanoid
252
local mouse = Player:GetMouse()
253
local m = Instance.new("Model", Character)
254
m.Name = "WeaponModel"
255
local LeftArm = Character["Left Arm"]
256
local RightArm = Character["Right Arm"]
257
local LeftLeg = Character["Left Leg"]
258
local RightLeg = Character["Right Leg"]
259
local Head = Character.Head
260
local Torso = Character.Torso
261
local cam = game.Workspace.CurrentCamera
262
local RootPart = Character.HumanoidRootPart
263
local RootJoint = RootPart.RootJoint
264
local equipped = false
265
local attack = false
266
local Anim = "Idle"
267
local idle = 0
268
local attacktype = 1
269
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
270
local velocity = RootPart.Velocity.y
271
local sine = 0
272
local change = 1
273
local grabbed = false
274
local cn = CFrame.new
275
local mr = math.rad
276
local angles = CFrame.Angles
277
local ud = UDim2.new
278
local c3 = Color3.new
279
local lim = 0
280
local st = 0
281
local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
282
local attacktype = 1
283
local ZTarget, RocketTarget = nil, nil
284
local euler = CFrame.fromEulerAnglesXYZ
285
function clerp(a,b,t) 
286
local qa = {QuaternionFromCFrame(a)}
287
local qb = {QuaternionFromCFrame(b)} 
288
local ax, ay, az = a.x, a.y, a.z 
289
local bx, by, bz = b.x, b.y, b.z
290
local _t = 1-t
291
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
292
end 
293
 
294
function QuaternionFromCFrame(cf) 
295
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
296
local trace = m00 + m11 + m22 
297
if trace > 0 then 
298
local s = math.sqrt(1 + trace) 
299
local recip = 0.5/s 
300
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
301
else 
302
local i = 0 
303
if m11 > m00 then
304
i = 1
305
end
306
if m22 > (i == 0 and m00 or m11) then 
307
i = 2 
308
end 
309
if i == 0 then 
310
local s = math.sqrt(m00-m11-m22+1) 
311
local recip = 0.5/s 
312
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
313
elseif i == 1 then 
314
local s = math.sqrt(m11-m22-m00+1) 
315
local recip = 0.5/s 
316
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
317
elseif i == 2 then 
318
local s = math.sqrt(m22-m00-m11+1) 
319
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
320
end 
321
end 
322
end
323
 
324
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
325
local xs, ys, zs = x + x, y + y, z + z 
326
local wx, wy, wz = w*xs, w*ys, w*zs 
327
local xx = x*xs 
328
local xy = x*ys 
329
local xz = x*zs 
330
local yy = y*ys 
331
local yz = y*zs 
332
local zz = z*zs 
333
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)) 
334
end
335
 
336
function QuaternionSlerp(a, b, t) 
337
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
338
local startInterp, finishInterp; 
339
if cosTheta >= 0.0001 then 
340
if (1 - cosTheta) > 0.0001 then 
341
local theta = math.acos(cosTheta) 
342
local invSinTheta = 1/math.sin(theta) 
343
startInterp = math.sin((1-t)*theta)*invSinTheta 
344
finishInterp = math.sin(t*theta)*invSinTheta  
345
else 
346
startInterp = 1-t 
347
finishInterp = t 
348
end 
349
else 
350
if (1+cosTheta) > 0.0001 then 
351
local theta = math.acos(-cosTheta) 
352
local invSinTheta = 1/math.sin(theta) 
353
startInterp = math.sin((t-1)*theta)*invSinTheta 
354
finishInterp = math.sin(t*theta)*invSinTheta 
355
else 
356
startInterp = t-1 
357
finishInterp = t 
358
end 
359
end 
360
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 
361
end
362
rayCast = function(Position, Direction, Range, Ignore)
363
  return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
364
end
365
local v = game.Players.localPlayer
366
local torso = v.Character.Torso
367
368
plr = game.Players.LocalPlayer
369
char = game.Players.LocalPlayer.Character
370
hum = game.Players.LocalPlayer.Character.Humanoid
371
t = game.Players.LocalPlayer.Character.Torso
372
h = game.Players.LocalPlayer.Character.Head
373
ra = game.Players.LocalPlayer.Character["Right Arm"]
374
la = game.Players.LocalPlayer.Character["Left Arm"]
375
rl = game.Players.LocalPlayer.Character["Right Leg"]
376
ll = game.Players.LocalPlayer.Character["Left Leg"]
377
tors = Character.Torso
378
lleg = Character["Left Leg"]
379
root = Character.HumanoidRootPart
380
hed = Character.Head
381
rleg = Character["Right Leg"]
382
rarm = Character["Right Arm"]
383
larm = Character["Left Arm"]
384
bsize1 = NumberSequenceKeypoint.new(3,3,3)
385
bsize2 = NumberSequenceKeypoint.new(10,10,10)
386
local Effects = {}
387
attack = false
388
local attacking = false
389
vt = Vector3.new
390
bc = BrickColor.new
391
br = BrickColor.random
392
it = Instance.new
393
cf = CFrame.new
394
euler = CFrame.fromEulerAnglesXYZ
395
angles = CFrame.Angles
396
matr = math.random
397
local colororg = BrickColor.new("Dark indigo") -- set color u like
398
local meshtype = "Sphere" -- only for specialmesh
399
mouse = plr:GetMouse()
400
401
402
Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
403
        if hit.Parent==nil then
404
                return
405
        end
406
        h=hit.Parent:FindFirstChild("Humanoid")
407
        for _,v in pairs(hit.Parent:children()) do
408
        if v:IsA("Humanoid") then
409
        h=v
410
        end
411
        end
412
        if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
413
        h=hit.Parent.Parent:FindFirstChild("Humanoid")
414
        end
415
        if hit.Parent.className=="Hat" then
416
        hit=hit.Parent.Parent:findFirstChild("Head")
417
        end
418
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
419
        if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
420
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
421
                        return
422
                end]]
423
--                        hs(hit,1.2) 
424
                        c=Instance.new("ObjectValue")
425
                        c.Name="creator"
426
                        c.Value=game:service("Players").LocalPlayer
427
                        c.Parent=h
428
                        game:GetService("Debris"):AddItem(c,.5)
429
                Damage=math.random(minim,maxim)
430
--                h:TakeDamage(Damage)
431
                blocked=false
432
                block=hit.Parent:findFirstChild("Block")
433
                if block~=nil then
434
                print(block.className)
435
                if block.className=="NumberValue" then
436
                if block.Value>0 then
437
                blocked=true
438
                if decreaseblock==nil then
439
                block.Value=block.Value-1
440
                end
441
                end
442
                end
443
                if block.className=="IntValue" then
444
                if block.Value>0 then
445
                blocked=true
446
                if decreaseblock~=nil then
447
                block.Value=block.Value-1
448
                end
449
                end
450
                end
451
                end
452
                if blocked==false then
453
--                h:TakeDamage(Damage)
454
                h.Health=h.Health-Damage
455
                showDamage(hit.Parent,Damage,3,TorsoColor)
456
                else
457
                h.Health=h.Health-(Damage/2)
458
                showDamage(hit.Parent,Damage/2,3,BrickColor.new("Bright blue"))
459
                end
460
                if Type=="Knockdown" then
461
                hum=hit.Parent.Humanoid
462
hum.PlatformStand=true
463
coroutine.resume(coroutine.create(function(HHumanoid)
464
swait(1)
465
HHumanoid.PlatformStand=false
466
end),hum)
467
                local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
468
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
469
local bodvol=Instance.new("BodyVelocity")
470
bodvol.velocity=angle*knockback
471
bodvol.P=5000
472
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
473
bodvol.Parent=hit
474
rl=Instance.new("BodyAngularVelocity")
475
rl.P=3000
476
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
477
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
478
rl.Parent=hit
479
game:GetService("Debris"):AddItem(bodvol,.5)
480
game:GetService("Debris"):AddItem(rl,.5)
481
                elseif Type=="Normal" then
482
                vp=Instance.new("BodyVelocity")
483
                vp.P=500
484
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
485
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
486
                if KnockbackType==1 then
487
                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
488
                elseif KnockbackType==2 then
489
                vp.velocity=Property.CFrame.lookVector*knockback
490
                end
491
                if knockback>0 then
492
                        vp.Parent=hit.Parent.Torso
493
                end
494
                game:GetService("Debris"):AddItem(vp,.5)
495
                elseif Type=="Up" then
496
                local bodyVelocity=Instance.new("BodyVelocity")
497
                bodyVelocity.velocity=vt(0,10,0)
498
                bodyVelocity.P=1000
499
                bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
500
                bodyVelocity.Parent=hit
501
                game:GetService("Debris"):AddItem(bodyVelocity,1)
502
                rl=Instance.new("BodyAngularVelocity")
503
                rl.P=3000
504
                rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
505
                rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
506
                rl.Parent=hit
507
                game:GetService("Debris"):AddItem(rl,.5)
508
                elseif Type=="Snare" then
509
                bp=Instance.new("BodyPosition")
510
                bp.P=2000
511
                bp.D=100
512
                bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
513
                bp.position=hit.Parent.Torso.Position
514
                bp.Parent=hit.Parent.Torso
515
                game:GetService("Debris"):AddItem(bp,1)
516
                elseif Type=="Target" then
517
                if Targetting==false then
518
                ZTarget=hit.Parent.Torso
519
                coroutine.resume(coroutine.create(function(Part) 
520
                swait(5)
521
                end),ZTarget)
522
                TargHum=ZTarget.Parent:findFirstChild("Humanoid")
523
                targetgui=Instance.new("BillboardGui")
524
                targetgui.Parent=ZTarget
525
                targetgui.Size=UDim2.new(10,100,10,100)
526
                targ=Instance.new("ImageLabel")
527
                targ.Parent=targetgui
528
                targ.BackgroundTransparency=1
529
                targ.Image="rbxassetid://4834067"
530
                targ.Size=UDim2.new(1,0,1,0)
531
                cam.CameraType="Scriptable"
532
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
533
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
534
                workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
535
                Targetting=true
536
                RocketTarget=ZTarget
537
                for i=1,Property do
538
                --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
539
                if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
540
                swait()
541
                end
542
                --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
543
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
544
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
545
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
546
                end
547
                Targetting=false
548
                RocketTarget=nil
549
                targetgui.Parent=nil
550
                cam.CameraType="Custom"
551
                end
552
                end
553
                        debounce=Instance.new("BoolValue")
554
                        debounce.Name="DebounceHit"
555
                        debounce.Parent=hit.Parent
556
                        debounce.Value=true
557
                        game:GetService("Debris"):AddItem(debounce,Delay)
558
                        c=Instance.new("ObjectValue")
559
                        c.Name="creator"
560
                        c.Value=Player
561
                        c.Parent=h
562
                        game:GetService("Debris"):AddItem(c,.5)
563
                CRIT=false
564
                hitDeb=true
565
                AttackPos=6
566
        end
567
end
568
 
569
showDamage=function(Char,Dealt,du,Color)
570
        m=Instance.new("Model")
571
        m.Name=""
572
        h=Instance.new("Humanoid")
573
        h.Health=0
574
        h.MaxHealth=0
575
        h.Parent=m
576
        c=Instance.new("Part")
577
        c.Transparency=0
578
        c.Material = "Neon"
579
        c.BrickColor=bc("Bright red")
580
        c.Name="Head"
581
        c.TopSurface=0
582
        c.BottomSurface=0
583
CV="Hot pink"
584
585
local txt = Instance.new("BillboardGui", c)
586
txt.Adornee = c
587
txt.Name = "_status"
588
txt.Size = UDim2.new(2, 0, 1.2, 0)
589
txt.StudsOffset = Vector3.new(-9, 8, 0)
590
local text = Instance.new("TextLabel", txt)
591
text.Size = UDim2.new(10, 0, 7, 0)
592
text.FontSize = "Size24"
593
text.TextScaled = true
594
text.TextTransparency = 0
595
text.BackgroundTransparency = 1 
596
text.TextTransparency = 0
597
text.TextStrokeTransparency = 0
598
if Dealt < 12 then
599
text.Font = "Highway"
600
elseif Dealt < 20 then
601
text.Font = "SourceSansBold"
602
elseif Dealt >= 20 then
603
text.Font = "Fantasy"
604
end
605
text.TextStrokeColor3 = BrickColor.new("Really black").Color
606
local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
607
v=Instance.new("Part")
608
v.Name = "ColorBrick"
609
v.Parent=c
610
v.FormFactor="Symmetric"
611
v.Anchored=true
612
v.CanCollide=false
613
v.BottomSurface="Smooth"
614
v.TopSurface="Smooth"
615
v.Size=Vector3.new(10,5,3)
616
v.Transparency=1
617
v.CFrame=c.CFrame
618
v.BrickColor=BrickColor.new(CV)
619
v.Transparency=1
620
if Dealt < 12 then
621
text.TextColor3 = BrickColor.new("White").Color
622
elseif Dealt < 20 then
623
text.TextColor3 = BrickColor.new("Bright yellow").Color
624
elseif Dealt >= 20 then
625
text.TextColor3 = BrickColor.new("Really red").Color
626
end
627
v.Shape="Block"
628
text.Text = tostring(Dealt).. "!"
629
  local dam = Instance.new("Sound",c)
630
  local rndm=math.random(1,#hitsounds)
631
  local r=rndm
632
  dam.SoundId = "http://www.roblox.com/asset/?id="..hitsounds[r]
633
  dam.Volume = 1.25
634
  dam.Pitch = 1
635
  dam:Play()
636
        c.formFactor="Plate"
637
c.Transparency = 1
638
        c.Size=Vector3.new(1,.4,1)
639
        ms=Instance.new("CylinderMesh")
640
        ms.Scale=Vector3.new(.8,.8,.8)
641
        if CRIT==true then
642
                ms.Scale=Vector3.new(1,1.25,1)
643
        end
644
        ms.Parent=c
645
        c.Reflectance=0
646
        Instance.new("BodyGyro").Parent=c
647
        c.Parent=m
648
        if Char:findFirstChild("Head")~=nil then
649
        c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
650
        elseif Char.Parent:findFirstChild("Head")~=nil then
651
        c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
652
        end
653
        f=Instance.new("BodyPosition")
654
        f.P=2000
655
        f.D=100
656
        f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
657
        f.position=c.Position+Vector3.new(0,3,0)
658
        f.Parent=c
659
        game:GetService("Debris"):AddItem(m,.5+du)
660
        c.CanCollide=false
661
        m.Parent=workspace
662
        c.CanCollide=false
663
        wait(1)
664
        for l = 0, 9 do
665
         text.TextTransparency = text.TextTransparency + 0.1
666
         text.TextStrokeTransparency = text.TextStrokeTransparency + 0.1
667
         wait()
668
        end
669
end
670
671
gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
672
  local gui = it(GuiType)
673
  gui.Parent = parent
674
  gui.Text = text
675
  gui.BackgroundTransparency = backtrans
676
  gui.BackgroundColor3 = backcol
677
  gui.SizeConstraint = "RelativeXY"
678
  gui.TextXAlignment = "Center"
679
  gui.TextYAlignment = "Center"
680
  gui.Position = pos
681
  gui.Size = size
682
  gui.Font = "SourceSans"
683
  gui.FontSize = "Size14"
684
  gui.TextWrapped = false
685
  gui.TextStrokeTransparency = 0
686
  gui.TextColor = BrickColor.new("White")
687
  return gui
688
end
689
690
local mana = 249
691
---- GUI set
692
local basgui = it("GuiMain")
693
basgui.Parent = Player.PlayerGui
694
basgui.Name = "CooldownsGUI"
695
local basframe = it("Frame")
696
basframe.Parent = basgui
697
basframe.BackgroundColor3 = Color3.new(255, 255, 255)
698
basframe.BackgroundTransparency = 1
699
basframe.BorderColor3 = Color3.new(17, 17, 17)
700
basframe.Size = UDim2.new(0.2, 0, 0.2, 0)
701
basframe.Position = UDim2.new(0.8, 0, 0.8, 0)
702
local basicgui = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Bright orange").Color, UDim2.new(-0.15, 0, -0.175, 0), UDim2.new(0.45, 0, 0.35, 0))
703
basicgui.ZIndex = 2
704
basicgui.Font = "Highway"
705
basicgui.BackgroundTransparency = 0.5
706
basicgui.BorderSizePixel = 0.65
707
basicgui.TextScaled = true
708
basicgui.Text = "(Z)\nHotshot"
709
basicgui.TextSize = 24
710
local basicgui2 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Bright orange").Color, UDim2.new(0.35, 0, -0.175, 0), UDim2.new(0.45, 0, 0.35, 0))
711
basicgui2.ZIndex = 2
712
basicgui2.Font = "Highway"
713
basicgui2.BackgroundTransparency = 0.5
714
basicgui2.BorderSizePixel = 0.65
715
basicgui2.TextScaled = true
716
basicgui2.Text = "(X)\nBlazing Dash"
717
basicgui2.TextSize = 24
718
local basicgui3 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Bright orange").Color, UDim2.new(-0.15, 0, 0.225, 0), UDim2.new(0.45, 0, 0.35, 0))
719
basicgui3.ZIndex = 2
720
basicgui3.Font = "Highway"
721
basicgui3.BackgroundTransparency = 0.5
722
basicgui3.BorderSizePixel = 0.65
723
basicgui3.TextScaled = true
724
basicgui3.Text = "(C)\nBlazing Boomrang"
725
basicgui3.TextSize = 24
726
local basicgui4 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Bright orange").Color, UDim2.new(0.35, 0, 0.225, 0), UDim2.new(0.45, 0, 0.35, 0))
727
basicgui4.ZIndex = 2
728
basicgui4.Font = "Highway"
729
basicgui4.BackgroundTransparency = 0.5
730
basicgui4.BorderSizePixel = 0.65
731
basicgui4.TextScaled = true
732
basicgui4.Text = "(V)\nDying Star"
733
basicgui4.TextSize = 24
734
735
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))
736
healthg.ZIndex = 2
737
healthg.Font = "Highway"
738
healthg.BackgroundTransparency = 0.5
739
healthg.BorderSizePixel = 0.65
740
healthg.TextScaled = true
741
healthg.Text = "health"
742
healthg.TextSize = 24
743
744
local manag = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Bright blue").Color, UDim2.new(-0.15, 0, -0.35, 0), UDim2.new(0.95, 0, 0.15, 0))
745
manag.ZIndex = 2
746
manag.Font = "Highway"
747
manag.BackgroundTransparency = 0.5
748
manag.BorderSizePixel = 0.65
749
manag.TextScaled = true
750
manag.Text = "health"
751
manag.TextSize = 24
752
753
---------------- Weapon model
754
755
local handle = Instance.new("Part")
756
handle.Parent = Character
757
handle.Size = Vector3.new(1,1,1)
758
handle.Archivable = true
759
handle.Transparency = 0.99
760
handle.BrickColor = BrickColor.new("White")
761
handle.Material = "Neon"
762
local handlmesh = Instance.new("BlockMesh",handle)
763
handlmesh.Scale = Vector3.new(1,1,1)
764
local handleweld = Instance.new("Weld")
765
handleweld.Parent = handle
766
handleweld.Part0 = torso
767
handleweld.Part1 = handle
768
handleweld.C1 = CFrame.new(0, 2.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
769
local par = Instance.new("Part")
770
par.Parent = Character
771
par.Size = Vector3.new(0.2,0.2,0.2)
772
par.Archivable = true
773
par.Transparency = 0
774
par.BrickColor = BrickColor.new("Really black")
775
par.Material = "Metal"
776
local parmesh = Instance.new("SpecialMesh",par)
777
parmesh.MeshType = "FileMesh"
778
parmesh.MeshId = "http://www.roblox.com/asset?id=156292343"
779
parmesh.Scale = Vector3.new(5,5,5)
780
local weld12 = Instance.new("Weld")
781
weld12.Parent = par
782
weld12.Part0 = handle
783
weld12.Part1 = par
784
weld12.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
785
local par2 = Instance.new("Part")
786
par2.Parent = Character
787
par2.Size = Vector3.new(0.2,0.2,0.2)
788
par2.Archivable = true
789
par2.Transparency = 0
790
par2.BrickColor = BrickColor.new("Really black")
791
par2.Material = "Metal"
792
local parmesh2 = Instance.new("SpecialMesh",par2)
793
parmesh2.MeshType = "FileMesh"
794
parmesh2.MeshId = "http://www.roblox.com/asset?id=156292343"
795
parmesh2.Scale = Vector3.new(5.25,5.25,4.75)
796
parmesh2.VertexColor = Vector3.new(1,0.5,0)
797
parmesh2.TextureId = "rbxassetid://269748808"
798
local weld13 = Instance.new("Weld")
799
weld13.Parent = par2
800
weld13.Part0 = handle
801
weld13.Part1 = par2
802
weld13.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
803
local par3 = Instance.new("Part")
804
par3.Parent = Character
805
par3.Size = Vector3.new(0.2,0.2,0.2)
806
par3.Archivable = true
807
par3.Transparency = 0
808
par3.BrickColor = BrickColor.new("Really black")
809
par3.Material = "Metal"
810
local parmesh3 = Instance.new("SpecialMesh",par3)
811
parmesh3.MeshType = "FileMesh"
812
parmesh3.MeshId = "http://www.roblox.com/asset?id=156292343"
813
parmesh3.Scale = Vector3.new(5.65,5.65,4.25)
814
parmesh3.VertexColor = Vector3.new(1,0.75,0.25)
815
parmesh3.TextureId = "rbxassetid://269748808"
816
local weld14 = Instance.new("Weld")
817
weld14.Parent = par3
818
weld14.Part0 = handle
819
weld14.Part1 = par3
820
weld14.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
821
local par4 = Instance.new("Part")
822
par4.Parent = Character
823
par4.Size = Vector3.new(0.2,0.2,0.2)
824
par4.Archivable = true
825
par4.Transparency = 0
826
par4.BrickColor = BrickColor.new("Really black")
827
par4.Material = "Metal"
828
local parmesh4 = Instance.new("SpecialMesh",par4)
829
parmesh4.MeshType = "FileMesh"
830
parmesh4.MeshId = "http://www.roblox.com/asset/?id=3270017"
831
parmesh4.Scale = Vector3.new(4.5,4.5,1.25)
832
parmesh4.VertexColor = Vector3.new(1,0.75,0)
833
parmesh4.TextureId = "rbxassetid://269748808"
834
local weld15 = Instance.new("Weld")
835
weld15.Parent = par4
836
weld15.Part0 = handle
837
weld15.Part1 = par4
838
weld15.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
839
local par4a = Instance.new("Part")
840
par4a.Parent = Character
841
par4a.Size = Vector3.new(0.2,0.2,0.2)
842
par4a.Archivable = true
843
par4a.Transparency = 0
844
par4a.BrickColor = BrickColor.new("Really black")
845
par4a.Material = "Metal"
846
local parmesh4a = Instance.new("SpecialMesh",par4a)
847
parmesh4a.MeshType = "FileMesh"
848
parmesh4a.MeshId = "http://www.roblox.com/asset/?id=3270017"
849
parmesh4a.Scale = Vector3.new(1.25,7.5,1)
850
parmesh4a.VertexColor = Vector3.new(1,0.5,0)
851
parmesh4a.TextureId = "rbxassetid://269748808"
852
local weld15a = Instance.new("Weld")
853
weld15a.Parent = par4a
854
weld15a.Part0 = par4
855
weld15a.Part1 = par4a
856
weld15a.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
857
local par4b = Instance.new("Part")
858
par4b.Parent = Character
859
par4b.Size = Vector3.new(0.2,0.2,0.2)
860
par4b.Archivable = true
861
par4b.Transparency = 0
862
par4b.BrickColor = BrickColor.new("Really black")
863
par4b.Material = "Metal"
864
local parmesh4b = Instance.new("SpecialMesh",par4b)
865
parmesh4b.MeshType = "FileMesh"
866
parmesh4b.MeshId = "http://www.roblox.com/asset/?id=3270017"
867
parmesh4b.Scale = Vector3.new(7.5,1.25,1)
868
parmesh4b.VertexColor = Vector3.new(1,0.5,0)
869
parmesh4b.TextureId = "rbxassetid://269748808"
870
local weld15b = Instance.new("Weld")
871
weld15b.Parent = par4b
872
weld15b.Part0 = par4
873
weld15b.Part1 = par4b
874
weld15b.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
875
local par5 = Instance.new("Part")
876
par5.Parent = Character
877
par5.Size = Vector3.new(0.2,0.2,0.2)
878
par5.Archivable = true
879
par5.Transparency = 0
880
par5.BrickColor = BrickColor.new("Really black")
881
par5.Material = "Metal"
882
local parmesh5 = Instance.new("SpecialMesh",par5)
883
parmesh5.MeshType = "FileMesh"
884
parmesh5.MeshId = "http://www.roblox.com/asset/?id=3270017"
885
parmesh5.Scale = Vector3.new(1,1,0.75)
886
parmesh5.VertexColor = Vector3.new(1,0.75,0)
887
parmesh5.TextureId = "rbxassetid://269748808"
888
local weld16 = Instance.new("Weld")
889
weld16.Parent = par5
890
weld16.Part0 = handle
891
weld16.Part1 = par5
892
weld16.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
893
local par5a = Instance.new("Part")
894
par5a.Parent = Character
895
par5a.Size = Vector3.new(0.2,0.2,0.2)
896
par5a.Archivable = true
897
par5a.Transparency = 0
898
par5a.BrickColor = BrickColor.new("Really black")
899
par5a.Material = "Metal"
900
local parmesh5a = Instance.new("SpecialMesh",par5a)
901
parmesh5a.MeshType = "FileMesh"
902
parmesh5a.MeshId = "http://www.roblox.com/asset/?id=3270017"
903
parmesh5a.Scale = Vector3.new(3,0.75,0.5)
904
parmesh5a.VertexColor = Vector3.new(1,0.5,0)
905
parmesh5a.TextureId = "rbxassetid://269748808"
906
local weld16a = Instance.new("Weld")
907
weld16a.Parent = par5a
908
weld16a.Part0 = par5
909
weld16a.Part1 = par5a
910
weld16a.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
911
local par5b = Instance.new("Part")
912
par5b.Parent = Character
913
par5b.Size = Vector3.new(0.2,0.2,0.2)
914
par5b.Archivable = true
915
par5b.Transparency = 0
916
par5b.BrickColor = BrickColor.new("Really black")
917
par5b.Material = "Metal"
918
local parmesh5b = Instance.new("SpecialMesh",par5b)
919
parmesh5b.MeshType = "FileMesh"
920
parmesh5b.MeshId = "http://www.roblox.com/asset/?id=3270017"
921
parmesh5b.Scale = Vector3.new(0.75,3,0.5)
922
parmesh5b.VertexColor = Vector3.new(1,0.5,0)
923
parmesh5b.TextureId = "rbxassetid://269748808"
924
local weld16b = Instance.new("Weld")
925
weld16b.Parent = par5b
926
weld16b.Part0 = par5
927
weld16b.Part1 = par5b
928
weld16b.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
929
local par6 = Instance.new("Part")
930
par6.Parent = Character
931
par6.Size = Vector3.new(0.2,0.2,0.2)
932
par6.Archivable = true
933
par6.Transparency = 0
934
par6.BrickColor = BrickColor.new("Really black")
935
par6.Material = "Metal"
936
local parmesh6 = Instance.new("SpecialMesh",par6)
937
parmesh6.MeshType = "FileMesh"
938
parmesh6.MeshId = "http://www.roblox.com/asset/?id=9756362"
939
parmesh6.Scale = Vector3.new(1.65,1.65,0.115)
940
parmesh6.VertexColor = Vector3.new(1,0.35,0)
941
parmesh6.TextureId = "rbxassetid://269748808"
942
local weld17 = Instance.new("Weld")
943
weld17.Parent = par6
944
weld17.Part0 = handle
945
weld17.Part1 = par6
946
weld17.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
947
local par6a = Instance.new("Part")
948
par6a.Parent = Character
949
par6a.Size = Vector3.new(0.2,0.2,0.2)
950
par6a.Archivable = true
951
par6a.Transparency = 0
952
par6a.BrickColor = BrickColor.new("Really black")
953
par6a.Material = "Metal"
954
local parmesh6a = Instance.new("SpecialMesh",par6a)
955
parmesh6a.MeshType = "FileMesh"
956
parmesh6a.MeshId = "http://www.roblox.com/asset/?id=9756362"
957
parmesh6a.Scale = Vector3.new(7.5,0.95,0.115)
958
parmesh6a.VertexColor = Vector3.new(1,0.35,0)
959
parmesh6a.TextureId = "rbxassetid://269748808"
960
local weld17a = Instance.new("Weld")
961
weld17a.Parent = par6a
962
weld17a.Part0 = par6
963
weld17a.Part1 = par6a
964
weld17a.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(45))
965
local par6b = Instance.new("Part")
966
par6b.Parent = Character
967
par6b.Size = Vector3.new(0.2,0.2,0.2)
968
par6b.Archivable = true
969
par6b.Transparency = 0
970
par6b.BrickColor = BrickColor.new("Really black")
971
par6b.Material = "Metal"
972
local parmesh6b = Instance.new("SpecialMesh",par6b)
973
parmesh6b.MeshType = "FileMesh"
974
parmesh6b.MeshId = "http://www.roblox.com/asset/?id=9756362"
975
parmesh6b.Scale = Vector3.new(7.5,0.95,0.115)
976
parmesh6b.VertexColor = Vector3.new(1,0.35,0)
977
parmesh6b.TextureId = "rbxassetid://269748808"
978
local weld17b = Instance.new("Weld")
979
weld17b.Parent = par6b
980
weld17b.Part0 = par6
981
weld17b.Part1 = par6b
982
weld17b.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-45))
983
local par7 = Instance.new("Part")
984
par7.Parent = Character
985
par7.Size = Vector3.new(0.2,0.2,0.2)
986
par7.Archivable = true
987
par7.Transparency = 0
988
par7.BrickColor = BrickColor.new("Really black")
989
par7.Material = "Metal"
990
local parmesh7 = Instance.new("SpecialMesh",par7)
991
parmesh7.MeshType = "FileMesh"
992
parmesh7.MeshId = "http://www.roblox.com/asset/?id=3270017"
993
parmesh7.Scale = Vector3.new(4.375,4.375,2.15)
994
local weld18 = Instance.new("Weld")
995
weld18.Parent = par7
996
weld18.Part0 = handle
997
weld18.Part1 = par7
998
weld18.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
999
local par8 = Instance.new("Part")
1000
par8.Parent = Character
1001
par8.Size = Vector3.new(0.2,0.2,0.2)
1002
par8.Archivable = true
1003
par8.Transparency = 0
1004
par8.BrickColor = BrickColor.new("Really black")
1005
par8.Material = "Metal"
1006
local parmesh8 = Instance.new("SpecialMesh",par8)
1007
parmesh8.MeshType = "FileMesh"
1008
parmesh8.MeshId = "http://www.roblox.com/asset/?id=3270017"
1009
parmesh8.Scale = Vector3.new(4.365,4.365,2.165)
1010
parmesh8.VertexColor = Vector3.new(1,0.25,0)
1011
parmesh8.TextureId = "rbxassetid://269748808"
1012
local weld19 = Instance.new("Weld")
1013
weld19.Parent = par8
1014
weld19.Part0 = handle
1015
weld19.Part1 = par8
1016
weld19.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
1017
----- lol
1018
handle.CanCollide = false
1019
par.CanCollide = false
1020
par2.CanCollide = false
1021
par3.CanCollide = false
1022
par4.CanCollide = false
1023
par4a.CanCollide = false
1024
par4b.CanCollide = false
1025
par5.CanCollide = false
1026
par5a.CanCollide = false
1027
par5b.CanCollide = false
1028
par6.CanCollide = false
1029
par6a.CanCollide = false
1030
par6b.CanCollide = false
1031
par7.CanCollide = false
1032
par8.CanCollide = false
1033
----
1034
1035
function attackone()
1036
	attack = true
1037
		handleweld.Part0 = rarm
1038
		for i = 0,2,0.1 do
1039
		swait()
1040
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
1041
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3)
1042
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50 - 2.5 * math.cos(sine / 32))), 0.3)
1043
             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)
1044
             handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 2.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
1045
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1046
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1047
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1048
		end
1049
local slas = Instance.new("Sound",handle)
1050
slas.SoundId = "rbxassetid://199145095"
1051
slas.Volume = 1.75
1052
slas.Pitch = 1
1053
slas:Play()
1054
local hit = handle.Touched:connect(function(hit)
1055
Damagefunc(hit,5,6,5,"Normal",root,.2,1)
1056
end)
1057
				for i = 0,1,0.1 do
1058
		swait()
1059
	             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
1060
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3)
1061
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
1062
             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)
1063
              handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
1064
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1065
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1066
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1067
				end
1068
				attack = false
1069
				hit:disconnect()
1070
				wait(3)
1071
				slas:Destroy()
1072
end
1073
1074
function attacktwo()
1075
	attack = true
1076
		handleweld.Part0 = rarm
1077
		for i = 0,2,0.1 do
1078
		swait()
1079
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
1080
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3)
1081
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(90), math.rad(50 - 2.5 * math.cos(sine / 32))), 0.3)
1082
             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)
1083
             handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 2.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
1084
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1085
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1086
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1087
		end
1088
local slas = Instance.new("Sound",handle)
1089
slas.SoundId = "rbxassetid://199145095"
1090
slas.Volume = 1.75
1091
slas.Pitch = 0.9
1092
slas:Play()
1093
local hit = handle.Touched:connect(function(hit)
1094
Damagefunc(hit,5,6,5,"Normal",root,.2,1)
1095
end)
1096
				for i = 0,1,0.5 do
1097
		swait()
1098
	             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
1099
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
1100
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
1101
             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)
1102
              handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 10, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
1103
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1104
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1105
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1106
				end
1107
				for i = 0,1,0.5 do
1108
		swait()
1109
	             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
1110
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
1111
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
1112
             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)
1113
              handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 15, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.25)
1114
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1115
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1116
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1117
				end
1118
								for i = 0,1,0.5 do
1119
		swait()
1120
	             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
1121
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
1122
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
1123
             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)
1124
              handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 20, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.25)
1125
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1126
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1127
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1128
								end
1129
												for i = 0,3,0.5 do
1130
		swait()
1131
	             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
1132
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
1133
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
1134
             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)
1135
              handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 25, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.25)
1136
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1137
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1138
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1139
				end
1140
				attack = false
1141
				hit:disconnect()
1142
				wait(3)
1143
				slas:Destroy()
1144
end
1145
1146
function attackthree()
1147
	attack = true
1148
		handleweld.Part0 = rarm
1149
		for i = 0,2,0.1 do
1150
		swait()
1151
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
1152
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3)
1153
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(-50 - 2.5 * math.cos(sine / 32))), 0.3)
1154
             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)
1155
             handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
1156
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1157
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1158
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1159
		end
1160
local hit = handle.Touched:connect(function(hit)
1161
Damagefunc(hit,5,6,5,"Normal",root,.2,1)
1162
end)
1163
	local slas = Instance.new("Sound",handle)
1164
slas.SoundId = "rbxassetid://199145095"
1165
slas.Volume = 1.75
1166
slas.Pitch = 0.95
1167
slas:Play()
1168
		for i = 0,2,0.1 do
1169
		swait()
1170
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(75)),.3)
1171
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-75)),.3)
1172
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(75 - 2.5 * math.cos(sine / 32))), 0.3)
1173
             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)
1174
             handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 7.5) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
1175
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1176
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1177
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1178
		end
1179
					slas:Destroy()
1180
				attack = false
1181
				hit:disconnect()
1182
end
1183
1184
function attackfour()
1185
	attack = true
1186
		handleweld.Part0 = rarm
1187
local tra = Instance.new("ParticleEmitter",handle)
1188
tra.Texture = "rbxassetid://296874871"
1189
tra.LightEmission = 0.95
1190
tra.Color = ColorSequence.new(Color3.new(1,0.5,0))
1191
tra.Rate = 1000
1192
tra.Lifetime = NumberRange.new(0.25)
1193
tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10,0),NumberSequenceKeypoint.new(1,0,0)})
1194
tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.85,0)})
1195
tra.Speed = NumberRange.new(0)
1196
tra.Rotation = NumberRange.new(-500,500)
1197
tra.VelocitySpread = 90000
1198
tra.LockedToPart = true
1199
tra.RotSpeed = NumberRange.new(-500,500)
1200
		for i = 0,5,0.1 do
1201
		swait()
1202
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
1203
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3)
1204
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(-50 - 2.5 * math.cos(sine / 32))), 0.3)
1205
             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)
1206
             handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
1207
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1208
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1209
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1210
		end
1211
		local traz = Instance.new("ParticleEmitter",handle)
1212
traz.Texture = "rbxassetid://296874871"
1213
traz.LightEmission = 0.95
1214
traz.Color = ColorSequence.new(Color3.new(1,0.5,0))
1215
traz.Rate = 1000000
1216
traz.Lifetime = NumberRange.new(0.5)
1217
traz.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,15,0)})
1218
traz.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
1219
traz.Speed = NumberRange.new(50)
1220
traz.Rotation = NumberRange.new(-500,500)
1221
traz.VelocitySpread = 90000
1222
traz.RotSpeed = NumberRange.new(-500,500)
1223
		local sa = Instance.new("Sound",handle)
1224
sa.SoundId = "rbxassetid://519795084"
1225
sa.Volume = 1.25
1226
sa.Pitch = 1.5
1227
sa:Play()
1228
		tra.Rate = 0
1229
	 local lb = Instance.new("Part")
1230
  lb.Parent = char
1231
   lb.Material = "Neon"
1232
    lb.Color = Color3.new(1,0.5,0)
1233
     lb.CanCollide = false
1234
     lb.Shape = "Ball"
1235
     lb.CFrame = handle.CFrame
1236
     lb.Anchored = true
1237
     lb.Size = vt(3,3,3)
1238
     local thing = Instance.new("SpecialMesh",lb)
1239
     thing.MeshType = meshtype
1240
lb.Touched:connect(function(hit)
1241
Damagefunc(hit,7,8,5,"Normal",root,.2,1)
1242
end)
1243
lb.Anchored = false
1244
local trail = Instance.new("ParticleEmitter",lb)
1245
trail.Texture = "rbxassetid://296874871"
1246
trail.LightEmission = 0.95
1247
trail.Color = ColorSequence.new(lb.BrickColor.Color)
1248
trail.Rate = 10000
1249
trail.Lifetime = NumberRange.new(1.5)
1250
trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)})
1251
trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.95,0),NumberSequenceKeypoint.new(1,1,0)})
1252
trail.Speed = NumberRange.new(0,0)
1253
trail.Rotation = NumberRange.new(-500,500)
1254
trail.RotSpeed = NumberRange.new(-500,500)
1255
  local bv = Instance.new("BodyVelocity")
1256
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1257
  bv.velocity = mouse.Hit.lookVector *175
1258
  bv.Parent = lb
1259
traz.Rate = 0
1260
		for i = 0,1,0.1 do
1261
		swait()
1262
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.5,0)* angles(math.rad(0),math.rad(0),math.rad(-85)),.3)
1263
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(85)),.3)
1264
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(25 - 2.5 * math.cos(sine / 32))), 0.3)
1265
             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)
1266
             handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
1267
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1268
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1269
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1270
		end
1271
	attack = false
1272
	wait(10)
1273
	traz:Destroy()
1274
	tra:Destroy()
1275
	sa:Destroy()
1276
	lb:Destroy()
1277
end
1278
hold = false
1279
1280
function do1()
1281
	attack = true
1282
	handleweld.Part0 = rarm
1283
local tra = Instance.new("ParticleEmitter",handle)
1284
tra.Texture = "rbxassetid://296874871"
1285
tra.LightEmission = 0.95
1286
tra.Color = ColorSequence.new(Color3.new(1,0.5,0))
1287
tra.Rate = 1000
1288
tra.Lifetime = NumberRange.new(0.25)
1289
tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10,0),NumberSequenceKeypoint.new(1,0,0)})
1290
tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.85,0)})
1291
tra.Speed = NumberRange.new(0)
1292
tra.Rotation = NumberRange.new(-500,500)
1293
tra.VelocitySpread = 90000
1294
tra.LockedToPart = true
1295
tra.RotSpeed = NumberRange.new(-500,500)
1296
while true do
1297
		swait()
1298
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
1299
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3)
1300
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(-50 - 2.5 * math.cos(sine / 32))), 0.3)
1301
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-50 + 2.5 * math.cos(sine / 32))), 0.3)
1302
             handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
1303
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1304
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1305
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1306
if hold == false then
1307
	break
1308
end
1309
end
1310
		local traz = Instance.new("ParticleEmitter",handle)
1311
traz.Texture = "rbxassetid://296874871"
1312
traz.LightEmission = 0.95
1313
traz.Color = ColorSequence.new(Color3.new(1,0.5,0))
1314
traz.Rate = 1000000
1315
traz.Lifetime = NumberRange.new(0.5)
1316
traz.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,15,0)})
1317
traz.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
1318
traz.Speed = NumberRange.new(50)
1319
traz.Rotation = NumberRange.new(-500,500)
1320
traz.VelocitySpread = 90000
1321
traz.RotSpeed = NumberRange.new(-500,500)
1322
		local sa = Instance.new("Sound",handle)
1323
sa.SoundId = "rbxassetid://519795084"
1324
sa.Volume = 1.25
1325
sa.Pitch = 1.15
1326
sa:Play()
1327
		tra.Rate = 0
1328
	 local lb = Instance.new("Part")
1329
  lb.Parent = char
1330
   lb.Material = "Neon"
1331
    lb.Color = Color3.new(1,0.5,0)
1332
     lb.CanCollide = false
1333
     lb.Shape = "Ball"
1334
     lb.CFrame = handle.CFrame
1335
     lb.Anchored = true
1336
     lb.Size = vt(7.5,7.5,7.5)
1337
     local thing = Instance.new("SpecialMesh",lb)
1338
     thing.MeshType = meshtype
1339
lb.Touched:connect(function(hit)
1340
Damagefunc(hit,10,15,5,"Normal",root,.2,1)
1341
end)
1342
lb.Anchored = false
1343
local trail = Instance.new("ParticleEmitter",lb)
1344
trail.Texture = "rbxassetid://296874871"
1345
trail.LightEmission = 0.95
1346
trail.Color = ColorSequence.new(lb.BrickColor.Color)
1347
trail.Rate = 10000
1348
trail.Lifetime = NumberRange.new(1.5)
1349
trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)})
1350
trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.95,0),NumberSequenceKeypoint.new(1,1,0)})
1351
trail.Speed = NumberRange.new(0,0)
1352
trail.Rotation = NumberRange.new(-500,500)
1353
trail.RotSpeed = NumberRange.new(-500,500)
1354
  local bv = Instance.new("BodyVelocity")
1355
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1356
  bv.velocity = mouse.Hit.lookVector *175
1357
  bv.Parent = lb
1358
traz.Rate = 0
1359
		for i = 0,1,0.1 do
1360
		swait()
1361
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.5,0)* angles(math.rad(0),math.rad(0),math.rad(-85)),.3)
1362
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(85)),.3)
1363
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(25 - 2.5 * math.cos(sine / 32))), 0.3)
1364
             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)
1365
             handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
1366
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1367
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1368
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1369
		end
1370
	attack = false
1371
	wait(10)
1372
	traz:Destroy()
1373
	tra:Destroy()
1374
	sa:Destroy()
1375
	lb:Destroy()
1376
end
1377
1378
function do2()
1379
		attack = true
1380
		handleweld.Part0 = rarm
1381
		for i = 0,2,0.1 do
1382
		swait()
1383
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
1384
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3)
1385
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(-50 - 2.5 * math.cos(sine / 32))), 0.3)
1386
             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)
1387
             handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
1388
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1389
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1390
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1391
		end
1392
				local traz2 = Instance.new("ParticleEmitter",handle)
1393
traz2.Texture = "rbxassetid://296874871"
1394
traz2.LightEmission = 0.95
1395
traz2.Color = ColorSequence.new(Color3.new(1,0.5,0))
1396
traz2.Rate = 1000000
1397
traz2.Lifetime = NumberRange.new(1)
1398
traz2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10,0),NumberSequenceKeypoint.new(1,50,0)})
1399
traz2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
1400
traz2.Speed = NumberRange.new(25,50)
1401
traz2.Rotation = NumberRange.new(-500,500)
1402
traz2.VelocitySpread = 90000
1403
traz2.RotSpeed = NumberRange.new(-500,500)
1404
				local traz = Instance.new("ParticleEmitter",handle)
1405
traz.Texture = "rbxassetid://296874871"
1406
traz.LightEmission = 0.95
1407
traz.Color = ColorSequence.new(Color3.new(1,0.5,0))
1408
traz.Rate = 1000000
1409
traz.Lifetime = NumberRange.new(0.5)
1410
traz.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,15,0)})
1411
traz.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
1412
traz.Speed = NumberRange.new(0)
1413
traz.Rotation = NumberRange.new(-500,500)
1414
traz.VelocitySpread = 90000
1415
traz.RotSpeed = NumberRange.new(-500,500)
1416
		root.Velocity = root.CFrame.lookVector*250
1417
local hit = handle.Touched:connect(function(hit)
1418
Damagefunc(hit,10,14,5,"Normal",root,.2,1)
1419
end)
1420
	local slas = Instance.new("Sound",handle)
1421
slas.SoundId = "rbxassetid://412756170"
1422
slas.Volume = 2.5
1423
slas.Pitch = 0.75
1424
slas:Play()
1425
wait(0.05)
1426
traz2.Rate = 0
1427
		for i = 0,3.5,0.1 do
1428
		swait()
1429
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(75)),.3)
1430
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-75)),.3)
1431
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(75 - 2.5 * math.cos(sine / 32))), 0.3)
1432
             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)
1433
             handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 7.5) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
1434
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1435
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1436
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1437
		end
1438
		traz.Rate = 0 
1439
				attack = false
1440
				hit:disconnect()
1441
				wait(10)
1442
				traz2:Destroy()
1443
				traz:Destroy()
1444
				slas:Destroy()
1445
end
1446
1447
function do3()
1448
		attack = true
1449
		local van = 1
1450
		for i = 0,3,0.1 do
1451
		swait()
1452
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1453
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
1454
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3)
1455
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3)
1456
             handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, -3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
1457
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1458
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1459
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1460
		end
1461
			local slas = Instance.new("Sound",handle)
1462
slas.SoundId = "rbxassetid://412756170"
1463
slas.Volume = 2.5
1464
slas.Pitch = 0.75
1465
slas:Play()
1466
						local traz = Instance.new("ParticleEmitter",handle)
1467
traz.Texture = "rbxassetid://296874871"
1468
traz.LightEmission = 0.95
1469
traz.Color = ColorSequence.new(Color3.new(1,0.5,0))
1470
traz.Rate = 1000000
1471
traz.Lifetime = NumberRange.new(0.5)
1472
traz.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,10,0)})
1473
traz.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
1474
traz.Speed = NumberRange.new(0)
1475
traz.Rotation = NumberRange.new(-500,500)
1476
traz.VelocitySpread = 90000
1477
traz.RotSpeed = NumberRange.new(-500,500)
1478
local hit = handle.Touched:connect(function(hit)
1479
Damagefunc(hit,19,25,5,"Normal",root,.2,1)
1480
end)
1481
		for i = 0,3,0.1 do
1482
		swait()
1483
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1484
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1485
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3)
1486
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3)
1487
             handleweld.C1 = clerp(handleweld.C1, CFrame.new(75, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
1488
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1489
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1490
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1491
		end
1492
		for i = 0,1,0.5 do
1493
		swait()
1494
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1495
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1496
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3)
1497
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3)
1498
             handleweld.C1 = clerp(handleweld.C1, CFrame.new(50, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
1499
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1500
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1501
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1502
		end
1503
		for i = 0,1,0.5 do
1504
		swait()
1505
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1506
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1507
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3)
1508
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3)
1509
             handleweld.C1 = clerp(handleweld.C1, CFrame.new(25, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
1510
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1511
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1512
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1513
		end
1514
		for i = 0,5,0.1 do
1515
		swait()
1516
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1517
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1518
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3)
1519
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3)
1520
             handleweld.C1 = clerp(handleweld.C1, CFrame.new(5, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
1521
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1522
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1523
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1524
		end
1525
		hit:disconnect()
1526
				traz.Rate = 0
1527
				attack = false
1528
				wait(5)
1529
				traz:Destroy()
1530
				slas:Destroy()
1531
end
1532
1533
function DeleteParent(parent)
1534
	for i,v in pairs(parent:children()) do
1535
    if v:IsA("Part") then
1536
        v:Destroy()
1537
    end
1538
end	
1539
end
1540
1541
function do4()
1542
		attack = true
1543
		hum.WalkSpeed = 0
1544
		local van = 1
1545
			 local lba = Instance.new("Part")
1546
				local slas = Instance.new("Sound",lba)
1547
slas.SoundId = "rbxassetid://137463716"
1548
slas.Volume = 1.5
1549
slas.Pitch = 0.25
1550
slas:Play()
1551
				local slas2 = Instance.new("Sound",lba)
1552
slas2.SoundId = "rbxassetid://342793847"
1553
slas2.Volume = 1.5
1554
slas2.Pitch = 0.5
1555
slas2:Play()
1556
  lba.Parent = char
1557
   lba.Material = "Neon"
1558
    lba.BrickColor = BrickColor.new("Persimmon")
1559
     lba.CanCollide = false
1560
     lba.Shape = "Ball"
1561
     lba.CFrame = handle.CFrame
1562
     lba.Anchored = true
1563
     lba.Size = vt(1,1,1)
1564
     local thing = Instance.new("SpecialMesh",lba)
1565
     thing.MeshType = meshtype
1566
		for i = 0,50,0.1 do
1567
		swait()
1568
		van = van + 0.05
1569
		thing.Scale = thing.Scale + vt(0.085,0.085,0.085)
1570
		     lba.CFrame = handle.CFrame + vt(0,van,0)
1571
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1572
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
1573
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3)
1574
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3)
1575
             handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, -3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
1576
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
1577
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1578
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
1579
		end
1580
		for z = 0, 9 do
1581
		for i = 0, 24 do
1582
						thing.Scale = thing.Scale - vt(0.15,0.15,0.15)
1583
						 local lb = Instance.new("Part")
1584
  lb.Parent = handle
1585
   lb.Material = "Neon"
1586
    lb.BrickColor = BrickColor.new("Persimmon")
1587
     lb.CanCollide = false
1588
     lb.Shape = "Ball"
1589
     lb.CFrame = lba.CFrame
1590
     lb.Anchored = false
1591
     lb.Size = vt(5,5,5)
1592
     lb.CFrame = lba.CFrame
1593
			  local bv = Instance.new("BodyVelocity")
1594
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1595
  bv.velocity = vt(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1596
  bv.Parent = lb
1597
	local sound = it("Sound",lb)
1598
	sound.Volume = 0.5
1599
	sound.SoundId = "rbxassetid://178452221"
1600
	sound.Pitch = 0.5
1601
	sound:Play()
1602
lb.Touched:connect(function(hit)
1603
Damagefunc(hit,20,30,5,"Normal",root,.2,1)
1604
end)
1605
wait()
1606
		end
1607
		end
1608
		lba:Destroy()
1609
				hum.WalkSpeed = 16
1610
				attack = false
1611
				wait(10)
1612
				DeleteParent(handle)
1613
end
1614
1615
attackcombo = 0
1616
1617
mouse.Button1Down:connect(function()
1618
if hold == false then
1619
	if attack == false and attackcombo == 0 then
1620
		attackcombo = 1
1621
		attackone()
1622
	elseif attack == false and attackcombo == 1 then
1623
		attackcombo = 2
1624
		attacktwo()
1625
	elseif attack == false and attackcombo == 2 then
1626
		attackcombo = 3
1627
		attackthree()
1628
	elseif attack == false and attackcombo == 3 then
1629
		attackcombo = 0
1630
		attackfour()
1631
	end
1632
end
1633
if attack == true and hold == true then
1634
hold = false
1635
end
1636
end)
1637
1638
mouse.KeyDown:connect(function(key)
1639
if key == "z" and attack == false and hold == false and mana >= 25 then
1640
hold = true
1641
mana = mana - 25
1642
do1()
1643
end
1644
if key == "x" and attack == false and mana >= 40 then
1645
mana = mana - 40
1646
do2()
1647
end
1648
if key == "c" and attack == false and mana >= 60 then
1649
mana = mana - 60
1650
do3()
1651
end
1652
if key == "v" and attack == false and mana >= 100 then
1653
mana = mana - 100
1654
do4()
1655
end
1656
end)
1657
1658
game:GetService("RunService").Stepped:connect(function()
1659
  Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
1660
  velocity = RootPart.Velocity.y
1661
  sine = sine + change
1662
  local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
1663
  if equipped == true or equipped == false then
1664
	healthg.Text = math.floor(hum.Health).. "/" ..math.floor(hum.MaxHealth)
1665
	manag.Text = "Mana: " ..math.floor(mana)
1666
	if mana <= 250 then
1667
	mana = mana + 0.25
1668
	end
1669
    if RootPart.Velocity.y > 1 and hit == nil then
1670
      Anim = "Jump"
1671
      if attack == false then
1672
	handleweld.Part0 = torso
1673
		RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1674
        Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2.5),math.rad(0),math.rad(0)),.3)
1675
              RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(50)), 0.3)
1676
              LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-50)), 0.3)
1677
handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, -1.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1678
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 82))), 0.3)
1679
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
1680
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
1681
      end
1682
    else
1683
      if RootPart.Velocity.y < -1 and hit == nil then
1684
        Anim = "Fall"
1685
        if attack == false then
1686
	handleweld.Part0 = torso
1687
			RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),.3)
1688
        Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2.5),math.rad(0),math.rad(0)),.3)
1689
              RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(90)), 0.3)
1690
              LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-90)), 0.3)
1691
handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, -1.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1692
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 82))), 0.3)
1693
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
1694
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
1695
        end
1696
      else
1697
        if Torsovelocity < 1 and hit ~= nil then
1698
          Anim = "Idle"
1699
          if attack == false then
1700
            change = 1
1701
handleweld.Part0 = torso
1702
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1703
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
1704
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10 - 5 * math.cos(sine / 32))), 0.3)
1705
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10 + 5 * math.cos(sine / 32))), 0.3)
1706
handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, -1.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1707
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 82))), 0.3)
1708
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
1709
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
1710
          end
1711
        else
1712
          if Torsovelocity > 2 and hit ~= nil then
1713
            Anim = "Walk"
1714
            if attack == false then
1715
	handleweld.Part0 = torso
1716
	          RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 2.5))* angles(math.rad(15),math.rad(0),math.rad(0)),.3)
1717
              Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
1718
              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(10)), 0.3)
1719
              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(-10)), 0.3)
1720
handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, -1.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1721
weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 82))), 0.3)
1722
weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
1723
weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
1724
            end
1725
          end
1726
        end
1727
      end
1728
    end
1729
  end
1730
end)