View difference between Paste ID: JUsQsVBb and NZJAiw7n
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,game,owner = owner,game
3
local RealPlayer = Player
4
do
5
    print("FE Compatibility code by Mokiros")
6
    local rp = RealPlayer
7
    script.Parent = rp.Character
8
   
9
    --RemoteEvent for communicating
10
    local Event = Instance.new("RemoteEvent")
11
    Event.Name = "UserInput_Event"
12
 
13
    --Fake event to make stuff like Mouse.KeyDown work
14
    local function fakeEvent()
15
        local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
16
        t.connect = t.Connect
17
        return t
18
    end
19
 
20
    --Creating fake input objects with fake variables
21
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
22
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
23
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
24
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
25
    end}
26
    --Merged 2 functions into one by checking amount of arguments
27
    CAS.UnbindAction = CAS.BindAction
28
 
29
    --This function will trigger the events that have been :Connect()'ed
30
    local function te(self,ev,...)
31
        local t = m[ev]
32
        if t and t._fakeEvent then
33
            for _,f in pairs(t.Functions) do
34
                f(...)
35
            end
36
        end
37
    end
38
    m.TrigEvent = te
39
    UIS.TrigEvent = te
40
 
41
    Event.OnServerEvent:Connect(function(plr,io)
42
        if plr~=rp then return end
43
        m.Target = io.Target
44
        m.Hit = io.Hit
45
        if not io.isMouse then
46
            local b = io.UserInputState == Enum.UserInputState.Begin
47
            if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
                return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
            end
50
            if io.UserInputType == Enum.UserInputType.MouseButton2 then
51
                return m:TrigEvent(b and "Button2Down" or "Button2Up")
52
            end
53
            for _,t in pairs(CAS.Actions) do
54
                for _,k in pairs(t.Keys) do
55
                    if k==io.KeyCode then
56
                        t.Function(t.Name,io.UserInputState,io)
57
                    end
58
                end
59
            end
60
            m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
61
            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
62
        end
63
    end)
64
    Event.Parent = NLS([==[
65
    local Player = game:GetService("Players").LocalPlayer
66
    local Event = script:WaitForChild("UserInput_Event")
67
    local Mouse = Player:GetMouse()
68
    local UIS = game:GetService("UserInputService")
69
    local input = function(io,a)
70
        if a then return end
71
        --Since InputObject is a client-side instance, we create and pass table instead
72
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
73
    end
74
    UIS.InputBegan:Connect(input)
75
    UIS.InputEnded:Connect(input)
76
    local h,t
77
    --Give the server mouse data 30 times every second, but only if the values changed
78
    --If player is not moving their mouse, client won't fire events
79
    while wait(1/30) do
80
        if h~=Mouse.Hit or t~=Mouse.Target then
81
            h,t=Mouse.Hit,Mouse.Target
82
            Event:FireServer({isMouse=true,Target=t,Hit=h})
83
        end
84
    end]==],Player.Character)
85
 
86
    ----Sandboxed game object that allows the usage of client-side methods and services
87
    --Real game object
88
    local _rg = game
89
 
90
    --Metatable for fake service
91
    local fsmt = {
92
        __index = function(self,k)
93
            local s = rawget(self,"_RealService")
94
            if s then
95
                return typeof(s[k])=="function"
96
                and function(_,...)return s[k](s,...)end or s[k]
97
            end
98
        end,
99
        __newindex = function(self,k,v)
100
            local s = rawget(self,"_RealService")
101
            if s then s[k]=v end
102
        end
103
    }
104
    local function FakeService(t,RealService)
105
        t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
106
        return setmetatable(t,fsmt)
107
    end
108
 
109
    --Fake game object
110
    local g = {
111
        GetService = function(self,s)
112
            return rawget(self,s) or _rg:GetService(s)
113
        end,
114
        Players = FakeService({
115
            LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
116
        },"Players"),
117
        UserInputService = FakeService(UIS,"UserInputService"),
118
        ContextActionService = FakeService(CAS,"ContextActionService"),
119
        RunService = FakeService({
120
            _btrs = {},
121
            RenderStepped = _rg:GetService("RunService").Heartbeat,
122
            BindToRenderStep = function(self,name,_,fun)
123
                self._btrs[name] = self.Heartbeat:Connect(fun)
124
            end,
125
            UnbindFromRenderStep = function(self,name)
126
                self._btrs[name]:Disconnect()
127
            end,
128
        },"RunService")
129
    }
130
    rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
131
    g.service = g.GetService
132
    FakeService(g,game)
133
    --Changing owner to fake player object to support owner:GetMouse()
134
    game,owner = g,g.Players.LocalPlayer
135
end
136
script.Parent = workspace.CurrentCamera
137
local plr = game:GetService("Players").LocalPlayer
138
--//====================================================\\--
139
--||			   CREATED BY SHACKLUSTER
140
--\\====================================================//--
141
142
wait(0.2)
143
144
Player = game:GetService("Players").LocalPlayer
145
PlayerGui = Player.PlayerGui
146
Cam = workspace.CurrentCamera
147
Backpack = Player.Backpack
148
Character = Player.Character
149
Humanoid = Character.Humanoid
150
Mouse = Player:GetMouse()
151
RootPart = Character["HumanoidRootPart"]
152
Torso = Character["Torso"]
153
Head = Character["Head"]
154
RightArm = Character["Right Arm"]
155
LeftArm = Character["Left Arm"]
156
RightLeg = Character["Right Leg"]
157
LeftLeg = Character["Left Leg"]
158
RootJoint = RootPart["RootJoint"]
159
Neck = Torso["Neck"]
160
RightShoulder = Torso["Right Shoulder"]
161
LeftShoulder = Torso["Left Shoulder"]
162
RightHip = Torso["Right Hip"]
163
LeftHip = Torso["Left Hip"]
164
local sick = Instance.new("Sound",Character)
165
166
IT = Instance.new
167
CF = CFrame.new
168
VT = Vector3.new
169
RAD = math.rad
170
C3 = Color3.new
171
UD2 = UDim2.new
172
BRICKC = BrickColor.new
173
ANGLES = CFrame.Angles
174
EULER = CFrame.fromEulerAnglesXYZ
175
COS = math.cos
176
ACOS = math.acos
177
SIN = math.sin
178
ASIN = math.asin
179
ABS = math.abs
180
MRANDOM = math.random
181
FLOOR = math.floor
182
183
--//=================================\\
184
--|| 	      USEFUL VALUES
185
--\\=================================//
186
187
Animation_Speed = 3
188
local Walkspeed = 16
189
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
190
local Speed = 16
191
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
192
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
193
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
194
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
195
local DAMAGEMULTIPLIER = 1
196
local ANIM = "Idle"
197
local ATTACK = false
198
local EQUIPPED = false
199
local HOLD = false
200
local COMBO = 1
201
local Rooted = false
202
local SINE = 0
203
local KEYHOLD = false
204
local CHANGE = 2 / Animation_Speed
205
local WALKINGANIM = false
206
local VALUE1 = false
207
local VALUE2 = false
208
local ROBLOXIDLEANIMATION = IT("Animation")
209
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
210
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
211
--ROBLOXIDLEANIMATION.Parent = Humanoid
212
local WEAPONGUI = IT("ScreenGui", PlayerGui)
213
WEAPONGUI.Name = "Weapon GUI"
214
local Effects = IT("Folder", Character)
215
Effects.Name = "Effects"
216
local ANIMATOR = Humanoid.Animator
217
local ANIMATE = Character.Animate
218
local UNANCHOR = true
219
local SHOCKSOUND = 1544280726
220
local RINGSOUND = 340505360
221
local ULTHIT = 412831137
222
223
--//=================================\\
224
--\\=================================//
225
226
227
--//=================================\\
228
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
229
--\\=================================//
230
231
ArtificialHB = Instance.new("BindableEvent", script)
232
ArtificialHB.Name = "ArtificialHB"
233
234
script:WaitForChild("ArtificialHB")
235
236
frame = Frame_Speed
237
tf = 0
238
allowframeloss = false
239
tossremainder = false
240
lastframe = tick()
241
script.ArtificialHB:Fire()
242
243
game:GetService("RunService").Heartbeat:connect(function(s, p)
244
	tf = tf + s
245
	if tf >= frame then
246
		if allowframeloss then
247
			script.ArtificialHB:Fire()
248
			lastframe = tick()
249
		else
250
			for i = 1, math.floor(tf / frame) do
251
				script.ArtificialHB:Fire()
252
			end
253
		lastframe = tick()
254
		end
255
		if tossremainder then
256
			tf = 0
257
		else
258
			tf = tf - frame * math.floor(tf / frame)
259
		end
260
	end
261
end)
262
263
--//=================================\\
264
--\\=================================//
265
266
--//=================================\\
267
--|| 	      SOME FUNCTIONS
268
--\\=================================//
269
270
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
271
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
272
end
273
274
function PositiveAngle(NUMBER)
275
	if NUMBER >= 0 then
276
		NUMBER = 0
277
	end
278
	return NUMBER
279
end
280
281
function NegativeAngle(NUMBER)
282
	if NUMBER <= 0 then
283
		NUMBER = 0
284
	end
285
	return NUMBER
286
end
287
288
function Swait(NUMBER)
289
	if NUMBER == 0 or NUMBER == nil then
290
		ArtificialHB.Event:wait()
291
	else
292
		for i = 1, NUMBER do
293
			ArtificialHB.Event:wait()
294
		end
295
	end
296
end
297
298
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
299
	local NEWMESH = IT(MESH)
300
	if MESH == "SpecialMesh" then
301
		NEWMESH.MeshType = MESHTYPE
302
		if MESHID ~= "nil" and MESHID ~= "" then
303
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
304
		end
305
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
306
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
307
		end
308
	end
309
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
310
	NEWMESH.Scale = SCALE
311
	NEWMESH.Parent = PARENT
312
	return NEWMESH
313
end
314
315
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
316
	local NEWPART = IT("Part")
317
	NEWPART.formFactor = FORMFACTOR
318
	NEWPART.Reflectance = REFLECTANCE
319
	NEWPART.Transparency = TRANSPARENCY
320
	NEWPART.CanCollide = false
321
	NEWPART.Locked = true
322
	NEWPART.Anchored = true
323
	if ANCHOR == false then
324
		NEWPART.Anchored = false
325
	end
326
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
327
	NEWPART.Name = NAME
328
	NEWPART.Size = SIZE
329
	NEWPART.Position = Torso.Position
330
	NEWPART.Material = MATERIAL
331
	NEWPART:BreakJoints()
332
	NEWPART.Parent = PARENT
333
	return NEWPART
334
end
335
336
	local function weldBetween(a, b)
337
	    local weldd = Instance.new("ManualWeld")
338
	    weldd.Part0 = a
339
	    weldd.Part1 = b
340
	    weldd.C0 = CFrame.new()
341
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
342
	    weldd.Parent = a
343
	    return weldd
344
	end
345
346
347
function QuaternionFromCFrame(cf)
348
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
349
	local trace = m00 + m11 + m22
350
	if trace > 0 then 
351
		local s = math.sqrt(1 + trace)
352
		local recip = 0.5 / s
353
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
354
	else
355
		local i = 0
356
		if m11 > m00 then
357
			i = 1
358
		end
359
		if m22 > (i == 0 and m00 or m11) then
360
			i = 2
361
		end
362
		if i == 0 then
363
			local s = math.sqrt(m00 - m11 - m22 + 1)
364
			local recip = 0.5 / s
365
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
366
		elseif i == 1 then
367
			local s = math.sqrt(m11 - m22 - m00 + 1)
368
			local recip = 0.5 / s
369
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
370
		elseif i == 2 then
371
			local s = math.sqrt(m22 - m00 - m11 + 1)
372
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
373
		end
374
	end
375
end
376
 
377
function QuaternionToCFrame(px, py, pz, x, y, z, w)
378
	local xs, ys, zs = x + x, y + y, z + z
379
	local wx, wy, wz = w * xs, w * ys, w * zs
380
	local xx = x * xs
381
	local xy = x * ys
382
	local xz = x * zs
383
	local yy = y * ys
384
	local yz = y * zs
385
	local zz = z * zs
386
	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))
387
end
388
 
389
function QuaternionSlerp(a, b, t)
390
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
391
	local startInterp, finishInterp;
392
	if cosTheta >= 0.0001 then
393
		if (1 - cosTheta) > 0.0001 then
394
			local theta = ACOS(cosTheta)
395
			local invSinTheta = 1 / SIN(theta)
396
			startInterp = SIN((1 - t) * theta) * invSinTheta
397
			finishInterp = SIN(t * theta) * invSinTheta
398
		else
399
			startInterp = 1 - t
400
			finishInterp = t
401
		end
402
	else
403
		if (1 + cosTheta) > 0.0001 then
404
			local theta = ACOS(-cosTheta)
405
			local invSinTheta = 1 / SIN(theta)
406
			startInterp = SIN((t - 1) * theta) * invSinTheta
407
			finishInterp = SIN(t * theta) * invSinTheta
408
		else
409
			startInterp = t - 1
410
			finishInterp = t
411
		end
412
	end
413
	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
414
end
415
416
function Clerp(a, b, t)
417
	local qa = {QuaternionFromCFrame(a)}
418
	local qb = {QuaternionFromCFrame(b)}
419
	local ax, ay, az = a.x, a.y, a.z
420
	local bx, by, bz = b.x, b.y, b.z
421
	local _t = 1 - t
422
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
423
end
424
425
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
426
	local frame = IT("Frame")
427
	frame.BackgroundTransparency = TRANSPARENCY
428
	frame.BorderSizePixel = BORDERSIZEPIXEL
429
	frame.Position = POSITION
430
	frame.Size = SIZE
431
	frame.BackgroundColor3 = COLOR
432
	frame.BorderColor3 = BORDERCOLOR
433
	frame.Name = NAME
434
	frame.Parent = PARENT
435
	return frame
436
end
437
438
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
439
	local label = IT("TextLabel")
440
	label.BackgroundTransparency = 1
441
	label.Size = UD2(1, 0, 1, 0)
442
	label.Position = UD2(0, 0, 0, 0)
443
	label.TextColor3 = TEXTCOLOR
444
	label.TextStrokeTransparency = STROKETRANSPARENCY
445
	label.TextTransparency = TRANSPARENCY
446
	label.FontSize = TEXTFONTSIZE
447
	label.Font = TEXTFONT
448
	label.BorderSizePixel = BORDERSIZEPIXEL
449
	label.TextScaled = false
450
	label.Text = TEXT
451
	label.Name = NAME
452
	label.Parent = PARENT
453
	return label
454
end
455
456
function NoOutlines(PART)
457
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
458
end
459
460
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
461
	local NEWWELD = IT(TYPE)
462
	NEWWELD.Part0 = PART0
463
	NEWWELD.Part1 = PART1
464
	NEWWELD.C0 = C0
465
	NEWWELD.C1 = C1
466
	NEWWELD.Parent = PARENT
467
	return NEWWELD
468
end
469
470
local S = IT("Sound")
471
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
472
	local NEWSOUND = nil
473
	coroutine.resume(coroutine.create(function()
474
		NEWSOUND = S:Clone()
475
		NEWSOUND.Parent = PARENT
476
		NEWSOUND.Volume = VOLUME
477
		NEWSOUND.Pitch = PITCH
478
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
479
		NEWSOUND:play()
480
		if DOESLOOP == true then
481
			NEWSOUND.Looped = true
482
		else
483
			repeat wait(1) until NEWSOUND.Playing == false
484
			NEWSOUND:remove()
485
		end
486
	end))
487
	return NEWSOUND
488
end
489
490
function CFrameFromTopBack(at, top, back)
491
	local right = top:Cross(back)
492
	return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
493
end
494
495
--WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
496
function WACKYEFFECT(Table)
497
	local TYPE = (Table.EffectType or "Sphere")
498
	local SIZE = (Table.Size or VT(1,1,1))
499
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
500
	local TRANSPARENCY = (Table.Transparency or 0)
501
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
502
	local CFRAME = (Table.CFrame or Torso.CFrame)
503
	local MOVEDIRECTION = (Table.MoveToPos or nil)
504
	local ROTATION1 = (Table.RotationX or 0)
505
	local ROTATION2 = (Table.RotationY or 0)
506
	local ROTATION3 = (Table.RotationZ or 0)
507
	local MATERIAL = (Table.Material or "Neon")
508
	local COLOR = (Table.Color or C3(1,1,1))
509
	local TIME = (Table.Time or 45)
510
	local SOUNDID = (Table.SoundID or nil)
511
	local SOUNDPITCH = (Table.SoundPitch or nil)
512
	local SOUNDVOLUME = (Table.SoundVolume or nil)
513
	coroutine.resume(coroutine.create(function()
514
		local PLAYSSOUND = false
515
		local SOUND = nil
516
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
517
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
518
			PLAYSSOUND = true
519
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
520
		end
521
		EFFECT.Color = COLOR
522
		local MSH = nil
523
		if TYPE == "Sphere" then
524
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
525
		elseif TYPE == "Block" then
526
			MSH = IT("BlockMesh",EFFECT)
527
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
528
		elseif TYPE == "Wave" then
529
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
530
		elseif TYPE == "Ring" then
531
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
532
		elseif TYPE == "Slash" then
533
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
534
		elseif TYPE == "Round Slash" then
535
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
536
		elseif TYPE == "Swirl" then
537
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
538
		elseif TYPE == "Skull" then
539
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
540
		elseif TYPE == "Crystal" then
541
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
542
		elseif TYPE == "Cloud" then
543
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1290033", "", SIZE, VT(0,0,0))
544
		end
545
		if MSH ~= nil then
546
			local MOVESPEED = nil
547
			if MOVEDIRECTION ~= nil then
548
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
549
			end
550
			local GROWTH = SIZE - ENDSIZE
551
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
552
			if TYPE == "Block" then
553
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
554
			else
555
				EFFECT.CFrame = CFRAME
556
			end
557
			for LOOP = 1, TIME+1 do
558
				Swait()
559
				MSH.Scale = MSH.Scale - GROWTH/TIME
560
				if TYPE == "Wave" then
561
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
562
				end
563
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
564
				if TYPE == "Block" then
565
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
566
				else
567
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
568
				end
569
				if MOVEDIRECTION ~= nil then
570
					local ORI = EFFECT.Orientation
571
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
572
					EFFECT.Orientation = ORI
573
				end
574
			end
575
			if PLAYSSOUND == false then
576
				EFFECT:remove()
577
			else
578
				repeat Swait() until SOUND.Playing == false
579
				EFFECT:remove()
580
			end
581
		else
582
			if PLAYSSOUND == false then
583
				EFFECT:remove()
584
			else
585
				repeat Swait() until SOUND.Playing == false
586
				EFFECT:remove()
587
			end
588
		end
589
	end))
590
end
591
592
function MakeForm(PART,TYPE)
593
	if TYPE == "Cyl" then
594
		local MSH = IT("CylinderMesh",PART)
595
	elseif TYPE == "Ball" then
596-
local POWER = 250
596+
597-
local MAXPOWER = 500
597+
598
	elseif TYPE == "Wedge" then
599
		local MSH = IT("SpecialMesh",PART)
600
		MSH.MeshType = "Wedge"
601
	end
602
end
603
604
Debris = game:GetService("Debris")
605
606
function CastProperRay(StartPos, EndPos, Distance, Ignore)
607
	local DIRECTION = CF(StartPos,EndPos).lookVector
608
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
609
end
610
611
function turnto(position)
612
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
613
end
614
615
--Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false})
616
function Lightning(Table)
617
	local Color = Table.Color or C3(1,1,1)
618
	local StartPos = Table.Start or Torso.Position
619
	local EndPos = Table.End or Mouse.Hit.p
620
	local SegmentLength = Table.SegmentL or 2
621
	local Thickness = Table.Thickness or 0.1
622
	local Dissapear = Table.DoesFade or false
623
	local Parent = Table.Ignore or Character
624
	local MaxDist = Table.MaxDist or 400
625
	local Branches = Table.Branches or false
626
	local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
627
	local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
628-
CHARGE.Enabled = false
628+
629
	LIGHTNINGMODEL.Name = "Lightning"
630
	local LastBolt = nil
631
	for E = 1, DISTANCE do
632
		local ExtraSize = (DISTANCE-E)/25
633
		local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
634
		PART.Color = Color
635
		MakeForm(PART,"Cyl")
636
		if LastBolt == nil then
637
			PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
638
		else
639
			PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
640
		end
641
		LastBolt = PART
642
		if Branches == true then
643
			local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
644
			if CHOICE == 1 then
645
				local LASTBRANCH = nil
646
				for i = 1, MRANDOM(2,5) do
647
					local ExtraSize2 = ((DISTANCE-E)/35)/i
648
					local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
649
					PART.Color = Color
650
					MakeForm(PART,"Cyl")
651
					if LASTBRANCH == nil then
652
						PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
653
					else
654
						PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
655
					end
656
					LASTBRANCH = PART
657
				end
658
			end
659
		end
660
	end
661
	if Dissapear == true then
662
		coroutine.resume(coroutine.create(function()
663
			for i = 1, 30 do
664
				Swait()
665
				for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
666
					if c.ClassName == "Part" then
667
						c.Transparency = i/30
668
					end
669
				end
670
			end
671
			LIGHTNINGMODEL:remove()
672
		end))
673
	elseif Dissapear == false then
674
		Debris:AddItem(LIGHTNINGMODEL,0.1)
675
	end
676
	return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
677
end
678
679
local Particle = IT("ParticleEmitter",nil)
680
Particle.Enabled = false
681
Particle.LightEmission = 1
682
Particle.Rate = 150
683
Particle.ZOffset = 1
684
Particle.Rotation = NumberRange.new(-180, 180)
685
686
--ParticleEmitter({Speed = 5, RotSpeed = NumberRange.new(-15, 15), Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false, Color1 = C3(1,1,1), Color2 = C3(1,1,1), Texture = ""})
687
function ParticleEmitter(Table)
688
	local PRTCL = Particle:Clone()
689
	local Color1 = Table.Color1 or C3(1,1,1)
690
	local Color2 = Table.Color2 or C3(1,1,1)
691
	local Speed = Table.Speed or 5
692
	local Drag = Table.Drag or 0
693
	local Size1 = Table.Size1 or 1
694
	local Size2 = Table.Size2 or 5
695
	local Lifetime1 = Table.Lifetime1 or 1
696
	local Lifetime2 = Table.Lifetime2 or 1.5
697
	local Parent = Table.Parent or Torso
698
	local Emit = Table.Emit or 100
699
	local Offset = Table.Offset or 360
700
	local Acel = Table.Acel or VT(0,0,0)
701
	local Enabled = Table.Enabled or false
702
	local Texture = Table.Texture or "281983280"
703
	local RotS = Table.RotSpeed or NumberRange.new(-15, 15)
704
	local Trans1 = Table.Transparency1 or 0
705
	local Trans2 = Table.Transparency2 or 0
706
	PRTCL.Parent = Parent
707
	PRTCL.RotSpeed = RotS
708
	PRTCL.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,Trans1),NumberSequenceKeypoint.new(1,Trans2)})
709
	PRTCL.Texture = "http://www.roblox.com/asset/?id="..Texture
710
	PRTCL.Color = ColorSequence.new(Color1,Color2)
711
	PRTCL.Size = NumberSequence.new(Size1,Size2)
712
	PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
713
	PRTCL.Speed = NumberRange.new(Speed)
714
	PRTCL.VelocitySpread = Offset
715
	PRTCL.Drag = Drag
716
	PRTCL.Acceleration = Acel
717
	if Enabled == false then
718
		PRTCL:Emit(Emit)
719
		Debris:AddItem(PRTCL,Lifetime2)
720
	else
721
		PRTCL.Enabled = true
722
	end
723
	return PRTCL
724
end
725
726
--//=================================\\
727
--||	     WEAPON CREATION
728
--\\=================================//
729
730
local SKILLTEXTCOLOR = C3(1,1,1)
731
local SKILLFONT = "Fantasy"
732
local SKILLTEXTSIZE = 5
733
local POWER = 100000
734
local MAXPOWER = 100000
735
736
Humanoid.Died:connect(function()
737
	ATTACK = true
738
end)
739
740
local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.01, 0, 0.83, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
741
local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.012, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
742
local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.03, 0, 0.73, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
743-
	CHARGE.Enabled = true
743+
744
745
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Q] Poison Bolt", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
746
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[R] Toxic Stomp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
747
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[X] Toxic Devastation", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
748
local SHIFTX = CreateLabel(SHIFTFR, "[SHIFT] Charge", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "How2Shift")
749
750
local MANABAR = CreateFrame(WEAPONGUI, 0.5, 1, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.02, 0), C3(0,0,0), C3(0, 0, 0),"Mana Bar") 
751
local MANACOVER = CreateFrame(MANABAR, 0, 0, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), BRICKC"Dark indigo".Color, C3(0, 0, 0),"Mana Cover")
752
local MANATEXT = CreateLabel(MANABAR, POWER.."/"..MAXPOWER, SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "MP")
753
754
local A = IT("Attachment",Torso)
755
local TORSOTHUNDER = ParticleEmitter({Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = A, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
756
TORSOTHUNDER.Enabled = false
757
TORSOTHUNDER.Rate = 5
758
local TORSOTHUNDER2 = ParticleEmitter({Texture = 281983242, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = A, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
759
TORSOTHUNDER2.Enabled = false
760
TORSOTHUNDER2.Rate = 5
761
local B = IT("Attachment",RootPart)
762
B.Position = VT(0,-3,0)
763
local CHARGE = ParticleEmitter({Transparency1 = 1, Transparency2 = 0.5, Acel = VT(0,15,0), Texture = 301261210, Speed = 3, RotSpeed = NumberRange.new(-150, 150), Drag = -0.5, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 1.2, Parent = B, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
764
CHARGE.ZOffset = 1.5
765
CHARGE.Enabled = true
766
CHARGE.Rate = 999
767
768
local FF = IT("ForceField",Character)
769
FF.Visible = false
770
Humanoid.MaxHealth = 1200
771
Humanoid.Health = 1200
772
local HEALTHBAR = CreateFrame(WEAPONGUI, 0.5, 1, UD2(0.1, 0, 0.93, 0), UD2(0.26, 0, 0.02, 0), C3(0,0,0), C3(0, 0, 0),"Health Bar") 
773
local HEALTHCOVER = CreateFrame(HEALTHBAR, 0, 0, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), BRICKC"Shamrock".Color, C3(0, 0, 0),"Health Cover")
774
local HEALTHTEXT = CreateLabel(HEALTHBAR, Humanoid.Health.."/"..Humanoid.MaxHealth, SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "HP")
775
Character.Health:remove()
776
777
--//=================================\\
778
--||			DAMAGING
779
--\\=================================//
780
781
function ApplyDamage(Humanoid,Damage,TorsoPart)
782
	local defence = Instance.new("BoolValue",Humanoid.Parent)
783
	defence.Name = ("HitBy"..Player.Name)
784
	game:GetService("Debris"):AddItem(defence, 0.001)
785
	Damage = Damage * DAMAGEMULTIPLIER
786
	if Humanoid.Health ~= 0 then
787
		local CritChance = MRANDOM(1,100)
788
		if Damage > Humanoid.Health then
789
			Damage = math.ceil(Humanoid.Health)
790
			if Damage == 0 then
791
				Damage = 0.1
792
			end
793
		end
794
		Humanoid.Health = Humanoid.Health - Damage
795
	end
796
end
797
798
function AfterZap(Humanoid,Times,Dmg)
799
	coroutine.resume(coroutine.create(function()
800
		if Humanoid ~= nil then
801
			local ZAP = ParticleEmitter({Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 2, Size2 = 3, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = Humanoid.Torso, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
802
			ZAP.Rate = 75
803
			for i = 1, Times do
804
				wait(1)
805
				if Humanoid ~= nil and Humanoid.Health > 0 then
806
					Humanoid.Health = Humanoid.Health - Dmg
807
					CreateSound(SHOCKSOUND,Humanoid.Torso,1,MRANDOM(13,16)/10,false)
808
				else
809
					break
810
				end
811
			end
812
			ZAP.Enabled = false
813
			Debris:AddItem(ZAP,3)
814
		end
815
	end))
816
end
817
818
function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,DOESAFTERZAP,ZAPCOUNTER)
819
	local CHILDREN = workspace:GetDescendants()
820
	for index, CHILD in pairs(CHILDREN) do
821
		if CHILD.ClassName == "Model" and CHILD ~= Character then
822
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
823
			if HUM then
824
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
825
				if TORSO then
826
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
827
						if DOESAFTERZAP == true then
828
							AfterZap(HUM,ZAPCOUNTER,math.ceil(MINDMG/7))
829
						end
830
						local DMG = MRANDOM(MINDMG,MAXDMG)
831
						ApplyDamage(HUM,DMG,TORSO)
832
						if FLING > 0 then
833
							for _, c in pairs(CHILD:GetChildren()) do
834
								if c:IsA("BasePart") then
835
									local bv = Instance.new("BodyVelocity") 
836
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
837
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
838
									bv.Parent = c
839
									Debris:AddItem(bv,0.05)
840
								end
841
							end
842
						end
843
					end
844
				end
845
			end
846
		end
847
	end
848
end
849
850
--//=================================\\
851
--||	ATTACK FUNCTIONS AND STUFF
852
--\\=================================//
853
854
local DECAL = IT("Decal",nil)
855
856
function MagicRing(PART,CFRAME)
857
	local RING = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "MagicRing", VT(0,0,0),false)
858
	local WELD = CreateWeldOrSnapOrMotor("Weld", PART, PART, RING, CFRAME, CF(0, 0, 0))
859
	local MESH = IT("BlockMesh",RING)
860
	local BOTTOMTEXTURE = DECAL:Clone()
861
	BOTTOMTEXTURE.Parent = RING
862
	BOTTOMTEXTURE.Face = "Bottom"
863
	BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1563007449"
864
	BOTTOMTEXTURE.Name = "BottomTexture"
865
	local TOPTEXTURE = DECAL:Clone()
866
	TOPTEXTURE.Parent = RING
867
	TOPTEXTURE.Face = "Top"
868
	TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1563008191"
869
	TOPTEXTURE.Name = "TopTexture"
870
	local T = ParticleEmitter({Transparency1 = 0.2, Transparency2 = 1, Texture = 1084975295, Speed = 0, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 0, Size2 = 10, Lifetime1 = 1, Lifetime2 = 1, Parent = RING, Emit = 25, Offset = 360, Enabled = false, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
871
	T.LockedToPart = true
872
	return RING,WELD,MESH
873
end
874
875
function Charge()
876
	ATTACK = true
877
	Rooted = true
878
	TORSOTHUNDER.Enabled = true
879
	TORSOTHUNDER2.Enabled = true
880
	CHARGE.Enabled = false
881
	local LOOP = CreateSound(516142778,Torso,0,1,true)
882
	local LOOP2 = CreateSound(1393698948,Torso,0,2,true)
883
	repeat
884
		Swait()
885
		if POWER < MAXPOWER then
886
			POWER = POWER + 1
887
		elseif POWER > MAXPOWER then
888
			POWER = MAXPOWER
889
		end
890
		if LOOP.Volume < 5 then
891
			LOOP.Volume = LOOP.Volume + 0.2
892
		end
893
		if LOOP2.Volume < 5 then
894
			LOOP2.Volume = LOOP2.Volume + 0.2
895
		end
896
		TORSOTHUNDER.Rate = MRANDOM(15,45)
897
		TORSOTHUNDER2.Rate = MRANDOM(15,45)
898
		Humanoid.Health = Humanoid.Health + 1
899
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
900
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
901
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
902
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
903
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
904
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
905
	until KEYHOLD == false or POWER == MAXPOWER and Humanoid.Health == Humanoid.MaxHealth
906
	CHARGE.Enabled = false
907
	TORSOTHUNDER.Enabled = false
908
	TORSOTHUNDER2.Enabled = false
909
	coroutine.resume(coroutine.create(function()
910
		repeat
911
			Swait()
912
			LOOP.Volume = LOOP.Volume - 0.2
913
			LOOP2.Volume = LOOP2.Volume - 0.2
914
		until LOOP.Volume <= 0
915
		LOOP:remove()
916
	end))
917
	ATTACK = false
918
	Rooted = false
919
end
920
921
function PoisonBolt()
922
	ATTACK = true
923
	Rooted = true
924
	local STRENGTH = 100
925
	local TIER = 1
926
	local GRAV = IT("BodyPosition",RootPart)
927
	GRAV.D = 250
928
	GRAV.P = 20000
929
	GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
930
	GRAV.Position = RootPart.Position
931
	local G = IT("BodyGyro",RootPart)
932
	G.D = 250
933
	G.P = 200000
934
	G.MaxTorque = VT(math.huge,math.huge,math.huge)
935
	local RING,WELD,MESH = MagicRing(RightArm,CF(0,-1.2,0))
936
	CreateSound(RINGSOUND,RING,5,1,false)
937
	repeat
938
		Swait()
939
		STRENGTH = STRENGTH + 0.3
940
		if STRENGTH > 200 then
941
			STRENGTH = 200
942
		end
943
		if MESH.Scale.X < 120 then
944
			MESH.Scale = MESH.Scale + VT(3,0,3)
945
		elseif MESH.Scale.X < 200 then
946
			MESH.Scale = MESH.Scale + VT(0.3,0,0.3)
947
		end
948
		G.cframe = CF(RootPart.Position,Mouse.Hit.p)
949
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
950
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
951
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
952
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
953
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
954
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
955
	until KEYHOLD == false and MESH.Scale.X >= 120
956
	if STRENGTH >= 150 and STRENGTH ~= 200 and POWER >= 35 then
957
		POWER = POWER - 35
958
		TIER = 2
959
	elseif STRENGTH == 200 and POWER >= 75  then
960
		POWER = POWER - 75
961
		TIER = 3
962
	end
963
	--print("STRENGTH:"..STRENGTH.."/TIER:"..TIER)
964
	if TIER == 1 then
965
		local ZAP = Lightning({Color = BRICKC"Dark indigo".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 100, Branches = false})
966
		if ZAP.End ~= nil then
967
			ApplyAoE(ZAP.End,10,5,15,35,true,6)
968
			WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(8,8,8)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(ZAP.End), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = SHOCKSOUND, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 6})
969
			WACKYEFFECT({Time = 65, EffectType = "Cloud", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0.5, Transparency2 = 1, CFrame = CF(ZAP.End) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-100,100)/150, RotationY = MRANDOM(-100,100)/150, RotationZ = MRANDOM(-100,100)/150, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 3})
970
		end
971
	elseif TIER == 2 then
972
		local ZAP = Lightning({Color = BRICKC"Dark indigo".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 2.5, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 200, Branches = false})
973
		if ZAP.End ~= nil then
974
			ApplyAoE(ZAP.End,15,15,25,35,true,8)
975
			WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(8,8,8)*4, Transparency = 0, Transparency2 = 1, CFrame = CF(ZAP.End), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = SHOCKSOUND, SoundPitch = MRANDOM(7,10)/10, SoundVolume = 6})
976
			WACKYEFFECT({Time = 75, EffectType = "Cloud", Size = VT(1,1,1), Size2 = VT(5,5,5)*2, Transparency = 0.5, Transparency2 = 1, CFrame = CF(ZAP.End) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-100,100)/150, RotationY = MRANDOM(-100,100)/150, RotationZ = MRANDOM(-100,100)/150, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 3})
977
		end
978
	elseif TIER == 3 then
979
		local ZAP = Lightning({Color = BRICKC"Dark indigo".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 3, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 300, Branches = true})
980
		if ZAP.End ~= nil then
981
			ApplyAoE(ZAP.End,20,15,25,35,true,12)
982
			WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(8,8,8)*8, Transparency = 0, Transparency2 = 1, CFrame = CF(ZAP.End), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = SHOCKSOUND, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
983
			WACKYEFFECT({Time = 125, EffectType = "Cloud", Size = VT(1,1,1), Size2 = VT(5,5,5)*4, Transparency = 0.5, Transparency2 = 1, CFrame = CF(ZAP.End) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-100,100)/150, RotationY = MRANDOM(-100,100)/150, RotationZ = MRANDOM(-100,100)/150, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 3})
984
			for i = 1, 4 do
985
				Lightning({Color = BRICKC"Dark indigo".Color, Start = ZAP.End, End = ZAP.End+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 3, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 15, Branches = false})
986
			end
987
		end
988
	end
989
	wait(0.5)
990
	RING.Anchored = true
991
	WELD:remove()
992
	coroutine.resume(coroutine.create(function()
993
		for i = 1, 25 do
994
			Swait()
995
			RING.TopTexture.Transparency = RING.TopTexture.Transparency + 1/25
996
			RING.BottomTexture.Transparency = RING.BottomTexture.Transparency + 1/25
997
			MESH.Scale = MESH.Scale - VT(3,0,3)
998
		end
999
		RING:remove()
1000
	end))
1001
	ATTACK = false
1002
	Rooted = false
1003
	G:remove()
1004
	GRAV:remove()
1005
end
1006
1007
function ToxicStomp()
1008
	ATTACK = true
1009
	Rooted = false
1010
	local GRAV = IT("BodyPosition",RootPart)
1011
	GRAV.D = 250
1012
	GRAV.P = 20000
1013
	GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
1014
	GRAV.Position = RootPart.Position
1015
	local RING,WELD,MESH = MagicRing(RightLeg,CF(0,-1.2,0))
1016
	CreateSound(RINGSOUND,RING,5,1,false)
1017
	local STRENGTH = 100
1018
	local TIER = 1
1019
	repeat
1020
		Swait()
1021
		STRENGTH = STRENGTH + 0.3
1022
		if STRENGTH > 200 then
1023
			STRENGTH = 200
1024
		end
1025
		if MESH.Scale.X < 120 then
1026
			MESH.Scale = MESH.Scale + VT(3,0,3)
1027
		elseif MESH.Scale.X < 200 then
1028
			MESH.Scale = MESH.Scale + VT(0.3,0,0.3)
1029
		end
1030
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1031
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1032
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1033
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1034
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.25, -0.65) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1035
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1036
	until KEYHOLD == false and MESH.Scale.X >= 120
1037
	if STRENGTH >= 150 and STRENGTH ~= 200 and POWER >= 45 then
1038
		POWER = POWER - 45
1039
		TIER = 2
1040
	elseif STRENGTH == 200 and POWER >= 100 then
1041
		POWER = POWER - 100
1042
		TIER = 3
1043
	end
1044
	for i=0, 0.2, 0.1 / Animation_Speed do
1045
		Swait()
1046
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
1047
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1048
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1049
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1050
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.25, -0.65) * ANGLES(RAD(10), RAD(90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
1051
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1052
	end
1053
	for i=0, 0.2, 0.1 / Animation_Speed do
1054
		Swait()
1055
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.6) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
1056
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1057
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1058
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1059
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
1060
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-25), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1061
	end
1062
	coroutine.resume(coroutine.create(function()
1063
		if TIER == 1 then
1064
			local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "Stomp", VT(30,0,30))
1065
			AOE.CFrame = CF(RightLeg.Position-VT(0,1,0))
1066
			local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
1067
			PARTCL.Rate = 999
1068
			CreateSound(304999618,AOE,5,1,false)
1069
			CreateSound(130972023,AOE,4,1,false)
1070
			ApplyAoE(AOE.Position,15,15,25,35,true,5)
1071
			WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(45,3,45), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
1072
			wait(2)
1073
			PARTCL.Enabled = false
1074
			Debris:AddItem(AOE,2)
1075
		elseif TIER == 2 then
1076
			local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "Stomp", VT(40,0,40))
1077
			AOE.CFrame = CF(RightLeg.Position-VT(0,1,0))
1078
			local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
1079
			PARTCL.Rate = 999
1080
			CreateSound(304999618,AOE,5,1,false)
1081
			CreateSound(130972023,AOE,4,1,false)
1082
			ApplyAoE(AOE.Position,20,25,35,35,true,6)
1083
			WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(55,3,55), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
1084
			wait(2)
1085
			PARTCL.Enabled = false
1086
			Debris:AddItem(AOE,2)
1087
		elseif TIER == 3 then
1088
			local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "Stomp", VT(50,0,50))
1089
			AOE.CFrame = CF(RightLeg.Position-VT(0,1,0))
1090
			local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
1091
			PARTCL.Rate = 999
1092
			CreateSound(304999618,AOE,5,1,false)
1093
			CreateSound(130972023,AOE,4,1,false)
1094
			for i = 1, 3 do
1095
				ApplyAoE(AOE.Position,30,5,15,5,true,7)WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(55,3,55), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
1096
				wait(0.5)
1097
			end
1098
			wait(1.5)
1099
			PARTCL.Enabled = false
1100
			Debris:AddItem(AOE,2)
1101
		end
1102
	end))
1103
	for i=0, 2, 0.1 / Animation_Speed do
1104
		Swait()
1105
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.6) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
1106
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1107
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1108
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1109
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1110
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-25), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1111
	end
1112
	RING.Anchored = true
1113
	WELD:remove()
1114
	coroutine.resume(coroutine.create(function()
1115
		for i = 1, 25 do
1116
			Swait()
1117
			RING.TopTexture.Transparency = RING.TopTexture.Transparency + 1/25
1118
			RING.BottomTexture.Transparency = RING.BottomTexture.Transparency + 1/25
1119
			MESH.Scale = MESH.Scale - VT(3,0,3)
1120
		end
1121
		RING:remove()
1122
	end))
1123
	GRAV:remove()
1124
	ATTACK = false
1125
	Rooted = false
1126
end
1127
1128
function ToxicDevastation()
1129
	ATTACK = true
1130
	Rooted = false
1131
	Speed = 5
1132
	local STRENGTH = 50
1133
	local TIER = 1
1134
	for i=0, 1, 0.1 / Animation_Speed do
1135
		Swait()
1136
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1137
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
1138
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1139
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1140
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.15, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1141
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1142
	end
1143
	local POS = RootPart.Position
1144
	Rooted = true
1145
	Speed = Walkspeed
1146
	local TIMER = 0
1147
	local bv = Instance.new("BodyVelocity") 
1148
	bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1149
	bv.velocity = CF(RootPart.Position,RootPart.Position+VT(0,5,0)).lookVector*150
1150
	bv.Parent = RootPart
1151
	WACKYEFFECT({EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(5,1,5), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position+VT(0,-3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = BRICKC"Pearl".Color, SoundID = 1112042117, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
1152
	repeat
1153
		Swait()
1154
		TIMER = TIMER + 1
1155
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1156
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1157
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1158
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1159
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
1160
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1161
	until RootPart.Position.Y > POS.Y+80 or TIMER > 100
1162
	local GRAV = IT("BodyPosition",RootPart)
1163
	GRAV.D = 250
1164-
		POWER = POWER - 50
1164+
1165
	GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
1166
	GRAV.Position = RootPart.Position
1167
	bv:remove()
1168
	local G = IT("BodyGyro",RootPart)
1169-
		POWER = POWER - 125
1169+
1170
	G.P = 200000
1171
	G.MaxTorque = VT(math.huge,math.huge,math.huge)
1172
	local RING,WELD,MESH = MagicRing(Torso,CF(0,3,0))
1173
	CreateSound(RINGSOUND,RING,5,1,false)
1174-
		POWER = POWER - 250
1174+
1175
	MakeForm(ORB,"Ball")
1176
	local LOOP = 0
1177
	repeat
1178
		Swait()
1179
		LOOP = LOOP + 1
1180
		ORB.CFrame = Torso.CFrame*CF(0,4+ORB.Size.X/2,0)
1181
		STRENGTH = STRENGTH + 0.3
1182
		if STRENGTH > 200 then
1183
			STRENGTH = 200
1184
		else
1185
			ORB.Size = ORB.Size + VT(0.02,0.02,0.02)
1186
		end
1187
		if MESH.Scale.X < 120 then
1188
			MESH.Scale = MESH.Scale + VT(5,0,5)
1189
		elseif MESH.Scale.X < 200 then
1190
			MESH.Scale = MESH.Scale + VT(0.6,0,0.6)
1191
		end
1192
		if LOOP == 4 then
1193
			LOOP = 0
1194
			POWER = POWER - 1
1195
		end
1196
		if MRANDOM(1,25) == 1 then
1197
			Lightning({Color = ORB.Color, Start = ORB.Position, End = ORB.Position+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 1, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = ORB.Size.X, Branches = false})
1198
		end
1199
		G.cframe = CF(RootPart.Position,Mouse.Hit.p)
1200
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1201
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1202
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1203
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1204
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1205
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1206
	until (KEYHOLD == false and MESH.Scale.X >= 170) or POWER == 0
1207
	if STRENGTH >= 150 and STRENGTH ~= 200 then
1208
		TIER = 2
1209
	elseif STRENGTH == 200  then
1210
		TIER = 3
1211
	end
1212
	coroutine.resume(coroutine.create(function()
1213
		ORB.CFrame = CF(ORB.Position,Mouse.Hit.p)
1214
		CreateSound(1112042117,ORB,5,0.8,false)
1215
		for i = 1, 200 do
1216
			Swait()
1217
			ORB.CFrame = ORB.CFrame*CF(0,0,-2)
1218
			if MRANDOM(1,5) == 1 then
1219
				Lightning({Color = ORB.Color, Start = ORB.Position, End = ORB.Position+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 1, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = ORB.Size.X, Branches = false})
1220
			end
1221
			local HIT = Raycast(ORB.Position, ORB.CFrame.lookVector, ORB.Size.X/2, Character)
1222
			if HIT ~= nil then
1223
				ORB.Transparency = 1
1224
				coroutine.resume(coroutine.create(function()
1225
					local COLOR = ORB.Color
1226
					local POS = ORB.Position
1227
					local SIZE = ORB.Size
1228
					local TIMES = 12 + TIER*3
1229
					local FAKEORB = CreatePart(3, Effects, "Neon", 0, 0, "Royal purple", "Ball", ORB.Size)
1230
					FAKEORB.CFrame = CF(POS)
1231
					MakeForm(FAKEORB,"Ball")
1232
					local TIME = 0
1233
					ApplyAoE(FAKEORB.Position,30+(25*TIER),15,25,0,true,10)
1234
					WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = FAKEORB.Size, Size2 = VT(35+(25*TIER),35+(25*TIER),35+(25*TIER)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = 178452241, SoundPitch = 1, SoundVolume = 6})
1235
					for i = 1, 5 do
1236
						WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(35+(25*TIER),3,35+(25*TIER)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
1237
					end
1238
					for i = 1, TIMES*20 do
1239
						TIME = TIME + 1
1240
						wait()
1241
						if MRANDOM(1,math.ceil(5+(i/15))) == 1 then
1242
							Lightning({Color = ORB.Color, Start = FAKEORB.Position, End = FAKEORB.Position+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 1, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = i/5, Branches = false})
1243
						end
1244
						FAKEORB.Size = FAKEORB.Size - SIZE/(TIMES*20)
1245
						if TIME >= 20 then
1246
							TIME = 0
1247
							ApplyAoE(FAKEORB.Position,30+(25*TIER),15,25,0,true,10)
1248
							WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = FAKEORB.Size, Size2 = VT(35+(25*TIER),35+(25*TIER),35+(25*TIER)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = 178452241, SoundPitch = 1, SoundVolume = 6})
1249
							for i = 1, 5 do
1250
								WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(35+(25*TIER),3,35+(25*TIER)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
1251
							end
1252
						end
1253
					end
1254
					FAKEORB:remove()
1255
				end))
1256
				break
1257
			end
1258
		end
1259
		ORB:remove()
1260
	end))
1261
	for i=0, 1, 0.1 / Animation_Speed do
1262
		Swait()
1263
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
1264
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
1265
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1266
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1267
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1268
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1269
	end
1270
	coroutine.resume(coroutine.create(function()
1271
		for i = 1, 25 do
1272
			Swait()
1273
			RING.TopTexture.Transparency = RING.TopTexture.Transparency + 1/25
1274
			RING.BottomTexture.Transparency = RING.BottomTexture.Transparency + 1/25
1275
			MESH.Scale = MESH.Scale - VT(3,0,3)
1276
		end
1277
		RING:remove()
1278
	end))
1279
	GRAV:remove()
1280
	G:remove()
1281
	ATTACK = false
1282
	Rooted = false
1283
end
1284
1285
--//=================================\\
1286
--||	  ASSIGN THINGS TO KEYS
1287
--\\=================================//
1288
1289
function MouseDown(Mouse)
1290
	if ATTACK == false then
1291
	end
1292
end
1293
1294
function MouseUp(Mouse)
1295
HOLD = false
1296
end
1297
1298
function KeyDown(Key)
1299
	KEYHOLD = true
1300
	if Key == "q" and ATTACK == false and POWER >= 50 then
1301
		POWER = POWER - 1000
1302
		PoisonBolt()
1303
	end
1304
1305
	if Key == "r" and ATTACK == false and POWER >= 125 then
1306
		POWER = POWER - 19000
1307
		ToxicStomp()
1308
	end
1309
1310
	if Key == "x" and ATTACK == false and POWER >= 250 then
1311
		POWER = POWER - 10000
1312
		ToxicDevastation()
1313
	end
1314
1315
	if string.byte(Key) == 48 and ATTACK == false and (POWER ~= MAXPOWER or Humanoid.Health ~= Humanoid.MaxHealth) then
1316
		Charge()
1317
	end
1318
1319
	if string.byte(Key) == 50 and ATTACK == false then
1320
		if Walkspeed == 16 then
1321
			Walkspeed = 30
1322
			Speed = 30
1323
		elseif Walkspeed == 30 then
1324
			Walkspeed = 16
1325
			Speed = 16
1326
		end
1327
	end
1328
end
1329
1330
function KeyUp(Key)
1331
	KEYHOLD = false
1332
end
1333
1334
	Mouse.Button1Down:connect(function(NEWKEY)
1335
		MouseDown(NEWKEY)
1336
	end)
1337
	Mouse.Button1Up:connect(function(NEWKEY)
1338
		MouseUp(NEWKEY)
1339
	end)
1340
	Mouse.KeyDown:connect(function(NEWKEY)
1341
		KeyDown(NEWKEY)
1342
	end)
1343
	Mouse.KeyUp:connect(function(NEWKEY)
1344
		KeyUp(NEWKEY)
1345
	end)
1346
1347
--//=================================\\
1348
--\\=================================//
1349
1350
1351
function unanchor()
1352
	if UNANCHOR == true then
1353
		g = Character:GetChildren()
1354
		for i = 1, #g do
1355
			if g[i].ClassName == "Part" then
1356
				g[i].Anchored = false
1357
			end
1358
		end
1359
	end
1360
end
1361
1362
1363
--//=================================\\
1364
--||	WRAP THE WHOLE SCRIPT UP
1365
--\\=================================//
1366
1367
Humanoid.Changed:connect(function(Jump)
1368
	if Jump == "Jump" and (Disable_Jump == true) then
1369
		Humanoid.Jump = false
1370
	end
1371
end)
1372
1373
while true do
1374
	Swait()
1375
	script.Parent = WEAPONGUI
1376
	ANIMATE.Parent = nil
1377
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
1378
	    v:Stop();
1379
	end
1380
	SINE = SINE + CHANGE
1381
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1382
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1383
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
1384
	local WALKSPEEDVALUE = 5
1385
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
1386
		if Humanoid.WalkSpeed <= 20 then
1387
			RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.05 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed)
1388
			Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1389
			RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
1390
			LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
1391
		else
1392
			RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / (2*1.3)))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed)
1393
			Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / (2*1.3)))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1394
			RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), -0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed)
1395
			LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), 0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed)
1396
		end
1397
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1398
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1399
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1400
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1401
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1402
	end
1403
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1404
		ANIM = "Jump"
1405
		if ATTACK == false then
1406
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1407
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1408
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1409
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1410
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
1411
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1412
	    end
1413
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1414
		ANIM = "Fall"
1415
		if ATTACK == false then
1416
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1417
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1418
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1419
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1420
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1421
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1422
		end
1423
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1424
		ANIM = "Idle"
1425
		if ATTACK == false then
1426
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1427
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1428
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1429
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1430
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1431
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1432
		end
1433
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1434
		ANIM = "Walk"
1435
		if ATTACK == false then
1436
			if Humanoid.WalkSpeed <= 20 then
1437
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1438
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1439
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.85 / Animation_Speed)
1440
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.85 / Animation_Speed)
1441
				RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
1442
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
1443
			elseif Humanoid.WalkSpeed > 20 then
1444
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1445
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1446
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(2)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1447
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35), RAD(-35), RAD(0)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1448
				RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(6)), 2 / Animation_Speed)
1449
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-6)), 2 / Animation_Speed)
1450
			end
1451
		end
1452
	end
1453
	unanchor()
1454
	if Rooted == false then
1455
		Disable_Jump = false
1456
		Humanoid.WalkSpeed = Speed
1457
	elseif Rooted == true then
1458
		Disable_Jump = true
1459
		Humanoid.WalkSpeed = 0
1460
	end
1461
	sick.SoundId = "rbxassetid://598848368"
1462
	sick.Looped = true
1463
	sick.Pitch = 1
1464
	sick.Volume = 3
1465
	sick.Parent = Torso
1466
	sick.Playing = true
1467
	MANACOVER:TweenSize(UD2(1 * (POWER / MAXPOWER), 0, 1, 0), "Out", "Quad", 0.1, 0.1)
1468
	MANATEXT.Text = POWER.."/"..MAXPOWER
1469
	HEALTHCOVER:TweenSize(UD2(1 * (Humanoid.Health / Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", 0.1, 0.1)
1470
	HEALTHTEXT.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
1471
	Humanoid.Health = Humanoid.Health + 0.05
1472
end
1473
1474
--//=================================\\
1475
--\\=================================//
1476
1477
1478
1479
1480
1481
--//====================================================\\--
1482
--||			  		 END OF SCRIPT
1483
--\\====================================================//--