View difference between Paste ID: AWCvyBf0 and hY5j65gx
SHOW: | | - or go back to the newest paste.
1
local Player = game:GetService("Players").TameDoNotClick
2
3
4
local Mouse,mouse,UserInputService,ContextActionService
5
do
6
	script.Parent = Player.Character
7
	local CAS = {Actions={}}
8
	local Event = Instance.new("RemoteEvent")
9
	Event.Name = "UserInput_Event"
10
	Event.Parent = Player.Character
11
	local fakeEvent = function()
12
		local t = {_fakeEvent=true}
13
		t.Connect = function(self,f)self.Function=f end
14
		t.connect = t.Connect
15
		return t
16
	end
17
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
18
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
19
	function CAS:BindAction(name,fun,touch,...)
20
		CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
21
	end
22
	function CAS:UnbindAction(name)
23
		CAS.Actions[name] = nil
24
	end
25
	local function te(self,ev,...)
26
		local t = m[ev]
27
		if t and t._fakeEvent and t.Function then
28
			t.Function(...)
29
		end
30
	end
31
	m.TrigEvent = te
32
	UIS.TrigEvent = te
33
	Event.OnServerEvent:Connect(function(plr,io)
34
	    if plr~=Player then return end
35
		if io.isMouse then
36
			m.Target = io.Target
37
			m.Hit = io.Hit
38
		elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
39
	        if io.UserInputState == Enum.UserInputState.Begin then
40
				m:TrigEvent("Button1Down")
41
			else
42
				m:TrigEvent("Button1Up")
43
			end
44
		else
45
			for n,t in pairs(CAS.Actions) do
46
				for _,k in pairs(t.Keys) do
47
					if k==io.KeyCode then
48
						t.Function(t.Name,io.UserInputState,io)
49
					end
50
				end
51
			end
52
	        if io.UserInputState == Enum.UserInputState.Begin then
53
	            m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
54
				UIS:TrigEvent("InputBegan",io,false)
55
			else
56
				m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
57
				UIS:TrigEvent("InputEnded",io,false)
58
	        end
59
	    end
60
	end)
61
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
62
end
63
64
wait(1/100)
65
--for studio testing
66
--burbolizer/turbolizer idfk
67
--sans made this spaghetti coding
68
--salvo basically made the gui and wan reanimated some stuff along with adding effects to attacks kthx
69
----------------
70
--Salvo is trying to tweak
71
--also made gui
72
----------------------------
73
--ae sans works on this again why the f-
74
--bugetti spaghetti for some reason Godz is here
75
local player = game:service'Players'.TameDoNotClick
76
local char = player.Character
77
Character = player.Character
78
Humanoid = Character.Humanoid
79
RootPart = Character.HumanoidRootPart
80
Torso = Character.Torso
81
Head = Character.Head
82
RightArm = Character['Right Arm']
83
LeftArm = Character['Left Arm']
84
RightLeg = Character['Right Leg']
85
LeftLeg = Character['Left Leg']
86
RightS = Torso['Right Shoulder']
87
RootJ = RootPart['RootJoint']
88
RootJoint = RootJ
89
LeftS = Torso['Left Shoulder']
90
RightH = Torso['Right Hip']
91
LeftH = Torso['Left Hip']
92
it=Instance.new
93
local attacking = false
94
vt=Vector3.new
95
cf=CFrame.new
96
local sne = 0
97
local chaeng = 1
98
euler=CFrame.fromEulerAnglesXYZ
99
angles=CFrame.Angles
100
---im good at shack's coding so stop blaming me you dumbfucks
101
 rarm = RightArm
102
larm = LeftArm
103
IT = Instance.new
104
CF = CFrame.new
105
VT = Vector3.new
106
RAD = math.rad
107
C3 = Color3.new
108
UD2 = UDim2.new
109
BRICKC = BrickColor.new
110
ANGLES = CFrame.Angles
111
EULER = CFrame.fromEulerAnglesXYZ
112
COS = math.cos
113
ACOS = math.acos
114
SIN = math.sin
115
ASIN = math.asin
116
ABS = math.abs
117
MRANDOM = math.random
118
FLOOR = math.floor
119
local hum = char.Humanoid
120
local ra = char["Right Arm"]
121
local la= char["Left Arm"]
122
local rl= char["Right Leg"]
123
local ll = char["Left Leg"]
124
local hed = char.Head
125
local root = char.HumanoidRootPart
126
local rootj = root.RootJoint
127
local tors = char.Torso
128
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
129
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
130
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
131
------------------
132
local Chill = false
133
local sine = sne
134
-------------------------------------------------------
135
--Start Cret's variables stuff--
136
-------------------------------------------------------
137
cam = game.Workspace.CurrentCamera
138
CF = CFrame.new
139
angles = CFrame.Angles
140
attack = false
141
Euler = CFrame.fromEulerAnglesXYZ
142
Rad = math.rad
143
IT = Instance.new
144
BrickC = BrickColor.new
145
Cos = math.cos
146
Acos = math.acos
147
Sin = math.sin
148
Asin = math.asin
149
Abs = math.abs
150
Mrandom = math.random
151
Floor = math.floor
152
-------------------------------------------------------
153
--End Cret's variables stuff--
154
-------------------------------------------------------
155
Player = player
156-
local MoonEffect2 = script.Effect2
156+
157-
MoonEffect2.Parent = Player.PlayerGui
157+
158
local Triangle1 = script.Triangle
159
Triangle1.Parent = Player.PlayerGui
160
local Triangle2 = script.Triangle2
161
Triangle2.Parent = Player.PlayerGui
162
local CrystalEff = script.Crystal
163
CrystalEff.Parent = Player.PlayerGui
164
local MAINCOLOR = BrickColor.new("Deep orange")
165
neckcf=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
166
neckcf2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
167
LeftHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
168
LeftHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
169
RightHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
170
RightHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
171
RootCF=euler(-1.57,0,3.14)
172
necko=neckcf
173
root = Character.HumanoidRootPart
174
RH,LH = RightH,LeftH
175
	local NewInstance = function(instance,parent,properties)
176
		local inst = Instance.new(instance,parent)
177
		if(properties)then
178
			for i,v in next, properties do
179
				pcall(function() inst[i] = v end)
180
			end
181
		end
182
		return inst;
183
	end
184
	local SONG = 570332815
185
local gauntlet = script.Gauntlet2
186
local gauntlet2 = script.Gauntlet
187
gauntlet.Parent = char
188
gauntlet2.Parent = char
189
for i,v in pairs(gauntlet:GetChildren()) do
190
v.Anchored = false
191
end
192
for i,v in pairs(gauntlet2:GetChildren()) do
193
v.Anchored = false
194
end
195
local music = Instance.new("Sound",char.HumanoidRootPart)
196
music.SoundId = "rbxassetid://570332815"
197
music.Looped = true
198
music.Pitch = 1
199
music.Volume = 2
200
music.TimePosition = 0
201
music:Play()
202
	local HW = NewInstance('Weld',char,{Part0 = char["Right Arm"], Part1 = gauntlet2.Handle, C0 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)})
203
	local HWx = NewInstance('Weld',char,{Part0 = char["Left Arm"], Part1 = gauntlet.Handle, C0 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)})
204
local TurboCore = script.Core.Core
205
for i,v in pairs(script.Core.Core:GetChildren()) do
206
v.Anchored = false
207
end
208
Weld = Instance.new("Weld",script.Core.Core)
209
Weld.Part0 = script.Core.Core.Handle
210
Weld.Part1 = Player.Character.Torso
211
Weld.C0 = Weld.C0*CFrame.new(0,-0.25,0)
212
script.Core.Parent = Player.Character
213
local Speed = 18
214
local storedspeed = 18
215
216
function CreateParta(parent,transparency,reflectance,material,brickcolor)
217
local p = Instance.new("Part")
218
p.TopSurface = 0
219
p.BottomSurface = 0
220
p.Parent = parent
221
p.Size = Vector3.new(0.1,0.1,0.1)
222
p.Transparency = transparency
223
p.Reflectance = reflectance
224
p.CanCollide = false
225
p.Locked = true
226
p.BrickColor = brickcolor
227
p.Material = material
228
return p
229
end
230
231
function CreateMesh(parent,meshtype,x1,y1,z1)
232
local mesh = Instance.new("SpecialMesh",parent)
233
mesh.MeshType = meshtype
234
mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
235
return mesh
236
end
237
238
function CreateSpecialMesh(parent,meshid,x1,y1,z1)
239
local mesh = Instance.new("SpecialMesh",parent)
240
mesh.MeshType = "FileMesh"
241
mesh.MeshId = meshid
242
mesh.Scale = Vector3.new(x1,y1,z1)
243
return mesh
244
end
245
246
247
function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
248
local mesh = Instance.new("SpecialMesh",parent)
249
mesh.MeshType = "FileMesh"
250
mesh.MeshId = meshid
251
mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
252
mesh.Scale = Vector3.new(x1,y1,z1)
253
mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
254
return mesh
255
end
256
257
function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
258
local weld = Instance.new("Weld")
259
weld.Parent = parent
260
weld.Part0 = part0
261
weld.Part1 = part1
262
weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
263
weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
264
return weld
265
end
266
267
268
Debris = game:GetService("Debris")
269
270
271
--------------
272
local m = Instance.new("Model",char)
273
m.Name = MRANDOM(10,403583950)
274
--------------
275
local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
276
CreateWeld(sorb,RightArm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
277
local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
278
CreateWeld(sorb2,LeftArm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
279
280
local luna = MoonEffect2:Clone()
281
luna.Anchored = true
282
luna.Parent = nil
283
luna.CanCollide = false
284
luna.Name = "LunaticEffect"
285
286
local basketball = script.Helkern
287
basketball.Parent = player.PlayerGui
288
289
function clerp(a,b,t) 
290
local qa = {QuaternionFromCFrame(a)}
291
local qb = {QuaternionFromCFrame(b)} 
292
local ax, ay, az = a.x, a.y, a.z 
293
local bx, by, bz = b.x, b.y, b.z
294
local _t = 1-t
295
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
296
end 
297
 
298
function QuaternionFromCFrame(cf) 
299
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
300
local trace = m00 + m11 + m22 
301
if trace > 0 then 
302
local s = math.sqrt(1 + trace) 
303
local recip = 0.5/s 
304
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
305
else 
306
local i = 0 
307
if m11 > m00 then
308
i = 1
309
end
310
if m22 > (i == 0 and m00 or m11) then 
311
i = 2 
312
end 
313
if i == 0 then 
314
local s = math.sqrt(m00-m11-m22+1) 
315
local recip = 0.5/s 
316
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
317
elseif i == 1 then 
318
local s = math.sqrt(m11-m22-m00+1) 
319
local recip = 0.5/s 
320
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
321
elseif i == 2 then 
322
local s = math.sqrt(m22-m00-m11+1) 
323
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
324
end 
325
end 
326
end
327
 
328
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
329
local xs, ys, zs = x + x, y + y, z + z 
330
local wx, wy, wz = w*xs, w*ys, w*zs 
331
local xx = x*xs 
332
local xy = x*ys 
333
local xz = x*zs 
334
local yy = y*ys 
335
local yz = y*zs 
336
local zz = z*zs 
337
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)) 
338
end
339
 
340
function QuaternionSlerp(a, b, t) 
341
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
342
local startInterp, finishInterp; 
343
if cosTheta >= 0.0001 then 
344
if (1 - cosTheta) > 0.0001 then 
345
local theta = math.acos(cosTheta) 
346
local invSinTheta = 1/math.sin(theta) 
347
startInterp = math.sin((1-t)*theta)*invSinTheta 
348
finishInterp = math.sin(t*theta)*invSinTheta  
349
else 
350
startInterp = 1-t 
351
finishInterp = t 
352
end 
353
else 
354
if (1+cosTheta) > 0.0001 then 
355
local theta = math.acos(-cosTheta) 
356
local invSinTheta = 1/math.sin(theta) 
357
startInterp = math.sin((t-1)*theta)*invSinTheta 
358
finishInterp = math.sin(t*theta)*invSinTheta 
359
else 
360
startInterp = t-1 
361
finishInterp = t 
362
end 
363
end 
364
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 
365
end
366
367
local function CFrameFromTopBack(at, top, back)
368
local right = top:Cross(back)
369
return CFrame.new(at.x, at.y, at.z,
370
right.x, top.x, back.x,
371
right.y, top.y, back.y,
372
right.z, top.z, back.z)
373
end
374
375
376
function QuaternionFromCFrame2(cf)
377
    local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
378
    local trace = m00 + m11 + m22
379
    if trace > 0 then
380
        local s = math.sqrt(1 + trace)
381
        local recip = 0.5 / s
382
        return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
383
    else
384
        local i = 0
385
        if m11 > m00 then
386
            i = 1
387
        end
388
        if m22 > (i == 0 and m00 or m11) then
389
            i = 2
390
        end
391
        if i == 0 then
392
            local s = math.sqrt(m00 - m11 - m22 + 1)
393
            local recip = 0.5 / s
394
            return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
395
        elseif i == 1 then
396
            local s = math.sqrt(m11 - m22 - m00 + 1)
397
            local recip = 0.5 / s
398
            return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
399
        elseif i == 2 then
400
            local s = math.sqrt(m22 - m00 - m11 + 1)
401
            local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
402
        end
403
    end
404
end
405
 
406
function QuaternionToCFrame2(px, py, pz, x, y, z, w)
407
    local xs, ys, zs = x + x, y + y, z + z
408
    local wx, wy, wz = w * xs, w * ys, w * zs
409
    local xx = x * xs
410
    local xy = x * ys
411
    local xz = x * zs
412
    local yy = y * ys
413
    local yz = y * zs
414
    local zz = z * zs
415
    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))
416
end
417
 
418
function QuaternionSlerp2(a, b, t)
419
    local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
420
    local startInterp, finishInterp;
421
    if cosTheta >= 0.0001 then
422
        if (1 - cosTheta) > 0.0001 then
423
            local theta = ACOS(cosTheta)
424
            local invSinTheta = 1 / SIN(theta)
425
            startInterp = SIN((1 - t) * theta) * invSinTheta
426
            finishInterp = SIN(t * theta) * invSinTheta
427
        else
428
            startInterp = 1 - t
429
            finishInterp = t
430
        end
431
    else
432
        if (1 + cosTheta) > 0.0001 then
433
            local theta = ACOS(-cosTheta)
434
            local invSinTheta = 1 / SIN(theta)
435
            startInterp = SIN((t - 1) * theta) * invSinTheta
436
            finishInterp = SIN(t * theta) * invSinTheta
437
        else
438
            startInterp = t - 1
439
            finishInterp = t
440
        end
441
    end
442
    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
443
end
444
 
445
function clerp2(a, b, t)
446
    local qa = {QuaternionFromCFrame2(a)}
447
    local qb = {QuaternionFromCFrame2(b)}
448
    local ax, ay, az = a.x, a.y, a.z
449
    local bx, by, bz = b.x, b.y, b.z
450
    local _t = 1 - t
451
    return QuaternionToCFrame2(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp2(qa, qb, t))
452
end
453
454
455
local TextUI = script.TextUi
456
TextUI.Enabled = true
457
TextUI.Parent = char.Head
458
TextUI.Text.Image = "rbxassetid://2863687732"
459
460
local MainGui = script.Main
461
MainGui.Enabled = true
462
MainGui.Parent = player.PlayerGui
463
local SideFrame_0 = Instance.new("Frame",MainGui)
464
SideFrame_0.Position = UDim2.new(0,0,0.671,0)
465
SideFrame_0.Size = UDim2.new(0,457,0,216)
466
SideFrame_0.BorderSizePixel = 4
467
SideFrame_0.BorderColor3 = BrickColor.new"White".Color
468
SideFrame_0.BackgroundColor3 = BrickColor.new"Really black".Color
469
SideFrame_0.Rotation = 0
470
--[[
471
local SideFrame_1 = Instance.new("Frame",basgui)
472
SideFrame_1.Position = UDim2.new(0.75,0,0.801,0)
473
SideFrame_1.Size = UDim2.new(0,457,0,216)
474
SideFrame_1.BorderSizePixel = 4
475
SideFrame_1.BorderColor3 = BrickColor.new"White".Color
476
SideFrame_1.BackgroundColor3 = BrickColor.new"Really black".Color
477
SideFrame_1.Rotation = 0]]--
478
local SideFrame0 = Instance.new("Frame",MainGui)
479
SideFrame0.Position = UDim2.new(0,0,0.731,0)
480
SideFrame0.Size = UDim2.new(0,457,0,216)
481
SideFrame0.BorderSizePixel = 4
482
SideFrame0.BorderColor3 = BrickColor.new"White".Color
483
SideFrame0.BackgroundColor3 = BrickColor.new"Really black".Color
484
SideFrame0.Rotation = 0
485
local SideFrame1 = Instance.new("Frame",MainGui)
486
SideFrame1.Position = UDim2.new(0,0,0.781,0)
487
SideFrame1.Size = UDim2.new(0,457,0,216)
488
SideFrame1.BorderSizePixel = 4
489
SideFrame1.BorderColor3 = BrickColor.new"White".Color
490
SideFrame1.BackgroundColor3 = BrickColor.new"Really black".Color
491
SideFrame1.Rotation = 0
492
local SideFrame2 = Instance.new("Frame",MainGui)
493
SideFrame2.Position = UDim2.new(0,0,0.831,0)
494
SideFrame2.Size = UDim2.new(0,457,0,216)
495
SideFrame2.BorderSizePixel = 4
496
SideFrame2.BorderColor3 = BrickColor.new"White".Color
497
SideFrame2.BackgroundColor3 = BrickColor.new"Really black".Color
498
SideFrame2.Rotation = 0
499
local SideFrame3 = Instance.new("Frame",MainGui) --0.75
500
SideFrame3.Position = UDim2.new(0,0,0.876,0)
501
SideFrame3.Size = UDim2.new(0,457,0,216)
502
SideFrame3.BorderSizePixel = 4
503
SideFrame3.BorderColor3 = BrickColor.new"White".Color
504
SideFrame3.BackgroundColor3 = BrickColor.new"Really black".Color
505
SideFrame3.Rotation = -180
506
local SideFrame4 = Instance.new("Frame",MainGui) --0.75
507
SideFrame4.Position = UDim2.new(0,0,0.921,0)
508
SideFrame4.Size = UDim2.new(0,457,0,216)
509
SideFrame4.BorderSizePixel = 4
510
SideFrame4.BorderColor3 = BrickColor.new"White".Color
511
SideFrame4.BackgroundColor3 = BrickColor.new"Really black".Color
512
SideFrame4.Rotation = -180
513
local SideFrame5 = Instance.new("Frame",MainGui) --0.75
514
SideFrame5.Position = UDim2.new(0,0,0.971,0)
515
SideFrame5.Size = UDim2.new(0,457,0,216)
516
SideFrame5.BorderSizePixel = 4
517
SideFrame5.BorderColor3 = BrickColor.new"White".Color
518
SideFrame5.BackgroundColor3 = BrickColor.new"Really black".Color
519
SideFrame5.Rotation = -180
520
local MainFrame = MainGui.MainFrame
521
local MainFrame2 = MainFrame.AAaa
522
523
if char:findFirstChild("Animate")then
524
char:findFirstChild("Animate"):Remove()
525
end
526
527
if Humanoid:findFirstChild("Animator")then
528
Humanoid:findFirstChild("Animator"):Remove()
529
end
530
531
ArtificiaLeftHB = Instance.new("BindableEvent", script)
532
ArtificiaLeftHB.Name = "Heartbeat"
533
script:WaitForChild("Heartbeat")
534
535
frame = 1 / 60
536
tf = 0
537
allowframeloss = false
538
tossremainder = false
539
540
541
lastframe = tick()
542
script.Heartbeat:Fire()
543
544
545
game:GetService("RunService").Heartbeat:connect(function(s, p)
546
	tf = tf + s
547
	if tf >= frame then
548
		if allowframeloss then
549
			script.Heartbeat:Fire()
550
			lastframe = tick()
551
		else
552
			for i = 1, math.floor(tf / frame) do
553
				script.Heartbeat:Fire()
554
			end
555
			lastframe = tick()
556
		end
557
		if tossremainder then
558
			tf = 0
559
		else
560
			tf = tf - frame * math.floor(tf / frame)
561
		end
562
	end
563
end)
564
function swait(num)
565
	if num == 0 or num == nil then
566
		game:service("RunService").Stepped:wait(0)
567
	else
568
		for i = 0, num do
569
			game:service("RunService").Stepped:wait(0)
570
		end
571
	end
572
end
573
574
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
575
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
576
end 
577
local Mode = "T"
578
LW=Torso["Left Shoulder"]
579
LH=Torso["Left Hip"]
580
RW=Torso["Right Shoulder"]
581
RH=Torso["Right Hip"]
582
RW.Name="Right Shoulder"
583
RW.Part0=char.Torso
584
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
585
RW.C1=cf(0, 0.5, 0)
586
RW.Part1=char["Right Arm"]
587
RW.Parent=char.Torso
588
--
589
LW.Name="Left Shoulder"
590
LW.Part0=char.Torso
591
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
592
LW.C1=cf(0, 0.5, 0)
593
LW.Part1=char["Left Arm"]
594
LW.Parent=char.Torso
595
function NoOutline(Part)
596
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
597
end 
598
--
599
local r = 255
600
local g = 0
601
local b = 0
602
coroutine.resume(coroutine.create(function()
603
	while wait() do
604
		for i = 0, 254/5 do
605
			swait()
606
			g = g + 5
607
		end
608
		for i = 0, 254/5 do
609
			swait()
610
			r = r - 5
611
		end
612
		for i = 0, 254/5 do
613
			swait()
614
			b = b + 5
615
		end
616
		for i = 0, 254/5 do
617
			swait()
618
			g = g - 5
619
		end
620
		for i = 0, 254/5 do
621
			swait()
622
			r = r + 5
623
		end
624
		for i = 0, 254/5 do
625
			swait()
626
			b = b - 5
627
		end
628
	end
629
end)) 
630
TurboArrow = script.SpeedArrow1
631
ToothpasteArrow = script.SpeedArrow2
632
ToothpasteArrow.Parent = Player.PlayerGui
633
TurboArrow.Parent = Player.PlayerGui
634
635
636
637
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
638
local fp=it("Part")
639
fp.formFactor=formfactor
640
fp.Parent=parent
641
fp.Reflectance=reflectance
642
fp.Transparency=transparency
643
fp.CanCollide=false
644
fp.Locked=true
645
fp.BrickColor=brickcolor
646
fp.Name=name
647
fp.Size=size
648
fp.Position=Torso.Position
649
NoOutline(fp)
650
fp.Material="SmoothPlastic"
651
fp:BreakJoints()
652
return fp
653
end
654
 
655
function mesh(Mesh,part,meshtype,meshid,offset,scale)
656
local mesh=it(Mesh)
657
mesh.Parent=part
658
if Mesh=="SpecialMesh" then
659
mesh.MeshType=meshtype
660
if meshid~="nil" then
661
mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
662
end
663
end
664
mesh.Offset=offset
665
mesh.Scale=scale
666
return mesh
667
end
668
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
669
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
670
prt.Anchored=true
671
prt.Material = "Neon"
672
prt.CFrame=cframe
673
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
674
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
675
game:GetService("Debris"):AddItem(prt,5)
676
coroutine.resume(coroutine.create(function(Part,Mesh)
677
for i=0,1,delay do
678
swait()
679
Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
680
Part.Transparency=i
681
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
682
end
683
Part.Parent=nil
684
end),prt,msh)
685
end
686
function wind(type,pos,scale,value,speed,ahy)
687
local type = type
688
local rng = Instance.new("Part", char)
689
        rng.Anchored = true
690
        rng.BrickColor = BrickColor.new("Institutional white")
691
        rng.CanCollide = false
692
        rng.FormFactor = 3
693
        rng.Name = "Ring"
694
        rng.Size = Vector3.new(1, 1, 1)
695
        rng.Transparency = 0
696
        rng.TopSurface = 0
697
        rng.BottomSurface = 0
698
        rng.CFrame = pos
699
        local rngm = Instance.new("SpecialMesh", rng)
700
        rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
701
rngm.Scale = scale
702
local scaler2 = 1
703
if type == "Add" then
704
scaler2 = 1*value
705
elseif type == "Divide" then
706
scaler2 = 1/value
707
end
708
coroutine.resume(coroutine.create(function()
709
	if ahy == false then
710
for i = 0,8,0.1 do
711
swait()
712
if type == "Add" then
713
scaler2 = scaler2 - 0.01*value
714
elseif type == "Divide" then
715
scaler2 = scaler2 - 0.01/value
716
end
717
rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
718
rng.Transparency = rng.Transparency + 0.05
719
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
720
end
721
	else
722
		for i = 0,10,0.1 do
723
swait()
724
if type == "Add" then
725
scaler2 = scaler2 - 0.01*value
726
elseif type == "Divide" then
727
scaler2 = scaler2 - 0.01/value
728
end
729
rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
730
rng.Transparency = rng.Transparency + 0.01
731
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
732
end
733
		end
734
rng:Destroy()
735
end))
736
end
737
738
function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
739
local type = type
740
local rng = Instance.new("Part", char)
741
        rng.Anchored = true
742
        rng.BrickColor = color
743
        rng.CanCollide = false
744
        rng.FormFactor = 3
745
        rng.Name = "Ring"
746
        rng.Material = "Neon"
747
        rng.Size = Vector3.new(1, 1, 1)
748
        rng.Transparency = 0
749
        rng.TopSurface = 0
750
        rng.BottomSurface = 0
751
        rng.CFrame = pos
752
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
753
        local rngm = Instance.new("SpecialMesh", rng)
754
        rngm.MeshType = "Sphere"
755
rngm.Scale = vt(x1,y1,z1)
756
local glitchval = math.random(1,255)
757
if Mode == "R" then
758
rng.Color = Color3.new(r/255,g/255,b/255)
759
end
760
if Mode == "G" then
761
rng.Color = Color3.new(glitchval,glitchval,glitchval)
762
end
763
local scaler2 = 1
764
local speeder = FastSpeed
765
if type == "Add" then
766
scaler2 = 1*value
767
elseif type == "Divide" then
768
scaler2 = 1/value
769
end
770
coroutine.resume(coroutine.create(function()
771
for i = 0,10/bonuspeed,0.1 do
772
swait()
773
if Mode == "R" then
774
rng.Color = Color3.new(r/255,g/255,b/255)
775
end
776
if Mode == "G" then
777
rng.Color = Color3.new(glitchval,glitchval,glitchval)
778
end
779
if type == "Add" then
780
scaler2 = scaler2 - 0.01*value/bonuspeed
781
elseif type == "Divide" then
782
scaler2 = scaler2 - 0.01/value*bonuspeed
783
end
784
speeder = speeder - 0.01*FastSpeed*bonuspeed
785
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
786
rng.Transparency = rng.Transparency + 0.01*bonuspeed
787
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
788
end
789
rng:Destroy()
790
end))
791
end
792
793
-- 
794
RW.Name="Right Shoulder"
795
RW.Part0=char.Torso 
796
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
797
RW.C1=cf(0, 0.5, 0) 
798
RW.Part1=char["Right Arm"] 
799
RW.Parent=char.Torso 
800
-- 
801
LW.Name="Left Shoulder"
802
LW.Part0=char.Torso 
803
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
804
LW.C1=cf(0, 0.5, 0) 
805
LW.Part1=char["Left Arm"] 
806
LW.Parent=char.Torso
807
 
808
turboli = 0
809
turboli2 = 0
810
function sphere(bonuspeed, type, pos, scale, value, color)
811
local type = type
812
local rng = Instance.new("Part", char)
813
rng.Anchored = true
814
rng.BrickColor = color
815
rng.CanCollide = false
816
rng.FormFactor = 3
817
rng.Name = "Ring"
818
rng.Material = "Neon"
819
rng.Size = Vector3.new(1, 1, 1)
820
rng.Transparency = 0
821
rng.TopSurface = 0
822
rng.BottomSurface = 0
823
rng.CFrame = pos
824
local rngm = Instance.new("SpecialMesh", rng)
825
rngm.MeshType = "Sphere"
826
rngm.Scale = scale
827
if rainbowmode == true then
828
rng.Color = Color3.new(r / 255, g / 255, b / 255)
829
end
830
local scaler2 = 1
831
if type == "Add" then
832
scaler2 = 1 * value
833
elseif type == "Divide" then
834
scaler2 = 1 / value
835
end
836
coroutine.resume(coroutine.create(function()
837
for i = 0, 10 / bonuspeed, 0.1 do
838
swait()
839
if rainbowmode == true then
840
rng.Color = Color3.new(r / 255, g / 255, b / 255)
841
end
842
if type == "Add" then
843
scaler2 = scaler2 - 0.01 * value / bonuspeed
844
elseif type == "Divide" then
845
scaler2 = scaler2 - 0.01 / value * bonuspeed
846
end
847
if chaosmode == true then
848
rng.BrickColor = BrickColor.random()
849
end
850
rng.Transparency = rng.Transparency + 0.01 * bonuspeed
851
rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
852
end
853
rng:Destroy()
854
end))
855
end
856
function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
857
local type = type
858
local rng = Instance.new("Part", char)
859
rng.Anchored = true
860
if ModeOfGlitch ~= 9 then
861
rng.BrickColor = color
862
elseif ModeOfGlitch == 9 then
863
rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
864
end
865
rng.CanCollide = false
866
rng.FormFactor = 3
867
rng.Name = "Ring"
868
rng.Material = "Neon"
869
rng.Size = Vector3.new(1, 1, 1)
870
rng.Transparency = 0
871
rng.TopSurface = 0
872
rng.BottomSurface = 0
873
rng.CFrame = pos
874
local rngm = Instance.new("SpecialMesh", rng)
875
rngm.MeshType = "Sphere"
876
rngm.Scale = scale
877
if rainbowmode == true then
878
rng.Color = Color3.new(r/255,g/255,b/255)
879
end
880
local scaler2 = 1
881
local scaler2b = 1
882
local scaler2c = 1
883
if type == "Add" then
884
scaler2 = 1*value
885
scaler2b = 1*value2
886
scaler2c = 1*value3
887
elseif type == "Divide" then
888
scaler2 = 1/value
889
scaler2b = 1/value2
890
scaler2c = 1/value3
891
end
892
if ModeOfGlitch == 9 then
893
coroutine.resume(coroutine.create(function()
894
while true do
895
swait()
896
if rng.Parent ~= nil then
897
rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
898
else
899
break
900
end
901
end
902
end))
903
end
904
coroutine.resume(coroutine.create(function()
905
for i = 0,10/bonuspeed,0.1 do
906
swait()
907
if type == "Add" then
908
scaler2 = scaler2 - 0.01*value/bonuspeed
909
scaler2b = scaler2b - 0.01*value/bonuspeed
910
scaler2c = scaler2c - 0.01*value/bonuspeed
911
elseif type == "Divide" then
912
scaler2 = scaler2 - 0.01/value*bonuspeed
913
scaler2b = scaler2b - 0.01/value*bonuspeed
914
scaler2c = scaler2c - 0.01/value*bonuspeed
915
end
916
rng.Transparency = rng.Transparency + 0.01*bonuspeed
917
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
918
end
919
rng:Destroy()
920
end))
921
end
922
923
function Wedge2(bonuspeed,type,pos,scale,value,value2,value3,color)
924
local type = type
925
local rng = Instance.new("Part", char)
926
rng.Anchored = true
927
if ModeOfGlitch ~= 9 then
928
rng.BrickColor = color
929
elseif ModeOfGlitch == 9 then
930
rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
931
end
932
rng.CanCollide = false
933
rng.FormFactor = 3
934
rng.Name = "Ring"
935
rng.Material = "Neon"
936
rng.Size = Vector3.new(1, 1, 1)
937
rng.Transparency = 0
938
rng.TopSurface = 0
939
rng.BottomSurface = 0
940
rng.CFrame = pos
941
local rngm = Instance.new("SpecialMesh", rng)
942
rngm.MeshType = "Wedge"
943
rngm.Scale = scale
944
if rainbowmode == true then
945
rng.Color = Color3.new(r/255,g/255,b/255)
946
end
947
local scaler2 = 1
948
local scaler2b = 1
949
local scaler2c = 1
950
if type == "Add" then
951
scaler2 = 1*value
952
scaler2b = 1*value2
953
scaler2c = 1*value3
954
elseif type == "Divide" then
955
scaler2 = 1/value
956
scaler2b = 1/value2
957
scaler2c = 1/value3
958
end
959
if ModeOfGlitch == 9 then
960
coroutine.resume(coroutine.create(function()
961
while true do
962
swait()
963
if rng.Parent ~= nil then
964
rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
965
else
966
break
967
end
968
end
969
end))
970
end
971
coroutine.resume(coroutine.create(function()
972
for i = 0,10/bonuspeed,0.1 do
973
swait()
974
if type == "Add" then
975
scaler2 = scaler2 - 0.01*value/bonuspeed
976
scaler2b = scaler2b - 0.01*value/bonuspeed
977
scaler2c = scaler2c - 0.01*value/bonuspeed
978
elseif type == "Divide" then
979
scaler2 = scaler2 - 0.01/value*bonuspeed
980
scaler2b = scaler2b - 0.01/value*bonuspeed
981
scaler2c = scaler2c - 0.01/value*bonuspeed
982
end
983
rng.Transparency = rng.Transparency + 0.01*bonuspeed
984
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
985
end
986
rng:Destroy()
987
end))
988
end
989
990
function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
991
local type = type
992
local rotenable = rotatingop
993
local rng = Instance.new("Part", char)
994
rng.Anchored = true
995
rng.BrickColor = color
996
rng.CanCollide = false
997
rng.FormFactor = 3
998
rng.Name = "Ring"
999
rng.Material = "Neon"
1000
rng.Size = Vector3.new(1, 1, 1)
1001
rng.Transparency = 0
1002
if typeoftrans == "In" then
1003
rng.Transparency = 1
1004
end
1005
rng.TopSurface = 0
1006
rng.BottomSurface = 0
1007
rng.CFrame = pos
1008
local rngm = Instance.new("SpecialMesh", rng)
1009
rngm.MeshType = "FileMesh"
1010
if typeofshape == "Normal" then
1011
rngm.MeshId = "rbxassetid://662586858"
1012
elseif typeofshape == "Round" then
1013
rngm.MeshId = "rbxassetid://662585058"
1014
end
1015
rngm.Scale = scale
1016
local scaler2 = 1/10
1017
if type == "Add" then
1018
scaler2 = 1*value/10
1019
elseif type == "Divide" then
1020
scaler2 = 1/value/10
1021
end
1022
local randomrot = math.random(1,2)
1023
coroutine.resume(coroutine.create(function()
1024
for i = 0,10/bonuspeed,0.1 do
1025
swait()
1026
if type == "Add" then
1027
scaler2 = scaler2 - 0.01*value/bonuspeed/10
1028
elseif type == "Divide" then
1029
scaler2 = scaler2 - 0.01/value*bonuspeed/10
1030
end
1031
if rotenable == true then
1032
if randomrot == 1 then
1033
rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
1034
elseif randomrot == 2 then
1035
rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
1036
end
1037
end
1038
if typeoftrans == "Out" then
1039
rng.Transparency = rng.Transparency + 0.01*bonuspeed
1040
elseif typeoftrans == "In" then
1041
rng.Transparency = rng.Transparency - 0.01*bonuspeed
1042
end
1043
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
1044
end
1045
rng:Destroy()
1046
end))
1047
end
1048
1049
function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
1050
local type = type
1051
local rng = Instance.new("Part", char)
1052
rng.Anchored = true
1053
rng.BrickColor = color
1054
rng.CanCollide = false
1055
rng.FormFactor = 3
1056
rng.Name = "Ring"
1057
rng.Material = "Neon"
1058
rng.Size = Vector3.new(1, 1, 1)
1059
rng.Transparency = 0
1060
rng.TopSurface = 0
1061
rng.BottomSurface = 0
1062
rng.CFrame = pos
1063
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
1064
local rngm = Instance.new("SpecialMesh", rng)
1065
rngm.MeshType = "Brick"
1066
rngm.Scale = vt(x1,y1,z1)
1067
if rainbowmode == true then
1068
rng.Color = Color3.new(r/255,g/255,b/255)
1069
end
1070
local scaler2 = 1
1071
local speeder = FastSpeed/10
1072
if type == "Add" then
1073
scaler2 = 1*value
1074
elseif type == "Divide" then
1075
scaler2 = 1/value
1076
end
1077
coroutine.resume(coroutine.create(function()
1078
for i = 0,10/bonuspeed,0.1 do
1079
swait()
1080
if rainbowmode == true then
1081
rng.Color = Color3.new(r/255,g/255,b/255)
1082
end
1083
if type == "Add" then
1084
scaler2 = scaler2 - 0.01*value/bonuspeed
1085
elseif type == "Divide" then
1086
scaler2 = scaler2 - 0.01/value*bonuspeed
1087
end
1088
if chaosmode == true then
1089
rng.BrickColor = BrickColor.random()
1090
end
1091
speeder = speeder - 0.01*FastSpeed*bonuspeed/10
1092
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
1093
--rng.Transparency = rng.Transparency + 0.01*bonuspeed
1094
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
1095
end
1096
rng:Destroy()
1097
end))
1098
end
1099
1100
function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
1101
local type = type
1102
local rng = Instance.new("Part", char)
1103
rng.Anchored = true
1104
rng.BrickColor = color
1105
rng.CanCollide = false
1106
rng.FormFactor = 3
1107
rng.Name = "Ring"
1108
rng.Material = "Neon"
1109
rng.Size = Vector3.new(1, 1, 1)
1110
rng.Transparency = 0
1111
rng.TopSurface = 0
1112
rng.BottomSurface = 0
1113
rng.CFrame = pos
1114
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
1115
local rngm = Instance.new("SpecialMesh", rng)
1116
rngm.MeshType = "Brick"
1117
rngm.Scale = vt(x1,y1,z1)
1118
if rainbowmode == true then
1119
rng.Color = Color3.new(r/255,g/255,b/255)
1120
end
1121
local scaler2 = 1
1122
local speeder = FastSpeed/10
1123
if type == "Add" then
1124
scaler2 = 1*value
1125
elseif type == "Divide" then
1126
scaler2 = 1/value
1127
end
1128
coroutine.resume(coroutine.create(function()
1129
for i = 0,10/bonuspeed,0.1 do
1130
swait()
1131
if rainbowmode == true then
1132
rng.Color = Color3.new(r/255,g/255,b/255)
1133
end
1134
if type == "Add" then
1135
scaler2 = scaler2 - 0.01*value/bonuspeed
1136
elseif type == "Divide" then
1137
scaler2 = scaler2 - 0.01/value*bonuspeed
1138
end
1139
if chaosmode == true then
1140
rng.BrickColor = BrickColor.random()
1141
end
1142
speeder = speeder - 0.01*FastSpeed*bonuspeed/10
1143
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
1144
rng.Transparency = rng.Transparency + 0.01*bonuspeed
1145
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
1146
end
1147
rng:Destroy()
1148
end))
1149
end
1150
1151
function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
1152
local type = type
1153
local rng = Instance.new("Part", char)
1154
rng.Anchored = true
1155
rng.BrickColor = color
1156
rng.CanCollide = false
1157
rng.FormFactor = 3
1158
rng.Name = "Ring"
1159
rng.Material = "Neon"
1160
rng.Size = Vector3.new(1, 1, 1)
1161
rng.Transparency = 0
1162
rng.TopSurface = 0
1163
rng.BottomSurface = 0
1164
rng.CFrame = pos
1165
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
1166
local rngm = Instance.new("SpecialMesh", rng)
1167
rngm.MeshType = "Brick"
1168
rngm.Scale = vt(x1,y1,z1)
1169
if Mode == "G" then
1170
rng.Color = Color3.new(glitchval,glitchval,glitchval)
1171
end
1172
--[[
1173
coroutine.resume(coroutine.create(function()
1174
	while true do
1175
		swait()
1176
		glitchval = math.random(1,255)
1177
	end
1178
end))]]--
1179
local scaler2 = 0
1180
local speeder = FastSpeed/10
1181
if type == "Add" then
1182
scaler2 = 1*value
1183
elseif type == "Divide" then
1184
scaler2 = 1/value
1185
end
1186
coroutine.resume(coroutine.create(function()
1187
for i = 0,10/bonuspeed,0.1 do
1188
swait()
1189
if Mode == "G" then
1190
rng.Color = Color3.new(glitchval,glitchval,glitchval)
1191
end
1192
if type == "Add" then
1193
scaler2 = scaler2 - 0.01*value/bonuspeed
1194
elseif type == "Divide" then
1195
scaler2 = scaler2 - 0.01/value*bonuspeed
1196
end
1197
speeder = speeder + 0.01*FastSpeed*bonuspeed/10
1198
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
1199
--rng.Transparency = rng.Transparency + 0.01*bonuspeed
1200
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
1201
end
1202
rng:Destroy()
1203
end))
1204
end
1205
1206
function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
1207
local type = type
1208
local rng = Instance.new("Part", char)
1209
rng.Anchored = true
1210
rng.BrickColor = color
1211
rng.Color = color3
1212
rng.CanCollide = false
1213
rng.FormFactor = 3
1214
rng.Name = "Ring"
1215
rng.Material = "Neon"
1216
rng.Size = Vector3.new(1, 1, 1)
1217
rng.Transparency = 0
1218
rng.TopSurface = 0
1219
rng.BottomSurface = 0
1220
rng.CFrame = pos
1221
local rngm = Instance.new("SpecialMesh", rng)
1222
rngm.MeshType = "Brick"
1223
rngm.Scale = scale
1224
local scaler2 = 1
1225
local scaler2b = 1
1226
local scaler2c = 1
1227
if type == "Add" then
1228
scaler2 = 1*value
1229
scaler2b = 1*value2
1230
scaler2c = 1*value3
1231
elseif type == "Divide" then
1232
scaler2 = 1/value
1233
scaler2b = 1/value2
1234
scaler2c = 1/value3
1235
end
1236
coroutine.resume(coroutine.create(function()
1237
for i = 0,10/bonuspeed,0.1 do
1238
swait()
1239
if type == "Add" then
1240
scaler2 = scaler2 - 0.01*value/bonuspeed
1241
scaler2b = scaler2b - 0.01*value/bonuspeed
1242
scaler2c = scaler2c - 0.01*value/bonuspeed
1243
elseif type == "Divide" then
1244
scaler2 = scaler2 - 0.01/value*bonuspeed
1245
scaler2b = scaler2b - 0.01/value*bonuspeed
1246
scaler2c = scaler2c - 0.01/value*bonuspeed
1247
end
1248
rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
1249
rng.Transparency = rng.Transparency + 0.01*bonuspeed
1250
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
1251
end
1252
rng:Destroy()
1253
end))
1254
end
1255
local Create = LoadLibrary("RbxUtility").Create
1256
CFuncs = {
1257
Part = {
1258
Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
1259
local Part = Create("Part")({
1260
Parent = Parent,
1261
Reflectance = Reflectance,
1262
Transparency = Transparency,
1263
CanCollide = false,
1264
Locked = true,
1265
BrickColor = BrickColor.new(tostring(BColor)),
1266
Name = Name,
1267
Size = Size,
1268
Material = Material
1269
})
1270
RemoveOutlines(Part)
1271
return Part
1272
end
1273
},
1274
Mesh = {
1275
Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
1276
local Msh = Create(Mesh)({
1277
Parent = Part,
1278
Offset = OffSet,
1279
Scale = Scale
1280
})
1281
if Mesh == "SpecialMesh" then
1282
Msh.MeshType = MeshType
1283
Msh.MeshId = MeshId
1284
end
1285
return Msh
1286
end
1287
},
1288
Mesh = {
1289
Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
1290
local Msh = Create(Mesh)({
1291
Parent = Part,
1292
Offset = OffSet,
1293
Scale = Scale
1294
})
1295
if Mesh == "SpecialMesh" then
1296
Msh.MeshType = MeshType
1297
Msh.MeshId = MeshId
1298
end
1299
return Msh
1300
end
1301
},
1302
Weld = {
1303
Create = function(Parent, Part0, Part1, C0, C1)
1304
local Weld = Create("Weld")({
1305
Parent = Parent,
1306
Part0 = Part0,
1307
Part1 = Part1,
1308
C0 = C0,
1309
C1 = C1
1310
})
1311
return Weld
1312
end
1313
},
1314
Sound = {
1315
Create = function(id, par, vol, pit)
1316
coroutine.resume(coroutine.create(function()
1317
local S = Create("Sound")({
1318
Volume = vol,
1319
Pitch = pit or 1,
1320
SoundId = id,
1321
Parent = par or workspace
1322
})
1323
wait()
1324
S:play()
1325
game:GetService("Debris"):AddItem(S, 10)
1326
end))
1327
end
1328
},
1329
1330
["TimeSound"] = {
1331
Create = function(id, par, vol, pit, timepos) 
1332
coroutine.resume(coroutine.create(function()
1333
local S = Create("Sound"){
1334
Volume = vol,
1335
Name = "EffectSoundo",
1336
Pitch = pit or 1,
1337
SoundId = id,
1338
TimePosition = timepos,
1339
Parent = par or workspace,
1340
}
1341
wait() 
1342
S:play() 
1343
game:GetService("Debris"):AddItem(S, 10)
1344
end))
1345
end;
1346
};
1347
["EchoSound"] = {
1348
Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl) 
1349
coroutine.resume(coroutine.create(function()
1350
local Sas = Create("Sound"){
1351
Volume = vol,
1352
Name = "EffectSoundo",
1353
Pitch = pit or 1,
1354
SoundId = id,
1355
TimePosition = timepos,
1356
Parent = par or workspace,
1357
}
1358
local E = Create("EchoSoundEffect"){
1359
Delay = echodelay,
1360
Name = "Echo",
1361
Feedback = fedb,
1362
DryLevel = dryl,
1363
Parent = Sas,
1364
}
1365
wait() 
1366
Sas:play() 
1367
game:GetService("Debris"):AddItem(Sas, delays)
1368
end))
1369
end;
1370
};
1371
LongSound = {
1372
Create = function(id, par, vol, pit)
1373
coroutine.resume(coroutine.create(function()
1374
local S = Create("Sound")({
1375
Volume = vol,
1376
Pitch = pit or 1,
1377
SoundId = id,
1378
Parent = par or workspace
1379
})
1380
wait()
1381
S:play()
1382
game:GetService("Debris"):AddItem(S, 30)
1383
end))
1384
end
1385
},
1386
ParticleEmitter = {
1387
Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
1388
local fp = Create("ParticleEmitter")({
1389
Parent = Parent,
1390
Color = ColorSequence.new(Color1, Color2),
1391
LightEmission = LightEmission,
1392
Size = Size,
1393
Texture = Texture,
1394
Transparency = Transparency,
1395
ZOffset = ZOffset,
1396
Acceleration = Accel,
1397
Drag = Drag,
1398
LockedToPart = LockedToPart,
1399
VelocityInheritance = VelocityInheritance,
1400
EmissionDirection = EmissionDirection,
1401
Enabled = Enabled,
1402
Lifetime = LifeTime,
1403
Rate = Rate,
1404
Rotation = Rotation,
1405
RotSpeed = RotSpeed,
1406
Speed = Speed,
1407
VelocitySpread = VelocitySpread
1408
})
1409
return fp
1410
end
1411
},
1412
CreateTemplate = {}
1413
}
1414
function waveEff(bonuspeed,type,typeoftrans,pos,scale,value,value2,color)
1415
local type = type
1416
local rng = Instance.new("Part", char)
1417
        rng.Anchored = true
1418
        rng.BrickColor = color
1419
        rng.CanCollide = false
1420
        rng.FormFactor = 3
1421
        rng.Name = "Ring"
1422
        rng.Material = "Neon"
1423
        rng.Size = Vector3.new(1, 1, 1)
1424
        rng.Transparency = 0
1425
if typeoftrans == "In" then
1426
rng.Transparency = 1
1427
end
1428
        rng.TopSurface = 0
1429
        rng.BottomSurface = 0
1430
        rng.CFrame = pos
1431
        local rngm = Instance.new("SpecialMesh", rng)
1432
        rngm.MeshType = "FileMesh"
1433
rngm.MeshId = "rbxassetid://20329976"
1434
rngm.Scale = scale
1435
local scaler2 = 1
1436
local scaler2b = 1
1437
if type == "Add" then
1438
scaler2 = 1*value
1439
scaler2b = 1*value2
1440
elseif type == "Divide" then
1441
scaler2 = 1/value
1442
scaler2b = 1/value2
1443
end
1444
local randomrot = math.random(1,2)
1445
coroutine.resume(coroutine.create(function()
1446
for i = 0,10/bonuspeed,0.1 do
1447
swait()
1448
if type == "Add" then
1449
scaler2 = scaler2 - 0.01*value/bonuspeed
1450
scaler2b = scaler2b - 0.01*value/bonuspeed
1451
elseif type == "Divide" then
1452
scaler2 = scaler2 - 0.01/value*bonuspeed
1453
scaler2b = scaler2b - 0.01/value*bonuspeed
1454
end
1455
if randomrot == 1 then
1456
rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(5*bonuspeed/2),0)
1457
elseif randomrot == 2 then
1458
rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-5*bonuspeed/2),0)
1459
end
1460
if typeoftrans == "Out" then
1461
rng.Transparency = rng.Transparency + 0.01*bonuspeed
1462
elseif typeoftrans == "In" then
1463
rng.Transparency = rng.Transparency - 0.01*bonuspeed
1464
end
1465
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2*bonuspeed)
1466
end
1467
rng:Destroy()
1468
end))
1469
end
1470
1471
function dmg(dude)
1472
	local keptcolor = MAINCOLOR
1473
if dude.Name ~= Character then
1474
local bgf = Instance.new("BodyGyro",dude.Head)
1475
bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
1476
--[[local val = Instance.new("BoolValue",dude)
1477
val.Name = "IsHit"]]--
1478
local ds = coroutine.wrap(function()
1479
dude:WaitForChild("Head"):BreakJoints()
1480
for i, v in pairs(dude:GetChildren()) do
1481
if v:IsA("BasePart") or v:IsA("MeshPart") then
1482
v.Name = "DEMINISHED"
1483
CFuncs["Sound"].Create("rbxassetid://763718160", v, 0.75, 1.1)
1484
CFuncs["Sound"].Create("rbxassetid://782353443", v, 1, 1)
1485
--[[for i = 0, 1 do
1486
sphere2(1,"Add",v.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,10,-0.01,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
1487
end]]--
1488
end
1489
end
1490
wait(0.5)
1491
targetted = nil
1492
CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.25, 0.285)
1493
coroutine.resume(coroutine.create(function()
1494
for i, v in pairs(dude:GetChildren()) do
1495
if v:IsA("Accessory") then
1496
v:Destroy()
1497
end
1498
if v:IsA("Humanoid") then
1499
v:Destroy()
1500
end
1501
if v:IsA("CharacterMesh") then
1502
v:Destroy()
1503
end
1504
if v:IsA("Model") then
1505
v:Destroy()
1506
end
1507
if v:IsA("BasePart") or v:IsA("MeshPart") then
1508
for x, o in pairs(v:GetChildren()) do
1509
if o:IsA("Decal") then
1510
o:Destroy()
1511
end
1512
end
1513
coroutine.resume(coroutine.create(function()
1514
v.Material = "Neon"
1515
v.CanCollide = false
1516
v.Anchored = false
1517
local bld = Instance.new("ParticleEmitter",v)
1518
bld.LightEmission = 0.75
1519
bld.Texture = "rbxassetid://2273224484" ---284205403
1520
bld.Color = ColorSequence.new(keptcolor.Color)
1521
bld.Rate = 15
1522
bld.Lifetime = NumberRange.new(1)
1523
bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
1524
bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
1525
bld.Speed = NumberRange.new(2,5)
1526
bld.VelocitySpread = 50000
1527
bld.Rotation = NumberRange.new(-500,500)
1528
bld.RotSpeed = NumberRange.new(-500,500)
1529
        local sbs = Instance.new("BodyPosition", v)
1530
        sbs.P = 3000
1531
        sbs.D = 1000
1532
        sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
1533
        sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
1534
v.Color = keptcolor.Color
1535
coroutine.resume(coroutine.create(function()
1536
for i = 0, 49 do
1537
swait(1)
1538
v:BreakJoints()
1539
v.Transparency = v.Transparency + 0.02
1540
end
1541
v:BreakJoints()
1542
for i = 0, 4 do
1543
slash(math.random(10,50)/10,3,true,"Round","Add","Out",v.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.0025,0.01),math.random(10,100)/2500,BrickColor.new("White"))
1544
end
1545
block(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor,keptcolor.Color)
1546
CFuncs["Sound"].Create("rbxassetid://782353117", v, 0.25, 1.2)
1547
CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
1548
bld.Speed = NumberRange.new(10,25)
1549
bld.Drag = 5
1550
bld.Acceleration = vt(0,2,0)
1551
wait(0.5)
1552
bld.Enabled = false
1553
wait(4)
1554
coroutine.resume(coroutine.create(function()
1555
for i = 0, 99 do
1556
swait()
1557
v:Destroy()
1558
dude:Destroy()
1559
end
1560
end))
1561
end))
1562
end))
1563
end
1564
end
1565
end))
1566
end)
1567
ds()
1568
end
1569
end
1570
1571
function FindNearestHead(Position, Distance, SinglePlayer)
1572
	if SinglePlayer then
1573
		return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
1574
	end
1575
	local List = {}
1576
	for i, v in pairs(workspace:GetChildren()) do
1577
		if v:IsA("Model") then
1578
			if v:findFirstChild("Head") then
1579
				if v ~= Character then
1580
					if (v.Head.Position - Position).magnitude <= Distance then
1581
						table.insert(List, v)
1582
					end 
1583
				end 
1584
			end 
1585
		end 
1586
	end
1587
	return List
1588
end
1589
1590
1591
1592
--        RAGDOLL STUFF
1593
1594
 
1595
function recurse(root,callback,i)
1596
    i= i or 0
1597
    for _,v in pairs(root:GetChildren()) do
1598
        i = i + 1
1599
        callback(i,v)
1600
       
1601
        if #v:GetChildren() > 0 then
1602
            i = recurse(v,callback,i)
1603
        end
1604
    end
1605
   
1606
    return i
1607
end
1608
 
1609
function ragdollJoint(character, part0, part1, attachmentName, className, properties)
1610
    attachmentName = attachmentName.."RigAttachment"
1611
    local constraint = Instance.new(className.."Constraint")
1612
    constraint.Attachment0 = part0:FindFirstChild(attachmentName)
1613
    constraint.Attachment1 = part1:FindFirstChild(attachmentName)
1614
    constraint.Name = "RagdollConstraint"..part1.Name
1615
   
1616
    for _,propertyData in next,properties or {} do
1617
        constraint[propertyData[1]] = propertyData[2]
1618
    end
1619
   
1620
    constraint.Parent = character
1621
end
1622
 
1623
function getAttachment0(character, attachmentName)
1624
    for _,child in next,character:GetChildren() do
1625
        local attachment = child:FindFirstChild(attachmentName)
1626
        if attachment then
1627
            return attachment
1628
        end
1629
    end
1630
end
1631
 
1632
function ArtificialHitbox(Part)
1633
    local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
1634
    HITBOX.CanCollide = true
1635
    HITBOX.CFrame = Part.CFrame
1636
    weldBetween(Part,HITBOX)
1637
end
1638
 
1639
function R15Ragdoll(character,KeepArms)
1640
    character:BreakJoints()
1641
    coroutine.resume(coroutine.create(function()
1642
        recurse(character, function(_,v)
1643
            if v:IsA("Attachment") then
1644
                v.Axis = Vector3.new(0, 1, 0)
1645
                v.SecondaryAxis = Vector3.new(0, 0, 1)
1646
                v.Rotation = Vector3.new(0, 0, 0)
1647
            end
1648
        end)
1649
        for _,child in next,character:GetChildren() do
1650
            if child:IsA("Accoutrement") then
1651
                for _,part in next,child:GetChildren() do
1652
                    if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
1653
                        local attachment1 = part:FindFirstChildOfClass("Attachment")
1654
                        local attachment0 = getAttachment0(character,attachment1.Name)
1655
                        if attachment0 and attachment1 then
1656
                            local constraint = Instance.new("HingeConstraint")
1657
                            constraint.Attachment0 = attachment0
1658
                            constraint.Attachment1 = attachment1
1659
                            constraint.LimitsEnabled = true
1660
                            constraint.UpperAngle = 0
1661
                            constraint.LowerAngle = 0
1662
                            constraint.Parent = character
1663
                        end
1664
                        ArtificialHitbox(part)
1665
                    elseif part.Name == "HumanoidRootPart" then
1666
                        part:remove()
1667
                    end
1668
                end
1669
            end
1670
        end
1671
       
1672
        ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
1673
            {"LimitsEnabled",true};
1674
            {"UpperAngle",5};
1675
        })
1676
        if character:FindFirstChild("Head") then
1677
            ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
1678
                {"LimitsEnabled",true};
1679
                {"UpperAngle",15};
1680
            })
1681
        end
1682
       
1683
        local handProperties = {
1684
            {"LimitsEnabled", true};
1685
            {"UpperAngle",0};
1686
            {"LowerAngle",0};
1687
        }
1688
        ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
1689
        ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
1690
       
1691
        local shinProperties = {
1692
            {"LimitsEnabled", true};
1693
            {"UpperAngle", 0};
1694
            {"LowerAngle", -75};
1695
        }
1696
        ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
1697
        ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
1698
       
1699
        local footProperties = {
1700
            {"LimitsEnabled", true};
1701
            {"UpperAngle", 15};
1702
            {"LowerAngle", -45};
1703
        }
1704
        ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
1705
        ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
1706
        if KeepArms == true then
1707
            ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
1708
            ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
1709
            ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
1710
            ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
1711
        end
1712
        ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
1713
        ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
1714
        Debris:AddItem(character,50)
1715
    end))
1716
end
1717
 
1718
function Ragdoll(Character2,CharTorso,KeepArms)
1719
    coroutine.resume(coroutine.create(function()
1720
        Character2:BreakJoints()
1721
        local hum = Character2:findFirstChild("Humanoid")
1722
        hum:remove()
1723
        local function Scan(ch)
1724
            local e
1725
            for e = 1,#ch do
1726
                Scan(ch[e]:GetChildren())
1727
                if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
1728
                    ch[e]:remove()
1729
                end
1730
            end
1731
        end
1732
        local NEWHUM = IT("Humanoid")
1733
        NEWHUM.Name = "Corpse"
1734
        NEWHUM.Health = 0
1735
        NEWHUM.MaxHealth = 0
1736
        NEWHUM.PlatformStand = true
1737
        NEWHUM.Parent = Character2
1738
        NEWHUM.DisplayDistanceType = "None"
1739
   
1740
        local ch = Character2:GetChildren()
1741
        local i
1742
        for i = 1,#ch do
1743
            if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
1744
                ch[i]:remove()
1745
            end
1746
        end
1747
   
1748
        local Torso2 = Character2.Torso
1749
        local movevector = Vector3.new()
1750
   
1751
        if Torso2 then
1752
            movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
1753
            local Head = Character2:FindFirstChild("Head")
1754
            if Head then
1755
                local Neck = Instance.new("Weld")
1756
                Neck.Name = "Neck"
1757
                Neck.Part0 = Torso2
1758
                Neck.Part1 = Head
1759
                Neck.C0 = CFrame.new(0, 1.5, 0)
1760
                Neck.C1 = CFrame.new()
1761
                Neck.Parent = Torso2
1762
   
1763
            end
1764
            local Limb = Character2:FindFirstChild("Right Arm")
1765
            if Limb and KeepArms == true then
1766
   
1767
                Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
1768
                local Joint = Instance.new("Glue")
1769
                Joint.Name = "RightShoulder"
1770
                Joint.Part0 = Torso2
1771
                Joint.Part1 = Limb
1772
                Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1773
                Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1774
                Joint.Parent = Torso2
1775
   
1776
                local B = Instance.new("Part")
1777
                B.TopSurface = 0
1778
                B.BottomSurface = 0
1779
                B.formFactor = "Symmetric"
1780
                B.Size = Vector3.new(1, 1, 1)
1781
                B.Transparency = 1
1782
                B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1783
                B.Parent = Character2
1784
                local W = Instance.new("Weld")
1785
                W.Part0 = Limb
1786
                W.Part1 = B
1787
                W.C0 = CFrame.new(0, -0.5, 0)
1788
                W.Parent = Limb
1789
   
1790
            end
1791
            local Limb = Character2:FindFirstChild("Left Arm")
1792
            if Limb and KeepArms == true then
1793
   
1794
                Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
1795
                local Joint = Instance.new("Glue")
1796
                Joint.Name = "LeftShoulder"
1797
                Joint.Part0 = Torso2
1798
                Joint.Part1 = Limb
1799
                Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1800
                Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1801
                Joint.Parent = Torso2
1802
   
1803
                local B = Instance.new("Part")
1804
                B.TopSurface = 0
1805
                B.BottomSurface = 0
1806
                B.formFactor = "Symmetric"
1807
                B.Size = Vector3.new(1, 1, 1)
1808
                B.Transparency = 1
1809
                B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1810
                B.Parent = Character2
1811
                local W = Instance.new("Weld")
1812
                W.Part0 = Limb
1813
                W.Part1 = B
1814
                W.C0 = CFrame.new(0, -0.5, 0)
1815
                W.Parent = Limb
1816
   
1817
            end
1818
            local Limb = Character2:FindFirstChild("Right Leg")
1819
            if Limb then
1820
   
1821
                Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
1822
                local Joint = Instance.new("Glue")
1823
                Joint.Name = "RightHip"
1824
                Joint.Part0 = Torso2
1825
                Joint.Part1 = Limb
1826
                Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1827
                Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1828
                Joint.Parent = Torso2
1829
   
1830
                local B = Instance.new("Part")
1831
                B.TopSurface = 0
1832
                B.BottomSurface = 0
1833
                B.formFactor = "Symmetric"
1834
                B.Size = Vector3.new(1, 1, 1)
1835
                B.Transparency = 1
1836
                B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1837
                B.Parent = Character2
1838
                local W = Instance.new("Weld")
1839
                W.Part0 = Limb
1840
                W.Part1 = B
1841
                W.C0 = CFrame.new(0, -0.5, 0)
1842
                W.Parent = Limb
1843
   
1844
            end
1845
            local Limb = Character2:FindFirstChild("Left Leg")
1846
            if Limb then
1847
   
1848
                Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
1849
                local Joint = Instance.new("Glue")
1850
                Joint.Name = "LeftHip"
1851
                Joint.Part0 = Torso2
1852
                Joint.Part1 = Limb
1853
                Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1854
                Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1855
                Joint.Parent = Torso2
1856
   
1857
                local B = Instance.new("Part")
1858
                B.TopSurface = 0
1859
                B.BottomSurface = 0
1860
                B.formFactor = "Symmetric"
1861
                B.Size = Vector3.new(1, 1, 1)
1862
                B.Transparency = 1
1863
                B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1864
                B.Parent = Character2
1865
                local W = Instance.new("Weld")
1866
                W.Part0 = Limb
1867
                W.Part1 = B
1868
                W.C0 = CFrame.new(0, -0.5, 0)
1869
                W.Parent = Limb
1870
   
1871
            end
1872
            --[
1873
            local Bar = Instance.new("Part")
1874
            Bar.TopSurface = 0
1875
            Bar.BottomSurface = 0
1876
            Bar.formFactor = "Symmetric"
1877
            Bar.Size = Vector3.new(1, 1, 1)
1878
            Bar.Transparency = 1
1879
            Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
1880
            Bar.Parent = Character2
1881
            local Weld = Instance.new("Weld")
1882
            Weld.Part0 = Torso2
1883
            Weld.Part1 = Bar
1884
            Weld.C0 = CFrame.new(0, 0.5, 0)
1885
            Weld.Parent = Torso2
1886
            --]]
1887
        end
1888
        Character2.Parent = workspace
1889
        Debris:AddItem(Character2,50)
1890
   
1891
        return Character2,Torso2
1892
    end))
1893
end
1894
1895
1896
function Freeze(CHARACTER,LAST)
1897
		local q = CHARACTER:GetChildren()
1898
		for i = 1, #q do
1899
			local bob = q[i]
1900
			if bob.ClassName == "Part" or bob.ClassName == "MeshPart" then
1901
				if bob.Transparency < 1 then
1902
					bob.Anchored = true
1903
					if bob:FindFirstChild("Ice") == nil then
1904
					local icelayer = bob:Clone()
1905
					icelayer.Parent = bob
1906
					icelayer.Material = "Ice"
1907
					icelayer.CanCollide = false
1908
					icelayer.BrickColor = BRICKC"Steel blue"
1909
					icelayer.Transparency = 0.5
1910
					icelayer.CFrame = bob.CFrame
1911
					icelayer.Name = "Ice"
1912
					icelayer.Size = icelayer.Size + VT(0.1,0.1,0.1)
1913
					if icelayer:FindFirstChildOfClass("Decal") then
1914
						icelayer:FindFirstChildOfClass("Decal"):remove()
1915
					end
1916
					end
1917
				end
1918
			end
1919
		end
1920
		coroutine.resume(coroutine.create(function()
1921
			swait(LAST*100)
1922
			local q = CHARACTER:GetChildren()
1923
			for i = 1, #q do
1924
				local bob = q[i]
1925
				if bob.ClassName == "Part" or bob.ClassName == "MeshPart" then
1926
					if bob.Transparency < 1 then
1927
						bob.Anchored = false
1928
						bob.Ice:remove()
1929
					end
1930
				end
1931
			end
1932
		end))
1933
end
1934
1935
1936
function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
1937
  if hit.Parent == nil then
1938
    return
1939
  end
1940
  local h = hit.Parent:FindFirstChildOfClass("Humanoid")
1941
  for _, v in pairs(hit.Parent:children()) do
1942
    if v:IsA("Humanoid") then
1943
      h = v
1944
    end
1945
  end
1946
  if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
1947
    if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
1948
      return
1949
    end
1950
    local c = Create("ObjectValue")({
1951
      Name = "creator",
1952
      Value = Player,
1953
      Parent = h
1954
    })
1955
    game:GetService("Debris"):AddItem(c, 0.5)
1956
    if HitSound ~= nil and HitPitch ~= nil then
1957
      CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
1958
    end
1959
    local Damage = math.random(minim, maxim)
1960
    local blocked = false
1961
    local block = hit.Parent:findFirstChild("Block")
1962
    if block ~= nil and block.className == "IntValue" and block.Value > 0 then
1963
      blocked = true
1964
      block.Value = block.Value - 1
1965
      print(block.Value)
1966
    end
1967
    if blocked == false then
1968
      HitHealth = h.Health
1969
      h.MaxHealth = 100
1970
      h.Health = h.Health - Damage
1971
      if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
1972
        print("gained kill")
1973
                            if h.Parent:FindFirstChild("Torso") then
1974
                      --  h.Parent:FindFirstChild("Torso").CFrame = h.Parent:FindFirstChild("Torso").CFrame * ANGLES(RAD(2), RAD(0), RAD(0))
1975
                        Ragdoll(h.Parent,Torso,true)
1976
                    elseif h.Parent:FindFirstChild("UpperTorso") then
1977
                        R15Ragdoll(h.Parent,true)
1978
                    end
1979
      end
1980
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1981
    else
1982
      h.Health = h.Health - Damage / 2
1983
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1984
    end
1985
    if Type == "Knockdown" then
1986
      local hum = hit.Parent.Humanoid
1987
      hum.PlatformStand = true
1988
      coroutine.resume(coroutine.create(function(HHumanoid)
1989
        swait(1)
1990
        HHumanoid.PlatformStand = false
1991
      end), hum)
1992
      local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
1993
      local bodvol = Create("BodyVelocity")({
1994
        velocity = angle * knockback,
1995
        P = 5000,
1996
        maxForce = Vector3.new(8000, 8000, 8000),
1997
        Parent = hit
1998
      })
1999
      local rl = Create("BodyAngularVelocity")({
2000
        P = 3000,
2001
        maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
2002
        angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
2003
        Parent = hit
2004
      })
2005
      game:GetService("Debris"):AddItem(bodvol, 0.5)
2006
      game:GetService("Debris"):AddItem(rl, 0.5)
2007
elseif Type == "Freeze" then
2008
	      local vp = Create("BodyVelocity")({
2009
        P = 500,
2010
        maxForce = Vector3.new(math.huge, 0, math.huge),
2011
        velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
2012
      })
2013
      if knockback > 0 then
2014
        vp.Parent = hit.Parent.Head
2015
      end
2016
      game:GetService("Debris"):AddItem(vp, 0.5)
2017
    if h.Parent then
2018
	Freeze(h.Parent,3)
2019
	end
2020
    elseif Type == "Normal" then
2021
      local vp = Create("BodyVelocity")({
2022
        P = 500,
2023
        maxForce = Vector3.new(math.huge, 0, math.huge),
2024
        velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
2025
      })
2026
      if knockback > 0 then
2027
        vp.Parent = hit.Parent.Head
2028
      end
2029
      game:GetService("Debris"):AddItem(vp, 0.5)
2030
    elseif Type == "Up" then
2031
      local bodyVelocity = Create("BodyVelocity")({
2032
        velocity = Vector3.new(0, 20, 0),
2033
        P = 5000,
2034
        maxForce = Vector3.new(8000, 8000, 8000),
2035
        Parent = hit
2036
      })
2037
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
2038
      local bodyVelocity = Create("BodyVelocity")({
2039
        velocity = Vector3.new(0, 20, 0),
2040
        P = 5000,
2041
        maxForce = Vector3.new(8000, 8000, 8000),
2042
        Parent = hit
2043
      })
2044
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
2045
    elseif Type == "Leech" then
2046
      local hum = hit.Parent.Humanoid
2047
      if hum ~= nil then
2048
        for i = 0, 2 do
2049
        --  Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
2050
        end
2051
        Humanoid.Health = Humanoid.Health + 10
2052
      end
2053
    elseif Type == "UpKnock" then
2054
      local hum = hit.Parent.Humanoid
2055
      hum.PlatformStand = true
2056
      if hum ~= nil then
2057
        hitr = true
2058
      end
2059
      coroutine.resume(coroutine.create(function(HHumanoid)
2060
        swait(5)
2061
        HHumanoid.PlatformStand = false
2062
        hitr = false
2063
      end), hum)
2064
      local bodyVelocity = Create("BodyVelocity")({
2065
        velocity = Vector3.new(0, 20, 0),
2066
        P = 5000,
2067
        maxForce = Vector3.new(8000, 8000, 8000),
2068
        Parent = hit
2069
      })
2070
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
2071
      local bodyVelocity = Create("BodyVelocity")({
2072
        velocity = Vector3.new(0, 20, 0),
2073
        P = 5000,
2074
        maxForce = Vector3.new(8000, 8000, 8000),
2075
        Parent = hit
2076
      })
2077
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
2078
    elseif Type == "Snare" then
2079
      local bp = Create("BodyPosition")({
2080
        P = 2000,
2081
        D = 100,
2082
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
2083
        position = hit.Parent.Torso.Position,
2084
        Parent = hit.Parent.Torso
2085
      })
2086
      game:GetService("Debris"):AddItem(bp, 1)
2087
    elseif Type == "Slashnare" then
2088
    --  Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
2089
      for i = 1, math.random(4, 5) do
2090
     -- Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
2091
      end
2092
      local bp = Create("BodyPosition")({
2093
        P = 2000,
2094
        D = 100,
2095
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
2096
        position = hit.Parent.Torso.Position,
2097
        Parent = hit.Parent.Torso
2098
      })
2099
      game:GetService("Debris"):AddItem(bp, 1)
2100
    elseif Type == "Spike" then
2101
     -- CreateBigIceSword(hit.Parent.Torso.CFrame)
2102
      local bp = Create("BodyPosition")({
2103
        P = 2000,
2104
        D = 100,
2105
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
2106
        position = hit.Parent.Torso.Position,
2107
        Parent = hit.Parent.Torso
2108
      })
2109
      game:GetService("Debris"):AddItem(bp, 1)
2110
    elseif Type == "Freeze" then
2111
      local BodPos = Create("BodyPosition")({
2112
        P = 50000,
2113
        D = 1000,
2114
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
2115
        position = hit.Parent.Torso.Position,
2116
        Parent = hit.Parent.Torso
2117
      })
2118
      local BodGy = Create("BodyGyro")({
2119
        maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
2120
        P = 20000,
2121
        Parent = hit.Parent.Torso,
2122
        cframe = hit.Parent.Torso.CFrame
2123
      })
2124
      hit.Parent.Torso.Anchored = true
2125
      coroutine.resume(coroutine.create(function(Part)
2126
        swait(1.5)
2127
        Part.Anchored = false
2128
      end), hit.Parent.Torso)
2129
      game:GetService("Debris"):AddItem(BodPos, 3)
2130
      game:GetService("Debris"):AddItem(BodGy, 3)
2131
    end
2132
    local debounce = Create("BoolValue")({
2133
      Name = "DebounceHit",
2134
      Parent = hit.Parent,
2135
      Value = true
2136
    })
2137
    game:GetService("Debris"):AddItem(debounce, Delay)
2138
    c = Instance.new("ObjectValue")
2139
    c.Name = "creator"
2140
    c.Value = Player
2141
    c.Parent = h
2142
    game:GetService("Debris"):AddItem(c, 0.5)
2143
  end
2144
end
2145
function RemoveOutlines(part)
2146
  part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
2147
end
2148
2149
function CrystalEffect(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,outerpos)
2150
local type = type
2151
local rng = CrystalEff:Clone()
2152
		rng.Parent = char
2153
        rng.Anchored = true
2154
        rng.CanCollide = false
2155
        rng.Name = "Ring"
2156
        rng.Material = "Neon"
2157
        rng.Size = Vector3.new(x1, y1, z1)
2158
        rng.Transparency = 0.25
2159
        rng.TopSurface = 0
2160
        rng.BottomSurface = 0
2161
        rng.CFrame = pos
2162
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
2163
local scaler2 = 1
2164
local speeder = FastSpeed
2165
if type == "Add" then
2166
scaler2 = 1*value
2167
elseif type == "Divide" then
2168
scaler2 = 1/value
2169
end
2170
coroutine.resume(coroutine.create(function()
2171
for i = 0,10/bonuspeed,0.1 do
2172
swait()
2173
if type == "Add" then
2174
scaler2 = scaler2 - 0.01*value/bonuspeed
2175
elseif type == "Divide" then
2176
scaler2 = scaler2 - 0.01/value*bonuspeed
2177
end
2178
speeder = speeder - 0.01*FastSpeed*bonuspeed
2179
rng.CFrame = rng.CFrame + Vector3.new(0,0.05,0)
2180
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2181
end
2182
rng:Destroy()
2183
end))
2184
end
2185
2186
2187
2188
function TriangleEffect(bonuspeed,FastSpeed,type,pos,value,outerpos)
2189
local type = type
2190
local rng = Triangle2:Clone()
2191
		rng.Parent = char
2192
        rng.Anchored = true
2193
        rng.CanCollide = false
2194
        rng.Name = "Ring"
2195
        rng.Material = "Neon"
2196
        rng.Transparency = 0.32
2197
        rng.TopSurface = 0
2198
        rng.BottomSurface = 0
2199
        rng.CFrame = pos
2200
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
2201
local scaler2 = 1
2202
local speeder = FastSpeed
2203
if type == "Add" then
2204
scaler2 = 1*value
2205
elseif type == "Divide" then
2206
scaler2 = 1/value
2207
end
2208
coroutine.resume(coroutine.create(function()
2209
for i = 0,10/bonuspeed,0.1 do
2210
swait()
2211
if type == "Add" then
2212
scaler2 = scaler2 - 0.01*value/bonuspeed
2213
elseif type == "Divide" then
2214
scaler2 = scaler2 - 0.01/value*bonuspeed
2215
end
2216
speeder = speeder - 0.01*FastSpeed*bonuspeed
2217
rng.CFrame = rng.CFrame + Vector3.new(0,0.05,0)
2218
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2219
end
2220
rng:Destroy()
2221
end))
2222
end
2223
2224
function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
2225
  local Part = Create("Part")({
2226
    Parent = Parent,
2227
    Reflectance = Reflectance,
2228
    Transparency = Transparency,
2229
    CanCollide = false,
2230
    Locked = true,
2231
    BrickColor = BrickColor.new(tostring(BColor)),
2232
    Name = Name,
2233
    Size = Size,
2234
    Material = Material
2235
  })
2236
  Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
2237
  RemoveOutlines(Part)
2238
  return Part
2239
end
2240
function ShowDamage(Pos, Text, Time, Color)
2241
coroutine.resume(coroutine.create(function()
2242
  local Rate = 0.03333333333333333
2243
  local Pos = Pos or Vector3.new(0, 0, 0)
2244
  local Text = Text or ""
2245
  local Color = Color or Color3.new(1, 0, 1)
2246
  local EffectPart = CreatePart(Character, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
2247
  EffectPart.Anchored = true
2248
  EffectPart.CFrame = CFrame.new(Pos)
2249
  local BillboardGui = Create("BillboardGui")({
2250
    Size = UDim2.new(6, 0, 6, 0),
2251
    Adornee = EffectPart,
2252
    Parent = EffectPart,
2253
	AlwaysOnTop=true,
2254
	Active=true
2255
  })
2256
  local TextLabel = Create("TextLabel")({
2257
    BackgroundTransparency = 1,
2258
	AnchorPoint=Vector2.new(.5,.5),
2259
    Position = UDim2.new(.5, 0, .5, 0),
2260
    Size = UDim2.new(1, 0, 1, 0),
2261
    Text = Text,
2262
    TextColor3 = MAINCOLOR.Color,
2263
   	TextStrokeColor3 = Color3.new(0,0,0),
2264
	TextStrokeTransparency=0,
2265
    TextScaled = true,
2266
    Font = "Arcade",
2267
    Parent = BillboardGui,
2268
	ZIndex=4,
2269
  })
2270
local raise=.2
2271
local rot=math.random(-10,10)/15
2272
local aaa=math.random(-360,360)
2273
local bbb=math.random(-360,360)
2274
for aaa=0,2,.01 do
2275
swait()
2276
raise=raise-.008
2277
if Mode == "R" then
2278
	TextLabel.TextColor3 = C3(r/255,g/255,b/255)
2279
end
2280
TextLabel.Rotation = TextLabel.Rotation+rot
2281
TextLabel.TextTransparency=aaa
2282
TextLabel.TextStrokeTransparency=aaa
2283
EffectPart.Position=EffectPart.Position+Vector3.new(0,raise,0)
2284
end
2285
wait(3)
2286
BillboardGui:Remove()
2287
EffectPart:Remove()
2288
end))
2289
end
2290
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
2291
  for _, c in pairs(workspace:children()) do
2292
    local hum = c:findFirstChildOfClass("Humanoid")
2293
    if hum ~= nil then
2294
      local head = c:findFirstChild("Head")
2295
      if head ~= nil then
2296
        local targ = head.Position - Part.Position
2297
        local mag = targ.magnitude
2298
        if magni >= mag and c.Name ~= Player.Name then
2299
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
2300
        end
2301
      end
2302
    end
2303
  end
2304
end
2305
2306
function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
2307
  for _, c in pairs(workspace:children()) do
2308
    local hum = c:findFirstChild("Humanoid")
2309
    if hum ~= nil then
2310
      local head = c:findFirstChild("Torso")
2311
      if head ~= nil then
2312
        local targ = head.Position - Part.Position
2313
        local mag = targ.magnitude
2314
        if magni >= mag and c.Name ~= Player.Name then
2315
	--MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
2316
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
2317
        end
2318
      end
2319
    end
2320
  end
2321
end
2322
function FindNearestTorso(pos,distance)
2323
local list=(workspace:children())
2324
local torso=nil
2325
local dist=distance
2326
local temp,human,temp2=nil,nil,nil
2327
for x=1,#list do
2328
temp2=list[x]
2329
if temp2.className=="Model"and temp2.Name~=char.Name then
2330
temp=temp2:findFirstChild("Torso")
2331
human=temp2:findFirstChildOfClass("Humanoid")
2332
if temp~=nil and human~=nil and human.Health>=0 and (temp.Position-pos).magnitude<dist then
2333
local dohit=true
2334
if dohit==true then
2335
torso=temp
2336
dist=(temp.Position-pos).magnitude
2337
end
2338
end
2339
end
2340
end
2341
return torso,dist
2342
end
2343
2344
function LunarAttack()
2345
attacking = true
2346
Speed = 0
2347
CFuncs["Sound"].Create("rbxassetid://1368583274", larm, 4.5, 1.625)
2348
local OverCut = false
2349
for i = 0, 4, 0.1 do
2350
swait()
2351
MagniDamage(Torso, 13, 2,6, 0, "Normal",153092213)
2352
--slash(math.random(10,30)/10,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.001,0.1),math.random(50,400)/420,BrickColor.new("White"))
2353
slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
2354
slash(math.random(20,40)/10,5,true,"Round","Add","Out",rarm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.025,0.001,0.025),-0.025,BrickColor.new("White"))
2355
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
2356
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(30),math.rad(3)),.3)
2357
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
2358
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15),math.rad(5),math.rad(-50)),.3)
2359
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-170),math.rad(-10),math.rad(0)),.3)
2360
LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(20),math.rad(40),math.rad(-20)),.3)
2361
end
2362
local orb = basketball:Clone()
2363
orb.Parent = Character
2364
orb.Name = "basketball"
2365
orb.Torso.CFrame = root.CFrame*CFrame.new(0,7,0)--50,0)
2366
local x = orb.Torso
2367
local keptcolor = MAINCOLOR
2368
local poste = 0
2369
local rotation = 0
2370
local upperpos = 0
2371
local rate = 0
2372
for i,v in pairs(orb:GetChildren()) do
2373
	if v:IsA("BasePart") then
2374
v.Anchored = true
2375
v.CanCollide = false
2376
v.Transparency = 0
2377
end
2378
end
2379
OverCut = true
2380
for i = 0, 6 do
2381
--slash(math.random(10,30)/10,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.001,0.1),math.random(50,400)/420,BrickColor.new("White"))
2382
end
2383
--sphere2(2,"Add",x.CFrame,vt(10,10,10),0.5,0.5,0.5,BrickColor.new("Bright yellow"),BrickColor.new("Bright yellow").Color)
2384
--sphere2(3,"Add",x.CFrame,vt(10,10,10),0.75,0.75,0.75,BrickColor.new("Bright yellow"),BrickColor.new("Bright yellow").Color)
2385
--sphere2(4,"Add",x.CFrame,vt(10,10,10),1,1,1,BrickColor.new("Bright yellow"),BrickColor.new("Bright yellow").Color)
2386
CFuncs["Sound"].Create("rbxassetid://1368637781", orb, 7.5, 1)
2387
local a = Instance.new("Part",workspace)
2388
a.Name = "Direction"	
2389
a.Anchored = true
2390
a.Transparency = 1
2391
a.CanCollide = false
2392
local ray = Ray.new(
2393
x.CFrame.p,                           -- origin
2394
(mouse.Hit.p - x.CFrame.p).unit * 500 -- direction
2395
) 
2396
local ignore = x
2397
local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2398
a.BottomSurface = 10
2399
a.TopSurface = 10
2400
local distance = (x.CFrame.p - position).magnitude
2401
a.Size = Vector3.new(0.1, 0.1, 0.1)
2402
a.CFrame = CFrame.new(x.CFrame.p, position) * CFrame.new(0, 0, 0)
2403
x.CFrame = a.CFrame
2404
for i = 0, 2, 0.1 do
2405
swait()
2406
--sphere2(5,"Add",x.CFrame*CFrame.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)),vt(1,1,1),0.01,0.01,0.01,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
2407
ray = Ray.new(
2408
x.CFrame.p,                           -- origin
2409
(mouse.Hit.p - x.CFrame.p).unit * 500 -- direction
2410
) 
2411
hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2412
distance = (x.CFrame.p - position).magnitude
2413
a.CFrame = CFrame.new(x.CFrame.p, position) * CFrame.new(0, 0, 0)
2414
x.CFrame = a.CFrame
2415
--slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
2416
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
2417
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(40),math.rad(3)),.3)
2418
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
2419
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(-60)),.3)
2420
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-100),math.rad(-0),math.rad(110)),.3)
2421
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(1),math.rad(11),math.rad(12)),.3)
2422
end
2423
swait(30)
2424
x.CFrame = a.CFrame
2425
for i,v in pairs(orb:GetChildren()) do
2426
	if v:IsA("BasePart") then
2427
v.Anchored = false
2428
end
2429
end
2430
a:Destroy()
2431
local bv = Instance.new("BodyVelocity")
2432
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2433
bv.velocity = x.CFrame.lookVector*100
2434
bv.Parent = x
2435
local hitted = false
2436
CFuncs["Sound"].Create("rbxassetid://466493476", orb, 7.5, 0.7)
2437
x.CFrame = x.CFrame * CFrame.Angles(0,math.rad(360*math.cos(sne/6)),0)
2438
--waveEff(2,"Add","Out",x.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(5,1,5),0.5,0.1,BrickColor.new("Bright yellow"))
2439
--waveEff(4,"Add","Out",x.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(5,1,5),0.5,0.05,BrickColor.new("Bright blue"))
2440
coroutine.resume(coroutine.create(function()
2441
while true do
2442
swait(2)
2443
if hitted == false and x.Parent ~= nil then
2444
	MagniDamage(x, 5, 3,6, 0, "Normal",153092213)
2445
	--orb.CFrame = orb.CFrame * CFrame.Angles(math.rad(360*math.cos(sne/6)),0,0)
2446
--slash(3,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.075,0.005,0.075),-0.05,BrickColor.new("White"))
2447
elseif hitted == true and x.Parent == nil then
2448
break
2449
end
2450
end
2451
end))
2452
--[[x.Touched:connect(function(hit) 
2453
if hitted == false and hit.Parent ~= char then
2454
hitted = true
2455
MagniDamage(x, 67, 23,32, 0, "Normal",153092213)
2456
CFuncs["Sound"].Create("rbxassetid://763717897", x, 10, 1)
2457
CFuncs["Sound"].Create("rbxassetid://1295446488", x, 9, 0.75)
2458
for i = 0, 24 do
2459
slash(math.random(15,30)/10,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.001,0.01),math.random(125,250)/350,BrickColor.new("White"))
2460
end
2461
slash(1,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.01,0.015,0.01),2.5,BrickColor.new("White"))
2462
slash(1,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.01,0.01,0.01),3,BrickColor.new("White"))
2463
sphere2(1,"Add",x.CFrame,vt(15,15,15),2,2,2,BrickColor.new("New Yeller"),BrickColor.new("New Yeller").Color)
2464
sphere2(1.5,"Add",x.CFrame,vt(15,10,15),2.1,2.1,2.1,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
2465
sphere2(2,"Add",x.CFrame,vt(15,15,15),2.2,2.2,2.2,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
2466
for i,v in pairs(orb:GetChildren()) do
2467
	if v:IsA("BasePart") then
2468
v.Anchored = true
2469
v.Transparency = 1
2470
end
2471
end
2472
coroutine.resume(coroutine.create(function()
2473
for i = 0, 4, 0.1 do
2474
swait()
2475
--slash(math.random(10,50)/10,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(90 + math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.015,0.01),1.5,BrickColor.new("Bright blue"))
2476
end
2477
end))
2478
wait(10)
2479
orb:Remove()()
2480
end
2481
end)]]--
2482
game:GetService("Debris"):AddItem(orb, 20)
2483
for i = 0, 1, 0.1 do
2484
swait()
2485
slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
2486
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
2487
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(30),math.rad(3)),.3)
2488
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.4,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
2489
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(70)),.3)
2490
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-13),math.rad(-40),math.rad(20)),.3)
2491
LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-80)),.3)
2492
end
2493
attacking = false
2494
Speed = 43
2495
end
2496
2497
function LunarAttackA()
2498
attacking = true
2499
Speed = 0
2500
CFuncs["Sound"].Create("rbxassetid://1368583274", larm, 4.5, 1.2)
2501
local OverCut = false
2502
for i = 0, 10, 0.1 do
2503
swait()
2504
MagniDamage(Torso, 12, 2,5, 0, "Normal",153092213)
2505
slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
2506
slash(math.random(20,40)/10,5,true,"Round","Add","Out",rarm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.025,0.001,0.025),-0.025,BrickColor.new("White"))
2507
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
2508
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(30),math.rad(3)),.3)
2509
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
2510
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15),math.rad(5),math.rad(-50)),.3)
2511
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-170),math.rad(-10),math.rad(0)),.3)
2512
LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(20),math.rad(40),math.rad(-20)),.3)
2513
end
2514
OverCut = true
2515
local orb = MoonEffect:Clone()
2516
orb.Anchored = true
2517
orb.Parent = Character
2518
orb.CanCollide = false
2519
orb.Name = "Orbieee"
2520
orb.CFrame = root.CFrame*CFrame.new(0,50,0)
2521
for i = 0, 24 do
2522
slash(math.random(10,30)/10,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.001,0.1),math.random(50,400)/420,BrickColor.new("White"))
2523
end
2524
sphere2(2,"Add",orb.CFrame,vt(10,10,10),0.5,0.5,0.5,BrickColor.new("Bright yellow"),BrickColor.new("Bright yellow").Color)
2525
sphere2(3,"Add",orb.CFrame,vt(10,10,10),0.75,0.75,0.75,BrickColor.new("Bright yellow"),BrickColor.new("Bright yellow").Color)
2526
sphere2(4,"Add",orb.CFrame,vt(10,10,10),1,1,1,BrickColor.new("Bright yellow"),BrickColor.new("Bright yellow").Color)
2527
CFuncs["Sound"].Create("rbxassetid://1368637781", orb, 7.5, 1)
2528
local a = Instance.new("Part",workspace)
2529
a.Name = "Direction"	
2530
a.Anchored = true
2531
a.Transparency = 1
2532
a.CanCollide = false
2533
local ray = Ray.new(
2534
orb.CFrame.p,                           -- origin
2535
(mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
2536
) 
2537
local ignore = orb
2538
local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2539
a.BottomSurface = 10
2540
a.TopSurface = 10
2541
local distance = (orb.CFrame.p - position).magnitude
2542
a.Size = Vector3.new(0.1, 0.1, 0.1)
2543
a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
2544
orb.CFrame = a.CFrame
2545
for i = 0, 8, 0.1 do
2546
swait()
2547
sphere2(5,"Add",orb.CFrame*CFrame.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)),vt(1,1,1),0.01,0.01,0.01,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
2548
ray = Ray.new(
2549
orb.CFrame.p,                           -- origin
2550
(mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
2551
) 
2552
hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2553
distance = (orb.CFrame.p - position).magnitude
2554
a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
2555
orb.CFrame = a.CFrame
2556
slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
2557
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
2558
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(40),math.rad(3)),.3)
2559
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
2560
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(-60)),.3)
2561
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-100),math.rad(-0),math.rad(110)),.3)
2562
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(1),math.rad(11),math.rad(12)),.3)
2563
end
2564
orb.Anchored = false
2565
a:Destroy()
2566
local bv = Instance.new("BodyVelocity")
2567
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2568
bv.velocity = orb.CFrame.lookVector*150
2569
bv.Parent = orb
2570
local hitted = false
2571
CFuncs["Sound"].Create("rbxassetid://466493476", orb, 7.5, 0.7)
2572
orb.CFrame = orb.CFrame * CFrame.Angles(0,math.rad(360*math.cos(sne/6)),0)
2573
waveEff(2,"Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(5,1,5),0.5,0.1,BrickColor.new("Bright yellow"))
2574
waveEff(4,"Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(5,1,5),0.5,0.05,BrickColor.new("Bright blue"))
2575
coroutine.resume(coroutine.create(function()
2576
while true do
2577
swait(2)
2578
if hitted == false and orb.Parent ~= nil then
2579
	--orb.CFrame = orb.CFrame * CFrame.Angles(math.rad(360*math.cos(sne/6)),0,0)
2580
slash(3,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.075,0.005,0.075),-0.05,BrickColor.new("White"))
2581
elseif hitted == true and orb.Parent == nil then
2582
break
2583
end
2584
end
2585
end))
2586
orb.Touched:connect(function(hit) 
2587
if hitted == false and hit.Parent ~= char then
2588
hitted = true
2589
MagniDamage(orb, 67, 72,115, 0, "Normal",153092213)
2590
CFuncs["Sound"].Create("rbxassetid://763717897", orb, 10, 1)
2591
CFuncs["Sound"].Create("rbxassetid://1295446488", orb, 9, 0.75)
2592
for i = 0, 24 do
2593
slash(math.random(15,30)/10,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.001,0.01),math.random(125,250)/350,BrickColor.new("White"))
2594
end
2595
slash(1,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.01,0.015,0.01),2.5,BrickColor.new("White"))
2596
slash(1,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.01,0.01,0.01),3,BrickColor.new("White"))
2597
sphere2(1,"Add",orb.CFrame,vt(15,15,15),2,2,2,BrickColor.new("New Yeller"),BrickColor.new("New Yeller").Color)
2598
sphere2(1.5,"Add",orb.CFrame,vt(15,10,15),2.1,2.1,2.1,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
2599
sphere2(2,"Add",orb.CFrame,vt(15,15,15),2.2,2.2,2.2,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
2600
orb.Anchored = true
2601
orb.Transparency = 1
2602
coroutine.resume(coroutine.create(function()
2603
for i = 0, 4, 0.1 do
2604
swait()
2605
--slash(math.random(10,50)/10,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90 + math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.015,0.01),1.5,BrickColor.new("Bright blue"))
2606
end
2607
end))
2608
wait(10)
2609
orb:Destroy()
2610
end
2611
end)
2612
game:GetService("Debris"):AddItem(orb, 10)
2613
for i = 0, 2, 0.1 do
2614
swait()
2615
slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
2616
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
2617
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(30),math.rad(3)),.3)
2618
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.4,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
2619
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(70)),.3)
2620
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-13),math.rad(-40),math.rad(20)),.3)
2621
LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-80)),.3)
2622
end
2623
attacking = false
2624
Speed = 43
2625
end
2626
2627
function glitchattack()
2628
	attacking = true
2629
	local brickglitch = {BrickColor.new("Institutional white"),BrickColor.new("Really black")}
2630
local keptcolor = brickglitch[MRANDOM(1,2)]
2631
local glitchvalA = math.random(0,255)
2632
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
2633
for i = 0, 8, 0.1 do
2634
		swait()
2635
		sphereMK(3.5,-1,"Add",sorb.CFrame* CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))),0.5,0.5,10,-0.005,BrickColor.new("Institutional white"),0)	
2636
				RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 - 2 * math.cos(sne / 32))),.1)
2637
LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 + 2 * math.cos(sne / 32))),.1)
2638
RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0 + 0.02 * math.cos(sne / 32),-0.1 + 0.05 * math.cos(sne / 32))*angles(math.rad(0 - 2 * math.cos(sne / 32)),math.rad(0),math.rad(-11)),.1)
2639
Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(-2 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(10 - 2.5 * math.cos(sne / 28)),math.rad(0),math.rad(-31 + 6.5 * math.cos(sne / 32.5))),.1)
2640
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(math.random(161,176)),math.rad(-5),math.rad(15 + 7.5 * math.cos(sne / 32.5))),.1)
2641
LW.C0=clerp(LW.C0,cf(-1.5+0.05*math.cos(sne/32),0.65-.05*math.cos(sne/32),0)*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(math.random(136,159)),math.rad(5),math.rad(29 - 8.5 * math.cos(sne / 32.5))),.1)
2642
end
2643
for i = 0, 3.1, 0.1 do
2644
		swait()
2645
		sphereMK(3.5,-1,"Add",sorb.CFrame* CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))),0.5,0.5,10,-0.005,BrickColor.new("Institutional white"),0)	
2646
RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 - 2 * math.cos(sne / 32))),.1)
2647
LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 + 2 * math.cos(sne / 32))),.1)
2648
RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0 + 0.02 * math.cos(sne / 32),-0.1 + 0.05 * math.cos(sne / 32))*angles(math.rad(0 - 2 * math.cos(sne / 32)),math.rad(0),math.rad(-51)),.1)
2649
Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(-2 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(10 - 2.5 * math.cos(sne / 28)),math.rad(0),math.rad(-71 + 6.5 * math.cos(sne / 32.5))),.1)
2650
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(math.random(81,108)),math.rad(-5),math.rad(89 + 7.5 * math.cos(sne / 32.5))),.1)
2651
LW.C0=clerp(LW.C0,cf(-1.5+0.05*math.cos(sne/32),0.65-.05*math.cos(sne/32),0)*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(math.random(136,159)),math.rad(5),math.rad(29 - 8.5 * math.cos(sne / 32.5))),.1)
2652
end
2653
for i = 0, MRANDOM(18,23) do
2654
		PixelBlockNeg(1,math.random(1,3),"Add",mouse.Hit*CFrame.new(math.random(-26,26),0,math.random(-26,26))*CFrame.Angles(math.rad(90 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),5,5,5,0.1,keptcolor,-10)
2655
end
2656
for i, v in pairs(FindNearestHead(mouse.Hit.p, 36)) do
2657
if v:FindFirstChild('Head') then
2658
coroutine.resume(coroutine.create(function()
2659
CFuncs["Sound"].Create("rbxassetid://1042716828", v.Head, 5, 0.5)
2660
local vel = Instance.new("BodyPosition", v.Head)
2661
vel.P = 12500
2662
vel.D = 1000
2663
vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
2664
vel.position = v.Head.CFrame.p + vt(0,10,0)
2665
for i,v in pairs(v:GetChildren()) do
2666
if v:IsA("BasePart") or v:IsA("MeshPart") then
2667
coroutine.resume(coroutine.create(function()
2668
local bld = Instance.new("ParticleEmitter",v)
2669
bld.LightEmission = 0.75
2670
bld.Texture = "rbxassetid://363275192" ---284205403
2671
bld.Color = ColorSequence.new(Color3.new(glitchvalA,glitchvalA,glitchvalA))
2672
bld.Rate = 1
2673
bld.Lifetime = NumberRange.new(1)
2674
bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
2675
bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
2676
bld.Speed = NumberRange.new(2,5)
2677
bld.VelocitySpread = 50000
2678
bld.Rotation = NumberRange.new(-500,500)
2679
bld.RotSpeed = NumberRange.new(-500,500)
2680
end))
2681
end
2682
end
2683
local BasePlate = game.Workspace:FindFirstChild("Baseplate") or game.Workspace:FindFirstChild("Base")
2684
local A1 = Instance.new("Attachment",BasePlate)
2685
local A2 = Instance.new("Attachment",v.Head)
2686
local Beem = Instance.new("Beam",v.Head)
2687
Beem.Attachment0 = A1
2688
Beem.Attachment1 = A2
2689
Beem.LightEmission = 1
2690
Beem.FaceCamera = true
2691
Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
2692
Beem.Width0 = 1
2693
Beem.Width1 = 1
2694
Beem.Texture = "rbxassetid://1134824633"
2695
Beem.TextureMode = "Wrap"
2696
Beem.TextureLength = 2
2697
Beem.TextureSpeed = 5
2698
Beem.Color = ColorSequence.new(keptcolor.Color)
2699
wait(5)
2700
coroutine.resume(coroutine.create(function()
2701
local ref = Instance.new("Part", char)
2702
ref.Anchored = true
2703
ref.CanCollide = false
2704
ref.Transparency = 1
2705
ref.CFrame = v.Head.CFrame
2706
for i = 0, 9 do
2707
slash(math.random(10,25)/10,5,true,"Round","Add","Out",v.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.001,0.5),-1,BrickColor.new("Really black"))
2708
end
2709
v.Head.Parent:Destroy()
2710
CFuncs["Sound"].Create("rbxassetid://763718160", ref, 2, 1.1)
2711
CFuncs["Sound"].Create("rbxassetid://782353443", ref, 2, 1)
2712
CFuncs["Sound"].Create("rbxassetid://335657174", ref, 2, 1)
2713
swait(120)
2714
Beem:Remove()
2715
ref:Destroy()
2716
ref:Remove()
2717
end))
2718
end))
2719
end
2720
end
2721
CFuncs["Sound"].Create("rbxassetid://1664711478", char, 2, 1)
2722
CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
2723
CFuncs["Sound"].Create("rbxassetid://167115397", char, 1, 0.6)
2724
CFuncs["Sound"].Create("rbxassetid://782353443", char, 1, 0.9)
2725
CFuncs["Sound"].Create("rbxassetid://782353443", char, 2, 0.8)
2726
CFuncs["Sound"].Create("rbxassetid://782353443", char, 2, 0.7)
2727
	attacking = false
2728
end
2729
2730
2731
function Daash()
2732
	attacking = true
2733
	Speed = 0
2734
	for i = 0,1,0.1 do
2735
swait()
2736
RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(30)),.5)
2737
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.5)
2738
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
2739
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
2740
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
2741
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
2742
end
2743
CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
2744
CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.5)
2745
CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.8)
2746
CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
2747
for i = 0,6,0.1 do
2748
swait()
2749
root.CFrame = root.CFrame + root.CFrame.lookVector*6
2750
coroutine.resume(coroutine.create(function()
2751
local turbo4 = ToothpasteArrow:Clone()
2752
turbo4.Material = Enum.Material.Glass
2753
turbo4.Parent = char
2754
turbo4.Anchored = true
2755
turbo4.CanCollide = false
2756
turbo4.CFrame = RootPart.CFrame*cf(0,1.5,2.65)*angles(math.rad(146),math.rad(-180),math.rad(90))
2757
turbo4.Transparency = 0
2758
swait(120)
2759
repeat
2760
turbo4.Transparency = turbo4.Transparency + 0.01
2761
swait()
2762
until turbo4.Transparency == 0 or turbo4.Transparency > 0.99
2763
game:GetService("Debris"):AddItem(turbo4, 4)
2764
end))
2765
	local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Toothpaste"))
2766
CreateMesh(dis2,"Sphere",1,1,1)
2767
dis2.Anchored = true
2768
dis2.CFrame = RightArm.CFrame*CFrame.new(0,-3,0)
2769
sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
2770
coroutine.resume(coroutine.create(function()
2771
		dis2.Transparency = 1
2772
	swait(5)
2773
	dis2.Transparency = 1
2774
coroutine.resume(coroutine.create(function()
2775
local eff = Instance.new("ParticleEmitter",dis2)
2776
eff.Texture = "rbxassetid://2273224484"
2777
eff.LightEmission = 1
2778
eff.Color = ColorSequence.new(dis2.Color)
2779
eff.Rate = 4
2780
eff.Lifetime = NumberRange.new(0.5,2)
2781
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
2782
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
2783
eff.Speed = NumberRange.new(50,450)
2784
eff.Drag = 2
2785
eff.Rotation = NumberRange.new(-500,500)
2786
eff.VelocitySpread = 9000
2787
eff.RotSpeed = NumberRange.new(-50,50)
2788
local eff2 = eff:Clone()
2789
eff2.Parent = dis2
2790
eff2.LightEmission = 0
2791
eff2.Color = ColorSequence.new(dis2.Color)
2792
wait(0.25)
2793
eff.Enabled = false
2794
eff2.Enabled = false
2795
end))
2796
--	CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
2797
--	CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
2798
--	CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
2799
end))
2800
for i, v in pairs(FindNearestHead(Torso.CFrame.p, 5)) do
2801
if v:FindFirstChild('Head') then
2802
dmg(v)
2803
end
2804
end
2805
game:GetService("Debris"):AddItem(dis2, 4.5)
2806
waveEff(5,"Add","In",RightLeg.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),vt(5,0.25,1),-0.075,0.05,BrickColor.new("White"))
2807
waveEff(5,"Add","In",LeftLeg.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),vt(5,0.25,1),-0.075,0.05,BrickColor.new("White"))
2808
RH.C0=clerp(RH.C0,cf(1,-0.28,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(40)),.5)
2809
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(10)),.5)
2810
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*angles(math.rad(40),math.rad(0),math.rad(70)),.5)
2811
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-70)),.5)
2812
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(20),math.rad(-1),math.rad(30)),.5)
2813
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-60)),.5)
2814
end
2815
	Speed = 67
2816
	attacking = false
2817
end
2818
2819
function SolarAttack()
2820
	attacking = true
2821
	Speed = 0
2822
	local keptcolor = MAINCOLOR
2823
	CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.8)
2824
CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.76)
2825
	for i = 0,10.6,0.1 do
2826
swait()
2827
PixelBlockX(5,0.5,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.01,MAINCOLOR,0)
2828
sphere2(5,"Add",larm.CFrame*CFrame.new(math.random(-0.5,0.5),-0.9 + math.random(-0.5,0.5),math.random(-0.5,0.5)),vt(0.45,0.45,0.45),0.01,0.01,0.01,BrickColor.new("Deep orange"),BrickColor.new("Deep orange").Color)
2829
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
2830
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
2831
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sne / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
2832
LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
2833
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.2)
2834
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(20),math.rad(5)),.2)
2835
	end
2836
	for i = 0, 4 do
2837
slash(math.random(10,50)/10,3,true,"Round","Add","Out",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.0025,0.01),math.random(15,50)/3000,BrickColor.new("White"))
2838
end
2839
block(1,"Add",larm.CFrame*CFrame.new(0,-1,0),vt(0,0,0),0.05,0.05,0.05,keptcolor,keptcolor.Color)
2840
	CFuncs["EchoSound"].Create("rbxassetid://675172759", root, 10, 0.8,0,10,0.15,0.5,1)
2841
CFuncs["EchoSound"].Create("rbxassetid://763717897", root, 7.5, 1.1,0,10,0.15,0.5,1)
2842
CFuncs["EchoSound"].Create("rbxassetid://675172759", root, 5, 0.7,0,10,0.15,0.5,1)
2843
	sphere(1,"Add",mouse.Hit*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(3,100000,3),0.6,BrickColor.new("Deep orange"))
2844
sphere(1,"Add",mouse.Hit,vt(2,2,2),1.6,BrickColor.new("Deep orange"))
2845
for i = 0, 49 do
2846
--PixelBlockX(1,math.random(1,20),"Add",mouse.Hit*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),8,8,8,0.16,BrickColor.new("Deep orange"),0)
2847
sphereMK(2.5,-1,"Add",mouse.Hit*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,BrickColor.new("Deep orange"),0)
2848
--slash(math.random(10,20)/10,5,true,"Round","Add","Out",mouse.Hit*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-30, 30)), math.rad(math.random(-30, 30)), math.rad(math.random(-40, 40))),vt(0.05,0.01,0.05),math.random(50,60)/250,BrickColor.new("Deep orange"))
2849
end
2850
for i, v in pairs(FindNearestHead(mouse.Hit.p, 25)) do
2851
if v:FindFirstChild('Head') then
2852
dmg(v)
2853
end
2854
end
2855
	Speed = 36
2856
	attacking = false
2857
end
2858
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
2859
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
2860
end
2861
2862
2863
2864
2865
function NuclearExtended()
2866
attacking = true
2867
Speed = 0
2868
CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
2869
CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
2870
local keptcolor = MAINCOLOR
2871
for i = 0,4.3,0.1 do
2872
swait()
2873
sphere2(6,"Add",RightLeg.CFrame*CFrame.new(math.random(-0.5,0.5),-1.3 + math.random(-0.5,0.5),math.random(-0.5,0.5)),vt(0.45,0.45,0.45),0.01,0.01,0.01,MAINCOLOR,MAINCOLOR.Color)
2874
RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5),math.rad(-20)),.1)
2875
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
2876
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
2877
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
2878
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
2879
LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
2880
end
2881
CFuncs["Sound"].Create("rbxassetid://763717897", char, 2, 1)
2882
CFuncs["Sound"].Create("rbxassetid://763717897", char, 2, 0.75)
2883
CFuncs["Sound"].Create("rbxassetid://763717897", char, 2, 0.5)
2884
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1,0.5)
2885
CFuncs["Sound"].Create("rbxassetid://1664711478", char, 1.5,1)
2886
CFuncs["Sound"].Create("rbxassetid://763718160", char, 2, 0.75)
2887
for i, v in pairs(FindNearestHead(Torso.CFrame.p, 7)) do
2888
if v:FindFirstChild('Head') then
2889
dmg(v)
2890
end
2891
end
2892
2893
for i = 0,5.5,0.1 do
2894
swait()
2895
for i, v in pairs(FindNearestHead(Torso.CFrame.p, 56)) do
2896
if v:FindFirstChild('Head') then
2897
dmg(v)
2898
end
2899
end
2900
sphere2(1.5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(32,0.061111111,32),0.8,-0.000000000000002,0.8,BrickColor.new("Lime green"),Color3.new(0,1,0))
2901
RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(10)),.8)
2902
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(10)),.8)
2903
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
2904
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
2905
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
2906
LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
2907
end
2908
attacking = false
2909
Speed = 32
2910
end
2911
2912
 
2913
function negromancingnigrafyer9000(bitchasslilnigga)  
2914
	    bitchasslilnigga:BreakJoints()
2915
    for _, c in pairs(bitchasslilnigga:GetDescendants()) do
2916
        if c:IsA("BasePart") and c.Transparency == 0 then
2917
            c:BreakJoints()
2918
            c.Material = "Neon"
2919
            c.Color = BRICKC("Lime green").Color
2920
            c.CanCollide = true
2921
            c.Transparency = 0
2922
            if c:FindFirstChildOfClass("SpecialMesh") then
2923
                c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
2924
            end
2925
            if c.Name == "Head" then
2926
                c:ClearAllChildren()
2927
                c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
2928
            end
2929
            if c.ClassName == "MeshPart" then
2930
                c.TextureID = ""
2931
            end
2932
            if c:FindFirstChildOfClass("BodyPosition") then
2933
                c:FindFirstChildOfClass("BodyPosition"):remove()
2934
            end
2935
            if c:FindFirstChildOfClass("ParticleEmitter") then
2936
                c:FindFirstChildOfClass("ParticleEmitter"):remove()
2937
            end
2938
            c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
2939
            c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
2940
        end
2941
    end
2942
end
2943
2944
function NuclearGrab()
2945
attacking = true
2946
Speed = 16
2947
local yourdeadnoob=nil 
2948
for i = 0,1.15,0.1 do
2949
swait()
2950
		if math.random(1,3) == 1 then
2951
		PixelBlockX(7,0.5,"Add",rarm.CFrame*CFrame.new(0,-1.35,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.01,MAINCOLOR,0)
2952
end
2953
sphere2(6,"Add",rarm.CFrame*CFrame.new(math.random(-0.5,0.5),-1.35 + math.random(-0.5,0.5),math.random(-0.5,0.5)),vt(0.45,0.45,0.45),0.01,0.01,0.01,MAINCOLOR,MAINCOLOR.Color)
2954
RH.C0=clerp(RH.C0,cf(1,-1,-0.15)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(1)),.8)
2955
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(1)),.8)
2956
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(-52)),.8)
2957
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(52)),.8)
2958
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(87),math.rad(-2),math.rad(12)),.8)
2959
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-5),math.rad(2),math.rad(-8)),.8)
2960
end
2961
for i = 0,1.35,0.1 do
2962
swait()
2963
local BOI = FindNearestTorso(RightArm.Position,6)
2964
if BOI ~= nil and yourdeadnoob == nil then
2965
yourdeadnoob = BOI
2966
CFuncs["Sound"].Create("rbxassetid://200632875", BOI, 3, 1)
2967
end
2968
if yourdeadnoob ~=nil then
2969
yourdeadnoob.CFrame=RightArm.CFrame*CFrame.new(0,-1.3,0)*CFrame.Angles(-math.rad(90),math.rad(0),math.rad(0))
2970
end
2971
		if math.random(1,3) == 1 then
2972
		PixelBlockX(7,0.5,"Add",rarm.CFrame*CFrame.new(0,-1.35,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.01,MAINCOLOR,0)
2973
end
2974
sphere2(6,"Add",rarm.CFrame*CFrame.new(math.random(-0.5,0.5),-1.35 + math.random(-0.5,0.5),math.random(-0.5,0.5)),vt(0.45,0.45,0.45),0.01,0.01,0.01,MAINCOLOR,MAINCOLOR.Color)
2975
RH.C0=clerp(RH.C0,cf(1,-1,-0.15)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(1)),.8)
2976
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(1)),.8)
2977
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(32)),.8)
2978
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-32)),.8)
2979
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(87),math.rad(-2),math.rad(-2)),.8)
2980
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-5),math.rad(2),math.rad(-8)),.8)
2981
end
2982
if yourdeadnoob~=nil and yourdeadnoob.Parent~=nil then
2983
	CFuncs["Sound"].Create("rbxassetid://199145534", yourdeadnoob, 8.21, 1.3)
2984
		CFuncs["Sound"].Create("rbxassetid://206082327", yourdeadnoob, 7.12, .9)
2985
			for i = 0, math.random(18,32) do
2986
		sphereMK(2.5,-1,"Add",yourdeadnoob.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.9,1.9,25,-0.025,BrickColor.new("Lime green"),0)
2987
		end
2988
negromancingnigrafyer9000(yourdeadnoob.Parent)
2989
end
2990
attacking = false
2991
Speed = 32
2992
end
2993
2994
function NuclearTeleport()
2995
attacking = true
2996
Speed = 0
2997
local yourdeadnoob=nil 
2998
for i = 0,5,0.1 do
2999
swait()
3000
sphere2(1.5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,0.5,1),0.1,0.01,0.1,BrickColor.new("Lime green"),Color3.new(0,1,0))
3001
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
3002
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
3003
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
3004
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(35 - 2 * math.cos(sine / 37)),math.rad(0),math.rad(0)),.3)
3005
RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-80 + 2 * math.cos(sine / 45))),.3)
3006
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(80 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(71 - 4 * math.cos(sine / 45))),.3)
3007
end
3008
    RootPart.Anchored = true
3009
			for i = 0, 32 do
3010
sphere2(1.5,"Add",mouse.Hit*CFrame.new(0,-3,0),vt(1,0.5,1),0.1,0.01,0.1,BrickColor.new("Lime green"),Color3.new(0,1,0))
3011
end
3012
for i = 0,3,0.1 do
3013
swait()
3014
sphere2(1.5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,0.5,1),0.1,0.01,0.1,BrickColor.new("Lime green"),Color3.new(0,1,0))
3015
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
3016
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
3017
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-30 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
3018
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(35 - 2 * math.cos(sine / 37)),math.rad(0),math.rad(0)),.3)
3019
RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-80 + 2 * math.cos(sine / 45))),.3)
3020
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(80 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(71 - 4 * math.cos(sine / 45))),.3)
3021
end
3022
			for i = 0, 32 do
3023
sphere2(1.5,"Add",mouse.Hit*CFrame.new(0,-3,0),vt(1,0.5,1),0.1,0.01,0.1,BrickColor.new("Lime green"),Color3.new(0,1,0))
3024
end
3025
local AEEEEEEEEE = RootPart.Position
3026
 RootPart.CFrame = CF(CF(mouse.Hit.p) * CF(0, 2.8, 0).p, AEEEEEEEEE)
3027
for i = 0,5,0.1 do
3028
swait()
3029
sphere2(1.5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,0.5,1),0.1,0.01,0.1,BrickColor.new("Lime green"),Color3.new(0,1,0))
3030
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
3031
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
3032
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
3033
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(35 - 2 * math.cos(sine / 37)),math.rad(0),math.rad(0)),.3)
3034
RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-80 + 2 * math.cos(sine / 45))),.3)
3035
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(80 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(71 - 4 * math.cos(sine / 45))),.3)
3036
end
3037
RootPart.Anchored = false
3038
attacking = false
3039
Speed = 32
3040
end
3041
3042
 
3043
 
3044
3045
function kaboom()
3046
attacking = true
3047
--gale's typhoon move bootleg lol
3048
for i = 0,2,0.1 do
3049
MagicBlock(BrickColor.new("Institutional white"),sorb2.CFrame,1,1,1,0.1,0.1,0.1,0.25)
3050
		swait()
3051
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.2)
3052
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.2)
3053
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
3054
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
3055
	end
3056
3057
local a = Instance.new("Part",Character)
3058
	a.Name = "Direction"	
3059
	a.Anchored = true
3060
	a.BrickColor = BRICKC("Bright red")
3061
a.Material = "Neon"
3062
a.Transparency = 1
3063
	a.CanCollide = false
3064
	local ray = Ray.new(
3065
	    sorb2.CFrame.p,                           -- origin
3066
	    (mouse.Hit.p - sorb2.CFrame.p).unit * 500 -- direction
3067
	) 
3068
	local ignore = Character
3069
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3070
	a.BottomSurface = 10
3071
	a.TopSurface = 10
3072
	local distance = (root.CFrame.p - position).magnitude
3073
	a.Size = Vector3.new(0.1, 0.1, 0.1)
3074
	a.CFrame = CFrame.new(sorb2.CFrame.p, position) * CFrame.new(0, 0, 0)
3075
				 local lb = Instance.new("Part")
3076
				CFuncs["Sound"].Create("rbxassetid://260433721", lb, 1, 1)
3077
  lb.Parent = char
3078
    lb.BrickColor = BrickColor.new("Pastel green")
3079
     lb.CanCollide = false
3080
lb.Material = "Neon"
3081
     lb.Anchored = true
3082
lb.TopSurface = 0
3083
        lb.BottomSurface = 0
3084
     lb.Transparency = 1
3085
     lb.Size = vt(8,8,8)
3086
     lb.CFrame = a.CFrame
3087
lb.Anchored = false
3088
--game:GetService("Debris"):AddItem(lb, 6)
3089
  local bv = Instance.new("BodyVelocity")
3090
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
3091
  bv.velocity = a.CFrame.lookVector*46
3092
  bv.Parent = lb
3093
local hitted = false
3094
game:GetService("Debris"):AddItem(a, 0.1)
3095
coroutine.resume(coroutine.create(function()
3096
while wait(0.025) do
3097
if hitted == false or lb.Parent ~= nil then
3098
	MagicBlock(BrickColor.new("Institutional white"),lb.CFrame,4,4,4,1.9,1.9,1.9,0.25)
3099
	MagicBlock(BrickColor.new("White"),lb.CFrame,2,2,2,1.45,1.45,1.45,0.25)
3100
	wind("Divide",lb.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),Vector3.new(1,1,1),math.random(1,2),5,true)
3101
if hitted == true or lb.Parent == nil then
3102
break
3103
end
3104
end
3105
end
3106
end))
3107
wait(0.01)
3108
--game:GetService("Debris"):AddItem(lb, 7)
3109
lb.Touched:connect(function(hit) 
3110
MagniDamage(lb, 31, 12,32, 0, "Normal")
3111
end)
3112
3113
attacking = false
3114
wait(7)
3115
lb:Remove()
3116
end
3117
3118
3119
function spinnyboi()
3120
	attacking = true
3121
	for i = 0,1,0.1 do
3122
		swait()
3123
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
3124
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1)
3125
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(90)), 0.1)
3126
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-90)), 0.1)
3127
	end
3128
CFuncs["Sound"].Create("rbxassetid://138079095", root, 0.5, 0.4)
3129
CFuncs["Sound"].Create("rbxassetid://154723542", root, 1.5, 1.15)
3130
coroutine.resume(coroutine.create(function()
3131
	CFuncs["Sound"].Create("rbxassetid://588698460", root, 4.4, 1.5)
3132
CFuncs["Sound"].Create("rbxassetid://588694531", root,4.4, 1.3)
3133
sphere2(18.5,"Add",LeftArm.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,2,2),1,1,1,BrickColor.new("Pastel green"),BrickColor.new("Pastel green").Color)
3134
sphere2(18.5,"Add",RightArm.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,2,2),1,1,1,BrickColor.new("Pastel green"),BrickColor.new("Pastel green").Color)
3135
for i = 0, 2 do
3136
wait(0.05)
3137
MagniDamage(root, 32, 12,42, 0, "Normal")
3138
wind("Divide",root.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),Vector3.new(2,2,2),0.8,26,false)
3139
end
3140
MagniDamage(root, 32, 12,42, 0, "Normal")
3141
end))
3142
	for i = 0,1.9,0.5 do
3143
		swait()
3144
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.5)
3145
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
3146
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
3147
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
3148
	end
3149
	for i = 0,1.9,0.5 do
3150
		swait()
3151
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(180)),0.5)
3152
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
3153
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
3154
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
3155
	end
3156
	for i = 0,1.9,0.5 do
3157
		swait()
3158
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(270)),0.5)
3159
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
3160
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
3161
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
3162
	end
3163
	for i = 0,1.9,0.5 do
3164
		swait()
3165
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(360)),0.5)
3166
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
3167
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
3168
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
3169
	end
3170
	attacking = false
3171
end
3172
3173
function AAAA()
3174
	attacking=true
3175
	for i = 0,3,0.1 do
3176
		swait()
3177
		RH.C0=clerp(RH.C0,cf(1,-.5,-.5)*angles(math.rad(-35),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),.2)
3178
		LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),.2)
3179
		RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(-15),0,math.rad(0)),.2)
3180
		Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-12),0,math.rad(-0)),.2)
3181
		RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(115),0,math.rad(-25)),.2)
3182
		LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(115),0,math.rad(25)),.2)
3183
	end
3184
	CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
3185
	CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
3186
	for i = 0,.5,0.1 do
3187
		swait()
3188
		RH.C0=clerp(RH.C0,cf(1,-1,-.5)*angles(math.rad(25),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),.6)
3189
		LH.C0=clerp(LH.C0,cf(-1,-1.1,0)*angles(math.rad(-5),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
3190
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-.2,0)*angles(math.rad(25),0,0),.6)
3191
		Torso.Neck.C0=clerp(Torso.Neck.C0,necko,.4)
3192
		RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-45),0,math.rad(25)),.4)
3193
		LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-45),0,math.rad(-25)),.4)
3194
	end
3195
	local out=5
3196
	local start=root.CFrame
3197
	coroutine.wrap(function()
3198
		for rad = 0, 180,5 do
3199
			out = out + 5
3200
			local A = PyramidEffect:Clone()
3201
			A.Parent = char
3202
			A.CanCollide = true
3203
			A.Anchored = true
3204
			A.CFrame=start*cf(0,-15,-out)
3205
			MagniDamage(A, 20, 65,187, 0, "Normal")
3206
			coroutine.wrap(function()
3207
				for i = -15, 0 do
3208
					A.CFrame=A.CFrame*cf(0,1,0)
3209
					swait()
3210
				end
3211
				delay(0.8,function()
3212
					for i = -8, 0 do
3213
						swait()
3214
						A.CFrame=A.CFrame*cf(0,-1,0)
3215
					end
3216
					A:destroy()
3217
				end)
3218
			end)()
3219
			swait()
3220
		end
3221
	end)()
3222
	
3223
	for i = 0,2.5,0.1 do
3224
		swait()
3225
		RH.C0=clerp(RH.C0,cf(1,-1,-.5)*angles(math.rad(25),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),.6)
3226
		LH.C0=clerp(LH.C0,cf(-1,-1.1,0)*angles(math.rad(-5),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),.4)
3227
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-.2,0)*angles(math.rad(25),0,0),.6)
3228
		Torso.Neck.C0=clerp(Torso.Neck.C0,necko,.4)
3229
		RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-45),0,math.rad(25)),.4)
3230
		LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-45),0,math.rad(-25)),.4)
3231
	end
3232
	attacking=false
3233
end
3234
3235
3236
function CrystalizedFields()
3237
attacking = true
3238
Speed = 2
3239
local keptcolor = MAINCOLOR
3240
local obj1 = Instance.new("Part")
3241
obj1.Parent = char
3242
obj1.Transparency = 1
3243
obj1.CanCollide = false
3244
local rval = 0
3245
local eval = 1
3246
local tval = 0
3247
CFuncs["Sound"].Create("rbxassetid://199145761", obj1, 3,1)
3248
local eff = Instance.new("ParticleEmitter",obj1)
3249
eff.Texture = "rbxassetid://2344870656"
3250
eff.LightEmission = 1
3251
eff.Color = ColorSequence.new(obj1.Color)
3252
eff.Rate = 10000000
3253
eff.Enabled = true
3254
eff.EmissionDirection = "Left"
3255
eff.Lifetime = NumberRange.new(0.5)
3256
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
3257
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
3258
eff.Speed = NumberRange.new(5,50)
3259
eff.Drag = 5
3260
eff.Rotation = NumberRange.new(-500,500)
3261
eff.RotSpeed = NumberRange.new(-500,500)
3262
sphere2(5,"Add",root.CFrame*CFrame.new(0,5,0),vt(1,1,1),0.5,0.005,0.5,MAINCOLOR,MAINCOLOR.Color)
3263
local eff2 = Instance.new("ParticleEmitter",obj1)
3264
eff2.Texture = "rbxassetid://695499847"
3265
eff2.LightEmission = 1
3266
eff2.Color = ColorSequence.new(obj1.Color)
3267
eff2.Rate = 12500
3268
eff2.Lifetime = NumberRange.new(0.5,2)
3269
eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
3270
eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
3271
eff2.Speed = NumberRange.new(20,150)
3272
eff2.Drag = 5
3273
eff2.Rotation = NumberRange.new(-500,500)
3274
eff2.VelocitySpread = 9000
3275
eff2.RotSpeed = NumberRange.new(-150,150)
3276
for i = 0,11,0.1 do
3277
swait()
3278
rval = rval + 10
3279
eval = eval + 1.5
3280
obj1.Transparency = 1
3281
tval = tval + 1
3282
if tval == 24 then
3283
	tval = 0
3284
	MagniDamage(Torso, 38, 12,21, 0, "Freeze",153092213)
3285
end
3286
obj1.Size = obj1.Size + vt(0,0.2,0.2)
3287
obj1.CFrame = root.CFrame*CFrame.new(0,5,0)*CFrame.Angles(math.rad(0),math.rad(rval),math.rad(-90))
3288
RH.C0=clerp(RH.C0,cf(1,-1 + 0.15 * math.cos(sine / 32),-0.15)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.3)
3289
LH.C0=clerp(LH.C0,cf(-1,-1 + 0.15* math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.3)
3290
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(2)),.3)
3291
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(-2 + 1 * math.cos(sine / 58)),math.rad(-2 + 2 * math.cos(sine / 53))),.3)
3292
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(1760 + 6 * math.cos(sine / 72)),math.rad(1 - 1 * math.cos(sine / 58)),math.rad(90 + 2 * math.cos(sine / 45))),.3)
3293
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(176 - 7 * math.cos(sine / 66)),math.rad(1 - 1 * math.cos(sine / 59)),math.rad(-90 - 4 * math.cos(sine / 45))),.3)
3294
end
3295
eff.Enabled = false
3296
coroutine.resume(coroutine.create(function()
3297
	for i = 0,49 do
3298
		swait()
3299
		rval = rval + 100
3300
		obj1.Transparency = obj1.Transparency + 0.02
3301
		obj1.Size = obj1.Size + vt(0,-0.5,-0.5)
3302
	end
3303
	obj1:Destroy()
3304
end))
3305
attacking = false
3306
Speed = 14
3307
end
3308
3309
function modeswitchgui()
3310
local oawkwodkwad=math.random(0,100)/100
3311
local okaofwakf=math.random(60,100)/100
3312
local framiee=Instance.new("Frame",MainFrame2.Cube1)
3313
framiee.AnchorPoint=Vector2.new(.5,.5)
3314
framiee.Position=UDim2.new(.5,0,.5,0)
3315
framiee.BorderSizePixel=0
3316
framiee.BackgroundColor3=MainFrame2.Cube1.BackgroundColor3
3317
framiee.Size=UDim2.new(0,0,0,0)
3318
framiee.ZIndex=13
3319
CFuncs["Sound"].Create("rbxassetid://557322397", MainGui, 3, 2.6)
3320
for zi=1,3 do
3321
local imfhg=Instance.new("ImageLabel",MainFrame2)
3322
imfhg.AnchorPoint=Vector2.new(.5,.5)
3323
imfhg.Position=UDim2.new(.6,0,.6,0)
3324
imfhg.BorderSizePixel=0
3325
imfhg.ImageColor3=MainFrame2.Cube1.BackgroundColor3
3326
imfhg.Size=UDim2.new(.4,0,.7,0)
3327
imfhg.ZIndex=10
3328
imfhg.BackgroundTransparency=1
3329
imfhg.Image="rbxassetid://2809225827"
3330
coroutine.resume(coroutine.create(function(imag)
3331
if zi==1 then
3332
imag:TweenPosition(UDim2.new(.6,0,-1.5,0),"Out","Quint",1.2,true)
3333
elseif zi==2 then
3334
imag.Rotation=-45
3335
imag:TweenPosition(UDim2.new(-.5,0,-1.2,0),"Out","Quint",1.2,true)
3336
else
3337
imag.Rotation=-90
3338
imag:TweenPosition(UDim2.new(-.8,0,.6,0),"Out","Quint",1.2,true)
3339
end
3340
game:GetService("Debris"):AddItem(imag,3)
3341
for i=0,1.02,.02 do
3342
swait()
3343
imag.ImageTransparency=i
3344
end
3345
imag:Remove()
3346
end),imfhg)
3347
3348
end
3349
3350
3351
coroutine.resume(coroutine.create(function(ff)
3352
ff:TweenSize(UDim2.new(12,0,12,0),"Out","Quint",.8,true)
3353
game:GetService("Debris"):AddItem(ff,3)
3354
for i=0,1.02,.04 do
3355
swait()
3356
ff.BackgroundTransparency=i
3357
ff.Rotation=ff.Rotation+3.5
3358
end
3359
ff:Remove()
3360
end),framiee)
3361
3362
end
3363
3364
3365
mouse.KeyDown:connect(function(Button)
3366
if Button == "m" and attacking == false and Mode == "FL" then
3367
Mode = "DM"
3368
if math.random(1,2) == 1 then
3369
SONG = 705302406
3370
else
3371
SONG = 580367180
3372
end
3373
MAINCOLOR = BrickColor.new("Persimmon")
3374
MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Pink").Color
3375
MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Persimmon").Color
3376
modeswitchgui()
3377
for i,v in pairs(gauntlet:GetChildren()) do
3378
if v:IsA("BasePart") then
3379
if v.Name == "NeonArmor" then
3380
v.Color = BrickColor.new("Persimmon").Color
3381
end
3382
end
3383
end
3384
for i,v in pairs(TurboCore:GetChildren()) do
3385
if v:IsA("BasePart") then
3386
if v.Name == "NeonArmor" then
3387
v.Color = BrickColor.new("Persimmon").Color
3388
end
3389
end
3390
end
3391
for i,v in pairs(gauntlet2:GetChildren()) do
3392
if v:IsA("BasePart") then
3393
if v.Name == "NeonArmor" then
3394
v.Color = BrickColor.new("Persimmon").Color
3395
end
3396
end
3397
end
3398
TextUI.Text.Image = "rbxassetid://2969037917"
3399
Speed = 20
3400
		elseif Mode == "DM" and Button == "m" and attacking == false then
3401
			Mode = "FL"
3402
			SONG = 1886156023
3403
			MAINCOLOR = BrickColor.new("Dark blue")
3404
		MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Dark blue").Color
3405
		MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Dark blue").Color
3406
		modeswitchgui()
3407
for i,v in pairs(gauntlet:GetChildren()) do
3408
if v:IsA("BasePart") then
3409
if v.Name == "NeonArmor" then
3410
v.Color = BrickColor.new("Dark blue").Color
3411
end
3412
end
3413
end
3414
for i,v in pairs(TurboCore:GetChildren()) do
3415
				if v:IsA("BasePart") then
3416
if v.Name == "NeonArmor" then
3417
v.Color = BrickColor.new("Dark blue").Color
3418
end
3419
end
3420
end
3421
for i,v in pairs(gauntlet2:GetChildren()) do
3422
if v:IsA("BasePart") then
3423
if v.Name == "NeonArmor" then
3424
v.Color = BrickColor.new("Dark blue").Color
3425
end
3426
end
3427
end
3428
TextUI.Text.Image = "rbxassetid://2968625581"
3429
Speed = 46
3430
end
3431
3432
	if Button == "m" and attacking == false then
3433
		if Mode == "T" then
3434
			Mode = "LS"
3435
			SONG = 2170417538
3436
			MAINCOLOR = BrickColor.new("Toothpaste")
3437
		MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Toothpaste").Color
3438
		MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Toothpaste").Color
3439
		modeswitchgui()
3440
for i,v in pairs(gauntlet:GetChildren()) do
3441
if v:IsA("BasePart") then
3442
if v.Name == "NeonArmor" then
3443
v.Color = BrickColor.new("Toothpaste").Color
3444
end
3445
end
3446
end
3447
for i,v in pairs(TurboCore:GetChildren()) do
3448
				if v:IsA("BasePart") then
3449
if v.Name == "NeonArmor" then
3450
v.Color = BrickColor.new("Toothpaste").Color
3451
end
3452
end
3453
end
3454
for i,v in pairs(gauntlet2:GetChildren()) do
3455
if v:IsA("BasePart") then
3456
if v.Name == "NeonArmor" then
3457
v.Color = BrickColor.new("Toothpaste").Color
3458
end
3459
end
3460
end
3461
TextUI.Text.Image = "rbxassetid://2866248691"
3462
Speed = 67
3463
		elseif Mode == "LS" then
3464
			SONG = 570332815
3465
			Mode = "T"
3466
			Speed = 18
3467
			MAINCOLOR = BrickColor.new("Deep orange")
3468
			TextUI.Text.Image = "rbxassetid://2863687732"
3469
		MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
3470
		MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
3471
		modeswitchgui()
3472
for i,v in pairs(TurboCore:GetChildren()) do
3473
if v:IsA("BasePart") then
3474
if v.Name == "NeonArmor" then
3475
v.Color = BrickColor.new("Deep orange").Color
3476
end
3477
end
3478
end
3479
			for i,v in pairs(gauntlet:GetChildren()) do
3480
if v:IsA("BasePart") then
3481
if v.Name == "NeonArmor" then
3482
v.Color = BrickColor.new("Deep orange").Color
3483
end
3484
end
3485
end
3486
for i,v in pairs(gauntlet2:GetChildren()) do
3487
if v:IsA("BasePart") then
3488
if v.Name == "NeonArmor" then
3489
v.Color = BrickColor.new("Deep orange").Color
3490
end
3491
end
3492
end
3493
end
3494
	end
3495
-----------------------------------------------------------------
3496
	if Button == "g" and attacking == false then
3497
		if Mode == "T" then
3498
			Mode = "ICE"
3499
			SONG = 1843801674
3500
			MAINCOLOR = BrickColor.new("Pastel light blue")
3501
		MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Pastel light blue").Color
3502
		MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Pastel light blue").Color
3503
		modeswitchgui()
3504
for i,v in pairs(gauntlet:GetChildren()) do
3505
if v:IsA("BasePart") then
3506
if v.Name == "NeonArmor" then
3507
v.Color = BrickColor.new("Pastel light blue").Color
3508
end
3509
end
3510
end
3511
for i,v in pairs(TurboCore:GetChildren()) do
3512
				if v:IsA("BasePart") then
3513
if v.Name == "NeonArmor" then
3514
v.Color = BrickColor.new("Pastel light blue").Color
3515
end
3516
end
3517
end
3518
for i,v in pairs(gauntlet2:GetChildren()) do
3519
if v:IsA("BasePart") then
3520
if v.Name == "NeonArmor" then
3521
v.Color = BrickColor.new("Pastel light blue").Color
3522
end
3523
end
3524
end
3525
TextUI.Text.Image = "rbxassetid://2967532910"
3526
Speed = 14
3527
		elseif Mode == "ICE" then
3528
			SONG = 570332815
3529
			Mode = "T"
3530
			Speed = 18
3531
			MAINCOLOR = BrickColor.new("Deep orange")
3532
			TextUI.Text.Image = "rbxassetid://2863687732"
3533
		MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
3534
		MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
3535
		modeswitchgui()
3536
for i,v in pairs(TurboCore:GetChildren()) do
3537
if v:IsA("BasePart") then
3538
if v.Name == "NeonArmor" then
3539
v.Color = BrickColor.new("Deep orange").Color
3540
end
3541
end
3542
end
3543
			for i,v in pairs(gauntlet:GetChildren()) do
3544
if v:IsA("BasePart") then
3545
if v.Name == "NeonArmor" then
3546
v.Color = BrickColor.new("Deep orange").Color
3547
end
3548
end
3549
end
3550
for i,v in pairs(gauntlet2:GetChildren()) do
3551
if v:IsA("BasePart") then
3552
if v.Name == "NeonArmor" then
3553
v.Color = BrickColor.new("Deep orange").Color
3554
end
3555
end
3556
end
3557
		end
3558
	end
3559
-----------------------------------------------------------------
3560
	if Button == "f" and attacking == false then
3561
		if Mode == "T" then
3562
			Mode = "FL"
3563
			SONG = 1886156023
3564
			MAINCOLOR = BrickColor.new("Dark blue")
3565
		MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Dark blue").Color
3566
		MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Dark blue").Color
3567
		modeswitchgui()
3568
for i,v in pairs(gauntlet:GetChildren()) do
3569
if v:IsA("BasePart") then
3570
if v.Name == "NeonArmor" then
3571
v.Color = BrickColor.new("Dark blue").Color
3572
end
3573
end
3574
end
3575
for i,v in pairs(TurboCore:GetChildren()) do
3576
				if v:IsA("BasePart") then
3577
if v.Name == "NeonArmor" then
3578
v.Color = BrickColor.new("Dark blue").Color
3579
end
3580
end
3581
end
3582
for i,v in pairs(gauntlet2:GetChildren()) do
3583
if v:IsA("BasePart") then
3584
if v.Name == "NeonArmor" then
3585
v.Color = BrickColor.new("Dark blue").Color
3586
end
3587
end
3588
end
3589
TextUI.Text.Image = "rbxassetid://2968625581"
3590
Speed = 46
3591
		elseif Mode == "FL" then
3592
			SONG = 570332815
3593
			Mode = "T"
3594
			Speed = 18
3595
			MAINCOLOR = BrickColor.new("Deep orange")
3596
			TextUI.Text.Image = "rbxassetid://2863687732"
3597
		MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
3598
		MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
3599
		modeswitchgui()
3600
for i,v in pairs(TurboCore:GetChildren()) do
3601
if v:IsA("BasePart") then
3602
if v.Name == "NeonArmor" then
3603
v.Color = BrickColor.new("Deep orange").Color
3604
end
3605
end
3606
end
3607
			for i,v in pairs(gauntlet:GetChildren()) do
3608
if v:IsA("BasePart") then
3609
if v.Name == "NeonArmor" then
3610
v.Color = BrickColor.new("Deep orange").Color
3611
end
3612
end
3613
end
3614
for i,v in pairs(gauntlet2:GetChildren()) do
3615
if v:IsA("BasePart") then
3616
if v.Name == "NeonArmor" then
3617
v.Color = BrickColor.new("Deep orange").Color
3618
end
3619
end
3620
end
3621
		end
3622
	end
3623
	
3624
-----------------------------------------------------------------
3625
		if Button == "n" and attacking == false then
3626
		if Mode == "T" then
3627
			Mode = "G"
3628
			SONG = 930541401
3629
		swait(1)
3630
		modeswitchgui()
3631
		elseif Mode == "G" then
3632
			SONG = 570332815
3633
			Mode = "T"
3634
		modeswitchgui()
3635
		end
3636
		end
3637
		-----------------------------------------------------------------
3638
		if Button == "b" and attacking == false then
3639
			
3640
		if Mode == "T" then
3641
			Mode = "R"
3642
			Speed = 47
3643
			SONG = 1988896150
3644
		swait(1)
3645
		modeswitchgui()
3646
		elseif Mode == "R" then
3647
			SONG = 570332815
3648
			Speed = 18
3649
			Mode = "T"
3650
		modeswitchgui()
3651
		end
3652
		end
3653
		-----------------------------------------------------------------
3654
		if Button == "j" and attacking == false then
3655
		if Mode == "T" then
3656
			Mode = "N"
3657
			MAINCOLOR = BRICKC'Lime green'
3658
			Speed = 32
3659
			SONG = 566809627
3660
		swait(1)
3661
		modeswitchgui()
3662
		elseif Mode == "N" then
3663
			SONG = 570332815
3664
			Speed = 18
3665
			Mode = "T"
3666
			MAINCOLOR = BRICKC'Lime green'
3667
		modeswitchgui()
3668
		end
3669
		end
3670
		-----------------------------------------------------------
3671
			if Button == "h" and attacking == false then
3672
		if Mode == "T" then
3673
			Mode = "TP"
3674
			SONG = 631314940
3675
			MAINCOLOR = BrickColor.new("Institutional white")
3676
		MainFrame2.Cube1.BackgroundColor3=C3(1,1,1)
3677
		MainFrame2.Cube2.BackgroundColor3=C3(1,1,1)
3678
		modeswitchgui()
3679
for i,v in pairs(gauntlet:GetChildren()) do
3680
if v:IsA("BasePart") then
3681
if v.Name == "NeonArmor" then
3682
v.Color = C3(1,1,1)
3683
end
3684
end
3685
end
3686
for i,v in pairs(TurboCore:GetChildren()) do
3687
				if v:IsA("BasePart") then
3688
if v.Name == "NeonArmor" then
3689
v.Color = C3(1,1,1)
3690
end
3691
end
3692
end
3693
for i,v in pairs(gauntlet2:GetChildren()) do
3694
if v:IsA("BasePart") then
3695
if v.Name == "NeonArmor" then
3696
v.Color = C3(1,1,1)
3697
end
3698
end
3699
end
3700
TextUI.Text.Image = "rbxassetid://2878494513"
3701
Speed = 89
3702
		elseif Mode == "TP" then
3703
			SONG = 570332815
3704
			Mode = "T"
3705
			Speed = 18
3706
			MAINCOLOR = BrickColor.new("Deep orange")
3707
			TextUI.Text.Image = "rbxassetid://2863687732"
3708
		MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
3709
		MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
3710
		modeswitchgui()
3711
for i,v in pairs(TurboCore:GetChildren()) do
3712
if v:IsA("BasePart") then
3713
if v.Name == "NeonArmor" then
3714
v.Color = BrickColor.new("Deep orange").Color
3715
end
3716
end
3717
end
3718
			for i,v in pairs(gauntlet:GetChildren()) do
3719
if v:IsA("BasePart") then
3720
if v.Name == "NeonArmor" then
3721
v.Color = BrickColor.new("Deep orange").Color
3722
end
3723
end
3724
end
3725
for i,v in pairs(gauntlet2:GetChildren()) do
3726
if v:IsA("BasePart") then
3727
if v.Name == "NeonArmor" then
3728
v.Color = BrickColor.new("Deep orange").Color
3729
end
3730
end
3731
end
3732
		end
3733
	end
3734
		-----------------------------------------------------------
3735
					if Button == "q" and attacking == false then
3736
		if Mode == "T" then
3737
			Mode = "MH"
3738
			SONG = 1356751414
3739
			MAINCOLOR = BrickColor.new("Really red")
3740
		MainFrame2.Cube1.BackgroundColor3=C3(1,0,0)
3741
		MainFrame2.Cube2.BackgroundColor3=C3(1,0,0)
3742
		modeswitchgui()
3743
for i,v in pairs(gauntlet:GetChildren()) do
3744
if v:IsA("BasePart") then
3745
if v.Name == "NeonArmor" then
3746
v.Color = C3(1,0,0)
3747
end
3748
end
3749
end
3750
for i,v in pairs(TurboCore:GetChildren()) do
3751
				if v:IsA("BasePart") then
3752
if v.Name == "NeonArmor" then
3753
v.Color = C3(1,0,0)
3754
end
3755
end
3756
end
3757
for i,v in pairs(gauntlet2:GetChildren()) do
3758
if v:IsA("BasePart") then
3759
if v.Name == "NeonArmor" then
3760
v.Color = C3(1,0,0)
3761
end
3762
end
3763
end
3764
TextUI.Text.Image = "rbxassetid://2970613902"
3765
Speed = 32
3766
		elseif Mode == "MH" then
3767
			SONG = 570332815
3768
			Mode = "T"
3769
			Speed = 18
3770
			MAINCOLOR = BrickColor.new("Deep orange")
3771
			TextUI.Text.Image = "rbxassetid://2863687732"
3772
		MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
3773
		MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
3774
		modeswitchgui()
3775
for i,v in pairs(TurboCore:GetChildren()) do
3776
if v:IsA("BasePart") then
3777
if v.Name == "NeonArmor" then
3778
v.Color = BrickColor.new("Deep orange").Color
3779
end
3780
end
3781
end
3782
			for i,v in pairs(gauntlet:GetChildren()) do
3783
if v:IsA("BasePart") then
3784
if v.Name == "NeonArmor" then
3785
v.Color = BrickColor.new("Deep orange").Color
3786
end
3787
end
3788
end
3789
for i,v in pairs(gauntlet2:GetChildren()) do
3790
if v:IsA("BasePart") then
3791
if v.Name == "NeonArmor" then
3792
v.Color = BrickColor.new("Deep orange").Color
3793
end
3794
end
3795
end
3796
		end
3797
	end
3798
		-----------------------------------------------------------
3799
			if Button == "v" and attacking == false then
3800
		if Mode == "T" then
3801
			Mode = "MN"
3802
			SONG = 901719740
3803
			MAINCOLOR = BrickColor.new("Really blue")
3804
		MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Really blue").Color
3805
		MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Really blue").Color
3806
		modeswitchgui()
3807
for i,v in pairs(gauntlet:GetChildren()) do
3808
if v:IsA("BasePart") then
3809
if v.Name == "NeonArmor" then
3810
v.Color = BrickColor.new("Really blue").Color
3811
end
3812
end
3813
end
3814
for i,v in pairs(TurboCore:GetChildren()) do
3815
				if v:IsA("BasePart") then
3816
if v.Name == "NeonArmor" then
3817
v.Color = BrickColor.new("Really blue").Color
3818
end
3819
end
3820
end
3821
for i,v in pairs(gauntlet2:GetChildren()) do
3822
if v:IsA("BasePart") then
3823
if v.Name == "NeonArmor" then
3824
v.Color = BrickColor.new("Really blue").Color
3825
end
3826
end
3827
end
3828
TextUI.Text.Image = "rbxassetid://2867768707"
3829
Speed = 43
3830
		elseif Mode == "MN" then
3831
			SONG = 570332815
3832
			Mode = "T"
3833
			Speed = 18
3834
			MAINCOLOR = BrickColor.new("Deep orange")
3835
			TextUI.Text.Image = "rbxassetid://2863687732"
3836
		MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
3837
		MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
3838
		modeswitchgui()
3839
for i,v in pairs(TurboCore:GetChildren()) do
3840
if v:IsA("BasePart") then
3841
if v.Name == "NeonArmor" then
3842
v.Color = BrickColor.new("Deep orange").Color
3843
end
3844
end
3845
end
3846
			for i,v in pairs(gauntlet:GetChildren()) do
3847
if v:IsA("BasePart") then
3848
if v.Name == "NeonArmor" then
3849
v.Color = BrickColor.new("Deep orange").Color
3850
end
3851
end
3852
end
3853
for i,v in pairs(gauntlet2:GetChildren()) do
3854
if v:IsA("BasePart") then
3855
if v.Name == "NeonArmor" then
3856
v.Color = BrickColor.new("Deep orange").Color
3857
end
3858
end
3859
end
3860
		end
3861
			end
3862
			---------------------------------------------------------
3863
						if Button == "l" and attacking == false then
3864
		if Mode == "T" then
3865
			Mode = "H"
3866
			SONG = 2781731664
3867
			MAINCOLOR = BrickColor.new("Deep orange")
3868
		MainFrame2.Cube1.BackgroundColor3=C3(225/255, 146/255, 0/255)
3869
		MainFrame2.Cube2.BackgroundColor3=C3(225/255, 146/255, 0/255)
3870
		modeswitchgui()
3871
for i,v in pairs(gauntlet:GetChildren()) do
3872
if v:IsA("BasePart") then
3873
if v.Name == "NeonArmor" then
3874
v.Color = C3(225/255, 146/255, 0/255)
3875
end
3876
end
3877
end
3878
for i,v in pairs(TurboCore:GetChildren()) do
3879
				if v:IsA("BasePart") then
3880
if v.Name == "NeonArmor" then
3881
v.Color = C3(225/255, 146/255, 0/255)
3882
end
3883
end
3884
end
3885
for i,v in pairs(gauntlet2:GetChildren()) do
3886
if v:IsA("BasePart") then
3887
if v.Name == "NeonArmor" then
3888
v.Color = C3(225/255, 146/255, 0/255)
3889
end
3890
end
3891
end
3892
TextUI.Text.Image = "rbxassetid://2871051104"
3893
Speed = 36
3894
		elseif Mode == "H" then
3895
			SONG = 570332815
3896
			Mode = "T"
3897
			Speed = 18
3898
			MAINCOLOR = BrickColor.new("Deep orange")
3899
			TextUI.Text.Image = "rbxassetid://2863687732"
3900
		MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
3901
		MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
3902
		modeswitchgui()
3903
for i,v in pairs(TurboCore:GetChildren()) do
3904
if v:IsA("BasePart") then
3905
if v.Name == "NeonArmor" then
3906
v.Color = BrickColor.new("Deep orange").Color
3907
end
3908
end
3909
end
3910
			for i,v in pairs(gauntlet:GetChildren()) do
3911
if v:IsA("BasePart") then
3912
if v.Name == "NeonArmor" then
3913
v.Color = BrickColor.new("Deep orange").Color
3914
end
3915
end
3916
end
3917
for i,v in pairs(gauntlet2:GetChildren()) do
3918
if v:IsA("BasePart") then
3919
if v.Name == "NeonArmor" then
3920
v.Color = BrickColor.new("Deep orange").Color
3921
end
3922
end
3923
end
3924
		end
3925
						end
3926
	---------------------------------------------------------
3927
	if Button == "k" and attacking == false then
3928
		if Mode == "T" then
3929
			Mode = "A"
3930
			SONG = 2834885098
3931
			MAINCOLOR = BrickColor.new("New Yeller")
3932
		MainFrame2.Cube1.BackgroundColor3=BrickColor.new("New Yeller").Color
3933
		MainFrame2.Cube2.BackgroundColor3=BrickColor.new("New Yeller").Color
3934
		modeswitchgui()
3935
for i,v in pairs(gauntlet:GetChildren()) do
3936
if v:IsA("BasePart") then
3937
if v.Name == "NeonArmor" then
3938
v.Color = BrickColor.new("New Yeller").Color
3939
end
3940
end
3941
end
3942
for i,v in pairs(TurboCore:GetChildren()) do
3943
				if v:IsA("BasePart") then
3944
if v.Name == "NeonArmor" then
3945
v.Color = BrickColor.new("New Yeller").Color
3946
end
3947
end
3948
end
3949
for i,v in pairs(gauntlet2:GetChildren()) do
3950
if v:IsA("BasePart") then
3951
if v.Name == "NeonArmor" then
3952
v.Color = BrickColor.new("New Yeller").Color
3953
end
3954
end
3955
end
3956
TextUI.Text.Image = "rbxassetid://2871442888"
3957
Speed = 23
3958
		elseif Mode == "A" then
3959
			SONG = 570332815
3960
			Mode = "T"
3961
			Speed = 18
3962
			MAINCOLOR = BrickColor.new("Deep orange")
3963
			TextUI.Text.Image = "rbxassetid://2863687732"
3964
		MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
3965
		MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
3966
		modeswitchgui()
3967
for i,v in pairs(TurboCore:GetChildren()) do
3968
if v:IsA("BasePart") then
3969
if v.Name == "NeonArmor" then
3970
v.Color = BrickColor.new("Deep orange").Color
3971
end
3972
end
3973
end
3974
			for i,v in pairs(gauntlet:GetChildren()) do
3975
if v:IsA("BasePart") then
3976
if v.Name == "NeonArmor" then
3977
v.Color = BrickColor.new("Deep orange").Color
3978
end
3979
end
3980
end
3981
for i,v in pairs(gauntlet2:GetChildren()) do
3982
if v:IsA("BasePart") then
3983
if v.Name == "NeonArmor" then
3984
v.Color = BrickColor.new("Deep orange").Color
3985
end
3986
end
3987
end
3988
		end
3989
	end
3990
		---------------------ATTACKS--------------------------
3991
				if Button == "z" and attacking == false and Mode == "G" then
3992
					glitchattack()
3993
				end
3994
				
3995
				if Button == "z" and attacking == false and Mode == "LS" then
3996
					Daash()
3997
				end
3998
				
3999
				if Button == "x" and attacking == false and Mode == "MN" then
4000
					LunarAttack()
4001
				end
4002
				
4003
				if Button == "z" and attacking == false and Mode == "MN" then
4004
					LunarAttackA()
4005
				end
4006
				
4007
				if Button == "z" and attacking == false and Mode == "H" then
4008
					SolarAttack()
4009
				end
4010
								
4011
				if Button == "z" and attacking == false and Mode == "N" then
4012
					NuclearExtended()
4013
				end
4014
				if Button == "x" and attacking == false and Mode == "N" then
4015
					NuclearGrab()
4016
				end
4017
				if Button == "c" and attacking == false and Mode == "N" then
4018
					NuclearTeleport()
4019
				end
4020
				if Button == "z" and attacking == false and Mode == "ICE" then
4021
					CrystalizedFields()
4022
				end
4023
				if Button == "z" and attacking == false and Mode == "TP" then
4024
					kaboom()
4025
				end
4026
				if Button == "x" and attacking == false and Mode == "TP" then
4027
					spinnyboi()
4028
				end
4029
				if Button == "z" and attacking == false and Mode == "A" then
4030
					AAAA()
4031
				end
4032
				if Button == "z" and attacking == false and Mode == "FL" then
4033
					--FL is meant to make lots of combos
4034
					--so yeah
4035
					--also make techno effects for the attacks
4036
					--its kinda related to slush invaders
4037
	--x5
4038
				end
4039
					----------------TAUNTS-----------------------------------------
4040
	if Button == "p" and attacking == false then
4041
		if Chill == false then
4042
Chill = true
4043
		elseif Chill == true then
4044
			Chill = false
4045
		end
4046
	end
4047
end)
4048
4049
local owakdoa=0
4050
function gagok()
4051
local oawkwodkwad=math.random(0,100)/100
4052
local okaofwakf=math.random(60,100)/100
4053
local framiee=Instance.new("Frame",MainFrame2)
4054
framiee.AnchorPoint=Vector2.new(.5,.5)
4055
framiee.Position=UDim2.new(oawkwodkwad,0,2,0)
4056
framiee.BorderSizePixel=0
4057
framiee.BackgroundColor3=MainFrame2.Cube1.BackgroundColor3
4058
framiee.Size=UDim2.new(math.random(1,15)/100,0,okaofwakf,0)
4059
coroutine.resume(coroutine.create(function(ff)
4060
ff:TweenSize(UDim2.new(0,0,okaofwakf,0),"InOut","Quad",1,true)
4061
ff:TweenPosition(UDim2.new(oawkwodkwad,0,-math.random(20,66)/100,0),"InOut","Quart",1.1,true)
4062
game:GetService("Debris"):AddItem(ff,5)
4063
end),framiee)
4064
4065
end
4066
4067
local BOIE = 0
4068
4069
while true do
4070
	swait()
4071
	if Mode ~= "ICE" then
4072
	sne = sne + chaeng
4073
	else
4074
		sne = sne + 0.625
4075
		end
4076
timepoz = music.TimePosition
4077
music.SoundId = "rbxassetid://"..SONG
4078
if luna.Parent ~= nil then
4079
	sphere2(5,"Add",luna.CFrame,vt(0.525,0.525,0.525),0.001,0.001,0.001,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
4080
--sphere2(5,"Add",luna.CFrame*CFrame.new(math.random(-0.555,0.555),math.random(-0.555,0.555),math.random(-0.555,0.555)),vt(0.125,0.125,0.125),0.001,0.001,0.001,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
4081
end
4082
--sphere2(5,"Add",luna.CFrame*CFrame.new(math.random(-0.5,0.5),math.random(-0.5,0.5),math.random(-0.5,0.5)),vt(0.25,0.25,0.25),0.01,0.01,0.01,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
4083
luna.CFrame = sorb.CFrame*CF(0,-0.75,0)*ANGLES(RAD(360*math.cos(sne/168)),math.rad(360*math.cos(sne/168)),math.rad(360*math.cos(sne/168)))
4084
if Mode ~= "MN" then
4085
	luna.Parent = nil
4086
elseif Mode == "MN" then
4087
	luna.Parent = char
4088
end
4089
if Mode == "T" then
4090
music.Volume = 2
4091
elseif Mode == "LS" then
4092
	music.Volume = 5
4093
elseif Mode ~= "LS" and Mode ~= "T" then
4094
	music.Volume = 3.5
4095
	end
4096
if music.Parent ~= char.HumanoidRootPart then
4097
music = Instance.new("Sound",char.HumanoidRootPart)
4098
music.SoundId = "rbxassetid://"..SONG
4099
music.Looped = true
4100
music.Pitch = 1
4101
if Mode == "T" then
4102
music.Volume = 2
4103
elseif Mode == "LS" then
4104
	music.Volume = 5
4105
	elseif Mode ~= "LS" and Mode ~= "T" then
4106
	music.Volume = 3.5
4107
	end
4108
music.TimePosition = timepoz
4109
music:Resume()	
4110
end
4111
if Mode ~= "G" then
4112
TextUI.Text.Rotation = 2 *math.cos(sne/32)
4113
else
4114
	TextUI.Text.Rotation = math.random(-2,2)
4115
	end
4116
if Mode == "G" then
4117
	glitchval = math.random(1,255)/255
4118
	if math.random(1,3) == 1 then
4119
			for i,v in pairs(TurboCore:GetChildren()) do
4120
if v:IsA("BasePart") then
4121
if v.Name == "NeonArmor" then
4122
	v.Material = "Slate"
4123
			v.Transparency = math.random(0.1,1.0)
4124
v.Color = Color3.new(glitchval,glitchval,glitchval)
4125
end
4126
end
4127
end
4128
			for i,v in pairs(gauntlet:GetChildren()) do
4129
if v:IsA("BasePart") then
4130
if v.Name == "NeonArmor" then
4131
		v.Material = "Slate"
4132
				v.Transparency = math.random(0.1,1.0)
4133
v.Color = Color3.new(glitchval,glitchval,glitchval)
4134
end
4135
end
4136
end
4137
for i,v in pairs(gauntlet2:GetChildren()) do
4138
if v:IsA("BasePart") then
4139
if v.Name == "NeonArmor" then
4140
		v.Material = "Slate"
4141
		v.Transparency = math.random(0.1,1.0)
4142
v.Color = Color3.new(glitchval,glitchval,glitchval)
4143
end
4144
end
4145
end
4146
					TextUI.Text.Image = "rbxassetid://2866315054"
4147
	else
4148
		if math.random(1,25) == 1 then
4149
		PixelBlockNeg(1,math.random(1,2),"Add",RootPart.CFrame*CFrame.new(math.random(-15,15),0,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),5,5,5,0.1,BrickColor.new("Institutional white"),-10)
4150
				end
4151
					TextUI.Text.Image = "rbxassetid://2866314462"
4152
		MainFrame2.Cube1.BackgroundColor3= Color3.new(glitchval,glitchval,glitchval)
4153
		MainFrame2.Cube2.BackgroundColor3= Color3.new(glitchval,glitchval,glitchval)
4154
			for i,v in pairs(TurboCore:GetChildren()) do
4155
if v:IsA("BasePart") then
4156
if v.Name == "NeonArmor" then
4157
	v.Material = "Neon"
4158
			v.Transparency = 0
4159
v.Color = Color3.new(glitchval,glitchval,glitchval)
4160
end
4161
end
4162
end
4163
			for i,v in pairs(gauntlet:GetChildren()) do
4164
if v:IsA("BasePart") then
4165
if v.Name == "NeonArmor" then
4166
		v.Material = "Neon"
4167
				v.Transparency = 0
4168
v.Color = Color3.new(glitchval,glitchval,glitchval)
4169
end
4170
end
4171
end
4172
for i,v in pairs(gauntlet2:GetChildren()) do
4173
if v:IsA("BasePart") then
4174
if v.Name == "NeonArmor" then
4175
		v.Material = "Neon"
4176
				v.Transparency = 0
4177
v.Color = Color3.new(glitchval,glitchval,glitchval)
4178
end
4179
end
4180
end
4181
	end
4182
elseif Mode ~= "G" then
4183
				for i,v in pairs(TurboCore:GetChildren()) do
4184
if v:IsA("BasePart") then
4185
if v.Name == "NeonArmor" then
4186
	v.Material = "Neon"
4187
			v.Transparency = 0
4188
end
4189
end
4190
end
4191
			for i,v in pairs(gauntlet:GetChildren()) do
4192
if v:IsA("BasePart") then
4193
if v.Name == "NeonArmor" then
4194
	v.Material = "Neon"
4195
			v.Transparency = 0
4196
end
4197
end
4198
end
4199
for i,v in pairs(gauntlet2:GetChildren()) do
4200
if v:IsA("BasePart") then
4201
if v.Name == "NeonArmor" then
4202
	v.Material = "Neon"
4203
			v.Transparency = 0
4204
end
4205
end
4206
end
4207
if Mode == "T" then
4208
				TextUI.Text.Image = "rbxassetid://2863687732"
4209
	for i,v in pairs(TurboCore:GetChildren()) do
4210
if v:IsA("BasePart") then
4211
if v.Name == "NeonArmor" then
4212
v.Color = BrickColor.new("Deep orange").Color
4213
end
4214
end
4215
end
4216
			for i,v in pairs(gauntlet:GetChildren()) do
4217
if v:IsA("BasePart") then
4218
if v.Name == "NeonArmor" then
4219
v.Color = BrickColor.new("Deep orange").Color
4220
end
4221
end
4222
end
4223
for i,v in pairs(gauntlet2:GetChildren()) do
4224
if v:IsA("BasePart") then
4225
if v.Name == "NeonArmor" then
4226
v.Color = BrickColor.new("Deep orange").Color
4227
end
4228
end
4229
end
4230
end
4231
4232
if Mode == "N" then
4233
		if hitfloor ~= nil then
4234
		sphere2(1.5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,0.5,1),0.1,0.01,0.1,BrickColor.new("Lime green"),Color3.new(0,1,0))
4235
	end
4236
	if math.random(1,2) == 1 then
4237
	TextUI.Text.Image = "rbxassetid://2874580999"
4238
	else
4239
	TextUI.Text.Image = "rbxassetid://2874633415"
4240
		end
4241
		MainFrame2.Cube1.BackgroundColor3=Color3.fromRGB(15 + math.random(-15,15), 158 + math.random(-30,30), 15 + math.random(-15,15))
4242
		MainFrame2.Cube2.BackgroundColor3=Color3.fromRGB(15 + math.random(-15,15), 158 + math.random(-30,30), 15 + math.random(-15,15))
4243
	for i,v in pairs(TurboCore:GetChildren()) do
4244
if v:IsA("BasePart") then
4245
if v.Name == "NeonArmor" then
4246
v.Color = Color3.fromRGB(15 + math.random(-15,15), 158 + math.random(-30,30), 15 + math.random(-15,15))
4247
end
4248
end
4249
end
4250
			for i,v in pairs(gauntlet:GetChildren()) do
4251
if v:IsA("BasePart") then
4252
if v.Name == "NeonArmor" then
4253
v.Color = Color3.fromRGB(15 + math.random(-15,15), 158 + math.random(-30,30), 15 + math.random(-15,15))
4254
end
4255
end
4256
end
4257
for i,v in pairs(gauntlet2:GetChildren()) do
4258
if v:IsA("BasePart") then
4259
if v.Name == "NeonArmor" then
4260
v.Color = Color3.fromRGB(15 + math.random(-15,15), 158 + math.random(-30,30), 15 + math.random(-15,15))
4261
end
4262
end
4263
end
4264
end
4265
end
4266
if Mode == "R" then
4267
					TextUI.Text.Image = "rbxassetid://2866469300"
4268
						TextUI.Text.ImageColor3 = Color3.new(r/255,g/255,b/255)
4269
		MainFrame2.Cube1.BackgroundColor3=Color3.new(r/255,g/255,b/255)
4270
		MainFrame2.Cube2.BackgroundColor3=Color3.new(r/255,g/255,b/255)
4271
	for i,v in pairs(TurboCore:GetChildren()) do
4272
if v:IsA("BasePart") then
4273
if v.Name == "NeonArmor" then
4274
v.Color = Color3.new(r / 255, g / 255, b / 255)
4275
end
4276
end
4277
end
4278
			for i,v in pairs(gauntlet:GetChildren()) do
4279
if v:IsA("BasePart") then
4280
if v.Name == "NeonArmor" then
4281
v.Color = Color3.new(r / 255, g / 255, b / 255)
4282
end
4283
end
4284
end
4285
for i,v in pairs(gauntlet2:GetChildren()) do
4286
if v:IsA("BasePart") then
4287
if v.Name == "NeonArmor" then
4288
v.Color = Color3.new(r / 255, g / 255, b / 255)
4289
end
4290
end
4291
end
4292
elseif Mode ~= "R" then
4293
	TextUI.Text.ImageColor3 = Color3.new(255/255,255/255,255/255)
4294
	if Mode == "T" then
4295
		MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
4296
		MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
4297
				TextUI.Text.Image = "rbxassetid://2863687732"
4298
	for i,v in pairs(TurboCore:GetChildren()) do
4299
if v:IsA("BasePart") then
4300
if v.Name == "NeonArmor" then
4301
v.Color = BrickColor.new("Deep orange").Color
4302
end
4303
end
4304
end
4305
			for i,v in pairs(gauntlet:GetChildren()) do
4306
if v:IsA("BasePart") then
4307
if v.Name == "NeonArmor" then
4308
v.Color = BrickColor.new("Deep orange").Color
4309
end
4310
end
4311
end
4312
for i,v in pairs(gauntlet2:GetChildren()) do
4313
if v:IsA("BasePart") then
4314
if v.Name == "NeonArmor" then
4315
v.Color = BrickColor.new("Deep orange").Color
4316
end
4317
end
4318
end
4319
end
4320
end
4321
sine = sne
4322
if Mode == "ICE" then
4323
	BOIE = BOIE + 1
4324
	if BOIE == 32 then
4325
		BOIE = 0
4326
CrystalEffect(2.2,math.random(-6,6),"Add",root.CFrame*CFrame.new(math.random(-125,125),25,math.random(-125,125))*CFrame.Angles(math.rad(math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),50,50,50,-0.03,0)
4327
if math.random(1,4) == 1 then
4328
	CrystalEffect(2.2,math.random(-6,6),"Add",root.CFrame*CFrame.new(math.random(-125,125),25,math.random(-125,125))*CFrame.Angles(math.rad(math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),50,50,50,-0.03,0)
4329
end
4330
end
4331
end
4332
4333
4334
4335
--TriangleEffect(7.5,0,"Add",root.CFrame*CFrame.Angles(math.rad(sne),math.rad(sne),math.rad(sne)),0.03,0)
4336
4337
----------SALVO'S GUI---------
4338
MainFrame2.ImageLabel.Image = TextUI.Text.Image
4339
MainFrame2.ImageLabel.Rotation = 5 * math.cos(sine/31)
4340
MainFrame2.ImageLabel.ImageColor3 = TextUI.Text.ImageColor3
4341
MainFrame2.Cube1.Rotation = MainFrame2.Cube1.Rotation + (1+.9*math.sin(sine / 31) + music.PlaybackLoudness/123)
4342
MainFrame2.Cube2.Rotation = MainFrame2.Cube2.Rotation + (2-.9*math.cos(sine / 31) + music.PlaybackLoudness/88)
4343
MainFrame2.Cube1.Size = UDim2.new(0,200 + music.PlaybackLoudness/14,0,200 + music.PlaybackLoudness/14)
4344
MainFrame2.Cube2.Size = UDim2.new(0,160 + music.PlaybackLoudness/21,0,160 + music.PlaybackLoudness/21)
4345
4346
local bruh1=MainFrame2.Cube1.BackgroundColor3.r
4347
local bruh2=MainFrame2.Cube1.BackgroundColor3.g
4348
local bruh3=MainFrame2.Cube1.BackgroundColor3.b
4349
4350
MainFrame2.Cube1.mg1.ImageColor3=Color3.new(bruh1-(.15+.2*math.sin(sine/19)),bruh2-(.15+.2*math.sin(sine/19)),bruh3-(.15+.2*math.sin(sine/19)))
4351
MainFrame2.Cube1.mg2.ImageColor3=Color3.new(bruh1-(.15+.2*math.sin(sine/19)),bruh2-(.15+.2*math.sin(sine/19)),bruh3-(.15+.2*math.sin(sine/19)))
4352
MainFrame2.Cube1.mg3.ImageColor3=Color3.new(bruh1-(.15+.2*math.sin(sine/19)),bruh2-(.15+.2*math.sin(sine/19)),bruh3-(.15+.2*math.sin(sine/19)))
4353
MainFrame2.Cube1.mg4.ImageColor3=Color3.new(bruh1-(.15+.2*math.sin(sine/19)),bruh2-(.15+.2*math.sin(sine/19)),bruh3-(.15+.2*math.sin(sine/19)))
4354
MainFrame2.Cube2.mg1.ImageColor3=Color3.new(bruh1-(.15+.22*math.cos(sine/18)),bruh2-(.15+.22*math.cos(sine/18)),bruh3-(.15+.22*math.cos(sine/18)))
4355
MainFrame2.Cube2.mg2.ImageColor3=Color3.new(bruh1-(.15+.22*math.cos(sine/18)),bruh2-(.15+.22*math.cos(sine/18)),bruh3-(.15+.22*math.cos(sine/18)))
4356
MainFrame2.Cube2.mg3.ImageColor3=Color3.new(bruh1-(.15+.22*math.cos(sine/18)),bruh2-(.15+.22*math.cos(sine/18)),bruh3-(.15+.22*math.cos(sine/18)))
4357
MainFrame2.Cube2.mg4.ImageColor3=Color3.new(bruh1-(.15+.22*math.cos(sine/18)),bruh2-(.15+.22*math.cos(sine/18)),bruh3-(.15+.22*math.cos(sine/18)))
4358
4359
			SideFrame2.BorderColor3 = MainFrame2.Cube1.BackgroundColor3
4360
									SideFrame2.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3
4361
			SideFrame3.BorderColor3 = MainFrame2.Cube1.BackgroundColor3
4362
						SideFrame3.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3
4363
									SideFrame4.BorderColor3 = MainFrame2.Cube1.BackgroundColor3
4364
						SideFrame4.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3
4365
						SideFrame5.BorderColor3 = MainFrame2.Cube1.BackgroundColor3
4366
						SideFrame5.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3
4367
											SideFrame0.BorderColor3 = MainFrame2.Cube1.BackgroundColor3
4368
						SideFrame0.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3
4369
						SideFrame_0.BorderColor3 = MainFrame2.Cube1.BackgroundColor3
4370
						SideFrame_0.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3
4371
											SideFrame1.BorderColor3 = MainFrame2.Cube1.BackgroundColor3
4372
						SideFrame1.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3
4373
					SideFrame_0.Size = UDim2.new(0,35+music.PlaybackLoudness/16,0,15)
4374
					SideFrame0.Size = UDim2.new(0,45+music.PlaybackLoudness/14,0,15)
4375
					SideFrame1.Size = UDim2.new(0,55+music.PlaybackLoudness/12,0,15)
4376
			SideFrame2.Size = UDim2.new(0,65+music.PlaybackLoudness/10,0,15)
4377
						SideFrame3.Size = UDim2.new(0,75+music.PlaybackLoudness/8,0,15)
4378
			SideFrame4.Size = UDim2.new(0,85+music.PlaybackLoudness/6,0,15)
4379
						SideFrame5.Size = UDim2.new(0,95+music.PlaybackLoudness/4,0,15)
4380
4381
owakdoa=owakdoa+1
4382
if owakdoa>=4 then
4383
	owakdoa=0
4384
gagok()	
4385
end
4386
---------------------------------------------------------------------
4387
if char:FindFirstChild("CharacterMesh") then
4388
	char.CharacterMesh:Remove()
4389
end
4390
	if char:FindFirstChild("Animate") then
4391
		char.Animate:Remove()
4392
	end
4393
		if char:FindFirstChild("Animator") then
4394
		char.Animate:Remove()
4395
		end
4396
				if char:FindFirstChild("ForceField") then
4397
		char.ForceField:Remove()
4398
		end
4399
			if char.Humanoid:FindFirstChild("Animate") then
4400
		char.Humanoid.Animate:Remove()
4401
			end
4402
				if char.Humanoid:FindFirstChild("Animator") then
4403
		char.Humanoid.Animator:Remove()
4404
	end
4405
char.Humanoid.WalkSpeed = Speed
4406
char.Humanoid.JumpPower = 90
4407
local TorsoVelocity=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
4408
local velderp=RootPart.Velocity.y
4409
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
4410
if RootPart.Velocity.y > 1 and hitfloor==nil then 
4411
ANIMATION="Jump"
4412
if attacking==false then
4413
RightH.C0=clerp(RightH.C0,cf(1,-0.35 - 0.05 * math.cos(sne / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
4414
LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
4415
RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sne / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
4416
Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
4417
RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sne / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
4418
LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sne / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
4419
end
4420
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
4421
ANIMATION="Fall"
4422
if attacking==false then
4423
RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
4424
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
4425
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
4426
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
4427
RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(55)),.1)
4428
LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(-55)),.1)
4429
end
4430
elseif TorsoVelocity<1 and hitfloor~=nil then
4431
ANIMATION="Idle"
4432
if attacking==false then
4433
	if Chill == false then
4434
	if Mode == "T" then
4435
--RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.08 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
4436
--LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.08 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
4437
--RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0,0 + 0.085 * math.cos(sne / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
4438
--Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
4439
	RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 - 3 * math.cos(sne / 32))),.1)
4440
LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 + 3 * math.cos(sne / 32))),.1)
4441
RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sne / 32))*angles(math.rad(0 - 2 * math.cos(sne / 32)),math.rad(0),math.rad(-1)),.1)
4442
Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(5 - 2 * math.cos(sne / 37)),math.rad(0 + 1 * math.cos(sne / 58)),math.rad(1 + 2 * math.cos(sne / 53))),.1)
4443
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sne / 45),0)*angles(math.rad(2 + 5 * math.cos(sne / 74)),math.rad(1 - 3 * math.cos(sne / 53)),math.rad(14 + 3 * math.cos(sne / 45))),.1)
4444
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sne / 45),0)*angles(math.rad(5 - 3 * math.cos(sne / 73)),math.rad(2 - 1 * math.cos(sne / 55)),math.rad(-18 - 3 * math.cos(sne / 45))),.1)
4445
--RightS.C0 = clerp2(RightS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12+3*math.cos(sne/32))) * CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.15 / 3)
4446
 --LeftS.C0 = clerp2(LeftS.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12-3*math.cos(sne/32))) * CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.15 / 3)
4447
	elseif Mode == "LS" then
4448
		RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 + 0.5 * math.cos(sne / 34)),math.rad(6 + 3 * math.cos(sne / 34)),math.rad(0 - 1 * math.cos(sne / 34))),.1)
4449
LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 + 0.25 * math.cos(sne / 34)),math.rad(8 - 2 * math.cos(sne / 34)),math.rad(0 + 1 * math.cos(sne / 34))),.1)
4450
RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0 + 0.01 * math.cos(sne / 34),0 + 0.05 * math.cos(sne / 28))*angles(math.rad(0 - 1 * math.cos(sne / 34)),math.rad(0),math.rad(18 + 3 * math.cos(sne / 65))),.1)
4451
Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(12 - 3.5 * math.cos(sne / 28)),math.rad(3 * math.cos(sne / 32) + 0.5 * math.cos(sne / 28)),math.rad(-18 - 3 * math.cos(sne / 65))),.1)
4452
RW.C0=clerp(RW.C0,cf(0.85,0.4 + 0.06 * math.cos(sne / 28),-0.65)*angles(math.rad(36 - 3 * math.cos(sne / 34)),math.rad(-2 + 2 * math.cos(sne / 45)),math.rad(-88 + 2 * math.cos(sne / 28))),.1)
4453
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.06 * math.cos(sne / 28),-0.65)*angles(math.rad(46 + 3 * math.cos(sne / 49)),math.rad(2 - 2 * math.cos(sne / 52)),math.rad(88 - 3 * math.cos(sne / 39))),.1)
4454
    elseif Mode == "DM" then -- GodzPlaysRB's Floppy doppy animation
4455
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0 + 15 * math.cos(sine / 28)),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
4456
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0 + 15 * math.cos(sine / 28)),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
4457
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 + 15 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
4458
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 7 * math.cos(sine / 28)),math.rad(0 + 10 * math.cos(sine / 28)),math.rad(0)),.1)
4459
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0 + 1 * math.cos(sine / 28)),math.rad(0 + 25 * math.cos(sine / 28)),math.rad(20 - 5 * math.sin(sine / 28))),.1)
4460
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0 + 2 * math.cos(sine / 28)),math.rad(0 - 27 * math.cos(sine / 28)),math.rad(-20 + 5 * math.sin(sine / 28))),.1)
4461
	elseif Mode == "G" then
4462
		RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 - 2 * math.cos(sne / 32))),.1)
4463
LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 + 2 * math.cos(sne / 32))),.1)
4464
RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0 + 0.02 * math.cos(sne / 32),-0.1 + 0.05 * math.cos(sne / 32))*angles(math.rad(0 - 2 * math.cos(sne / 32)),math.rad(0),math.rad(-11)),.1)
4465
Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(11 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(10 - 2.5 * math.cos(sne / 28)),math.rad(0),math.rad(31 + 6.5 * math.cos(sne / 32.5))),.1)
4466
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(math.random(1,3)),math.rad(-5),math.rad(15 + 7.5 * math.cos(sne / 32.5))),.1)
4467
LW.C0=clerp(LW.C0,cf(-1.5+0.05*math.cos(sne/32),0.65-.05*math.cos(sne/32),0)*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(math.random(136,159)),math.rad(5),math.rad(29 - 8.5 * math.cos(sne / 32.5))),.1)
4468
		elseif Mode == "MH" then
4469
		RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(24 - 2 * math.cos(sne / 32))),.1)
4470
LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(-24 + 2 * math.cos(sne / 32))),.1)
4471
RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0 + 0.02 * math.cos(sne / 32),-0.1 + 0.05 * math.cos(sne / 32))*angles(math.rad(24 - 2 * math.cos(sne / 32)),math.rad(0),math.rad(-6)),.1)
4472
Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(11 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(21 - 2.5 * math.cos(sne / 28)),math.rad(0),math.rad(4 + 6.5 * math.cos(sne / 1.5))),.1)
4473
RW.C0=clerp(RW.C0,cf(1,0.695,-0.5)*angles(math.rad(150 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.5265)),math.rad(-42 - 1.5 * math.cos(sine / 25) + 15 * math.cos(sne / 0.5265))),.1)
4474
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(23 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.5265)),math.rad(-25 - 15 * math.cos(sne / 0.5265))),.1)
4475
	elseif Mode == "MN" then
4476
		RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),-0.15)*angles(math.rad(0),math.rad(82.5),math.rad(0))*angles(math.rad(-7),math.rad(-1 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.2)
4477
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-82.5),math.rad(0))*angles(math.rad(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(3 + 2 * math.cos(sine / 32))),.2)
4478
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(11-3*math.cos(sne/32))),.2)
4479
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(11 - 2 * math.cos(sine / 37)),math.rad(-2 + 2 * math.cos(sine / 58)),math.rad(-3+3*math.cos(sine/24))),.2)
4480
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-6 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(15 + 6 * math.cos(sine / 45))),.2)
4481
LW.C0=clerp(LW.C0,cf(-1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(67 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.2)
4482
	elseif Mode == "H" then
4483
RH.C0 = clerp(RH.C0, CF(1, -1 - 0.07 * math.cos(sine / 22), 0) * angles(math.rad(0), math.rad(85), math.rad(0)) * angles(math.rad(-2.5 - 0.5 * math.sin(sine / 22)), math.rad(0), math.rad(-2)), 0.1)
4484
LH.C0 = clerp(LH.C0, CF(-1, -1 - 0.07 * math.cos(sine / 22), 0) * angles(math.rad(0), math.rad(-78), math.rad(0)) * angles(math.rad(-2.5 - 0.5 * math.sin(sine / 22)), math.rad(0), math.rad(-5)), 0.1)
4485
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.07 * math.cos(sine / 22))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-35)),.1)
4486
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 3 * math.cos(sine / 31)),math.rad(0),math.rad(34)),.1)
4487
	RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * math.sin(sine / 28), 0) * angles(math.rad(0), math.rad(-8.5 + 8.5 * math.sin(sine / 28)), math.rad(25 + 8.5 * math.sin(sine / 28))), 0.1)
4488
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.05 * math.cos(sine / 32),-0.5)*angles(math.rad(84 - 3 * math.cos(sine / 32)),math.rad(8 - 5 * math.cos(sine / 32)),math.rad(80 - 3 * math.cos(sine / 32))),.1)
4489
    elseif Mode == "FL" then
4490
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
4491
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
4492
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(20)),.1)
4493
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(-20)),.1)
4494
RW.C0=clerp(RW.C0,cf(1,0.5 + 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(105),math.rad(0),math.rad(-56)),.1)
4495
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(81),math.rad(0),math.rad(67)),.1)
4496
	elseif Mode == "TP" then
4497
RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.15 * math.cos(sne / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 + 1 * math.cos(sne / 32))),.1)
4498
LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.15 * math.cos(sne / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 - 1 * math.cos(sne / 32))),.1)
4499
RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sne / 25))*angles(math.rad(-3 + 1 * math.cos(sne / 32)),math.rad(0),math.rad(-1)),.1)
4500
Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(5 - 2 * math.cos(sne / 37)),math.rad(0 + 1 * math.cos(sne / 58)),math.rad(1 + 2 * math.cos(sne / 53))),.1)
4501
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sne / 45),0)*angles(math.rad(2 + 5 * math.cos(sne / 74)),math.rad(1 - 3 * math.cos(sne / 53)),math.rad(14 - 9 * math.cos(sne / 25))),.1)
4502
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sne / 45),0)*angles(math.rad(5 - 3 * math.cos(sne / 73)),math.rad(2 - 1 * math.cos(sne / 55)),math.rad(-18 + 9 * math.cos(sne / 25))),.1)
4503
	elseif Mode == "ICE" then
4504
RH.C0=clerp(RH.C0,cf(1,-1 - 0.074 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
4505
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.074 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
4506
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.074 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
4507
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(21 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
4508
RW.C0=clerp(RW.C0,cf(1 + 0.085 * math.cos(sine/28),0.5 + 0.05 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(-30 - 4 * math.cos(sine/28))),.1)
4509
LW.C0=clerp(LW.C0,cf(-1 - 0.085 * math.cos(sine/28),0.5 + 0.05 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30 + 4 * math.cos(sine/28))),.1)
4510
	elseif Mode == "N" then
4511
		if math.random(1,3) == 1 then
4512
		PixelBlockX(7,0.5,"Add",rarm.CFrame*CFrame.new(0,-1.35,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.01,MAINCOLOR,0)
4513
end
4514
sphere2(6,"Add",rarm.CFrame*CFrame.new(math.random(-0.5,0.5),-1.35 + math.random(-0.5,0.5),math.random(-0.5,0.5)),vt(0.45,0.45,0.45),0.01,0.01,0.01,MAINCOLOR,MAINCOLOR.Color)
4515
		RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1 + 1 * math.cos(sine / 50)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1)
4516
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5 - 1 * math.cos(sine / 50)),math.rad(7),math.rad(0 + 2 * math.cos(sine / 34))),.1)
4517
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.04 * math.cos(sine / 50),0 + 0.03 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 + 1 * math.cos(sine / 50)),math.rad(18-4*COS(sne/42))),.1)
4518
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 28)),math.rad(-2 + 3.5 * math.cos(sine / 57)),math.rad(18-4*math.cos(sne/42))),.1)
4519
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 11 * math.cos(sine / 73)),math.rad(18 - 6 * math.cos(sine / 57)),math.rad(17 + 5 * math.cos(sine / 28))),.1)
4520
--RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0 - 1 * math.cos(sine / 43)),math.rad(-2 + 2 * math.cos(sine / 45)),math.rad(12 + 7 * math.cos(sine / 28))),.1)
4521
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0 + 1 * math.cos(sine / 49)),math.rad(2 - 2 * math.cos(sine / 52)),math.rad(-12 - 7 * math.cos(sine / 39))),.1)
4522
	elseif Mode == "A" then
4523
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
4524
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
4525
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 1 * math.cos(sine / 42))),.1)
4526
--Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 - 8.5 * math.cos(sine / 41)),math.rad(0 + 1 * math.cos(sine / 57)),math.rad(20 + 10 * math.cos(sine / 47))),.1)
4527
		Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(8 - 3 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-2 + 2 * math.cos(sine / 53))),.1)
4528
		----RH.C0 = clerp(RH.C0, CF(1, -0.4 - 0.1 * Cos(sine / 32), -0.6) * angles(Rad(0), Rad(75 + 8.5 * Sin(sine / 32)), Rad(0)) * angles(Rad(-8.5), Rad(0), Rad(0)), 0.1)
4529
			----	LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 32), 0) * angles(Rad(0), Rad(-75 - 8.5 * Sin(sine / 32)), Rad(0)) * angles(Rad(-8.5), Rad(0), Rad(0)), 0.1)
4530
		----		RootJoint.C0=clerp(RootJoint.C0,CF(0+.2*SIN(sne/32),1.3-.5*COS(sne/32),0+.2*COS(sne/24))*ANGLES(RAD(270+1.5*SIN(sne/32)),RAD(0+5*SIN(sne/36)),RAD(-180)),.1)
4531
		--		RootJoint.C0=clerp(RootJoint.C0,CF(0+.2*SIN(sne/32),1.3-.5*COS(sne/32),0+.2*COS(sne/24))*ANGLES(RAD(90+1.5*SIN(sne/32)),RAD(0+5*SIN(sne/36)),RAD(180)),.1)
4532
--Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-2 + 2 * math.cos(sine / 53))),.1)
4533
			RW.C0=clerp(RW.C0,cf(1,0.45 + 0.1 * math.cos(sine / 56),-0.5)*angles(math.rad(25+5*math.cos(sine/56)),math.rad(-15),math.rad(-85-5*math.cos(sine/56))),.1)
4534
LW.C0=clerp(LW.C0,cf(-0.75,0.45 + 0.1 * math.cos(sine /56),-0.5)*angles(math.rad(-25-5*math.cos(sine/56)),math.rad(15),math.rad(80+10*math.cos(sine/56))),.1)
4535
	elseif Mode == "R" then
4536
		RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 18),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(1 - 2 * math.cos(sne / 18))),.1)
4537
LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 18),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(10 - 1 * math.cos(sne / 56)),math.rad(-1 + 2 * math.cos(sne / 18))),.1)
4538
RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sne / 18),0 + 0.05 * math.cos(sne / 18))*angles(math.rad(1 - 2 * math.cos(sne / 18)),math.rad(0),math.rad(-3 + 3 * math.cos(sne / 42))),.1)
4539
Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(15 - 2 * math.cos(sne / 37)),math.rad(0 + 2 * math.cos(sne / 58)),math.rad(-1 + 1 * math.cos(sne / 53))),.1)
4540
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sne / 45),0)*angles(math.rad(1 + 1 * math.cos(sne / 72)),math.rad(3 - 2 * math.cos(sne / 58)),math.rad(12 + 3 * math.cos(sne / 45))),.1)
4541
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sne / 45),0)*angles(math.rad(1 - 2 * math.cos(sne / 66)),math.rad(2 - 1 * math.cos(sne / 56)),math.rad(-12 + 3 * math.cos(sne / 45))),.1)
4542
	end
4543
		elseif Chill == true then
4544
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
4545
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
4546
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),0.123 + 0.15 * math.cos(sine / 32))*angles(math.rad(-87 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
4547
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
4548
RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(183 + 3 * math.cos(sine / 74)),math.rad(2 - 1 * math.cos(sine / 53)),math.rad(-33 + 3 * math.cos(sine / 45))),.1)
4549
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(183 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 3 * math.cos(sine / 45))),.1)
4550
	end
4551
end
4552
elseif TorsoVelocity>2 and TorsoVelocity<22 and hitfloor~=nil then
4553
ANIMATIONATION="Walk"
4554
if attacking==false then
4555
			if Chill ~= true then
4556
	--[[
4557
RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.08 * math.cos(sne / 23),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-4),math.rad(0),math.rad(0+35*math.cos(sne/16))),.3)
4558
LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.08 * math.cos(sne / 23),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-4),math.rad(0),math.rad(0+35*math.cos(sne/16))),.3)
4559
RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0,0 + 0.085 * math.cos(sne / 23))*angles(math.rad(8),math.rad(0),math.rad(0)),.3)
4560
Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
4561
	]]--
4562
	if turboli == 20 then
4563
		turboli = 0
4564
			if Mode ~= "LS" then
4565
coroutine.resume(coroutine.create(function()
4566
if Mode == "T" then
4567
local turbo = TurboArrow:Clone()
4568
turbo.Parent = Character
4569
turbo.Anchored = true
4570
turbo.CanCollide = false
4571
turbo.CFrame = root.CFrame*cf(0,1.5,3)*angles(math.rad(131),math.rad(-180),math.rad(90))
4572
turbo.Transparency = 0.3
4573
swait(120)
4574
repeat
4575
turbo.Transparency = turbo.Transparency + 0.01
4576
swait()
4577
until turbo.Transparency == 0 or turbo.Transparency > 0.99
4578
game:GetService("Debris"):AddItem(turbo, 4)
4579
end
4580
end))
4581
	end
4582
	end
4583
	turboli = turboli + 1
4584
			if Mode == "G" then
4585
				if math.random(1,5) == 1 then
4586
					sphereMK(0.5,-1,"Add",RootPart.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),-8)*CFrame.Angles(math.rad(math.random(-25,25)),math.rad(math.random(-25,25)),math.rad(math.random(-25,25))),0.5,0.5,10,-0.005,BrickColor.new("Institutional white"),0)	
4587
		end
4588
		--sphereMK(3.5,-1,"Add",LeftLeg.CFrame* CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))),0.5,0.5,10,-0.005,BrickColor.new("Institutional white"),0)	
4589
		--sphereMK(3.5,-1,"Add",RightLeg.CFrame* CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))),0.5,0.5,10,-0.005,BrickColor.new("Institutional white"),0)	
4590
		end
4591
RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.15 * math.cos(sne / 17),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 - 45 * math.cos(sne / 17))),.1)
4592
LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.15 * math.cos(sne / 17),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 - 45 * math.cos(sne / 17))),.1)
4593
RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sne / 8.5))*angles(math.rad(11 - 6 * math.sin(sne / 8.5)),math.rad(0 + RootPart.RotVelocity.Y*1.5),math.rad(0 - RootPart.RotVelocity.Y - 1 * math.cos(sne / 17))),.1)
4594
Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(-6 + 2 * math.cos(sne / 17)),math.rad(0 + RootPart.RotVelocity.Y*1.5),math.rad(0 - Head.RotVelocity.Y*1.5 + 1 * math.cos(sne / 17))),.1)
4595
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(50 * math.cos(sne / 17)),math.rad(-1),math.rad(7 + 4 * math.cos(sne / 17))),.1)
4596
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50 * math.cos(sne / 17)),math.rad(1),math.rad(-7 - 4 * math.cos(sne / 17))),.1)
4597
-- RightS.C0 = clerp2(RightS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0 - 50 * math.cos(sne / 16)), RAD(0), RAD(12 + 3 *math.cos(sne /16))) * CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.15 / 3)
4598
-- LeftS.C0 = clerp2(LeftS.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0 + 50 * math.cos(sne / 16)), RAD(0), RAD(-12 - 3 * math.cos(sne / 16))) * CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.15 / 3)
4599
	elseif Chill == true then
4600
			RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),-0.2)*angles(math.rad(-40),math.rad(90),math.rad(0)),.1)
4601
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),-0.3)*angles(math.rad(-40),math.rad(-90),math.rad(0)),.1)
4602
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 29),0 + 0.125 * math.cos(sine / 34),0.123 + 0.25 * math.cos(sine / 28))*angles(math.rad(60),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.05)
4603
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-35 + 2.5 * math.cos(sine / 41)),math.rad(0 + 1 * math.cos(sine / 57)),math.rad(0)),.1)
4604
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-50 - 0.3 * math.cos(sine / 43)),math.rad(-15 - 2 * math.cos(sine / 52)),math.rad(19 + 0.9 * math.cos(sine / 45))),.1)
4605
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-50 - 0.2 * math.cos(sine / 51)),math.rad(15 - 4 * math.cos(sine / 64)),math.rad(-19 - 0.2 * math.cos(sine / 45))),.1)
4606
		end
4607
end
4608
elseif TorsoVelocity>=22 and hitfloor~=nil then
4609
ANIMATIONATION="Run"
4610
if attacking==false then
4611
		if Chill ~= true then
4612
	if turboli2 == 12 then
4613
		turboli2 = 0
4614
coroutine.resume(coroutine.create(function()
4615
		if Mode == "LS" then
4616
	local turbo2 = ToothpasteArrow:Clone()
4617
	turbo2.Parent = char
4618
    turbo2.Anchored = true
4619
	turbo2.CanCollide = false
4620
	turbo2.CFrame = root.CFrame*cf(0,1.5,2.65)*angles(math.rad(146),math.rad(-180),math.rad(90))
4621
	turbo2.Transparency = 0.3
4622
swait(120)
4623
repeat
4624
turbo2.Transparency = turbo2.Transparency + 0.01
4625
swait()
4626
until turbo2.Transparency == 0 or turbo2.Transparency > 0.99
4627
game:GetService("Debris"):AddItem(turbo2, 4)	
4628
end
4629
end))
4630
	end
4631
		if Mode == "R" then
4632
		sphereMK(2.5,-1,"Add",RootPart.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),-8)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),0.5,0.5,10,-0.005,BrickColor.new("Institutional white"),0)	
4633
		end
4634
	turboli2 = turboli2 + 2
4635
RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.15 * math.cos(sne / 6),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 - 76 * math.cos(sne / 6))),.1)
4636
LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.15 * math.cos(sne / 6),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 - 76 * math.cos(sne / 6))),.1)
4637
RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.sin(sne / 3))*angles(math.rad(26 - 6 * math.cos(sne / 3)),math.rad(0 + RootPart.RotVelocity.Y*1.5),math.rad(0 - RootPart.RotVelocity.Y - 1 * math.cos(sne / 23))),.1)
4638
Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(-6 + 2 * math.cos(sne / 6)),math.rad(0 + RootPart.RotVelocity.Y*1.5),math.rad(0 - Head.RotVelocity.Y*1.5 + 1 * math.cos(sne / 6))),.1)
4639
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10+90 * math.cos(sne / 6)),math.rad(-1),math.rad(7 + 4 * math.cos(sne / 6))),.1)
4640
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10-90 * math.cos(sne / 6)),math.rad(1),math.rad(-7 - 4 * math.cos(sne / 6))),.1)
4641
	elseif Chill == true then--Mode == "A" then --originally was solar mode
4642
			RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),-0.2)*angles(math.rad(-40),math.rad(90),math.rad(0)),.1)
4643
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),-0.3)*angles(math.rad(-40),math.rad(-90),math.rad(0)),.1)
4644
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 29),0 + 0.125 * math.cos(sine / 34),0.115 + 0.25 * math.cos(sine / 28))*angles(math.rad(60),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.05)
4645
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-35 + 2.5 * math.cos(sine / 41)),math.rad(0 + 1 * math.cos(sine / 57)),math.rad(0)),.1)
4646
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-50 - 0.3 * math.cos(sine / 43)),math.rad(-15 - 2 * math.cos(sine / 52)),math.rad(19 + 0.9 * math.cos(sine / 45))),.1)
4647
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-50 - 0.2 * math.cos(sine / 51)),math.rad(15 - 4 * math.cos(sine / 64)),math.rad(-19 - 0.2 * math.cos(sine / 45))),.1)
4648
		end
4649
end
4650
end
4651
end