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