View difference between Paste ID: wtcXEGXz and bGqddQzL
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
p = game.Players.LocalPlayer
135
char = p.Character
136
torso = char.Torso
137
neck = char.Torso.Neck
138
hum = char.Humanoid
139
140
CV="Maroon"
141
	
142
local txt = Instance.new("BillboardGui", char)
143
txt.Adornee = char .Head
144
txt.Name = "_status"
145
txt.Size = UDim2.new(2, 0, 1.2, 0)
146
txt.StudsOffset = Vector3.new(-9, 8, 0)
147
local text = Instance.new("TextLabel", txt)
148
text.Size = UDim2.new(10, 0, 7, 0)
149
text.FontSize = "Size24"
150
text.TextScaled = true
151
text.TextTransparency = 0
152
text.BackgroundTransparency = 1 
153
text.TextTransparency = 0
154
text.TextStrokeTransparency = 0
155
text.Font = "SourceSansBold"
156
text.TextStrokeColor3 = Color3.new(0,0,0)
157
158
v=Instance.new("Part")
159
v.Name = "ColorBrick"
160
v.Parent=p.Character
161
v.FormFactor="Symmetric"
162
v.Anchored=true
163
v.CanCollide=false
164
v.BottomSurface="Smooth"
165
v.TopSurface="Smooth"
166
v.Size=Vector3.new(10,5,3)
167
v.Transparency=1
168
v.CFrame=char.Torso.CFrame
169
v.BrickColor=BrickColor.new(CV)
170
v.Transparency=1
171
text.TextColor3 = Color3.new(1,1,1)
172
v.Shape="Block"
173
text.Text = "Luminous Magic User"
174
175
Player = game:GetService("Players").LocalPlayer
176
Character = Player.Character
177
PlayerGui = Player.PlayerGui
178
Backpack = Player.Backpack
179
Torso = Character.Torso
180
Head = Character.Head
181
Humanoid = Character.Humanoid
182
Face = Head.face
183
LeftArm = Character["Left Arm"]
184
LeftLeg = Character["Left Leg"]
185
RightArm = Character["Right Arm"]
186
RightLeg = Character["Right Leg"]
187
LS = Torso["Left Shoulder"]
188
LH = Torso["Left Hip"]
189
RS = Torso["Right Shoulder"]
190
RH = Torso["Right Hip"]
191
Neck = Torso.Neck
192
it = Instance.new
193
vt = Vector3.new
194
cf = CFrame.new
195
euler = CFrame.fromEulerAnglesXYZ
196
angles = CFrame.Angles
197
necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
198
necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
199
LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
200
LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
201
RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
202
RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
203
RootPart = Character.HumanoidRootPart
204
RootJoint = RootPart.RootJoint
205
RootCF = euler(-1.57, 0, 3.14)
206
attack = false
207
attackdebounce = false
208
MMouse = nil
209
combo = 0
210
local hitfloor, posfloor = nil, nil
211
local idle = 0
212
local Anim = "Idle"
213
local Effects = {}
214
local Weapon = {}
215
local Welds = {}
216
local invisible = false
217
local doing2 = false
218
local doing4 = false
219
local Marked = {}
220
local MarkedGUI = {}
221
local decreaseatk = 0
222
local decreasedef = 0
223
local decreasemvmt = 0
224
local pursuitnum = 0
225
local arcorb = false
226
local move1 = "(Q)\nLuminous Bullet"
227
local move2 = "(E)\nSirius"
228
local move3 = "(R)\nLuminous Blast"
229
local move4 = "(F)\nBright Destruction"
230
local cooldowns = {}
231
local cooldown1 = 0
232
table.insert(cooldowns, cooldown1)
233
local cooldown2 = 0
234
table.insert(cooldowns, cooldown2)
235
local cooldown3 = 0
236
table.insert(cooldowns, cooldown3)
237
local cooldown4 = 0
238
table.insert(cooldowns, cooldown4)
239
local cooldownsadd = {}
240
local cooldownadd1 = 100
241
table.insert(cooldownsadd, cooldownadd1)
242
local cooldownadd2 = 100
243
table.insert(cooldownsadd, cooldownadd2)
244
local cooldownadd3 = 100
245
table.insert(cooldownsadd, cooldownadd3)
246
local cooldownadd4 = 100
247
table.insert(cooldownsadd, cooldownadd4)
248
local cooldownmax = 100
249
player = nil
250
RSH = nil
251
RW = Instance.new("Motor")
252
LW = Instance.new("Motor")
253
RW.Name = "Right Shoulder"
254
LW.Name = "Left Shoulder"
255
LH = Torso["Left Hip"]
256
RH = Torso["Right Hip"]
257
TorsoColor = Torso.BrickColor
258
TorsoRed = TorsoColor.Color.r
259
TorsoGreen = TorsoColor.Color.g
260
TorsoBlue = TorsoColor.Color.b
261
NewCol = BrickColor.new("White").Color
262
NewCol2 = BrickColor.new("White").Color
263
if Player:findFirstChild("Color1") ~= nil then
264
  NewCol = Player.Color1.Value
265
end
266
if Player:findFirstChild("Color2") ~= nil then
267
  NewCol2 = Player.Color2.Value
268
end
269
print(BrickColor.new(NewCol))
270
local mdec = Instance.new("NumberValue", Decrease)
271
mdec.Name = "DecreaseDef"
272
mdec.Value = 0.4
273
local mdec2 = Instance.new("NumberValue", Decrease)
274
mdec2.Name = "DecreaseMvmt"
275
mdec2.Value = 0.1
276
if Character:findFirstChild("Effects", true) ~= nil then
277
  Character:findFirstChild("Effects", true).Parent = nil
278
end
279
local effects = it("Model", Character)
280
effects.Name = "Effects"
281
local Animate = Humanoid.Animator
282
local canjump = true
283
removeControl = function()
284
  canjump = false
285
end
286
resumeControl = function()
287
  canjump = true
288
end
289
Player.Character.Humanoid.Changed:connect(function()
290
  if canjump == false then
291
    Player.Character.Humanoid.Jump = false
292
  end
293
end)
294
ArtificialHB = Instance.new("BindableEvent", script)
295
ArtificialHB.Name = "Heartbeat"
296
297
script:WaitForChild("Heartbeat")
298
299
frame = 1 / 30
300
tf = 0
301
allowframeloss = true
302
tossremainder = false
303
lastframe = tick()
304
script.Heartbeat:Fire()
305
306
game:GetService("RunService").Heartbeat:connect(function(s, p)
307
    tf = tf + s
308
    if tf >= frame then
309
        if allowframeloss then
310
            script.Heartbeat:Fire()
311
            lastframe = tick()
312
        else
313
            for i = 1, math.floor(tf / frame) do
314
                script.Heartbeat:Fire()
315
            end
316
            lastframe = tick()
317
        end
318
        if tossremainder then
319
            tf = 0
320
        else
321
            tf = tf - frame * math.floor(tf / frame)
322
        end
323
    end
324
end)
325
326
function swait(num)
327
    if num == 0 or num == nil then
328
        ArtificialHB.Event:wait()
329
    else
330
        for i = 0, num do
331
            ArtificialHB.Event:wait()
332
        end
333
    end
334
end
335
if Character:findFirstChild("Carnufico", true) ~= nil then
336
  Character:findFirstChild("Carnufico", true).Parent = nil
337
end
338
if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
339
  Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
340
end
341
if Character:findFirstChild("Stats", true) ~= nil then
342
  Character:findFirstChild("Stats", true).Parent = nil
343
end
344
local Stats = Instance.new("BoolValue")
345
Stats.Name = "Stats"
346
Stats.Parent = Character
347
local Atk = Instance.new("NumberValue")
348
Atk.Name = "Damage"
349
Atk.Parent = Stats
350
Atk.Value = 1
351
local Def = Instance.new("NumberValue")
352
Def.Name = "Defense"
353
Def.Parent = Stats
354
Def.Value = 1
355
local Mvmt = Instance.new("NumberValue")
356
Mvmt.Name = "Movement"
357
Mvmt.Parent = Stats
358
Mvmt.Value = 1
359
local Block = Instance.new("BoolValue")
360
Block.Name = "Block"
361
Block.Parent = Stats
362
Block.Value = false
363
local Stun = Instance.new("NumberValue")
364
Stun.Name = "Stun"
365
Stun.Parent = Stats
366
Stun.Value = 0
367
local StunT = Instance.new("NumberValue")
368
StunT.Name = "StunThreshold"
369
StunT.Parent = Stats
370
StunT.Value = 100
371
local Rooted = Instance.new("BoolValue")
372
Rooted.Name = "Rooted"
373
Rooted.Parent = Stats
374
Rooted.Value = false
375
local Stunned = Instance.new("BoolValue")
376
Stunned.Name = "Stunned"
377
Stunned.Parent = Stats
378
Stunned.Value = false
379
local Stagger = Instance.new("BoolValue")
380
Stagger.Name = "Stagger"
381
Stagger.Parent = Stats
382
Stagger.Value = false
383
local StaggerHit = Instance.new("BoolValue")
384
StaggerHit.Name = "StaggerHit"
385
StaggerHit.Parent = Stats
386
StaggerHit.Value = false
387
local RecentEnemy = Instance.new("ObjectValue")
388
RecentEnemy.Name = "RecentEnemy"
389
RecentEnemy.Parent = Stats
390
RecentEnemy.Value = nil
391
local Decrease = Instance.new("BoolValue")
392
Decrease.Name = "Decrease"
393
Decrease.Parent = Stats
394
Decrease.Value = false
395
local mana = Instance.new("NumberValue")
396
mana.Name = "Mana"
397
mana.Parent = Stats
398
mana.Value = 0
399
local invisnum = Instance.new("NumberValue")
400
invisnum.Name = "Pursuit"
401
invisnum.Parent = Stats
402
invisnum.Value = 0
403
local isinvis = Instance.new("BoolValue")
404
isinvis.Name = "IsInvisible"
405
isinvis.Parent = Stats
406
isinvis.Value = false
407
local passive = Instance.new("NumberValue", Decrease)
408
passive.Name = "DecreaseAtk"
409
passive.Value = 0
410
local passive2 = Instance.new("NumberValue", nil)
411
passive2.Name = "DecreaseDef"
412
passive2.Value = 0.2
413
local passive3 = Instance.new("NumberValue", nil)
414
passive3.Name = "DecreaseMvmt"
415
passive3.Value = -0.2
416
NoOutline = function(Part)
417
  Part.TopSurface = 10
418
end
419
part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
420
  local fp = it("Part")
421
  fp.formFactor = formfactor
422
  fp.Parent = parent
423
  fp.Reflectance = reflectance
424
  fp.Transparency = transparency
425
  fp.CanCollide = false
426
  fp.Locked = true
427
  fp.BrickColor = brickcolor
428
  fp.Name = name
429
  fp.Size = size
430
  fp.Position = Torso.Position
431
  NoOutline(fp)
432
  fp.Material = "Neon"
433
  fp:BreakJoints()
434
  return fp
435
end
436
mesh = function(Mesh, part, meshtype, meshid, offset, scale)
437
  local mesh = it(Mesh)
438
  mesh.Parent = part
439
  if Mesh == "SpecialMesh" then
440
    mesh.MeshType = meshtype
441
    if meshid ~= "nil" then
442
      mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
443
    end
444
  end
445
  mesh.Offset = offset
446
  mesh.Scale = scale
447
  return mesh
448
end
449
weld = function(parent, part0, part1, c0)
450
  local weld = it("Motor")
451
  weld.Parent = parent
452
  weld.Part0 = part0
453
  weld.Part1 = part1
454
  weld.C0 = c0
455
  return weld
456
end
457
gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
458
  local gui = it(GuiType)
459
  gui.Parent = parent
460
  gui.Text = text
461
  gui.BackgroundTransparency = backtrans
462
  gui.BackgroundColor3 = backcol
463
  gui.SizeConstraint = "RelativeXY"
464
  gui.TextXAlignment = "Center"
465
  gui.TextYAlignment = "Center"
466
  gui.Position = pos
467
  gui.Size = size
468
  gui.Font = "SourceSansBold"
469
  gui.FontSize = "Size14"
470
  gui.TextWrapped = false
471
  gui.TextStrokeTransparency = 0
472
  gui.TextColor = BrickColor.new("White")
473
  return gui
474
end
475
local Color1 = Torso.BrickColor
476
local fengui = it("GuiMain")
477
fengui.Parent = Player.PlayerGui
478
fengui.Name = "WeaponGUI"
479
local fenframe = it("Frame")
480
fenframe.Parent = fengui
481
fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
482
fenframe.BackgroundTransparency = 1
483
fenframe.BorderColor3 = Color3.new(17, 17, 17)
484
fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
485
fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
486
local fenframe2 = it("Frame")
487
fenframe2.Parent = fengui
488
fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
489
fenframe2.BackgroundTransparency = 1
490
fenframe2.BorderColor3 = Color3.new(17, 17, 17)
491
fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
492
fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
493
local fenframe3 = it("Frame")
494
fenframe3.Parent = fengui
495
fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
496
fenframe3.BackgroundTransparency = 1
497
fenframe3.BorderColor3 = Color3.new(17, 17, 17)
498
fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
499
fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
500
fenframe3.Name = "MoveFrame"
501
local fenframe4 = it("Frame")
502
fenframe4.Parent = fengui
503
fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
504
fenframe4.BackgroundTransparency = 1
505
fenframe4.BorderColor3 = Color3.new(17, 17, 17)
506
fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
507
fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
508
local pressedf = false
509
local fenframe5 = it("Frame")
510
fenframe5.Parent = fengui
511
fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
512
fenframe5.BackgroundTransparency = 1
513
fenframe5.BorderColor3 = Color3.new(0, 0, 0)
514
fenframe5.Size = UDim2.new(1, 0, 1, 0)
515
fenframe5.Position = UDim2.new(0, 0, 0, 0)
516
fenframe5.ZIndex = 2
517
local tellbar = gui("TextLabel", fenframe5, "Z to enable magic.", 1, Color3.new(0, 0, 0), UDim2.new(0.25, 0, 0.25, 0), UDim2.new(0.5, 0, 0.5, 0))
518
tellbar.Font = "SourceSansBold"
519
tellbar.TextScaled = true
520
tellbar.TextTransparency = 1
521
tellbar.TextStrokeTransparency = 1
522
tellbar.ZIndex = 2
523
local fnumb = 0
524
local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
525
local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
526
local fenbarmana4 = gui("TextLabel", fenframe, "Mana(" .. mana.Value .. ")", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
527
local fenbarblock1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(-0.7, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
528
local fenbarblock2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(-0.7, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
529
local fenbarblock3 = gui("TextLabel", fenframe, "Pursuit(" .. invisnum.Value .. ")", 1, Color3.new(0, 0, 0), UDim2.new(-0.7, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
530
local fenbardamage = gui("TextLabel", fenframe2, "Damage", 0.55, Color3.new(0.6078431372549, 0, 0), UDim2.new(-0.23, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
531
local fenbardef = gui("TextLabel", fenframe2, "Defense", 0.55, Color3.new(0, 0, 0.6078431372549), UDim2.new(-0.46, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
532
local fenbarmove = gui("TextLabel", fenframe2, "Walkspeed", 0.55, Color3.new(0, 0.6078431372549, 0), UDim2.new(1.03, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
533
local fenbarhp1 = gui("TextLabel", fenframe2, "", 0, Color3.new(0, 0, 0), UDim2.new(-0.46, 0, 1, 0), UDim2.new(1.92, 0, 0.4, 0))
534
local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
535
local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
536
local fenbarstun1 = gui("TextLabel", fenframe4, "", 0, Color3.new(0, 0, 0), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
537
local fenbarstun2 = gui("TextLabel", fenframe4, "", 0, Color3.new(0.960784, 0.803922, 0.188235), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
538
local fenbarstun3 = gui("TextLabel", fenframe4, "Stun(" .. Stun.Value .. ")", 1, Color3.new(0.960784, 0.803922, 0.188235), UDim2.new(0.2, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
539
local fenbarmove1 = gui("TextButton", fenframe3, move1, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.1, 0, 0.1, 0), UDim2.new(0.4, 0, 0.4, 0))
540
fenbarmove1.ZIndex = 2
541
local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
542
local fenbarmove2 = gui("TextButton", fenframe3, move2, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.6, 0, 0.1, 0), UDim2.new(0.4, 0, 0.4, 0))
543
fenbarmove2.ZIndex = 2
544
local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
545
local fenbarmove3 = gui("TextButton", fenframe3, move3, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.1, 0, 0.6, 0), UDim2.new(0.4, 0, 0.4, 0))
546
fenbarmove3.ZIndex = 2
547
local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
548
local fenbarmove4 = gui("TextButton", fenframe3, move4, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.6, 0, 0.6, 0), UDim2.new(0.4, 0, 0.4, 0))
549
fenbarmove4.ZIndex = 2
550
local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
551
local testpart = part(3, effects, 0, 1, BrickColor.new("Black"), "Handle", vt())
552
testpart.Anchored = true
553
local scarfp2 = part(3, effects, 0, 1, BrickColor.new("Black"), "Handle", vt())
554
scarfp2.Anchored = true
555
local modelzorz = Instance.new("Model")
556
modelzorz.Parent = Character
557
modelzorz.Name = "Carnufico"
558
local handle = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Handle", vt())
559
local prt1 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol2), "Part01", vt())
560
local prt2 = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Part02", vt())
561
local prt3 = part(3, modelzorz, 0, 1, BrickColor.new("Medium stone grey"), "Part03", vt())
562
local prt4 = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Part04", vt())
563
local prt5 = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Part05", vt())
564
local prt6 = part(3, modelzorz, 0, 1, BrickColor.new("Dark stone grey"), "Part06", vt())
565
local prt7 = part(3, modelzorz, 0.5, 1, BrickColor.new("Really black"), "Part07", vt())
566
local prt8 = part(3, modelzorz, 0.5, 1, BrickColor.new(NewCol), "Part07", vt())
567
local prt9 = part(3, modelzorz, 0.5, 1, BrickColor.new("Really black"), "Part09", vt())
568
local prt10 = part(3, modelzorz, 0.5, 1, BrickColor.new(NewCol), "Part10", vt())
569
msh1 = mesh("CylinderMesh", prt1, "", "", vt(0, 0, 0), vt(2, 30, 2))
570
msh2 = mesh("SpecialMesh", prt2, "FileMesh", "9756362", vt(0, 0, 0), vt(1, 1, 1))
571
msh3 = mesh("CylinderMesh", prt3, "", "", vt(0, 0, 0), vt(3, 3, 3))
572
msh4 = mesh("SpecialMesh", prt4, "FileMesh", "3270017", vt(0, 0, 0), vt(1, 1, 1))
573
msh5 = mesh("SpecialMesh", prt5, "FileMesh", "3270017", vt(0, 0, 0), vt(1, 1, 1))
574
msh6 = mesh("SpecialMesh", prt6, "FileMesh", "9756362", vt(0, 0, 0), vt(0.8, 1, 0.5))
575
msh7 = mesh("BlockMesh", prt7, "", "", vt(0, 0, 0), vt(1, 2, 2))
576
msh8 = mesh("BlockMesh", prt8, "", "", vt(0, 0, 0), vt(1, 1, 2))
577
msh9 = mesh("SpecialMesh", prt9, "Wedge", "nil", vt(0, 0, 0), vt(1, 2, 4))
578
msh10 = mesh("SpecialMesh", prt10, "Wedge", "nil", vt(0, 0, 0), vt(1, 2, 4))
579
local handlewld = weld(handle, handle, Torso, euler(-2, 1.57, 0) * cf(-1, -0.5, -0.6))
580
local wld1 = weld(prt1, prt1, handle, euler(0, 0, 0) * cf(0, 0, 0))
581
local wld2 = weld(prt1, prt2, prt1, euler(3.14, 0, 0) * cf(0, 3, 0))
582
local wld3 = weld(prt1, prt3, prt1, euler(0, 0, 0) * cf(0, -3.2, 0))
583
local wld4 = weld(prt1, prt4, prt3, euler(-1.57, 0, 1.57) * euler(0, -0.7, 0) * cf(-0.16, -0.2, -0.1))
584
local wld5 = weld(prt1, prt5, prt3, euler(-1.57, 0, -1.57) * euler(0, 0.7, 0) * cf(0.16, -0.2, -0.1))
585
local wld6 = weld(prt1, prt6, prt3, euler(0, 0, 0) * cf(0, -0.2, 0.1))
586
local wld7 = weld(prt1, prt7, prt6, euler(0, 0, 0) * cf(0, 0.2, 0.2))
587
local wld8 = weld(prt1, prt8, prt6, euler(0, 0, 0) * cf(0, -0.1, 0.2))
588
local wld9 = weld(prt1, prt9, prt7, euler(0, 0, 0) * cf(0, 0, 0.7))
589
local wld10 = weld(prt1, prt10, prt8, euler(0, 0, 0) * cf(0, -0.1, 0.7))
590
for i = 0, 2.355, 0.785 do
591
  local prt4 = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Part04", vt())
592
  msh4 = mesh("SpecialMesh", prt4, "FileMesh", "9756362", vt(0, 0, 0), vt(1, 0.2, 0.2))
593
  local wld4 = weld(prt1, prt4, prt3, euler(0, i, 0) * cf(0, 0.6, 0))
594
end
595
oldprt = prt9
596
oldprt2 = prt10
597
cff = 0.1
598
eul = 0.02
599
siz = 0.99
600
for i = 1, 6 do
601
  local prt11 = part(3, modelzorz, 0.5, 1, BrickColor.new("Really black"), "Part11", vt())
602
  msh11 = mesh("SpecialMesh", prt11, "Wedge", "nil", vt(0, 0, 0), vt(siz, 2, 6))
603
  local wld11 = weld(prt1, prt11, oldprt, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0))
604
  if i < 4 then
605
    num = 6
606
    if i == 3 then
607
      num = 6.8
608
    end
609
    local prt12 = part(3, modelzorz, 0.5, 1, BrickColor.new("Black"), "Part12", vt())
610
    msh12 = mesh("BlockMesh", prt12, "", "", vt(0, 0, 0), vt(siz / 2, 2, num))
611
    local wld12 = weld(prt1, prt12, prt11, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0))
612
  end
613
  do
614
    do
615
      oldprt = prt11
616
      cff = 0.6
617
      eul = 0.15
618
      siz = siz - 0.1
619
      -- DECOMPILER ERROR at PC2114: LeaveBlock: unexpected jumping out DO_STMT
620
621
    end
622
  end
623
end
624
modelzorz.Name = "Chakra Gauntlets"
625
local rprt1 = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Right Part01", vt())
626
local rprt2 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Right Part02", vt())
627
local rprt3 = part(3, modelzorz, 0.5, 1, BrickColor.new("White"), "Right Part03", vt())
628
local rprt4 = part(3, modelzorz, 0.5, 1, BrickColor.new("White"), "Right Part04", vt())
629
local rprt5 = part(3, modelzorz, 0, 1, BrickColor.new("Really black"), "Right Part05", vt())
630
local rprt6 = part(3, modelzorz, 0.5, 1, BrickColor.new("White"), "Right Part06", vt())
631
local lprt1 = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Left Part01", vt())
632
local lprt2 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Left Part02", vt())
633
local lprt3 = part(3, modelzorz, 0.5, 1, BrickColor.new("White"), "Left Part03", vt())
634
local lprt4 = part(3, modelzorz, 0.5, 1, BrickColor.new("White"), "Left Part04", vt())
635
local lprt5 = part(3, modelzorz, 0, 1, BrickColor.new("Really black"), "Left Part05", vt())
636
local lprt6 = part(3, modelzorz, 0.5, 1, BrickColor.new("White"), "Left Part06", vt())
637
local rmsh1 = mesh("SpecialMesh", rprt1, "FileMesh", "3270017", vt(0, 0, 0), vt(1.2, 1.2, 2))
638
local rmsh2 = mesh("CylinderMesh", rprt2, "", "", vt(0, 0, 0), vt(5, 2, 5))
639
local rmsh3 = mesh("SpecialMesh", rprt3, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 3, 6))
640
local rmsh4 = mesh("SpecialMesh", rprt4, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 1.5, 3))
641
local rmsh5 = mesh("CylinderMesh", rprt5, "", "", vt(0, 0, 0), vt(4, 2.1, 4))
642
local rmsh6 = mesh("SpecialMesh", rprt6, "FileMesh", "9756362", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
643
local lmsh1 = mesh("SpecialMesh", lprt1, "FileMesh", "3270017", vt(0, 0, 0), vt(1.2, 1.2, 2))
644
local lmsh2 = mesh("CylinderMesh", lprt2, "", "", vt(0, 0, 0), vt(5, 2, 5))
645
local lmsh3 = mesh("SpecialMesh", lprt3, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 3, 6))
646
local lmsh4 = mesh("SpecialMesh", lprt4, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 1.5, 3))
647
local lmsh5 = mesh("CylinderMesh", lprt5, "", "", vt(0, 0, 0), vt(4, 2.1, 4))
648
local lmsh6 = mesh("SpecialMesh", lprt6, "FileMesh", "9756362", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
649
local rwld1 = weld(lprt1, rprt1, RightArm, euler(1.57, 0, 0) * cf(0, 0.3, 0))
650
local rwld2 = weld(rprt1, rprt2, rprt1, euler(0, 0, 1.57) * cf(-0.6, 0, 0))
651
local rwld3 = weld(rprt1, rprt3, rprt2, euler(-0.2, 3.14, 1.57) * cf(-0.7, 0, -0.4))
652
local rwld4 = weld(rprt1, rprt4, rprt2, euler(-0.4, 3.14, -1.57) * cf(0.6, 0, -0.2))
653
local rwld5 = weld(rprt1, rprt5, rprt2, euler(0, 0, 0) * cf(0, 0, 0))
654
local rwld6 = weld(rprt1, rprt6, rprt2, euler(0, 0, 0.785) * cf(0, 0, 0.45))
655
local lwld1 = weld(lprt1, lprt1, LeftArm, euler(1.57, 0, 0) * cf(0, 0.3, 0))
656
local lwld2 = weld(rprt1, lprt2, lprt1, euler(0, 0, 1.57) * cf(0.6, 0, 0))
657
local lwld3 = weld(rprt1, lprt3, lprt2, euler(-0.2, 3.14, 1.57) * cf(-0.7, 0, -0.4))
658
local lwld4 = weld(rprt1, lprt4, lprt2, euler(-0.4, 3.14, -1.57) * cf(0.6, 0, -0.2))
659
local lwld5 = weld(rprt1, lprt5, lprt2, euler(0, 0, 0) * cf(0, 0, 0))
660
local lwld6 = weld(rprt1, lprt6, lprt2, euler(0, 0, 0.785) * cf(0, 0, 0.45))
661
for _,c in pairs(modelzorz:children()) do
662
  table.insert(Weapon, c)
663
end
664
for _,c in pairs(rprt1:children()) do
665
  if c.className == "Motor" then
666
    table.insert(Welds, c)
667
  end
668
end
669
oldprt2 = prt10
670
cff = 0.1
671
eul = 0.02
672
siz = 0.99
673
for i = 1, 7 do
674
  local prt13 = part(3, modelzorz, 0.5, 1, BrickColor.new(NewCol), "Part13", vt())
675
  msh13 = mesh("SpecialMesh", prt13, "Wedge", "nil", vt(0, 0, 0), vt(siz, 2, 6))
676
  local wld13 = weld(prt1, prt13, oldprt2, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0))
677
  oldprt2 = prt13
678
  cff = 0.6
679
  eul = 0.14
680
  siz = siz - 0.1
681
end
682
for _,c in pairs(modelzorz:children()) do
683
  table.insert(Weapon, c)
684
end
685
for _,c in pairs(prt1:children()) do
686
  if c.className == "Motor" then
687
    table.insert(Welds, c)
688
  end
689
end
690
local hitbox = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Hitbox2", vt())
691
hitbox.Anchored = false
692
local hbwld = weld(hitbox, hitbox, RootPart, euler(0, 0, 0) * cf(0, 0, 0))
693
local hitbox2 = part(3, nil, 0, 1, BrickColor.new("Black"), "Hitbox", vt(1, 1, 1))
694
hitbox2.Anchored = true
695
local hitboxCF = cf(0, 0, 0)
696
hboxpos = Instance.new("BodyPosition", nil)
697
hboxpos.P = 2000
698
hboxpos.D = 100
699
hboxpos.maxForce = Vector3.new(545000, 545000, 545000)
700
hitboxweld = function()
701
  hbwld.Parent = modelzorz
702
  hbwld.Part0 = hitbox
703
  hbwld.Part1 = prt6
704
end
705
if script.Parent.className ~= "HopperBin" then
706
  Tool = Instance.new("HopperBin")
707
  Tool.Parent = Backpack
708
  Tool.Name = "Luminous Magic"
709
  script.Parent = Tool
710
end
711
Bin = script.Parent
712
if Bin.Name == "Luminous Magic" then
713
  Bin.Name = "Luminous Magic"
714
end
715
local bodvel = Instance.new("BodyVelocity")
716
local bg = Instance.new("BodyGyro")
717
so = function(id, par, vol, pit)
718
  local sou = Instance.new("Sound", par or workspace)
719
  sou.Volume = vol
720
  sou.Pitch = pit or 1
721
  sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
722
  coroutine.resume(coroutine.create(function(Sound)
723
    swait()
724
    Sound:play()
725
  end), sou)
726
  game:GetService("Debris"):AddItem(sou, 6)
727
end
728
function clerp(a,b,t) 
729
local qa = {QuaternionFromCFrame(a)}
730
local qb = {QuaternionFromCFrame(b)} 
731
local ax, ay, az = a.x, a.y, a.z 
732
local bx, by, bz = b.x, b.y, b.z
733
local _t = 1-t
734
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
735
end 
736
 
737
function QuaternionFromCFrame(cf) 
738
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
739
local trace = m00 + m11 + m22 
740
if trace > 0 then 
741
local s = math.sqrt(1 + trace) 
742
local recip = 0.5/s 
743
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
744
else 
745
local i = 0 
746
if m11 > m00 then
747
i = 1
748
end
749
if m22 > (i == 0 and m00 or m11) then 
750
i = 2 
751
end 
752
if i == 0 then 
753
local s = math.sqrt(m00-m11-m22+1) 
754
local recip = 0.5/s 
755
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
756
elseif i == 1 then 
757
local s = math.sqrt(m11-m22-m00+1) 
758
local recip = 0.5/s 
759
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
760
elseif i == 2 then 
761
local s = math.sqrt(m22-m00-m11+1) 
762
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
763
end 
764
end 
765
end
766
 
767
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
768
local xs, ys, zs = x + x, y + y, z + z 
769
local wx, wy, wz = w*xs, w*ys, w*zs 
770
local xx = x*xs 
771
local xy = x*ys 
772
local xz = x*zs 
773
local yy = y*ys 
774
local yz = y*zs 
775
local zz = z*zs 
776
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)) 
777
end
778
 
779
function QuaternionSlerp(a, b, t) 
780
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
781
local startInterp, finishInterp; 
782
if cosTheta >= 0.0001 then 
783
if (1 - cosTheta) > 0.0001 then 
784
local theta = math.acos(cosTheta) 
785
local invSinTheta = 1/math.sin(theta) 
786
startInterp = math.sin((1-t)*theta)*invSinTheta 
787
finishInterp = math.sin(t*theta)*invSinTheta  
788
else 
789
startInterp = 1-t 
790
finishInterp = t 
791
end 
792
else 
793
if (1+cosTheta) > 0.0001 then 
794
local theta = math.acos(-cosTheta) 
795
local invSinTheta = 1/math.sin(theta) 
796
startInterp = math.sin((t-1)*theta)*invSinTheta 
797
finishInterp = math.sin(t*theta)*invSinTheta 
798
else 
799
startInterp = t-1 
800
finishInterp = t 
801
end 
802
end 
803
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 
804
end
805
hideanim = function()
806
  equipped = false
807
  for i = 0, 1, 0.5 do
808
    swait()
809
    handlewld.C0 = clerp(handlewld.C0, euler(0, -1.57, 0) * cf(0, 1, 0), 0.4)
810
    wld1.C0 = clerp(wld1.C0, cf(0, -1.5, 0) * euler(0.2, 0, 0.4), 0.4)
811
    Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4)
812
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
813
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(3, 0, 1), 0.4)
814
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
815
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
816
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
817
  end
818
  for i = 0, 1, 0.2 do
819
    swait()
820
    handlewld.C0 = clerp(handlewld.C0, euler(0, -1.57, 0) * cf(0, 1, 0), 0.4)
821
    wld1.C0 = clerp(wld1.C0, cf(0, -1.5, 0) * euler(0.2, 0, 0.4), 0.4)
822
    Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4)
823
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
824
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(4, 0, 1), 0.4)
825
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
826
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
827
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
828
    RH.C0 = clerp(RH.C0, RHC0, 0.4)
829
    LH.C0 = clerp(LH.C0, LHC0, 0.4)
830
  end
831
  mdec2.Parent = nil
832
  handlewld.Part1 = Torso
833
  handlewld.C0 = euler(-2, 1.57, 0) * cf(-1, -0.5, -0.6)
834
  wld1.C0 = euler(0, 0, 0) * cf(0, 0, 0)
835
  for i = 0, 1, 0.3 do
836
    swait()
837
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
838
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
839
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
840
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
841
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
842
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
843
  end
844
  mdec.Parent = Decrease
845
end
846
mdec.Parent = Decrease
847
equipanim = function()
848
  equipped = true
849
  mdec.Parent = nil
850
  for i = 0, 1, 0.5 do
851
    swait()
852
    Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4)
853
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
854
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2, 0, 0.2), 0.4)
855
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
856
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
857
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
858
  end
859
  for i = 0, 1, 0.2 do
860
    swait()
861
    Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4)
862
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
863
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(4, 0, 1), 0.4)
864
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
865
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
866
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
867
  end
868
  mdec2.Parent = Decrease
869
  handlewld.Part1 = RightArm
870
  handlewld.C0 = euler(0, -1.57, 0) * cf(0, 1, 0)
871
  wld1.C0 = cf(0, -1.5, 0) * euler(0.2, 0, 0.4)
872
end
873
StaggerAnim = function()
874
  attack = true
875
  removeControl()
876
  if invisible == true then
877
    Clone(0.1)
878
  end
879
  for i = 1, math.random(2, 4) do
880
    ClangEffect(BrickColor.new("New Yeller"), cf(hitbox.Position) * euler(math.random(-50, 50) / 100, math.random(-50, 50), math.random(-50, 50) / 100), 0, 0.1, 0.2, math.random(150, 300) / 1000)
881
  end
882
  for i = 0, 1, 0.35 do
883
    swait()
884
    if Rooted.Value == false then
885
      Torso.Velocity = RootPart.CFrame.lookVector * -40
886
    end
887
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.3)
888
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.4), 0.3)
889
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.3)
890
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
891
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
892
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
893
    RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.3)
894
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
895
  end
896
  for i = 0, 1, 0.2 do
897
    swait()
898
    if Rooted.Value == false then
899
      Torso.Velocity = RootPart.CFrame.lookVector * -40
900
    end
901
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.4)
902
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(-0.5, 0, -0.4), 0.4)
903
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.4)
904
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
905
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.4)
906
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
907
    RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.4)
908
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.5), 0.4)
909
  end
910
  for i = 0, 1, 0.1 do
911
    swait()
912
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.5, 0, 0), 0.3)
913
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, -0.4), 0.3)
914
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.3, 0, 0.4) * euler(0, -0.4, 0), 0.3)
915
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
916
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2) * euler(0, 0.4, 0), 0.3)
917
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
918
    RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 1.2), 0.3)
919
    LH.C0 = clerp(LH.C0, cf(-1, 0, -1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
920
  end
921
  for i = 1, 50 do
922
    swait()
923
    if StunT.Value <= Stun.Value then
924
      break
925
    end
926
  end
927
  do
928
    resumeControl()
929
    combo = 0
930
    attack = false
931
  end
932
end
933
StaggerHitt = function()
934
  attack = true
935
  if invisible == true then
936
    Clone(0.1)
937
  end
938
  for i = 1, math.random(2, 4) do
939
    ClangEffect(BrickColor.new("New Yeller"), cf(hitbox.Position) * euler(math.random(-50, 50) / 100, math.random(-50, 50), math.random(-50, 50) / 100), 0, 0.1, 0.2, math.random(150, 300) / 1000)
940
  end
941
  for i = 0, 1, 0.1 do
942
    swait()
943
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.7) * euler(0.1, 0, 0), 0.3)
944
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.6), 0.3)
945
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.9) * euler(0, -0.7, 0), 0.3)
946
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
947
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
948
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
949
    RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.4), 0.3)
950
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
951
  end
952
  attack = false
953
end
954
StunAnim = function()
955
  attack = true
956
  removeControl()
957
  Stunned.Value = true
958
  showDamage(Character, "Stunned", "Interrupt")
959
  local dec = Instance.new("NumberValue", Decrease)
960
  dec.Name = "DecreaseMvmt"
961
  dec.Value = 10
962
  for i = 0, 1, 0.3 do
963
    swait()
964
    handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
965
    wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0) * euler(1.57, 0, 0), 0.3)
966
    Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
967
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
968
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
969
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
970
    LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
971
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
972
    RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
973
    LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
974
  end
975
  for i = 0, 1, 0.3 do
976
    swait()
977
    handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
978
    wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0) * euler(1.57, 0, 0), 0.3)
979
    Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
980
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
981
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
982
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
983
    LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1.2, 0, 0.8) * euler(0, -0.1, 0), 0.2)
984
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
985
    RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
986
    LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
987
  end
988
  for i = 0, 1, 0.3 do
989
    swait()
990
    Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
991
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
992
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
993
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
994
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
995
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
996
    RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
997
    LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
998
  end
999
  local gairost = Instance.new("BodyGyro")
1000
  gairost.Parent = RootPart
1001
  gairost.maxTorque = Vector3.new(400000, 0, 400000) * math.huge
1002
  gairost.P = 20000
1003
  gairost.cframe = cf(0, 0, 0)
1004
  for i = 0, 1, 0.1 do
1005
    swait()
1006
    if hitfloor ~= nil then
1007
      Torso.Velocity = vt(0, 0, 0)
1008
    end
1009
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
1010
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
1011
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3)
1012
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1013
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
1014
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1015
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
1016
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
1017
  end
1018
  for i = 1, 70 do
1019
    swait()
1020
    gairost.cframe = RootPart.CFrame
1021
    if hitfloor ~= nil then
1022
      Torso.Velocity = vt(0, 0, 0)
1023
    end
1024
  end
1025
  for i = 0, 1, 0.2 do
1026
    swait()
1027
    Stun.Value = 0
1028
    gairost.cframe = RootPart.CFrame
1029
    Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
1030
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
1031
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
1032
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1033
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
1034
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1035
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
1036
    LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
1037
  end
1038
  resumeControl()
1039
  gairost.Parent = nil
1040
  dec.Parent = nil
1041
  Stun.Value = 0
1042
  combo = 0
1043
  Stunned.Value = false
1044
  attack = false
1045
  for i = 1, 10 do
1046
    swait()
1047
    Stun.Value = 0
1048
  end
1049
end
1050
attackone = function()
1051
end
1052
attacktwo = function()
1053
end
1054
attackthree = function()
1055
end
1056
attackfour = function()
1057
end
1058
1059
Invisibility = function()
1060
  if invisible == false then
1061
    so("2767090", Torso, 1, 1)
1062
    MagicWave(BrickColor.new(NewCol), scarfp2.CFrame * euler(math.rad(180), 0, 0), 1, 1, 1, 0.5, 1.5, 0.5, 0.1)
1063
    MagicWave(BrickColor.new(NewCol), scarfp2.CFrame * euler(math.rad(180), 0, 0), 1, 1, 1, 1, 0.5, 1, 0.1)
1064
    MagicCircle(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 10, 10, 10, 0.05)
1065
    MagicCircle(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 5, 5, 5, 0.05)
1066
    invisnum.Value = invisnum.Value - 10
1067
    for _,c in pairs(Decrease:children()) do
1068
      if c.Name == "DecreaseMvmt" and c:findFirstChild("Renegade") ~= nil then
1069
        c.Parent = nil
1070
      end
1071
    end
1072
    d = Instance.new("NumberValue", Decrease)
1073
    d.Name = "DecreaseAtk"
1074
    d.Value = -5
1075
    dur = Instance.new("NumberValue", d)
1076
    dur.Name = "Duration"
1077
    dur.Value = 420
1078
    display = "+Damage"
1079
    showDamage(Character, display, "Debuff")
1080
    da = Instance.new("BoolValue", d)
1081
    da.Name = "Renegade"
1082
    DecreaseStat(Character, "Defense", 0.1, 80)
1083
    invisible = true
1084
    isinvis.Value = true
1085
    passive3.Parent = Decrease
1086
  else
1087
    invisible = false
1088
    isinvis.Value = false
1089
    passive3.Parent = nil
1090
  end
1091
end
1092
1093
Runes = {"rbxassetid://0"}
1094
ContentProvider = game:GetService("ContentProvider")
1095
for _,v in pairs(Runes) do
1096
  ContentProvider:Preload(v)
1097
end
1098
do2 = function()
1099
local ChatService = game:GetService("Chat")
1100
1101
neck.C0 = neck.C0 * CFrame.Angles(0,0,0)
1102
ChatService:Chat(Head, "Sirius!", "Red")
1103
wait(0)
1104
  if attack == true then
1105
    return 
1106
  end
1107
  if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
1108
    return 
1109
  end
1110
  if cooldownmax <= cooldowns[1] and mana.Value >= 0 then
1111
    deb = 0.2
1112
    attack = true
1113
    cooldowns[1] = 100
1114
    mana.Value = mana.Value - 20
1115
    local orb = part(3, modelzorz, 0, 0.5, BrickColor.new(NewCol), "Effect", vt())
1116
    do
1117
      swait()
1118
      local dec = Instance.new("NumberValue", Decrease)
1119
      dec.Name = "DecreaseMvmt"
1120
      dec.Value = 0.2
1121
      for i = 0, 1, 0.2 do
1122
        swait()
1123
	RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
1124
	Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
1125
	RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(-5), math.rad(8)), 0.3)
1126
	LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(150), math.rad(5), math.rad(-8)), 0.3)
1127
	RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1128
	LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-10),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1129
        if Stagger.Value ~= true and StunT.Value > Stun.Value then
1130
          do
1131
            if StaggerHit.Value == true then
1132
              break
1133
            end
1134
          end
1135
        end
1136
      end
1137
      if Stagger.Value ~= true then --and StunT.Value > Stun.Value then
1138
        if StaggerHit.Value ~= true then
1139
          swait()
1140
          arcorb = true
1141
          orb.Anchored = true
1142
          orb.CFrame = RootPart.CFrame * cf(0, 50, 0)
1143
          so("515578896", orb, 2, 0.75)
1144
          so("515578896", orb, 3, 0.5)
1145
          so("515578896", orb, 3.5, 0.25)
1146
          do
1147
            local msh = mesh("SpecialMesh", orb, "Sphere", "nil", vt(0, 0, 0), vt(150, 150, 150))
1148
            ogui = Instance.new("BillboardGui")
1149
            ogui.Parent = orb
1150
            ogui.Size = UDim2.new(5, 0, 5, 0)
1151
            oimg = Instance.new("ImageLabel")
1152
            oimg.Parent = ogui
1153
            oimg.BackgroundTransparency = 1
1154
            oimg.Size = UDim2.new(1, 0, 1, 0)
1155
            oimg.Image = Runes[math.random(1, #Runes)]
1156
            oimg.ImageColor3 = BrickColor.new(NewCol).Color
1157
            orbnum = 100
1158
            while arcorb==true do
1159
              if arcorb == true then
1160
                swait()
1161
              end
1162
              if Stagger.Value ~= true and StunT.Value > Stun.Value then
1163
                if StaggerHit.Value == true then
1164
                  break
1165
                end
1166
                orb.CFrame = RootPart.CFrame * cf(0, 50, -0)
1167
                MagicRing(BrickColor.new(NewCol2), cf(orb.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 50, 50, 1, 2.5, 2.5, 0, 0.125)
1168
                if orbnum < 0 or MMouse == nil then
1169
                  arcorb = false
1170
                end
1171
                swait()
1172
                orbnum = orbnum - 1
1173
                if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
1174
                  arcorb = false
1175
                  break
1176
                end
1177
              end
1178
            end
1179
            if MMouse.Hit.p ~= nil then
1180
              swait()
1181
              local MainPos = orb.Position
1182
              local MainPos2 = MMouse.Hit.p
1183
              local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
1184
              so("203691467", orb, 3, 0.5)
1185
              coroutine.resume(coroutine.create(function(Pos1, Pos2, Look)
1186
    local num = 50
1187
    repeat
1188
      swait()
1189
      local ohit, opos = rayCast(Pos1, Look.lookVector, 5, Character)
1190
      orb.CFrame = CFrame.new((Pos1 + opos) / 2, opos)
1191
      MagicCircle(BrickColor.new(NewCol), cf(orb.Position), 100, 100, 100, -5, -5, -5, 0.075)
1192
      MagicRing(BrickColor.new(NewCol2), cf(orb.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 50, 50, 1, -2.5, -2.5, 0, 0.1)
1193
      Pos1 = Pos1 + Look.lookVector * 8.5
1194
      orb.CFrame = CFrame.new(orb.Position, MMouse.Hit.p)
1195
      if ohit ~= nil then
1196
        num = 0
1197
      end
1198
      num = num - 1
1199
    until num <= 0
1200
    local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
1201
    ref.Anchored = true
1202
    ref.CFrame = cf(orb.Position)
1203
    so("517251746", ref, 5, 1.25)
1204
    so("517251746", ref, 5, 1)
1205
    so("138186576", ref, 5, 1)
1206
    so("414516914", ref, 5, 0.75)
1207
    game:GetService("Debris"):AddItem(ref, 5)
1208
    MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 150, 150, 150, 25, 25, 25, 0.05)
1209
    MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 150, 150, 150, 40, 40, 40, 0.065)
1210
    MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 150, 150, 150, 50, 50, 50, 0.075)
1211
    MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 150, 150, 150, 80, 80, 80, 0.085)
1212
    MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 50, 50, 1, 5, 5, 0, 0.025)
1213
    MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 50, 50, 1, 7.5, 7.5, 0, 0.025)
1214
    MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 50, 50, 1, 10, 10, 0, 0.025)
1215
    MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 50, 50, 1, 10.5, 10.5, 0, 0.025)
1216
    MagniDamage(ref, 65, 16, 24, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
1217
    if isjugg == false then
1218
    end
1219
    orb.Parent = nil
1220
  end
1221
), MainPos, MainPos2, MouseLook)
1222
            end
1223
            do
1224
              dec.Parent = nil
1225
              swait()
1226
              attack = false
1227
            end
1228
          end
1229
        end
1230
      end
1231
    end
1232
  end
1233
end
1234
do1 = function()
1235
local ChatService = game:GetService("Chat")
1236
1237
neck.C0 = neck.C0 * CFrame.Angles(0,0,0)
1238
ChatService:Chat(Head, "Luminous Bullet!", "Red")
1239
wait(0)
1240
  if attack == true then
1241
    return 
1242
  end
1243
  if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
1244
    return 
1245
  end
1246
  if cooldownmax <= cooldowns[1] and mana.Value >= 0 then
1247
    deb = 0.2
1248
    attack = true
1249
    cooldowns[1] = 100
1250
    mana.Value = mana.Value - 20
1251
    local orb = part(3, modelzorz, 0, 0.5, BrickColor.new(NewCol), "Effect", vt())
1252
    do
1253
      swait()
1254
      local dec = Instance.new("NumberValue", Decrease)
1255
      dec.Name = "DecreaseMvmt"
1256
      dec.Value = 0.2
1257
      for i = 0, 1, 0.2 do
1258
        swait()
1259
        Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.57) * euler(0, 0, 0), 0.3)
1260
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1.57), 0.3)
1261
        RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1) * euler(0, 1.5, 0), 0.3)
1262
        RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1263
        LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(0, 0, 0), 0.3)
1264
        LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1265
        RH.C0 = clerp(RH.C0, cf(0.5, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1.57, -0.3), 0.3)
1266
        LH.C0 = clerp(LH.C0, cf(-0.5, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1.57, 0.1), 0.3)
1267
        if Stagger.Value ~= true and StunT.Value > Stun.Value then
1268
          do
1269
            if StaggerHit.Value == true then
1270
              break
1271
            end
1272
          end
1273
        end
1274
      end
1275
      if Stagger.Value ~= true then --and StunT.Value > Stun.Value then
1276
        if StaggerHit.Value ~= true then
1277
          swait()
1278
          arcorb = true
1279
          orb.Anchored = true
1280
          orb.CFrame = RootPart.CFrame * cf(0, 0.5, -3)
1281
          so("515578896", orb, 2, 0.75)
1282
          do
1283
            local msh = mesh("SpecialMesh", orb, "Sphere", "nil", vt(0, 0, 0), vt(10, 10, 10))
1284
            ogui = Instance.new("BillboardGui")
1285
            ogui.Parent = orb
1286
            ogui.Size = UDim2.new(5, 0, 5, 0)
1287
            oimg = Instance.new("ImageLabel")
1288
            oimg.Parent = ogui
1289
            oimg.BackgroundTransparency = 1
1290
            oimg.Size = UDim2.new(1, 0, 1, 0)
1291
            oimg.Image = Runes[math.random(1, #Runes)]
1292
            oimg.ImageColor3 = BrickColor.new(NewCol).Color
1293
            orbnum = 100
1294
            while arcorb==true do
1295
              if arcorb == true then
1296
                swait()
1297
              end
1298
              if Stagger.Value ~= true and StunT.Value > Stun.Value then
1299
                if StaggerHit.Value == true then
1300
                  break
1301
                end
1302
                orb.CFrame = RootPart.CFrame * cf(0, 0.5, -3)
1303
                MagicRing(BrickColor.new(NewCol2), cf(orb.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 5, 5, 1, -0.5, -0.5, 0, 0.1)
1304
                MagicRing(BrickColor.new(NewCol2), cf(orb.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 5, 5, 1, 0.25, 0.25, 0, 0.1)
1305
                if orbnum < 0 or MMouse == nil then
1306
                  arcorb = false
1307
                end
1308
                swait()
1309
                orbnum = orbnum - 1
1310
                if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
1311
                  arcorb = false
1312
                  break
1313
                end
1314
              end
1315
            end
1316
            if MMouse.Hit.p ~= nil then
1317
              swait()
1318
              local MainPos = orb.Position
1319
              local MainPos2 = MMouse.Hit.p
1320
              local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
1321
              so("203691467", orb, 3, 0.75)
1322
              coroutine.resume(coroutine.create(function(Pos1, Pos2, Look)
1323
    local num = 50
1324
    repeat
1325
      swait()
1326
      local ohit, opos = rayCast(Pos1, Look.lookVector, 5, Character)
1327
      orb.CFrame = CFrame.new((Pos1 + opos) / 2, opos)
1328
      MagicCircle(BrickColor.new(NewCol), cf(orb.Position), 15, 15, 15, -1, -1, -1, 0.075)
1329
      MagicRing(BrickColor.new(NewCol2), cf(orb.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 5, 5, 1, -0.25, -0.25, 0, 0.075)
1330
      Pos1 = Pos1 + Look.lookVector * 5
1331
      orb.CFrame = CFrame.new(orb.Position, MMouse.Hit.p)
1332
      if ohit ~= nil then
1333
        num = 0
1334
      end
1335
      num = num - 1
1336
    until num <= 0
1337
    local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
1338
    ref.Anchored = true
1339
    ref.CFrame = cf(orb.Position)
1340
    so("168413145", ref, 2.5, 1.25)
1341
    game:GetService("Debris"):AddItem(ref, 5)
1342
    MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 10, 10, 10, 5, 5, 5, 0.05)
1343
    MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 10, 10, 10, 10, 10, 10, 0.075)
1344
    MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 10, 10, 1, 2, 2, 0, 0.025)
1345
    MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 10, 10, 1, 2.5, 2.5, 0, 0.025)
1346
    MagniDamage(ref, 22.5, 8, 12, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
1347
    if isjugg == false then
1348
    end
1349
    orb.Parent = nil
1350
  end
1351
), MainPos, MainPos2, MouseLook)
1352
            end
1353
            do
1354
              dec.Parent = nil
1355
              swait()
1356
              attack = false
1357
            end
1358
          end
1359
        end
1360
      end
1361
    end
1362
  end
1363
end
1364
do3 = function()
1365
local ChatService = game:GetService("Chat")
1366
1367
neck.C0 = neck.C0 * CFrame.Angles(0,0,0)
1368
ChatService:Chat(Head, "Luminous Blast!", "Red")
1369
wait(0)
1370
if attack == true then
1371
    return 
1372
  end
1373
  if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
1374
    return 
1375
  end
1376
  if cooldownmax <= cooldowns[3] and mana.Value >= 30 then
1377
    attack = true
1378
    cooldowns[3] = 0
1379
    local dec = Instance.new("NumberValue", Decrease)
1380
    dec.Name = "DecreaseMvmt"
1381
    dec.Value = 10
1382
    local dec2 = Instance.new("NumberValue", Decrease)
1383
    dec2.Name = "DecreaseDef"
1384
    dec2.Value = -10
1385
    LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(2, 0, 1), 0.5)
1386
    for i = 0, 1, 0.1 do
1387
      swait()
1388
      Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
1389
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
1390
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
1391
      RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
1392
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
1393
      LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
1394
      RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
1395
      LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
1396
      if Stagger.Value ~= true and StunT.Value > Stun.Value then
1397
        do
1398
          if StaggerHit.Value == true then
1399
            break
1400
          end
1401
          -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_THEN_STMT
1402
1403
          -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_STMT
1404
1405
        end
1406
      end
1407
    end
1408
    so("315746833", RootPart, 2, 1)
1409
    for i = 1, 50 do
1410
     swait()
1411
      MagicCircle(BrickColor.new(NewCol2), cf(RootPart.Position), 0, 5, 0, 20, 0, 20, 0.075, 3)
1412
    end
1413
    do
1414
          mana.Value = mana.Value - 30
1415
          passivenum = -30
1416
          dec.Parent = nil
1417
          dec2.Parent = nil
1418
          passive.Value = -1
1419
          so("414516914", RootPart, 2, 0.5)
1420
          so("168413145", RootPart, 2, 1)
1421
          so("168413145", RootPart, 2, 0.75)
1422
          so("168413145", RootPart, 2, 0.5)
1423
          MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 10, 10, 10, 50, 50, 50, 0.1)
1424
          MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 1, 1, 1, 50, 0, 50, 0.075)
1425
          MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 1, 1, 1, 100, 0, 100, 0.1)
1426
          MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 50, 1, 50, 0.75, 0, 0.75, 0.025)
1427
          MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 50, 1, 50, 0.75, 0, 0.75, 0.025)
1428
          MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 50, 1, 50, 0.75, 0, 0.75, 0.025)
1429
          MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 10, 1, 10, 10, 0, 10, 0.1)
1430
          MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 10, 10, 10, 25, 25, 25, 0.075)
1431
          MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 150, 150, 150, 2.5, 2.5, 2.5, 0.025)
1432
          MagniDamage(RootPart, 35, 10, 12, math.random(30, 50), "Knockdown2", RootPart, 0, 1, (math.random(4, 8)), nil, nil, false)
1433
          wait(0.25)
1434
          so("138186576", RootPart, 5, 1)
1435
          MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 175, 1, 175, -5, 100, -5, 0.025)
1436
          for i = 0, 1, 0.1 do
1437
            swait()
1438
            Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
1439
            RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
1440
            RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
1441
            RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
1442
            LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
1443
            LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
1444
            RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
1445
            LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
1446
            if Stagger.Value ~= true and StunT.Value > Stun.Value then
1447
              do
1448
                if StaggerHit.Value == true then
1449
                  break
1450
                end
1451
                -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_THEN_STMT
1452
1453
                -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_STMT
1454
1455
              end
1456
            end
1457
          end
1458
          dec.Parent = nil
1459
          dec2.Parent = nil
1460
          attack = false
1461
        end
1462
      end
1463
    end
1464
do4 = function()
1465
local ChatService = game:GetService("Chat")
1466
1467
neck.C0 = neck.C0 * CFrame.Angles(0,0,0)
1468
ChatService:Chat(Head, "Bright Destruction!", "Red")
1469
wait(0)
1470
if attack == true then
1471
    return 
1472
  end
1473
  if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
1474
    return 
1475
  end
1476
  if cooldownmax <= cooldowns[3] and mana.Value >= 30 then
1477
    attack = true
1478
    cooldowns[3] = 0
1479
    local dec = Instance.new("NumberValue", Decrease)
1480
    dec.Name = "DecreaseMvmt"
1481
    dec.Value = 10
1482
    local dec2 = Instance.new("NumberValue", Decrease)
1483
    dec2.Name = "DecreaseDef"
1484
    dec2.Value = -10
1485
    LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(2, 0, 1), 0.5)
1486
    for i = 0, 1, 0.1 do
1487
      swait()
1488
      Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
1489
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
1490
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
1491
      RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
1492
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
1493
      LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
1494
      RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
1495
      LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
1496
      if Stagger.Value ~= true and StunT.Value > Stun.Value then
1497
        do
1498
          if StaggerHit.Value == true then
1499
            break
1500
          end
1501
          -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_THEN_STMT
1502
1503
          -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_STMT
1504
1505
        end
1506
      end
1507
    end
1508
    so("315746833", RootPart, 2, 1.25)
1509
    so("315746833", RootPart, 2, 0.75)
1510
    do
1511
     wait(0)
1512
     MagicCircle(BrickColor.new(NewCol2), cf(RootPart.Position), 450, 450, 450, -10, -10, -10, 0.025)
1513
     wait(1)
1514
     MagicCircle(BrickColor.new(NewCol2), cf(RootPart.Position), 500, 500, 500, -15, -15, -15, 0.025)
1515
     wait(1)
1516
     MagicCircle(BrickColor.new(NewCol2), cf(RootPart.Position), 550, 550, 550, -20, -20, -20, 0.025)
1517
     wait(1)
1518
     MagicCircle(BrickColor.new(NewCol2), cf(RootPart.Position), 600, 600, 600, -22.5, -22.5, -22.5, 0.025)
1519
     wait(1)
1520
     MagicCircle(BrickColor.new(NewCol2), cf(RootPart.Position), 650, 650, 650, -25, -25, -25, 0.025)
1521
     wait(1)
1522
     MagicCircle(BrickColor.new(NewCol2), cf(RootPart.Position), 700, 700, 700, -27.5, -27.5, -27.5, 0.025)
1523
     wait(1)
1524
    end
1525
    do
1526
          mana.Value = mana.Value - 30
1527
          passivenum = -30
1528
          dec.Parent = nil
1529
          dec2.Parent = nil
1530
          passive.Value = -1
1531
          so("414516914", RootPart, 5, 0.35)
1532
          so("168413145", RootPart, 5, 0.25)
1533
          so("414516914", RootPart, 5, 0.5)
1534
          so("414516914", RootPart, 5, 0.75)
1535
          so("517251746", RootPart, 10, 1)
1536
          so("517251746", RootPart, 10, 0.75)
1537
          MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 10, 10, 10, 100, 100, 100, 0.1)
1538
          MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 100, 5, 100, 1, 0, 1, 0.01)
1539
          MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 100, 5, 100, 1, 0, 1, 0.01)
1540
          MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 100, 5, 100, 1, 0, 1, 0.01)
1541
          MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 100, 5, 100, 1, 0, 1, 0.01)
1542
          MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 100, 5, 100, 1, 0, 1, 0.01)
1543
          MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 10, 1, 10, 50, 0, 50, 0.1)
1544
          MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 10, 10, 10, 50, 50, 50, 0.075)
1545
          MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 250, 250, 250, 2.5, 2.5, 2.5, 0.025)
1546
          MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 275, 275, 275, 5, 5, 5, 0.03)
1547
          MagniDamage(RootPart, 100, 15, 22, math.random(30, 50), "Knockdown2", RootPart, 0, 1, (math.random(4, 8)), nil, nil, false)
1548
          wait(0.45)
1549
          so("138186576", RootPart, 10, 0.75)
1550
          MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 0, 1, 0, 50, 0, 50, 0.075)
1551
          wait(0.45)
1552
          so("138186576", RootPart, 10, 0.75)
1553
          MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 0, 1, 0, 50, 0, 50, 0.075)
1554
          wait(0.45)
1555
          so("138186576", RootPart, 10, 0.75)
1556
          MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 0, 1, 0, 50, 0, 50, 0.075)
1557
          for i = 0, 1, 0.1 do
1558
            swait()
1559
            Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
1560
            RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
1561
            RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
1562
            RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
1563
            LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
1564
            LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
1565
            RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
1566
            LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
1567
            if Stagger.Value ~= true and StunT.Value > Stun.Value then
1568
              do
1569
                if StaggerHit.Value == true then
1570
                  break
1571
                end
1572
                -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_THEN_STMT
1573
1574
                -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_STMT
1575
1576
              end
1577
            end
1578
          end
1579
          dec.Parent = nil
1580
          dec2.Parent = nil
1581
          attack = false
1582
        end
1583
      end
1584
    end
1585
DecreaseStat = function(Model, Stat, Amount, Duration, cangui)
1586
  if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
1587
    Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
1588
    d = Instance.new("NumberValue", Model.Stats.Decrease)
1589
    dur = Instance.new("NumberValue", d)
1590
    dur.Name = "Duration"
1591
    dur.Value = Duration
1592
    game:GetService("Debris"):AddItem(d, 20)
1593
    if Stat == "Damage" then
1594
      d.Name = "DecreaseAtk"
1595
    else
1596
      if Stat == "Defense" then
1597
        d.Name = "DecreaseDef"
1598
      else
1599
        if Stat == "Movement" then
1600
          d.Name = "DecreaseMvmt"
1601
        end
1602
      end
1603
    end
1604
    if Model:findFirstChild("Torso") ~= nil then
1605
      display = ""
1606
      if Stat == "Damage" then
1607
        if Amount > 0 then
1608
          display = "-Damage"
1609
        else
1610
          display = "+Damage"
1611
        end
1612
      else
1613
        if Stat == "Defense" then
1614
          if Amount > 0 then
1615
            display = "-Defense"
1616
          else
1617
            display = "+Defense"
1618
          end
1619
        else
1620
          if Stat == "Movement" then
1621
            if Amount > 0 then
1622
              display = "-Movement"
1623
            else
1624
              display = "+Movement"
1625
            end
1626
          end
1627
        end
1628
      end
1629
      if cangui ~= true then
1630
        showDamage(Model, display, "Debuff")
1631
      end
1632
    end
1633
    d.Value = Amount
1634
  end
1635
end
1636
GetDist = function(Part1, Part2, magni)
1637
  local targ = Part1.Position - Part2.Position
1638
  local mag = targ.magnitude
1639
  if mag <= magni then
1640
    return true
1641
  else
1642
    return false
1643
  end
1644
end
1645
MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
1646
  for _,c in pairs(workspace:children()) do
1647
    local hum = c:findFirstChild("Humanoid")
1648
    if hum ~= nil then
1649
      local head = nil
1650
      for _,d in pairs(c:children()) do
1651
        if d.className == "Model" and ranged ~= true then
1652
          head = d:findFirstChild("Hitbox")
1653
          if d.Parent == Character then
1654
            break
1655
          end
1656
          if head ~= nil then
1657
            local targ = head.Position - Part.Position
1658
            local mag = targ.magnitude
1659
            if mag <= magni and c.Name ~= Player.Name then
1660
              ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
1661
              ref.Anchored = true
1662
              ref.CFrame = cf(head.Position)
1663
              game:GetService("Debris"):AddItem(ref, 1)
1664
              hitnum = math.random(1, 5)
1665
              if hitnum == 1 then
1666
                so("199148971", ref, 1, 1)
1667
              else
1668
                if hitnum == 2 then
1669
                  so("199149025", ref, 1, 1)
1670
                else
1671
                  if hitnum == 3 then
1672
                    so("199149072", ref, 1, 1)
1673
                  else
1674
                    if hitnum == 4 then
1675
                      so("199149109", ref, 1, 1)
1676
                    else
1677
                      if hitnum == 5 then
1678
                        so("199149119", ref, 1, 1)
1679
                      end
1680
                    end
1681
                  end
1682
                end
1683
              end
1684
              StaggerHit.Value = true
1685
            end
1686
          end
1687
        end
1688
        do
1689
          if d.className == "Part" and d.Name=="Torso" then
1690
            head = d
1691
            if head ~= nil then
1692
              local targ = head.Position - Part.Position
1693
              local mag = targ.magnitude
1694
              if mag <= magni and c.Name ~= Player.Name then
1695
                if stun == nil then
1696
                  stun = math.random(5, 10)
1697
                end
1698
                local Rang = nil
1699
                if Ranged == false then
1700
                  Rang = true
1701
                end
1702
                local stag = nil
1703
                if shbash == true then
1704
                  stag = true
1705
                end
1706
                Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
1707
              end
1708
            end
1709
          end
1710
          do
1711
            -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out DO_STMT
1712
1713
          end
1714
        end
1715
      end
1716
    end
1717
  end
1718
end
1719
rayCast = function(Pos, Dir, Max, Ignore)
1720
  return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
1721
end
1722
local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
1723
LastPoint = Point
1724
effect = function(Color, Ref, LP, P1, returnn)
1725
  if LP == nil or P1 == nil then
1726
    return 
1727
  end
1728
  local effectsmsh = Instance.new("CylinderMesh")
1729
  effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
1730
  effectsmsh.Name = "Mesh"
1731
  local effectsg = Instance.new("Part")
1732
  NoOutline(effectsg)
1733
  effectsg.formFactor = 3
1734
  effectsg.CanCollide = false
1735
  effectsg.Name = "Eff"
1736
  effectsg.Locked = true
1737
  effectsg.Anchored = true
1738
  effectsg.Size = Vector3.new(0.5, 1, 0.5)
1739
  effectsg.Parent = workspace
1740
  effectsmsh.Parent = effectsg
1741
  effectsg.BrickColor = BrickColor.new(Color)
1742
  effectsg.Reflectance = Ref
1743
  local point1 = P1
1744
  local mg = (LP.p - point1.p).magnitude
1745
  effectsg.Size = Vector3.new(0.5, mg, 0.5)
1746
  effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
1747
  effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
1748
  game:GetService("Debris"):AddItem(effectsg, 2)
1749
  if returnn then
1750
    return effectsg
1751
  end
1752
  if not returnn then
1753
    table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
1754
  end
1755
end
1756
MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent)
1757
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
1758
  prt.Anchored = true
1759
  prt.CFrame = cframe
1760
  msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1761
  game:GetService("Debris"):AddItem(prt, 10)
1762
  if Type == 1 or Type == nil then
1763
    table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
1764
  else
1765
    if Type == 2 then
1766
      table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
1767
    else
1768
      if Type == 3 then
1769
        table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0})
1770
      end
1771
    end
1772
  end
1773
end
1774
MagicSkull = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
1775
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
1776
  prt.Anchored = true
1777
  prt.CFrame = cframe
1778
  msh = mesh("SpecialMesh", prt, "FileMesh", "4770583", vt(0, 0, 0), vt(x1, y1, z1))
1779
  game:GetService("Debris"):AddItem(prt, 10)
1780
  table.insert(Effects, {prt, "Skull", delay, x3, y3, z3, msh, goe})
1781
end
1782
MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1783
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
1784
  prt.Anchored = true
1785
  prt.CFrame = cframe
1786
  local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
1787
  game:GetService("Debris"):AddItem(prt, 10)
1788
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
1789
end
1790
MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1791
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1792
  prt.Anchored = true
1793
  prt.CFrame = cframe * cf(x2, y2, z2)
1794
  local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1))
1795
  game:GetService("Debris"):AddItem(prt, 10)
1796
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
1797
end
1798
MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push)
1799
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
1800
  prt.Anchored = true
1801
  prt.CFrame = cframe
1802
  local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
1803
  game:GetService("Debris"):AddItem(prt, 10)
1804
  table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push})
1805
end
1806
MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1807
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
1808
  prt.Anchored = true
1809
  prt.CFrame = cframe
1810
  local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1811
  game:GetService("Debris"):AddItem(prt, 10)
1812
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
1813
end
1814
MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
1815
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
1816
  prt.Anchored = true
1817
  prt.CFrame = cframe
1818
  local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1819
  game:GetService("Debris"):AddItem(prt, 10)
1820
  table.insert(Effects, {prt, "Cylinder2", delay, x3, y3, z3, msh, goe})
1821
end
1822
MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1823
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
1824
  prt.Anchored = true
1825
  prt.CFrame = cframe
1826
  local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
1827
  game:GetService("Debris"):AddItem(prt, 10)
1828
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
1829
end
1830
ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
1831
  local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
1832
  prt.Anchored = true
1833
  prt.CFrame = cframe
1834
  local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
1835
  game:GetService("Debris"):AddItem(prt, 10)
1836
  table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
1837
end
1838
MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1839
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
1840
  prt.Anchored = true
1841
  prt.CFrame = cframe
1842
  local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
1843
  game:GetService("Debris"):AddItem(prt, 10)
1844
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
1845
end
1846
MagicFire = function(brickcolor, cframe, x1, y1, z1, delay)
1847
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
1848
  prt.Anchored = true
1849
  prt.CFrame = cframe
1850
  msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1851
  game:GetService("Debris"):AddItem(prt, 10)
1852
  table.insert(Effects, {prt, "Fire", delay, 1, 1, 1, msh})
1853
end
1854
MagicFireWave = function(brickcolor, cframe, x1, y1, z1)
1855
  local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
1856
  prt.Anchored = true
1857
  prt.CFrame = cframe
1858
  msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1859
  d = Instance.new("Decal")
1860
  d.Parent = prt
1861
  d.Texture = "http://www.roblox.com/asset/?id=26356434"
1862
  d.Face = "Top"
1863
  d = Instance.new("Decal")
1864
  d.Parent = prt
1865
  d.Texture = "http://www.roblox.com/asset/?id=26356434"
1866
  d.Face = "Bottom"
1867
  game:GetService("Debris"):AddItem(prt, 10)
1868
  table.insert(Effects, {prt, "FireWave", 1, 30, math.random(400, 600) / 100, msh})
1869
end
1870
ElecEffect = function(cff, x, y, z)
1871
  local prt = part(3, workspace, 0, 0, BrickColor.new("Bright red"), "Part", vt(1, 1, 1))
1872
  prt.Anchored = true
1873
  prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
1874
  prt.CFrame = cf(prt.Position)
1875
  game:GetService("Debris"):AddItem(prt, 10)
1876
  xval = math.random() / 3
1877
  yval = math.random() / 3
1878
  zval = math.random() / 3
1879
  msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
1880
  Effects[#Effects + 1] = {prt, "Elec", 0.2, x, y, z, xval, yval, zval, msh}
1881
end
1882
CloneBody = function()
1883
  for _,v in pairs(Torso.Parent:children()) do
1884
    if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
1885
      local c = part(3, workspace, 0, 0.5, BrickColor.new("Really black"), "Effect", v.Size)
1886
      c.Anchored = true
1887
      c.CFrame = v.CFrame
1888
      game:GetService("Debris"):AddItem(c, 5)
1889
      if v.Name == "Head" then
1890
        cmsh = mesh("SpecialMesh", c, "Head", "nil", vt(0, 0, 0), v.Mesh.Scale)
1891
      end
1892
      table.insert(Effects, {c, "Disappear", 0.05})
1893
    end
1894
  end
1895
end
1896
Clone = function(duration)
1897
  for _,v in pairs(Torso.Parent:children()) do
1898
    if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
1899
      local c = part(3, workspace, 0, 0, BrickColor.new("Really black"), "Effect", v.Size)
1900
      c.Anchored = true
1901
      c.CFrame = v.CFrame
1902
      game:GetService("Debris"):AddItem(c, 5)
1903
      if v.Name == "Head" then
1904
        cmsh = mesh("SpecialMesh", c, "Head", "nil", vt(0, 0, 0), v.Mesh.Scale)
1905
      end
1906
      table.insert(Effects, {c, "Disappear", duration})
1907
    else
1908
      do
1909
        do
1910
          if v.className == "Hat" then
1911
            n = v.Handle:clone()
1912
            n:BreakJoints()
1913
            n.archivable = true
1914
            n.Anchored = true
1915
            n.CanCollide = false
1916
            n.Name = "Effect"
1917
            n.BrickColor = BrickColor.new("Really black")
1918
            n.Parent = workspace
1919
            n.CFrame = v.Handle.CFrame
1920
            n.Transparency = 1
1921
            n:BreakJoints()
1922
            table.insert(Effects, {n, "Disappear", duration})
1923
          end
1924
          -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out DO_STMT
1925
1926
          -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out IF_ELSE_STMT
1927
1928
          -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out IF_STMT
1929
1930
        end
1931
      end
1932
    end
1933
  end
1934
  for _,v in pairs(modelzorz:children()) do
1935
    if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then
1936
      n = v:clone()
1937
      for _,b in pairs(n:children()) do
1938
        if b.className == "Motor" then
1939
          b.Parent = nil
1940
        end
1941
      end
1942
      n.archivable = true
1943
      n.Anchored = true
1944
      n.CanCollide = false
1945
      n.Name = "Effect"
1946
      n.BrickColor = BrickColor.new("Really black")
1947
      n.Parent = workspace
1948
      n.CFrame = v.CFrame
1949
      n.Transparency = 0
1950
      n:BreakJoints()
1951
      table.insert(Effects, {n, "Disappear", duration})
1952
    end
1953
  end
1954
end
1955
Cloak = function()
1956
  so("2767090", Torso, 1, 1)
1957
  Face.Parent = nil
1958
  Clone(0.02)
1959
  for _,v in pairs(Torso.Parent:children()) do
1960
    do
1961
      if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
1962
        coroutine.resume(coroutine.create(function()
1963
    for i = 0, 1, 0.1 do
1964
      wait()
1965
      v.Transparency = v.Transparency + 0.1
1966
    end
1967
    v.Transparency = 1
1968
  end))
1969
      end
1970
      if v.className == "Hat" then
1971
        do
1972
          hatp = v.Handle
1973
          coroutine.resume(coroutine.create(function(derp)
1974
    for i = 0, 1, 0.1 do
1975
      wait()
1976
      derp.Transparency = derp.Transparency + 0.1
1977
    end
1978
    derp.Transparency = 1
1979
  end), hatp)
1980
          -- DECOMPILER ERROR at PC45: LeaveBlock: unexpected jumping out IF_THEN_STMT
1981
1982
          -- DECOMPILER ERROR at PC45: LeaveBlock: unexpected jumping out IF_STMT
1983
1984
        end
1985
      end
1986
    end
1987
  end
1988
  for _,v in pairs(modelzorz:children()) do
1989
    if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then
1990
      coroutine.resume(coroutine.create(function()
1991
    for i = 0, 1, 0.1 do
1992
      wait()
1993
      v.Transparency = v.Transparency + 0.1
1994
    end
1995
    v.Transparency = 1
1996
  end))
1997
    end
1998
  end
1999
end
2000
UnCloak = function()
2001
  so("2767090", Torso, 1, 1.1)
2002
  Face.Parent = Head
2003
  for _,v in pairs(Torso.Parent:children()) do
2004
    do
2005
      if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
2006
        coroutine.resume(coroutine.create(function()
2007
    for i = 0, 1, 0.1 do
2008
      wait()
2009
      v.Transparency = v.Transparency - 0.1
2010
    end
2011
    v.Transparency = 0
2012
  end))
2013
      end
2014
      if v.className == "Hat" then
2015
        do
2016
          hatp = v.Handle
2017
          coroutine.resume(coroutine.create(function(derp)
2018
    for i = 0, 1, 0.1 do
2019
      wait()
2020
      derp.Transparency = derp.Transparency - 0.1
2021
    end
2022
    derp.Transparency = 1
2023
  end), hatp)
2024
          -- DECOMPILER ERROR at PC43: LeaveBlock: unexpected jumping out IF_THEN_STMT
2025
2026
          -- DECOMPILER ERROR at PC43: LeaveBlock: unexpected jumping out IF_STMT
2027
2028
        end
2029
      end
2030
    end
2031
  end
2032
  for _,v in pairs(modelzorz:children()) do
2033
    if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then
2034
      coroutine.resume(coroutine.create(function()
2035
    for i = 0, 1, 0.1 do
2036
      wait()
2037
      v.Transparency = v.Transparency - 0.1
2038
    end
2039
    for i = 0, 1, 0.3 do
2040
      wait()
2041
      v.Transparency = 0
2042
    end
2043
  end))
2044
    end
2045
  end
2046
end
2047
Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
2048
  if hit.Parent == nil then
2049
    return 
2050
  end
2051
  if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
2052
    ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
2053
    ref.Anchored = true
2054
    ref.CFrame = cf(hit.Position)
2055
    game:GetService("Debris"):AddItem(ref, 1)
2056
    hitnum = math.random(1, 5)
2057
    if hitnum == 1 then
2058
      so("199148971", ref, 1, 1)
2059
    else
2060
      if hitnum == 2 then
2061
        so("199149025", ref, 1, 1)
2062
      else
2063
        if hitnum == 3 then
2064
          so("199149072", ref, 1, 1)
2065
        else
2066
          if hitnum == 4 then
2067
            so("199149109", ref, 1, 1)
2068
          else
2069
            if hitnum == 5 then
2070
              so("199149119", ref, 1, 1)
2071
            end
2072
          end
2073
        end
2074
      end
2075
    end
2076
    StaggerHit.Value = true
2077
  end
2078
  h = hit.Parent:FindFirstChild("Humanoid")
2079
  if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
2080
    if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
2081
      return 
2082
    end
2083
    if Player.Neutral == false then
2084
      if hit.Parent:findFirstChild("Alignment") ~= nil and hit.Parent.Alignment.Value == Player.TeamColor.Color then
2085
        return 
2086
      end
2087
      if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then
2088
        return 
2089
      end
2090
    end
2091
    c = Instance.new("ObjectValue")
2092
    c.Name = "creator"
2093
    c.Value = game:service("Players").LocalPlayer
2094
    c.Parent = h
2095
    RecentEnemy.Value = hit.Parent
2096
    game:GetService("Debris"):AddItem(c, 0.5)
2097
    if doing4 == false then
2098
      minim = minim * Atk.Value
2099
      maxim = maxim * Atk.Value
2100
    end
2101
    Damage = 0
2102
    if minim == maxim then
2103
      Damage = maxim
2104
    else
2105
      Damage = math.random(minim, maxim)
2106
    end
2107
    blocked = false
2108
    enblock = nil
2109
    Stats = hit.Parent:findFirstChild("Stats")
2110
if Stats == nil then
2111
	Character.Stats:Clone().Parent=hit.Parent
2112
end
2113
    if Stats ~= nil then
2114
	Stats.Defense.Value=1
2115
      invis = Stats:findFirstChild("Invisibility")
2116
      if (ranged == false or ranged == nil) and invis ~= nil then
2117
        invis.Value = 0
2118
      end
2119
      enblock = Stats:findFirstChild("Block")
2120
      if enblock ~= nil and enblock.Value == true then
2121
        blocked = true
2122
      end
2123
      if Stats:findFirstChild("Defense") ~= nil then
2124
        if doing2 ~= true and doing4 ~= true then
2125
          local divide = Stats.Defense.Value
2126
          Damage = Damage / divide
2127
        end
2128
          do
2129
            Damage = Damage
2130
            if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
2131
              hitnum = math.random(1, 5)
2132
              if hitnum == 1 then
2133
                so("199149321", hit, 1, 1)
2134
              else
2135
                if hitnum == 2 then
2136
                  so("199149338", hit, 1, 1)
2137
                else
2138
                  if hitnum == 3 then
2139
                    so("199149367", hit, 1, 1)
2140
                  else
2141
                    if hitnum == 4 then
2142
                      so("199149409", hit, 1, 1)
2143
                    else
2144
                      if hitnum == 5 then
2145
                        so("199149452", hit, 1, 1)
2146
                      end
2147
                    end
2148
                  end
2149
                end
2150
              end
2151
            else
2152
              if ranged == false or ranged == nil and blocked ~= true then
2153
                hitnum = math.random(1, 6)
2154
                if hitnum == 1 then
2155
                  so("199149137", hit, 1, 1)
2156
                else
2157
                  if hitnum == 2 then
2158
                    so("199149186", hit, 1, 1)
2159
                  else
2160
                    if hitnum == 3 then
2161
                      so("199149221", hit, 1, 1)
2162
                    else
2163
                      if hitnum == 4 then
2164
                        so("199149235", hit, 1, 1)
2165
                      else
2166
                        if hitnum == 5 then
2167
                          so("199149269", hit, 1, 1)
2168
                        else
2169
                          if hitnum == 6 then
2170
                            so("199149297", hit, 1, 1)
2171
                          end
2172
                        end
2173
                      end
2174
                    end
2175
                  end
2176
                end
2177
              end
2178
            end
2179
            if Damage <= 3 and staghit == true and ranged ~= true then
2180
              StaggerHit.Value = true
2181
            end
2182
            if Stats:findFirstChild("Stun") ~= nil then
2183
              if blocked == true then
2184
                incstun = incstun / 2
2185
              end
2186
              if Stats.Stun.Value < Stats.StunThreshold.Value then
2187
                Stats.Stun.Value = Stats.Stun.Value + incstun
2188
              end
2189
            end
2190
            if Stats:findFirstChild("Stagger") ~= nil and stagger == true then
2191
              Stats.Stagger.Value = true
2192
            end
2193
            if blocked == true then
2194
              showDamage(hit.Parent, "Block", "Damage")
2195
              if ranged ~= true then
2196
                enblock.Value = false
2197
                Stagger.Value = true
2198
                hitnum = math.random(1, 2)
2199
                if hitnum == 1 then
2200
                  so("199148933", hit, 1, 1)
2201
                else
2202
                  if hitnum == 2 then
2203
                    so("199148947", hit, 1, 1)
2204
                  end
2205
                end
2206
              end
2207
            else
2208
              Damage = math.floor(Damage)
2209
              if hit.Parent:findFirstChild("Mark") == nil then
2210
                d = it("BoolValue", hit.Parent)
2211
                d.Name = "Mark"
2212
                b = it("NumberValue", d)
2213
                b.Name = "MarkTime"
2214
                b.Value = 200
2215
                v = it("NumberValue", d)
2216
                v.Name = "MarkValue"
2217
                v.Value = 0
2218
                if doing4 == true then
2219
                  v.Value = 10
2220
                end
2221
                sz = it("NumberValue", d)
2222
                sz.Name = "MarkSize"
2223
                sz.Value = 5
2224
                st = it("StringValue", d)
2225
                st.Name = "MarkType"
2226
                st.Value = "Adjudicator"
2227
                local tehpart = hit.Parent:findFirstChild("HumanoidRootPart")
2228
                if tehpart == nil then
2229
                  tehpart = hit.Parent:findFirstChild("Torso")
2230
                end
2231
                if hit.Parent.Name == "Neflhelm" then
2232
                  tehpart = hit
2233
                end
2234
                if tehpart ~= nil then
2235
                  markgui = it("BillboardGui", tehpart)
2236
                  markgui.Name = "Mark Gui"
2237
                  markgui.Size = UDim2.new(7, 0, 7, 0)
2238
                  markgui.StudsOffset = vt(0, 10, 0)
2239
                  markgui.AlwaysOnTop = true
2240
                  markscy = it("ImageLabel", markgui)
2241
                  markscy.Name = "Scythe"
2242
                  markscy.BackgroundTransparency = 1
2243
                  markscy.Image = "rbxassetid://278007861"
2244
                  markscy.ImageColor3 = Color3.new(1, 0, 0)
2245
                  markscy.Size = UDim2.new(1, 0, 1, 0)
2246
                  table.insert(MarkedGUI, {markgui, markscy})
2247
                end
2248
                table.insert(Marked, {d, b, v, sz})
2249
              else
2250
                  mark = hit.Parent:findFirstChild("Mark")
2251
                  if mark:findFirstChild("MarkTime") ~= nil then
2252
                    mark.MarkTime.Value = 700
2253
                  end
2254
                  if mark:findFirstChild("MarkValue") ~= nil then
2255
                    if mark.MarkValue.Value >= 10 then
2256
                      if mark:findFirstChild("MarkTime") ~= nil then
2257
                        mark.MarkTime.Value = 400
2258
                      end
2259
                      if mark.MarkType.Value == "Classic" then
2260
                        mark.Parent = nil
2261
                        Damage = Damage * 2
2262
                        print("double damage")
2263
                        if hit.Parent:findFirstChild("HumanoidRootPart") ~= nil then
2264
                          ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
2265
                          ref.Anchored = true
2266
                          ref.CFrame = hit.Parent.HumanoidRootPart.CFrame
2267
                          game:GetService("Debris"):AddItem(ref, 5)
2268
                          local nr = NumberRange.new
2269
                          local ns = NumberSequence.new
2270
                          local cs = ColorSequence.new
2271
                          local parti = it("ParticleEmitter")
2272
                          parti.Color = cs(NewCol, Color3.new(0, 0, 0))
2273
                          parti.LightEmission = 0
2274
                          parti.Size = ns(10)
2275
                          parti.Texture = "http://www.roblox.com/asset/?id=243660364"
2276
                          transseq = ns({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
2277
                          parti.Transparency = transseq
2278
                          parti.ZOffset = 1
2279
                          parti.Acceleration = vt(0, 0, 0)
2280
                          parti.Lifetime = nr(1)
2281
                          parti.Rate = 20
2282
                          parti.Rotation = nr(0, 360)
2283
                          parti.Speed = nr(0)
2284
                          parti.VelocitySpread = 0
2285
                          parti.Parent = ref
2286
                          parti.Enabled = true
2287
                          table.insert(Effects, {parti, "PartiEmi", 20})
2288
                          markscy = it("ImageLabel", markgui)
2289
                          markscy.Name = "Scythe"
2290
                          markscy.BackgroundTransparency = 1
2291
                          markscy.Image = "rbxassetid://258927926"
2292
                          markscy.ImageColor3 = Color3.new(1, 0, 0)
2293
                          markscy.Size = UDim2.new(1, 0, 1, 0)
2294
                          table.insert(Effects, {markgui, "AdjuEff", 10, markscy})
2295
                        end
2296
                      elseif mark.MarkType.Value == "Adjudicator" and hit.Parent:findFirstChild("HumanoidRootPart") ~= nil then
2297
                            da = math.random(1, 4)
2298
                            inc = 1
2299
                            if doing2 == true then
2300
                              inc = 2
2301
                            end
2302
                            if da == 1 then
2303
                              DecreaseStat(Character, "Damage", -math.random(6, 10) / 100 * inc, 150, true)
2304
                              DecreaseStat(Character, "Movement", -math.random(2, 6) / 100 * inc, 200, true)
2305
                            else
2306
                              if da == 2 then
2307
                                DecreaseStat(Character, "Defense", -math.random(2, 6) / 100 * inc, 150, true)
2308
                                DecreaseStat(Character, "Movement", -math.random(2, 6) / 100 * inc, 200, true)
2309
                              else
2310
                                if da == 3 then
2311
                                  DecreaseStat(hit.Parent, "Damage", math.random(6, 10) / 100 * inc, 150, true)
2312
                                  DecreaseStat(hit.Parent, "Movement", math.random(1, 3) / 100 * inc, 200, true)
2313
                                else
2314
                                  if da == 4 then
2315
                                    DecreaseStat(hit.Parent, "Defense", math.random(2, 6) / 100 * inc, 150, true)
2316
                                    DecreaseStat(hit.Parent, "Movement", math.random(1, 3) / 100 * inc, 200, true)
2317
                                  end
2318
                                end
2319
                              end
2320
                            end
2321
                            ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
2322
                            ref.Anchored = true
2323
                            ref.CFrame = hit.Parent.HumanoidRootPart.CFrame
2324
                            game:GetService("Debris"):AddItem(ref, 5)
2325
                            markgui = it("BillboardGui", ref)
2326
                            markgui.Name = "Mark Gui"
2327
                            markgui.Size = UDim2.new(7, 0, 7, 0)
2328
                            markgui.StudsOffset = vt(0, 10, 0)
2329
                            markgui.AlwaysOnTop = true
2330
                            markscy = it("ImageLabel", markgui)
2331
                            markscy.Name = "Scythe"
2332
                            markscy.BackgroundTransparency = 1
2333
                            markscy.Image = "rbxassetid://278007453"
2334
                            markscy.ImageColor3 = Color3.new(1, 0, 0)
2335
                            markscy.Size = UDim2.new(1, 0, 1, 0)
2336
                            table.insert(Effects, {markgui, "AdjuEff", 10, markscy})
2337
                          end
2338
                          elseif --[[mark.MarkType.Value ~= "Thanatos" or --]]doing4 == true then
2339
                            mark.MarkValue.Value = 10
2340
                          else
2341
                            mark.MarkValue.Value = mark.MarkValue.Value + 1
2342
                          end
2343
end
2344
                          if mark:findFirstChild("MarkSize") ~= nil then
2345
                            mark.MarkSize.Value = 5
2346
                          end
2347
                          coroutine.resume(coroutine.create(function(Hum, Dam)
2348
    hit.Parent.Humanoid:TakeDamage(Damage)
2349
  end), h, Damage)
2350
                          pursuitnum = 0
2351
                          if isinvis.Value == false then
2352
                            invisnum.Value = math.floor(invisnum.Value + math.random(4, 8) + Damage / 5)
2353
                          end
2354
                          showDamage(hit.Parent, Damage, "Damage")
2355
                          if DecreaseState ~= nil then
2356
                            DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
2357
                          end
2358
                          if Type == "NormalDecreaseMvmt1" then
2359
                            DecreaseStat(hit.Parent, "Movement", 0.1, 200)
2360
                          end
2361
                          if Type == "Knockdown" then
2362
                            hum = hit.Parent.Humanoid
2363
                            hum.PlatformStand = true
2364
                            coroutine.resume(coroutine.create(function(HHumanoid)
2365
    swait(1)
2366
    HHumanoid.PlatformStand = false
2367
  end), hum)
2368
                            local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
2369
                            local bodvol = Instance.new("BodyVelocity")
2370
                            bodvol.velocity = angle * knockback
2371
                            bodvol.P = 500
2372
                            bodvol.maxForce = Vector3.new(2000, 2000, 2000)
2373
                            bodvol.Parent = hit
2374
                            rl = Instance.new("BodyAngularVelocity")
2375
                            rl.P = 3000
2376
                            rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
2377
                            rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
2378
                            rl.Parent = hit
2379
                            game:GetService("Debris"):AddItem(bodvol, 0.5)
2380
                            game:GetService("Debris"):AddItem(rl, 0.5)
2381
                          else
2382
                            do
2383
                              if Type == "Knockdown2" then
2384
                                hum = hit.Parent.Humanoid
2385
                                local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
2386
                                local bodvol = Instance.new("BodyVelocity")
2387
                                bodvol.velocity = angle * knockback
2388
                                bodvol.P = 500
2389
                                bodvol.maxForce = Vector3.new(2000, 2000, 2000)
2390
                                bodvol.Parent = hit
2391
                                game:GetService("Debris"):AddItem(bodvol, 0.5)
2392
                              else
2393
                                do
2394
                                  if Type == "Normal" or Type == "NormalDecreaseMvmt1" then
2395
                                    vp = Instance.new("BodyVelocity")
2396
                                    vp.P = 500
2397
                                    vp.maxForce = Vector3.new(math.huge, 0, math.huge)
2398
                                    if KnockbackType == 1 then
2399
                                      vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
2400
                                    else
2401
                                      if KnockbackType == 2 then
2402
                                        vp.velocity = Property.CFrame.lookVector * knockback
2403
                                      end
2404
                                    end
2405
                                    game:GetService("Debris"):AddItem(vp, 0.5)
2406
                                    if knockback > 0 then
2407
                                      vp.Parent = hit.Parent.Torso
2408
                                    end
2409
                                  end
2410
                                  debounce = Instance.new("BoolValue")
2411
                                  debounce.Name = "DebounceHit"
2412
                                  debounce.Parent = hit.Parent
2413
                                  debounce.Value = true
2414
                                  game:GetService("Debris"):AddItem(debounce, Delay)
2415
                                  c = Instance.new("ObjectValue")
2416
                                  c.Name = "creator"
2417
                                  c.Value = Player
2418
                                  c.Parent = h
2419
                                  game:GetService("Debris"):AddItem(c, 0.5)
2420
                                  CRIT = false
2421
                                end
2422
                              end
2423
                            end
2424
                          end
2425
                        end
2426
                      end
2427
                    end
2428
                  end
2429
                end
2430
              end
2431
            end
2432
         -- end
2433
        --end
2434
      --end
2435
    --end
2436
  --end
2437
showDamage = function(Char, Dealt, Type)
2438
  m = Instance.new("Model")
2439
  m.Name = "Effect"
2440
  c = Instance.new("Part")
2441
  c.Transparency = 1
2442
  c.Name = "Head"
2443
  c.TopSurface = 0
2444
  c.BottomSurface = 0
2445
  c.formFactor = "Plate"
2446
  c.Size = Vector3.new(1, 0.4, 1)
2447
  b = Instance.new("BillboardGui", c)
2448
  b.Size = UDim2.new(5, 0, 5, 0)
2449
  b.AlwaysOnTop = true
2450
  damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
2451
  if Type == "Damage" then
2452
    damgui.Font = "SourceSansBold"
2453
    if Dealt == "Block" then
2454
      damgui.TextColor3 = BrickColor.new("Bright blue").Color
2455
    else
2456
      if Dealt < 3 then
2457
        damgui.TextColor3 = BrickColor.new("White").Color
2458
      else
2459
        if Dealt >= 3 and Dealt < 20 then
2460
          damgui.TextColor3 = BrickColor.new("Really red").Color
2461
        else
2462
          damgui.TextColor3 = BrickColor.new("Really red").Color
2463
          damgui.Font = "SourceSansBold"
2464
        end
2465
      end
2466
    end
2467
  else
2468
    if Type == "Debuff" then
2469
      damgui.TextColor3 = BrickColor.new("White").Color
2470
    else
2471
      if Type == "Interrupt" then
2472
        damgui.TextColor3 = BrickColor.new("New Yeller").Color
2473
      end
2474
    end
2475
  end
2476
  damgui.TextScaled = true
2477
  ms = Instance.new("CylinderMesh")
2478
  ms.Scale = Vector3.new(0.8, 0.8, 0.8)
2479
  ms.Parent = c
2480
  c.Reflectance = 0
2481
  Instance.new("BodyGyro").Parent = c
2482
  c.Parent = m
2483
  if Char:findFirstChild("Head") ~= nil then
2484
    c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
2485
  else
2486
    if Char.Parent:findFirstChild("Head") ~= nil then
2487
      c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
2488
    end
2489
  end
2490
  f = Instance.new("BodyPosition")
2491
  f.P = 2000
2492
  f.D = 100
2493
  f.maxForce = Vector3.new(545000, 545000, 545000)
2494
  if Type == "Damage" then
2495
    f.position = c.Position + Vector3.new(0, 3, 0)
2496
  else
2497
    if Type == "Debuff" or Type == "Interrupt" then
2498
      f.position = c.Position + Vector3.new(0, 5, 0)
2499
    end
2500
  end
2501
  f.Parent = c
2502
  game:GetService("Debris"):AddItem(m, 5)
2503
  table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
2504
  c.CanCollide = false
2505
  m.Parent = workspace
2506
  c.CanCollide = false
2507
end
2508
combo = 0
2509
2510
ob1d = function(mouse)
2511
  if arcorb == true then
2512
    arcorb = false
2513
  end
2514
  if attack == true or equipped == false then
2515
    return 
2516
  end
2517
  deb = 0.5
2518
  hold = true
2519
  if combo == 0 then
2520
    combo = 1
2521
    attackone()
2522
  else
2523
    if combo == 1 then
2524
      combo = 2
2525
      attacktwo()
2526
    else
2527
      if combo == 2 then
2528
        combo = 3
2529
        attackthree()
2530
      else
2531
        if combo == 3 then
2532
          combo = 0
2533
          attackfour()
2534
        end
2535
      end
2536
    end
2537
  end
2538
  coroutine.resume(coroutine.create(function()
2539
    for i = 1, 50 do
2540
      if attack == false then
2541
        swait()
2542
      end
2543
    end
2544
    if attack == false then
2545
      combo = 0
2546
    end
2547
  end))
2548
end
2549
ob1u = function(mouse)
2550
  hold = false
2551
end
2552
buttonhold = false
2553
fenbarmove1.MouseButton1Click:connect(do1)
2554
fenbarmove2.MouseButton1Click:connect(do2)
2555
fenbarmove3.MouseButton1Click:connect(do3)
2556
fenbarmove4.MouseButton1Click:connect(do4)
2557
eul = 0
2558
equipped = false
2559
key = function(key)
2560
  if attack == true then
2561
    return 
2562
  end
2563
  if key == "z" then
2564
    pressedf = true
2565
    fnumb = 0
2566
    attack = true
2567
    if equipped == false then
2568
      equipped = true
2569
      RSH = ch.Torso["Right Shoulder"]
2570
      LSH = ch.Torso["Left Shoulder"]
2571
      RSH.Parent = nil
2572
      LSH.Parent = nil
2573
      RW.Name = "Right Shoulder"
2574
      RW.Part0 = ch.Torso
2575
      RW.C0 = cf(1.5, 0.5, 0)
2576
      RW.C1 = cf(0, 0.5, 0)
2577
      RW.Part1 = ch["Right Arm"]
2578
      RW.Parent = ch.Torso
2579
      LW.Name = "Left Shoulder"
2580
      LW.Part0 = ch.Torso
2581
      LW.C0 = cf(-1.5, 0.5, 0)
2582
      LW.C1 = cf(0, 0.5, 0)
2583
      LW.Part1 = ch["Left Arm"]
2584
      LW.Parent = ch.Torso
2585
      Animate.Parent = nil
2586
      equipanim()
2587
    else
2588
      equipped = false
2589
      hideanim()
2590
      LH.C1 = LHC1
2591
      RH.C1 = RHC1
2592
      Animate.Parent = Humanoid
2593
      swait(0)
2594
      RW.Parent = nil
2595
      LW.Parent = nil
2596
      RSH.Parent = player.Character.Torso
2597
      LSH.Parent = player.Character.Torso
2598
    end
2599
    attack = false
2600
  end
2601
  if equipped == false then
2602
    return 
2603
  end
2604
  if key == "p" and invisnum.Value > 5 then
2605
    Invisibility()
2606
  end
2607
  if key == "q" then
2608
    do1()
2609
  end
2610
  if key == "e" then
2611
    do2()
2612
  end
2613
  if key == "r" then
2614
    do3()
2615
  end
2616
  if key == "f" then
2617
    do4()
2618
  end
2619
end
2620
key2 = function(key)
2621
end
2622
s = function(mouse)
2623
  mouse.Button1Down:connect(function()
2624
    ob1d(mouse)
2625
  end)
2626
  mouse.Button1Up:connect(function()
2627
    ob1u(mouse)
2628
  end)
2629
  mouse.KeyDown:connect(key)
2630
  mouse.KeyUp:connect(key2)
2631
  player = Player
2632
  ch = Character
2633
  MMouse = mouse
2634
end
2635
ds = function(mouse)
2636
end
2637
Bin.Selected:connect(s)
2638
Bin.Deselected:connect(ds)
2639
print("Renegade loaded.")
2640
local mananum = 0
2641
local donum = 0
2642
local stunnum = 0
2643
local staggeranim = false
2644
local stunanim = false
2645
local Point, LastPoint = nil, nil
2646
local passivenum = 100
2647
local pnum2 = 0
2648
local walk = 0
2649
local walkforw = true
2650
local addpassive = 0
2651
local gashnum = 0
2652
while true do
2653
  swait()
2654
  if Humanoid.Health <= 0 then
2655
    attack = true
2656
    for i = 1, #Marked do
2657
      if MarkedGUI[i] ~= nil and MarkedGUI[i][1] ~= nil then
2658
        MarkedGUI[i][1].Parent = nil
2659
      end
2660
      table.remove(MarkedGUI, i)
2661
      table.remove(Marked, i)
2662
    end
2663
    resumeControl()
2664
    modelzorz.Parent = workspace
2665
    game:GetService("Debris"):AddItem(modelzorz, 30)
2666
    for i = 1, #Weapon do
2667
      Weapon[i].Parent = modelzorz
2668
      Weapon[i].CanCollide = true
2669
    end
2670
    for i = 1, #Welds do
2671
      if Welds[i].Part0.Parent == Character or Welds[i].Part1.Parent == Character then
2672
        Welds[i].Parent = nil
2673
      else
2674
        Welds[i].Parent = prt1
2675
      end
2676
    end
2677
  end
2678
  do
2679
    if fnumb < 21 then
2680
      fnumb = fnumb + 1
2681
      if pressedf == false then
2682
        fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
2683
        tellbar.TextTransparency = tellbar.TextTransparency - 0.05
2684
        tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
2685
      else
2686
        if fnumb == 20 then
2687
          fenframe5.Parent = nil
2688
          print("daigui")
2689
        end
2690
        fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
2691
        tellbar.TextTransparency = tellbar.TextTransparency + 0.05
2692
        tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
2693
      end
2694
    end
2695
    if hbwld.Parent == nil then
2696
      hitbox2.Name = "Hitbox2"
2697
    else
2698
      hitbox2.Name = "Hitbox2"
2699
    end
2700
    if hbwld.Parent == nil then
2701
      hitbox2.Name = "Hitbox"
2702
    else
2703
      hitbox2.Name = "Hitbox2"
2704
    end
2705
    if doing2 == true then
2706
      gashnum = gashnum + 1
2707
      if (gashnum) % 10 == 0 then
2708
        if 0 < mana.Value then
2709
          mana.Value = mana.Value - -2
2710
        else
2711
          do2()
2712
        end
2713
      end
2714
      MagicCircle(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 2, 2, 2, 0.05)
2715
      MagicBlock(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 1, 1, 1, 1, 0.025)
2716
      MagicBlock(BrickColor.new("Really black"), prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2) * cf(0, math.random(-100, 100) / 100, math.random(-200, 200) / 100), 0, 0, 0, 1, 1, 1, 1, 1)
2717
    end
2718
    hitbox2.Parent = hitbox.Parent
2719
    hitbox2.Size = hitbox.Size
2720
    hitbox2.CFrame = hitboxCF
2721
    hboxpos.position = hitbox2.Position + vt(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100)
2722
    hitbox.Transparency = 1
2723
    hitbox2.Transparency = 1
2724
    for i = 1, #Marked do
2725
      if Marked[i] ~= nil then
2726
        if Marked[i][1].Parent == nil then
2727
          MarkedGUI[i][1].Parent = nil
2728
          table.remove(MarkedGUI, i)
2729
          table.remove(Marked, i)
2730
        else
2731
          if MarkedGUI[i][1].Parent ~= nil then
2732
            MarkedGUI[i][1].Size = UDim2.new(7 + Marked[i][4].Value, 0, 7 + Marked[i][4].Value, 0)
2733
            if 0 < Marked[i][4].Value then
2734
              Marked[i][4].Value = Marked[i][4].Value - 1
2735
            end
2736
            if MarkedGUI[i][2].Parent ~= nil then
2737
              if Marked[i][3].Value == 0 then
2738
                MarkedGUI[i][2].Image = "rbxassetid://278007861"
2739
              else
2740
                if Marked[i][3].Value == 1 then
2741
                  MarkedGUI[i][2].Image = "rbxassetid://278007839"
2742
                else
2743
                  if Marked[i][3].Value == 2 then
2744
                    MarkedGUI[i][2].Image = "rbxassetid://278007803"
2745
                  else
2746
                    if Marked[i][3].Value == 3 then
2747
                      MarkedGUI[i][2].Image = "rbxassetid://278007757"
2748
                    else
2749
                      if Marked[i][3].Value == 4 then
2750
                        MarkedGUI[i][2].Image = "rbxassetid://278007704"
2751
                      else
2752
                        if Marked[i][3].Value == 5 then
2753
                          MarkedGUI[i][2].Image = "rbxassetid://278007663"
2754
                        else
2755
                          if Marked[i][3].Value == 6 then
2756
                            MarkedGUI[i][2].Image = "rbxassetid://278007643"
2757
                          else
2758
                            if Marked[i][3].Value == 7 then
2759
                              MarkedGUI[i][2].Image = "rbxassetid://278007606"
2760
                            else
2761
                              if Marked[i][3].Value == 8 then
2762
                                MarkedGUI[i][2].Image = "rbxassetid://278007570"
2763
                              else
2764
                                if Marked[i][3].Value == 9 then
2765
                                  MarkedGUI[i][2].Image = "rbxassetid://278007545"
2766
                                else
2767
                                  if Marked[i][3].Value == 10 then
2768
                                    MarkedGUI[i][2].Image = "rbxassetid://278007515"
2769
                                  end
2770
                                end
2771
                              end
2772
                            end
2773
                          end
2774
                        end
2775
                      end
2776
                    end
2777
                  end
2778
                end
2779
              end
2780
            end
2781
          end
2782
          if Marked[i][2] ~= nil then
2783
            Marked[i][2].Value = Marked[i][2].Value - 1
2784
            if Marked[i][2].Value <= 0 then
2785
              Marked[i][1].Parent = nil
2786
              MarkedGUI[i][1].Parent = nil
2787
              table.remove(MarkedGUI, i)
2788
              table.remove(Marked, i)
2789
            end
2790
          end
2791
        end
2792
      end
2793
    end
2794
    scarfp2.CFrame = cf(RootPart.Position, testpart.Position) * cf(0, 0, 0)
2795
    scarfp2.CFrame = scarfp2.CFrame + scarfp2.CFrame.lookVector * 0.5
2796
    scarfp2.CFrame = scarfp2.CFrame * cf(0, 0, 0) * euler(1.57, 0, 0)
2797
    testpart.CFrame = cf(RootPart.Position - RootPart.Velocity) * cf(0, 1, 0)
2798
    if invisible == true then
2799
      addpassive = addpassive + 1
2800
      for i = 1, 1 do
2801
        MagicCircle2(BrickColor.new("Black"), scarfp2.CFrame * euler(0, 0, math.rad(180)) * cf(math.random(-300, 300) / 100, math.random(-200, 200) / 100, math.random(-300, 300) / 100), 1.5, 10, 1.5, -0.2, 1, -0.2, 0.2)
2802
      end
2803
      if 50 <= addpassive then
2804
        addpassive = 0
2805
        for _,c in pairs(workspace:children()) do
2806
          local hum = (c:findFirstChild("Humanoid"))
2807
          if hum ~= nil then
2808
            local head = nil
2809
            for _,d in pairs(c:children()) do
2810
              if d.Name == "HumanoidRootPart" then
2811
                local targ = d.Position - RootPart.Position
2812
                local mag = targ.magnitude
2813
                if mag <= 60 and c.Name ~= Player.Name then
2814
                  mark = d.Parent:findFirstChild("Mark")
2815
                  if mark ~= nil then
2816
                    if (mark:findFirstChild("MarkTime")) ~= nil then
2817
                      mark.MarkTime.Value = 500
2818
                    end
2819
                    if (mark:findFirstChild("MarkValue")) ~= nil then
2820
                      if (mark:findFirstChild("MarkSize")) ~= nil then
2821
                        mark.MarkSize.Value = 5
2822
                      end
2823
                      if mark.MarkValue.Value < 10 then
2824
                        mark.MarkValue.Value = mark.MarkValue.Value + 1
2825
                      end
2826
                    end
2827
                  end
2828
                end
2829
              end
2830
            end
2831
          end
2832
        end
2833
      end
2834
    end
2835
    do
2836
      pursuitnum = pursuitnum + 1
2837
      if 13 <= passivenum and 150 < pursuitnum and 0 < invisnum.Value then
2838
        invisnum.Value = invisnum.Value - 1
2839
        passivenum = 0
2840
      end
2841
      if 8 <= passivenum and invisible == true then
2842
        invisnum.Value = invisnum.Value - 1
2843
        pursuitnum = 0
2844
        passivenum = 0
2845
      end
2846
      if 100 <= invisnum.Value then
2847
        invisnum.Value = 100
2848
      end
2849
      if invisible == true and invisnum.Value <= 0 then
2850
        Invisibility()
2851
      end
2852
      passivenum = passivenum + 1
2853
      if Stagger.Value == true and staggeranim == false then
2854
        coroutine.resume(coroutine.create(function()
2855
  staggeranim = true
2856
  while attack == true do
2857
    swait()
2858
  end
2859
  StaggerAnim()
2860
  StaggerHit.Value = false
2861
  Stagger.Value = false
2862
  staggeranim = false
2863
end))
2864
      end
2865
      if StaggerHit.Value == true and staggeranim == false then
2866
        coroutine.resume(coroutine.create(function()
2867
  staggeranim = true
2868
  while attack == true do
2869
    swait()
2870
  end
2871
  StaggerHitt()
2872
  StaggerHit.Value = false
2873
  Stagger.Value = false
2874
  staggeranim = false
2875
end))
2876
      end
2877
      if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
2878
        Humanoid.WalkSpeed = 0
2879
      else
2880
        Humanoid.WalkSpeed = 16 * Mvmt.Value
2881
      end
2882
      if StunT.Value <= Stun.Value and stunanim == false then
2883
        coroutine.resume(coroutine.create(function()
2884
  stunanim = true
2885
  while attack == true do
2886
    swait()
2887
  end
2888
  StunAnim()
2889
  Stun.Value = 0
2890
  stunanim = false
2891
end))
2892
      end
2893
      local stunnum2 = 30
2894
      if stunnum2 <= stunnum then
2895
        if 0 < Stun.Value then
2896
          Stun.Value = Stun.Value - 1
2897
        end
2898
        stunnum = 0
2899
      end
2900
      stunnum = stunnum + 1
2901
      if 0.5 <= donum then
2902
        handidle = true
2903
      else
2904
        if donum <= 0 then
2905
          handidle = false
2906
        end
2907
      end
2908
      if handidle == false then
2909
        donum = donum + 0.003
2910
      else
2911
        donum = donum - 0.003
2912
      end
2913
      local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
2914
      local velderp = RootPart.Velocity.y
2915
      hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
2916
      if equipped == true then
2917
        if attack == false then
2918
          idle = idle + 1
2919
        else
2920
          idle = 0
2921
        end
2922
        if (500 <= idle and attack ~= false) or Anim == "Walk" then
2923
          if walkforw == true then
2924
            RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
2925
            LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
2926
          else
2927
            RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
2928
            LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
2929
          end
2930
        else
2931
          RH.C1 = clerp(RH.C1, RHC1, 0.2)
2932
          LH.C1 = clerp(LH.C1, LHC1, 0.2)
2933
        end
2934
        if 1 < RootPart.Velocity.y and hitfloor == nil then
2935
          Anim = "Jump"
2936
          if attack == false then
2937
            handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
2938
            wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.1), 0.2)
2939
            Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
2940
            RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
2941
            RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.5, 0, 0.5), 0.2)
2942
            RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
2943
            LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-1, 0, -0.2), 0.2)
2944
            LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
2945
            RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
2946
            LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
2947
          end
2948
        else
2949
          if RootPart.Velocity.y < -1 and hitfloor == nil then
2950
            Anim = "Fall"
2951
            if attack == false then
2952
              handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
2953
              wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.1), 0.2)
2954
              Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
2955
              RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
2956
              RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1), 0.2)
2957
              RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
2958
              LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2), 0.2)
2959
              LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
2960
              RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
2961
              LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
2962
            end
2963
          else
2964
            if torvel < 1 and hitfloor ~= nil then
2965
              Anim = "Idle"
2966
              if attack == false then
2967
                Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.5) * euler(0.2, 0, 0), 0.15)
2968
                RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.5), 0.15)
2969
                RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.3 - (donum) / 4, 0, 0.5 - (donum) / 4), 0.15)
2970
                RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
2971
                LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3 + (donum) / 4, 0, -0.5 + (donum) / 4), 0.15)
2972
                LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
2973
                RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, -0.5, 0.2), 0.15)
2974
                LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0.2), 0.15)
2975
              end
2976
            else
2977
              if 2 < torvel and torvel < 30 and hitfloor ~= nil then
2978
                Anim = "Walk"
2979
                walk = walk + 1
2980
                if 15 - 5 * Mvmt.Value <= walk then
2981
                  walk = 0
2982
                  if walkforw == true then
2983
                    walkforw = false
2984
                  else
2985
                    if walkforw == false then
2986
                      walkforw = true
2987
                    end
2988
                  end
2989
                end
2990
                if attack == false then
2991
swait()
2992
                  Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.2)
2993
                  RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
2994
                  RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4 - (donum) / 3, 0, 0.4 + (donum) / 4), 0.2)
2995
                  RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
2996
                  LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4 - (donum) / 3, 0, -0.4 - (donum) / 4), 0.2)
2997
                  LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
2998
                  RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.2)
2999
                  LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.2)
3000
                end
3001
              else
3002
                if 30 <= torvel and hitfloor ~= nil then
3003
                  Anim = "Walk"
3004
                  walk = walk + 1
3005
                  if 15 - 5 * Mvmt.Value <= walk then
3006
                    walk = 0
3007
                    if walkforw == true then
3008
                      walkforw = false
3009
                    else
3010
                      if walkforw == false then
3011
                        walkforw = true
3012
                      end
3013
                    end
3014
                  end
3015
                  if attack == false then
3016
                    handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
3017
                    wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.3), 0.2)
3018
                    Neck.C0 = clerp(Neck.C0, necko * euler(0.2 - (donum) / 5, 0, 0), 0.2)
3019
                    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
3020
                    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.3 + (donum) / 3, 0, 0.5 - (donum) / 3), 0.2)
3021
                    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
3022
                    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2 + (donum) / 3, 0, -0.4 + (donum) / 3), 0.2)
3023
                    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
3024
                    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.2)
3025
                    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.2)
3026
                  end
3027
                end
3028
              end
3029
            end
3030
          end
3031
        end
3032
      end
3033
      if 0 < #Effects then
3034
        for e = 1, #Effects do
3035
          if Effects[e] ~= nil then
3036
            local Thing = Effects[e]
3037
            if Thing ~= nil then
3038
              local Part = Thing[1]
3039
              local Mode = Thing[2]
3040
              local Delay = Thing[3]
3041
              local IncX = Thing[4]
3042
              local IncY = Thing[5]
3043
              local IncZ = Thing[6]
3044
              if Thing[2] == "CylinderClang" then
3045
                if Thing[3] <= 1 then
3046
                  Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
3047
                  Thing[7] = Thing[1].CFrame
3048
                  effect("New Yeller", 0, Thing[8], Thing[7])
3049
                  Thing[8] = Thing[7]
3050
                  Thing[3] = Thing[3] + Thing[4]
3051
                else
3052
                  Part.Parent = nil
3053
                  table.remove(Effects, e)
3054
                end
3055
              end
3056
              if Thing[2] == "showDamage" then
3057
                if Thing[6] < Thing[5] then
3058
                  Thing[6] = Thing[6] + 1
3059
                else
3060
                  if Thing[6] < Thing[7] then
3061
                    Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
3062
                    Thing[6] = Thing[6] + 1
3063
                  else
3064
                    if Thing[6] < Thing[8] then
3065
                      Thing[6] = Thing[6] + 1
3066
                    else
3067
                      if Thing[6] < Thing[9] then
3068
                        Thing[6] = Thing[6] + 1
3069
                        Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
3070
                        Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
3071
                        Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
3072
                      else
3073
                        Thing[1].Parent = nil
3074
                        table.remove(Effects, e)
3075
                      end
3076
                    end
3077
                  end
3078
                end
3079
              end
3080
              if Thing[2] == "PartiEmi" then
3081
                Thing[3] = Thing[3] - 1
3082
                if Thing[3] <= 0 then
3083
                  Thing[1].Enabled = false
3084
                  table.remove(Effects, e)
3085
                end
3086
              end
3087
              if Thing[2] == "AdjuEff" then
3088
                if 0 < Thing[3] then
3089
                  Thing[3] = Thing[3] - 1
3090
                  Thing[1].Size = Thing[1].Size + UDim2.new(0.2, 0, 0.2, 0)
3091
                  Thing[1].StudsOffset = Thing[1].StudsOffset + vt(0, -0.2, 0)
3092
                  Thing[4].ImageTransparency = Thing[4].ImageTransparency + 0.1
3093
                else
3094
                  Thing[1].Parent = nil
3095
                  table.remove(Effects, e)
3096
                end
3097
              end
3098
              if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" and Thing[2] ~= "showDamage" and Thing[2] ~= "PartiEmi" and Thing[2] ~= "AdjuEff" then
3099
                if Thing[1].Transparency <= 1 then
3100
                  if Thing[2] == "Block1" then
3101
                    Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
3102
                    Mesh = Thing[7]
3103
                    Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
3104
                    Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3105
                  else
3106
                    if Thing[2] == "Block2" then
3107
                      Thing[1].CFrame = Thing[1].CFrame
3108
                      Mesh = Thing[7]
3109
                      Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
3110
                      Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3111
                    else
3112
                      if Thing[2] == "Block3" then
3113
                        Thing[9] = Thing[9] + 0.5
3114
                        Thing[1].CFrame = Thing[8] * cf(0, Thing[9], 0)
3115
                        Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
3116
                        Mesh = Thing[7]
3117
                        Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
3118
                        Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3119
                      else
3120
                        if Thing[2] == "Skull" then
3121
                          Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8] / 2, -Thing[8])
3122
                          Mesh = Thing[7]
3123
                          Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
3124
                          Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3125
                        else
3126
                          if Thing[2] == "Cylinder" then
3127
                            Mesh = Thing[7]
3128
                            Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
3129
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3130
                          else
3131
                            if Thing[2] == "Cylinder2" then
3132
                              Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0)
3133
                              Mesh = Thing[7]
3134
                              Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
3135
                              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3136
                            else
3137
                              if Thing[2] == "Blood" then
3138
                                Mesh = Thing[7]
3139
                                Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
3140
                                Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
3141
                                Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3142
                              else
3143
                                if Thing[2] == "Elec" then
3144
                                  Mesh = Thing[10]
3145
                                  Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
3146
                                  Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3147
                                else
3148
                                  if Thing[2] == "Disappear" then
3149
                                    Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3150
                                  end
3151
                                end
3152
                              end
3153
                            end
3154
                          end
3155
                        end
3156
                      end
3157
                    end
3158
                  end
3159
                else
3160
                  Part.Parent = nil
3161
                  table.remove(Effects, e)
3162
                end
3163
              end
3164
            end
3165
          end
3166
        end
3167
      end
3168
      do
3169
        fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
3170
        fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
3171
        fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
3172
        fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
3173
        fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
3174
        fenbarblock2:TweenSize((UDim2.new(0.4, 0, -4 * invisnum.Value / 100, 0)), nil, 1, 0.4, true)
3175
        fenbarblock3.Text = "Power(" .. invisnum.Value .. ")"
3176
        fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
3177
        fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
3178
        fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
3179
        fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
3180
        for _,c in pairs(Decrease:children()) do
3181
          if (c:findFirstChild("Duration")) ~= nil then
3182
            c.Duration.Value = c.Duration.Value - 1
3183
            if c.Duration.Value <= 0 then
3184
              c.Parent = nil
3185
            end
3186
          end
3187
          if c.Name == "DecreaseAtk" then
3188
            decreaseatk = decreaseatk + c.Value
3189
          else
3190
            if c.Name == "DecreaseDef" then
3191
              decreasedef = decreasedef + c.Value
3192
            else
3193
              if c.Name == "DecreaseMvmt" then
3194
                decreasemvmt = decreasemvmt + c.Value
3195
              end
3196
            end
3197
          end
3198
        end
3199
        Atk.Value = 1 - (decreaseatk)
3200
        if Atk.Value <= 0 then
3201
          Atk.Value = 0
3202
        end
3203
        Def.Value = 1 - (decreasedef)
3204
        if Def.Value <= 0 then
3205
          Def.Value = 0.01
3206
        end
3207
        Mvmt.Value = 1 - (decreasemvmt)
3208
        if Mvmt.Value <= 0 then
3209
          Mvmt.Value = 0
3210
        end
3211
        decreaseatk = 0
3212
        decreasedef = 0
3213
        decreasemvmt = 0
3214
        AtkVal = Atk.Value * 100
3215
        AtkVal = math.floor(AtkVal)
3216
        AtkVal = AtkVal / 100
3217
        fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
3218
        DefVal = Def.Value * 100
3219
        DefVal = math.floor(DefVal)
3220
        DefVal = DefVal / 100
3221
        fenbardef.Text = "Defense\n(" .. DefVal .. ")"
3222
        MvmtVal = Mvmt.Value * 100
3223
        MvmtVal = math.floor(MvmtVal)
3224
        MvmtVal = MvmtVal / 100
3225
        if Rooted.Value == true then
3226
          MvmtVal = 0
3227
        end
3228
        fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
3229
        if StunT.Value <= Stun.Value then
3230
          fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
3231
        else
3232
          fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
3233
        end
3234
        fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
3235
        if 100 <= mana.Value then
3236
          mana.Value = 100
3237
        else
3238
          if mananum <= 12 then
3239
            mananum = mananum + 1
3240
          else
3241
            mananum = 0
3242
            mana.Value = mana.Value + 100
3243
          end
3244
        end
3245
        for i = 1, #cooldowns do
3246
          if cooldownmax <= cooldowns[i] then
3247
            cooldowns[i] = cooldownmax
3248
          else
3249
            cooldowns[i] = cooldowns[i] + cooldownsadd[i]
3250
          end
3251
        end
3252
        -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT
3253
3254
        -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT
3255
3256
        -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT
3257
3258
      end
3259
    end
3260
  end
3261
end