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