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