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