View difference between Paste ID: KutY76f4 and Rr4SdiPF
SHOW: | | - or go back to the newest paste.
1
--[[Floaty thing by SezHu.
2
3
If you want a creation like this of your own, shoot me a friend request me on Discord! (Sezzie
4
#1875) Prices start at 250 robux.]]--
5
6
7
local songs = {
8-
	653700917,    --Sunset Lover
8+
	1410195372,    --Sunset Lover
9-
	1525113279,  --Slow
9+
	194104955,  --Slow
10-
	1389286403,   --Chill 2
10+
	356646894,   --Chill 2
11-
	692796920,   --Soul Food
11+
	163353836,   --Soul Food
12-
        1137575800,   --Burn Marks
12+
        271367617,   --Burn Marks
13-
        852365754,  
13+
        281705465,  
14-
        1388205829,   --D r o w z y 
14+
        320385683,   --D r o w z y 
15-
        566546592,   --S a y o n a r a
15+
        714957457,   --S a y o n a r a
16-
        1446511374,   --Oracle
16+
17
18
19
local quotes = {
20
	"Forever Rest in Peace..",
21-
	"Something to relax to..",
21+
	"You'll be okay..",
22-
	"Yawn..",
22+
	"Never Forget..'~",
23-
	"Just floatin'~",
23+
	"Shhh..~",
24-
	"Going up~",
24+
	"Just Listen..",
25-
	"I like this song..",
25+
        "Let the Music Embody you..",
26-
        "Time to kick back..",
26+
27
	} --Feel free to replace the quotes with stuff of your own.
28
29
30
local function soundbork(obj)
31
   if obj:IsA("Sound") and obj.Name ~= "playlist" then
32
--obj:Destroy() Remove the two dashes to silence all music but your own.
33
      return
34
   end
35
36
37
   local children = obj:GetChildren()
38
   for i = 1, #children do
39
    soundbork(children[i])
40
   end
41
   
42
   return
43
end
44
45
--//Constants\\--
46
47
Effects = { }
48
local Player = game.Players.localPlayer
49
local Mouse = Player:GetMouse()
50
local Character = Player.Character
51
local Humanoid = Character.Humanoid
52
local Head = Character.Head
53
local RootPart = Character.HumanoidRootPart
54
local Torso = Character.Torso
55
local LeftArm = Character["Left Arm"]
56
local RightArm = Character["Right Arm"]
57
local LeftLeg = Character["Left Leg"]
58
local RightLeg = Character["Right Leg"]
59
local Camera = game.Workspace.CurrentCamera
60
local RootJoint = RootPart.RootJoint
61
local Equipped = false
62
local Attack = false
63
local Anim = 'Idle'
64
local Idle = 0
65
local Combo = 1
66
local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
67
local Velocity = RootPart.Velocity.y
68
local Sine = 0
69
local Change = 1
70
local aoeconstant = 10
71
local maincol = "Pink"
72
local maincol2 = "White"
73
local randString = songs[math.random(#songs)]
74
local circleinthesky = false
75
Character.Humanoid.Name = "help"
76
humanoid = Character.help
77
Instance.new("ForceField",Character).Visible = false
78
79
80
81
82
83
local RbxUtility = LoadLibrary("RbxUtility")
84
local Create = RbxUtility.Create
85
86
humanoid.WalkSpeed = 3
87
humanoid.JumpPower = 0
88
humanoid.Animator.Parent = nil
89
Character.Animate.Parent = nil
90
91
local newMotor = function(part0, part1, c0, c1)
92
	local w = Create('Motor'){
93
		Parent = part0,
94
		Part0 = part0,
95
		Part1 = part1,
96
		C0 = c0,
97
		C1 = c1,
98
	}
99
	return w
100
end
101
102
103
skillcolorscheme = BrickColor.new(maincol).Color
104
105
local hue = 0
106
107
spawn(function()
108
while true do
109
    hue = hue + .0005
110
    if hue >= 1 then hue = 0 end
111
        maincol2 = Color3.fromHSV(hue,1,1)
112
    game["Run Service"].RenderStepped:wait()
113
end
114
end)
115
116
117
118
119
120
121
local scrn = Instance.new('ScreenGui', Player.PlayerGui)
122
function makeframe(par, trans, pos, size, color)
123
	local frame = Instance.new('Frame', par)
124
	frame.BackgroundTransparency = trans
125
	frame.BorderSizePixel = 0
126
	frame.Position = pos
127
	frame.Size = size
128
	frame.BackgroundColor3 = color
129
	return frame
130
end
131
132
--framesk1 = makeframe(scrn, .95, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
133
134
function clerp(a, b, t)
135
	return a:lerp(b, t)
136
end
137
138
RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
139
NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
140
141
local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) 
142
local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
143
local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
144
local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
145
RootJoint.C1 = CFrame.new(0, 0, 0)
146
RootJoint.C0 = CFrame.new(0, 0, 0)
147
Torso.Neck.C1 = CFrame.new(0, 0, 0)
148
Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
149
150
local rarmc1 = RW.C1
151
local larmc1 = LW.C1
152
local rlegc1 = RH.C1
153
local llegc1 = LH.C1
154
155
local resetc1 = false
156
157
function PlayAnimationFromTable(table, speed, bool)
158
	RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) 
159
	Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) 
160
	RW.C0 = clerp(RW.C0, table[3], speed) 
161
	LW.C0 = clerp(LW.C0, table[4], speed) 
162
	RH.C0 = clerp(RH.C0, table[5], speed) 
163
	LH.C0 = clerp(LH.C0, table[6], speed) 
164
	if bool == true then
165
		if resetc1 == false then
166
			resetc1 = true
167
			RootJoint.C1 = RootJoint.C1
168
			Torso.Neck.C1 = Torso.Neck.C1
169
			RW.C1 = rarmc1
170
			LW.C1 = larmc1
171
			RH.C1 = rlegc1
172
			LH.C1 = llegc1
173
		end
174
	end
175
end
176
177
ArtificialHB = Create("BindableEvent"){
178
	Parent = script,
179
	Name = "Heartbeat",
180
}
181
182
script:WaitForChild("Heartbeat")
183
184
frame = 1 / 35
185
tf = 0
186
allowframeloss = false
187
tossremainder = false
188
lastframe = tick()
189
script.Heartbeat:Fire()
190
191
game:GetService("RunService").Heartbeat:connect(function(s, p)
192
	tf = tf + s
193
	if tf >= frame then
194
		if allowframeloss then
195
			script.Heartbeat:Fire()
196
			lastframe = tick()
197
		else
198
			for i = 1, math.floor(tf / frame) do
199
				script.Heartbeat:Fire()
200
			end
201
			lastframe = tick()
202
		end
203
		if tossremainder then
204
			tf = 0
205
		else
206
			tf = tf - frame * math.floor(tf / frame)
207
		end
208
	end
209
end)
210
211
function swait(num)
212
	if num == 0 or num == nil then
213
		ArtificialHB.Event:wait()
214
	else
215
		for i = 0, num do
216
			ArtificialHB.Event:wait()
217
		end
218
	end
219
end
220
221
222
223
local m = Create("Model"){
224
	Parent = Character,
225
	Name = "WeaponModel"
226
}
227
228
function RemoveOutlines(part)
229
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
230
end
231
	
232
CFuncs = {	
233
	Part = {
234
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
235
			local Part = Create("Part"){
236
				Parent = Parent,
237
				Reflectance = Reflectance,
238
				Transparency = Transparency,
239
				CanCollide = false,
240
				Locked = true,
241
				BrickColor = BrickColor.new(tostring(BColor)),
242
				Name = Name,
243
				Size = Size,
244
				Material = Material,
245
			}
246
			RemoveOutlines(Part)
247
			if Size == Vector3.new() then
248
				Part.Size = Vector3.new(0.2, 0.2, 0.2)
249
			else
250
				Part.Size = Size
251
			end
252
			return Part
253
		end;
254
	};
255
	
256
	Mesh = {
257
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
258
			local Msh = Create(Mesh){
259
				Parent = Part,
260
				Offset = OffSet,
261
				Scale = Scale,
262
			}
263
			if Mesh == "SpecialMesh" then
264
				Msh.MeshType = MeshType
265
				Msh.MeshId = MeshId
266
			end
267
			return Msh
268
		end;
269
	};
270
271
	Weld = {
272
		Create = function(Parent, Part0, Part1, C0, C1)
273
			local Weld = Create("Weld"){
274
				Parent = Parent,
275
				Part0 = Part0,
276
				Part1 = Part1,
277
				C0 = C0,
278
				C1 = C1,
279
			}
280
			return Weld
281
		end;
282
	};
283
284
	Sound = {
285
		Create = function(id, par, vol, pit, looped) 
286
			coroutine.resume(coroutine.create(function()
287
				local S = Create("Sound"){
288
					Volume = vol,
289
					Pitch = pit or 1,
290
					SoundId = "rbxassetid://" .. id,
291
					Parent = par or workspace,
292
					Looped = looped
293
				}
294
				wait() 
295
				S:play() 
296
			end))
297
		end;
298
	};
299
	
300
	ParticleEmitter = {
301
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
302
			local Particle = Create("ParticleEmitter"){
303
				Parent = Parent,
304
				Color = ColorSequence.new(Color1, Color2),
305
				LightEmission = LightEmission,
306
				Size = Size,
307
				Texture = Texture,
308
				Transparency = Transparency,
309
				ZOffset = ZOffset,
310
				Acceleration = Accel,
311
				Drag = Drag,
312
				LockedToPart = LockedToPart,
313
				VelocityInheritance = VelocityInheritance,
314
				EmissionDirection = EmissionDirection,
315
				Enabled = Enabled,
316
				Lifetime = LifeTime,
317
				Rate = Rate,
318
				Rotation = Rotation,
319
				RotSpeed = RotSpeed,
320
				Speed = Speed,
321
				VelocitySpread = VelocitySpread,
322
			}
323
			return Particle
324
		end;
325
	};
326
	
327
	CreateTemplate = {
328
		
329
	};
330
}
331
332
--/v/Don't touch this part. \v\--
333
334
playlist=Instance.new("Sound", Torso)
335
playlist.SoundId = "rbxassetid://" ..randString
336
playlist.Volume = 5
337
playlist.Looped = false
338
playlist.Name = "playlist"
339
playlist:Play()
340
341
--/^/Don't touch this part. \^\--
342
343
function RayCast(Position, Direction, Range, Ignore)
344
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
345
end 
346
347
FindNearestTorso = function(pos)
348
	local list = (game.Workspace:children())
349
	local torso = nil
350
	local dist = 1000
351
	local temp, human, temp2 = nil, nil, nil
352
	for x = 1, #list do
353
		temp2 = list[x]
354
		if temp2.className == "Model" and temp2.Name ~= Character.Name then
355
			temp = temp2:findFirstChild("Torso")
356
			human = temp2:findFirstChild("Humanoid")
357
			if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
358
				local dohit = true
359
				if dohit == true then
360
					torso = temp
361
					dist = (temp.Position - pos).magnitude
362
				end
363
			end
364
		end
365
	end
366
	return torso, dist
367
end
368
369
RootPart.CFrame =  RootPart.CFrame * CFrame.new(0,5,0)
370
371
Harness=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","Harness",Vector3.new(0.420000285, 0.490000188, 0.399999768))
372
HarnessWeld=CFuncs.Weld.Create(m,Character["Torso"],Harness,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0500001907, -0.0350001119, -0.0871353149, -1, 0, 0, 0, 1, 0, 0, 0, -1))
373
FloatField2=CFuncs.Part.Create(m,Enum.Material.Neon,0,.5,"Lily white","FloatField2",Vector3.new(5, 8, 5))
374
FloatField2Weld=CFuncs.Weld.Create(m,Harness,FloatField2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.58035278e-05, 3.50000337e-05, 6.10351563e-05, -1, 0, 0, 0, 1, 0, 0, 0, -1))
375
flotemesh=CFuncs.Mesh.Create("SpecialMesh",FloatField2,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
376
spinny=CFuncs.Part.Create(Torso, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "spinny", Vector3.new())	
377
spinny.Anchored=true
378
spinny.CanCollide=false
379
380
381
transp = .5
382
spawn(function()
383
while true do
384
    transp = transp + .001
385
        FloatField2.Transparency = transp
386
        swait()
387
if transp >= 1 then
388
transp = .5
389
end
390
end
391
end)
392
393
394
395
function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
396
	if hit.Parent == nil then
397
		return
398
	end
399
	local h = hit.Parent:FindFirstChild("Humanoid")
400
	for _, v in pairs(hit.Parent:children()) do
401
		if v:IsA("Humanoid") then
402
			h = v
403
		end
404
	end
405
	if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
406
		if hit.Parent:findFirstChild("DebounceHit") ~= nil then
407
			if hit.Parent.DebounceHit.Value == true then
408
				return
409
			end
410
		end
411
		local c = Create("ObjectValue"){
412
			Name = "creator",
413
			Value = game:service("Players").LocalPlayer,
414
			Parent = h,
415
		}
416
		game:GetService("Debris"):AddItem(c, .5)
417
		if HitSound ~= nil and HitPitch ~= nil then
418
			CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) 
419
		end
420
		local Damage = math.random(minim, maxim)
421
		local blocked = false
422
		local block = hit.Parent:findFirstChild("Block")
423
		if block ~= nil then
424
			if block.className == "IntValue" then
425
				if block.Value > 0 then
426
					blocked = true
427
					block.Value = block.Value - 1
428
					print(block.Value)
429
				end
430
			end
431
		end
432
		if blocked == false then
433
			h.Health = h.Health - Damage
434
			--ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
435
		else
436
			h.Health = h.Health - (Damage / 2)
437
			--ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
438
		end
439
		if Type == "Knockdown" then
440
			local hum = hit.Parent.Humanoid
441
			hum.PlatformStand = true
442
			coroutine.resume(coroutine.create(function(HHumanoid)
443
				swait(1)
444
				HHumanoid.PlatformStand = false
445
			end), hum)
446
			local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
447
			local bodvol = Create("BodyVelocity"){
448
				velocity = angle * knockback,
449
				P = 5000,
450
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
451
				Parent = hit,
452
			}
453
			local rl = Create("BodyAngularVelocity"){
454
				P = 3000,
455
				maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
456
				angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
457
				Parent = hit,
458
			}
459
			game:GetService("Debris"):AddItem(bodvol, .5)
460
			game:GetService("Debris"):AddItem(rl, .5)
461
		elseif Type == "Normal" then
462
			local vp = Create("BodyVelocity"){
463
				P = 10,
464
				maxForce = Vector3.new(math.huge, 0, math.huge),
465
				velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
466
			}
467
			print(hit.Parent)
468
			if knockback > 0 then
469
				vp.Parent = hit.Parent.Torso
470
			end	
471
			local hum = hit.Parent.Humanoid
472
			hum.PlatformStand = true
473
local TotalMass = 0
474
for _, part in pairs(hit.Parent:GetChildren()) do
475
     if part:IsA("Part") then
476
          TotalMass = TotalMass + part:GetMass()
477
     end
478
end
479
480
481
482
local ForceOfGravity = -197 * TotalMass
483
local floatybits = Instance.new("BodyForce", hit.Parent.Torso)
484
floatybits.force = Vector3.new(0, -ForceOfGravity, 0)
485
486
487
488
489
490
491
spawn(function()
492
local spinny2=CFuncs.Part.Create(Torso, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "spinny2", Vector3.new())	
493
spinny2.Anchored=true
494
spinny2.CanCollide=false
495
for i = 0, 2, .001 do
496
local alg = math.floor(playlist.PlaybackLoudness)/500
497
local alg2 = math.floor(playlist.PlaybackLoudness)/80
498
local efekt2=CFuncs.Part.Create(hit.Parent.Torso, "Neon", 0, .3, BrickColor.new(maincol2), "ref", Vector3.new(.05,alg2,.3))	
499
efekt2.Anchored=true
500
efekt2.CanCollide=false
501
spinny2.CFrame = spinny2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0)
502
spinny2.Position = hit.Parent.Torso.Position
503
efekt2.CFrame=spinny2.CFrame*CFrame.new(aoeconstant-5,0,0)
504
game:GetService("Debris"):AddItem(efekt2, .7)
505
swait()
506
end
507
end)
508
509
			local rl = Create("BodyAngularVelocity"){
510
				P = 500,
511
				maxTorque = Vector3.new(10, 10, 10),
512
				angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
513
				Parent = hit,
514
			}					
515
game:GetService("Debris"):AddItem(rl, 10)
516
game:GetService("Debris"):AddItem(floatybits, 10)
517
game:GetService("Debris"):AddItem(vp, .5)
518
519
		elseif Type == "Up" then
520
			local bodyVelocity = Create("BodyVelocity"){
521
				velocity = Vector3.new(0, 20, 0),
522
				P = 5000,
523
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
524
				Parent = hit,
525
			}
526
			game:GetService("Debris"):AddItem(bodyVelocity, .5)
527
		elseif Type == "DarkUp" then
528
			coroutine.resume(coroutine.create(function()
529
				for i = 0, 1, 0.1 do
530
					swait()
531
					Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
532
				end
533
			end))
534
			local bodyVelocity = Create("BodyVelocity"){
535
				velocity = Vector3.new(0, 20, 0),
536
				P = 5000,
537
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
538
				Parent = hit,
539
			}
540
			game:GetService("Debris"):AddItem(bodyVelocity, 1)
541
		elseif Type == "Snare" then
542
			local bp = Create("BodyPosition"){
543
				P = 2000,
544
				D = 100,
545
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
546
				position = hit.Parent.Torso.Position,
547
				Parent = hit.Parent.Torso,
548
			}
549
			game:GetService("Debris"):AddItem(bp, 1)
550
		elseif Type == "Freeze" then
551
			local BodPos = Create("BodyPosition"){
552
				P = 50000,
553
				D = 1000,
554
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
555
				position = hit.Parent.Torso.Position,
556
				Parent = hit.Parent.Torso,
557
			}
558
			local BodGy = Create("BodyGyro") {
559
				maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
560
				P = 20e+003,
561
				Parent = hit.Parent.Torso,
562
				cf = hit.Parent.Torso.CFrame,
563
			}
564
			hit.Parent.Torso.Anchored = true
565
			coroutine.resume(coroutine.create(function(Part) 
566
				swait(1.5)
567
				Part.Anchored = false
568
			end), hit.Parent.Torso)
569
			game:GetService("Debris"):AddItem(BodPos, 3)
570
			game:GetService("Debris"):AddItem(BodGy, 3)
571
		end
572
		local debounce = Create("BoolValue"){
573
			Name = "DebounceHit",
574
			Parent = hit.Parent,
575
			Value = true,
576
		}
577
		game:GetService("Debris"):AddItem(debounce, Delay)
578
		c = Create("ObjectValue"){
579
			Name = "creator",
580
			Value = Player,
581
			Parent = h,
582
		}
583
		game:GetService("Debris"):AddItem(c, .5)
584
	end
585
end
586
587
function ShowDamage(Pos, Text, Time, Color)
588
	local Rate = (1 / 60)
589
	local Pos = (Pos or Vector3.new(0, 0, 0))
590
	local Text = (Text or "")
591
	local Time = (Time or 2)
592
	local Color = (Color or Color3.new(1, 0, 1))
593
	local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
594
	EffectPart.Anchored = true
595
	local BillboardGui = Create("BillboardGui"){
596
		Size = UDim2.new(3, 0, 3, 0),
597
		Adornee = EffectPart,
598
		Parent = EffectPart,
599
	}
600
	local TextLabel = Create("TextLabel"){
601
		BackgroundTransparency = 1,
602
		Size = UDim2.new(1, 0, 1, 0),
603
		Text = Text,
604
		Font = "SourceSansLight",
605
		TextColor3 = Color,
606
		TextScaled = true,
607
		Parent = BillboardGui,
608
	}
609
	game.Debris:AddItem(EffectPart, (Time))
610
	EffectPart.Parent = game:GetService("Workspace")
611
	delay(0, function()
612
		local Frames = (Time / Rate)
613
		for Frame = 1, Frames do
614
			wait(Rate)
615
			local Percent = (Frame / Frames)
616
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
617
			TextLabel.TextTransparency = Percent
618
		end
619
		if EffectPart and EffectPart.Parent then
620
			EffectPart:Destroy()
621
		end
622
	end)
623
end
624
625
function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
626
	for _, c in pairs(workspace:children()) do
627
		local hum = c:findFirstChild("Humanoid")
628
		if hum ~= nil then
629
			local head = c:findFirstChild("Torso")
630
			if head ~= nil then
631
				local targ = head.Position - Part.Position
632
				local mag = targ.magnitude
633
				if mag <= Magnitude and c.Name ~= Player.Name then 
634
					Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, 10, "rbxassetid://" .. HitSound, HitPitch)
635
				end
636
			end
637
		end
638
	end
639
end
640
641
EffectModel = Create("Model"){
642
	Parent = Character,
643
	Name = "EffectModel",
644
}
645
646
Effects = {
647
	Block = {
648
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, Part)
649
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
650
			prt.Anchored = true
651
			prt.CFrame = cframe
652
			msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
653
			game:GetService("Debris"):AddItem(prt, 10)
654
			if Type == 1 or Type == nil then
655
				table.insert(Effects, {
656
					prt,
657
					"Block1",
658
					delay,
659
					x3,
660
					y3,
661
					z3,
662
					msh
663
				})
664
			elseif Type == 2 then
665
				table.insert(Effects, {
666
					prt,
667
					"Block2",
668
					delay,
669
					x3,
670
					y3,
671
					z3,
672
					msh
673
				})
674
			elseif Type == 3 then
675
				table.insert(Effects, {
676
					prt,
677
					"Block3",
678
					delay,
679
					x3,
680
					y3,
681
					z3,
682
					msh,
683
					Part
684
				})
685
			elseif Type == 4 then
686
				table.insert(Effects, {
687
					prt,
688
					"Block2Fire",
689
					delay,
690
					x3,
691
					y3,
692
					z3,
693
					msh
694
				})
695
			end
696
		end
697
	};
698
699
	Sphere = {
700
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, parent)
701
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
702
			prt.Anchored = true
703
			prt.CFrame = cframe
704
			if parent == nil then
705
				prt.Parent = workspace
706
			else
707
				prt.Parent = parent
708
			end
709
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
710
			game:GetService("Debris"):AddItem(prt, 10)
711
			table.insert(Effects, {
712
				prt,
713
				"Cylinder",
714
				delay,
715
				x3,
716
				y3,
717
				z3,
718
				msh
719
			})
720
		end
721
	};
722
723
	Blood = {
724
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
725
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
726
			prt.Anchored = true
727
			prt.CFrame = cframe
728
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
729
			game:GetService("Debris"):AddItem(prt, 10)
730
			table.insert(Effects, {
731
				prt,
732
				"Blood",
733
				delay,
734
				x3,
735
				y3,
736
				z3,
737
				msh
738
			})
739
		end
740
	};
741
742
	Blast = {
743
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Part)
744
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
745
			prt.Anchored = true
746
			prt.CFrame = cframe
747
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "1323306", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
748
			game:GetService("Debris"):AddItem(prt, 10)
749
			table.insert(Effects, {
750
				prt,
751
				"Block4",
752
				delay,
753
				x3,
754
				y3,
755
				z3,
756
				msh,
757
				Part
758
			})
759
		end
760
	};
761
762
	Ring = {
763
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
764
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
765
			prt.Anchored = true
766
			prt.CFrame = cframe
767
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
768
			game:GetService("Debris"):AddItem(prt, 10)
769
			table.insert(Effects, {
770
				prt,
771
				"Cylinder",
772
				delay,
773
				x3,
774
				y3,
775
				z3,
776
				msh
777
			})
778
		end
779
	};
780
781
	Cylinder = {
782
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
783
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
784
			prt.Anchored = true
785
			prt.CFrame = cframe
786
			local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
787
			game:GetService("Debris"):AddItem(prt, 10)
788
			table.insert(Effects, {
789
				prt,
790
				"Cylinder",
791
				delay,
792
				x3,
793
				y3,
794
				z3,
795
				msh
796
			})
797
		end
798
	};
799
800
	Head = {
801
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
802
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
803
			prt.Anchored = true
804
			prt.CFrame = cframe
805
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
806
			game:GetService("Debris"):AddItem(prt, 10)
807
			table.insert(Effects, {
808
				prt,
809
				"Cylinder",
810
				delay,
811
				x3,
812
				y3,
813
				z3,
814
				msh
815
			})
816
		end
817
	};
818
819
	Wave = {
820
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
821
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
822
			prt.Anchored = true
823
			prt.CFrame = cframe
824
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
825
			game:GetService("Debris"):AddItem(prt, 10)
826
			table.insert(Effects, {
827
				prt,
828
				"Cylinder",
829
				delay,
830
				x3,
831
				y3,
832
				z3,
833
				msh
834
			})
835
		end
836
	};
837
838
	Break = {
839
		Create = function(brickcolor, cframe, x1, y1, z1)
840
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
841
			prt.Anchored = true
842
			prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
843
			game:GetService("Debris"):AddItem(prt, 10)
844
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
845
			local num = math.random(10, 50) / 1000
846
			table.insert(Effects, {
847
				prt,
848
				"Shatter",
849
				num,
850
				prt.CFrame,
851
				math.random() - math.random(),
852
				0,
853
				math.random(50, 100) / 100
854
			})
855
		end
856
	};
857
858
	Elec = {
859
		Create = function(brickcolor, cff, x, y, z)
860
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
861
			prt.Anchored = true
862
			prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100)
863
			prt.CFrame = CFrame.new(prt.Position)
864
			game:GetService("Debris"):AddItem(prt, 10)
865
			xval = math.random() / 9
866
			yval = math.random() / 9
867
			zval = math.random() / 9
868
			msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
869
			eul1 = math.random(-50, 50)
870
			eul2 = math.random(-50, 50)
871
			eul3 = math.random(-50, 50)
872
			euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
873
			euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
874
			table.insert(Effects, {
875
				prt,
876
				"Elec",
877
				.05,
878
				x,
879
				y,
880
				z,
881
				xval,
882
				yval,
883
				zval,
884
				msh,
885
				euld,
886
				euld2
887
			})
888
		end
889
	};
890
891
	Elec2 = {
892
		Create = function(brickcolor, cff, x, y, z)
893
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
894
			prt.Anchored = true
895
			prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100)
896
			prt.CFrame = CFrame.new(prt.Position)
897
			game:GetService("Debris"):AddItem(prt, 10)
898
			xval = math.random() / 7
899
			yval = math.random() / 7
900
			zval = math.random() / 7
901
			msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
902
			eul1 = math.random(-50, 50)
903
			eul2 = math.random(-50, 50)
904
			eul3 = math.random(-50, 50)
905
			euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
906
			euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
907
			table.insert(Effects, {
908
				prt,
909
				"Elec",
910
				.1,
911
				x,
912
				y,
913
				z,
914
				xval,
915
				yval,
916
				zval,
917
				msh,
918
				euld,
919
				euld2
920
			})
921
		end
922
	};
923
924
	Clone = {
925
		Create = function() 
926
			for _, v in pairs(Torso.Parent:children()) do
927
				if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
928
					local c = CFuncs.Part.Create(EffectModel, "Neon", 0, .5, BrickColor.new("Bright blue"), "Effect", v.Size)
929
					c.Anchored = true
930
					c.CFrame = v.CFrame
931
					game:GetService("Debris"):AddItem(c, 5)
932
					local cmsh = nil
933
					if v.Name == "Head" then
934
						cmsh = CFuncs.Mesh.Create("SpecialMesh", c, "Head", "", Vector3.new(0, 0, 0), v.Mesh.Scale)
935
					else
936
						cmsh = CFuncs.Mesh.Create("BlockMesh", c, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
937
					end
938
					table.insert(Effects, {
939
						c,
940
						"Cylinder",
941
						0.05,
942
						0.1,
943
						0.1,
944
						0.1,
945
						cmsh
946
					})
947
				end
948
			end
949
		end
950
	};
951
952
	EffectTemplate = {
953
954
	};
955
}
956
957
958
959
960
961
962
963
Mouse.Button1Down:connect(function()
964
		if Mouse ~= nil then
965
			if Mouse.Target ~= nil then
966
				part = Mouse.Target
967
				bp = Instance.new("BodyPosition",part)
968
				bp.MaxForce = Vector3.new(5000,5000,5000)
969
				bp.Position = part.Position
970
				dwn = true
971
			end
972
		while dwn == true do 
973
			wait()	
974
			bp.Position = Mouse.hit.p
975
			if part then
976
				if part.Parent:FindFirstChildOfClass("Humanoid") then
977
					part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
978
				end
979
			end
980
		end
981
	end
982
end)
983
Mouse.Button1Up:connect(function()
984
	dwn = false
985
	if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
986
	if bp then bp:Destroy() end
987
end)
988
	
989
990
Mouse.KeyDown:connect(function(k)
991
	k = k:lower()
992
	if k == 'm'  then
993
ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 5, 0)), quotes[math.random(#quotes)], 5, BrickColor.new(maincol2).Color)
994
playlist:Destroy()
995
playlist=Instance.new("Sound", Torso)
996
playlist.SoundId = "rbxassetid://" ..songs[math.random(#songs)]
997
playlist.Volume = 5
998
playlist.Looped = false
999
playlist.Name = "playlist"
1000
playlist:Play()
1001
	elseif k == 'n' and circleinthesky == false then
1002
circleinthesky = true
1003
	elseif k == 'n' and circleinthesky == true then
1004
circleinthesky = false
1005
end
1006
end)
1007
1008
1009
1010
while true do
1011
	swait()
1012
	for i, v in pairs(Character:GetChildren()) do
1013
		if v:IsA("Part") then
1014
			v.Material = "SmoothPlastic"
1015
		elseif v:IsA("Accessory") then
1016
			v:WaitForChild("Handle").Material = "SmoothPlastic"
1017
		end
1018
	end
1019
	for i, v in pairs(Character:GetChildren()) do
1020
		if v:IsA'Model' then
1021
			for _, c in pairs(v:GetChildren()) do
1022
				if c:IsA'Part' then
1023
					c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
1024
				end
1025
			end
1026
		end
1027
	end
1028
	if playlist.IsPlaying == false then
1029
ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 5, 0)), quotes[math.random(#quotes)], 5,  BrickColor.new(maincol2).Color)
1030
playlist:Destroy()
1031
playlist=Instance.new("Sound", Torso)
1032
playlist.SoundId = "rbxassetid://" ..songs[math.random(#songs)]
1033
playlist.Volume = 5
1034
playlist.Looped = false
1035
playlist.Name = "playlist"
1036
playlist:Play()
1037
end
1038
	TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
1039
	Velocity = RootPart.Velocity.y
1040
	Sine = Sine + Change
1041
	local hit, pos = RayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
1042
	if RootPart.Velocity.y > 1 and hit == nil then 
1043
		Anim = "Jump"
1044
		if Attack == false then
1045
			Change = 1
1046
		PlayAnimationFromTable({
1047
         CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0), 
1048
         CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .05 * math.cos(Sine/35), 0, 0), 
1049
         CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), 
1050
         CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), 
1051
         CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0), 
1052
         CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0), 
1053
		}, .3, false)
1054
		MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8)
1055
		end
1056
	elseif RootPart.Velocity.y < -1 and hit == nil then 
1057
		Anim = "Fall"
1058
		if Attack == false then
1059
			Change = 1
1060
		PlayAnimationFromTable({
1061
         CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0), 
1062
         CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .05 * math.cos(Sine/35), 0, 0), 
1063
         CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), 
1064
         CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), 
1065
         CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0), 
1066
         CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0), 
1067
		}, .3, false)
1068
		MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8)
1069
		end	
1070
	elseif TorsoVelocity < 1 and hit ~= nil then
1071
		Anim = "Idle"
1072
		if Attack == false then
1073
			Change = 1
1074
		PlayAnimationFromTable({
1075
         CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0), 
1076
         CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .1 * math.cos(Sine/35), 0, 0), 
1077
         CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), 
1078
         CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), 
1079
         CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0), 
1080
         CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0), 
1081
		}, .3, false)
1082
		MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8)
1083
		end
1084
	elseif TorsoVelocity > 2 and hit ~= nil then
1085
		Anim = "Walk"
1086
            if Attack == false then
1087
		PlayAnimationFromTable({
1088
         CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0), 
1089
         CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .05 * math.cos(Sine/35), 0, 0), 
1090
         CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), 
1091
         CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), 
1092
         CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0), 
1093
         CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0), 
1094
		}, .3, false)
1095
		MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8)
1096
		end
1097
	end
1098
	if #Effects > 0 then
1099
		for e = 1, #Effects do
1100
			if Effects[e] ~= nil then
1101
				local Thing = Effects[e]
1102
				if Thing ~= nil then
1103
					local Part = Thing[1]
1104
					local Mode = Thing[2]
1105
					local Delay = Thing[3]
1106
					local IncX = Thing[4]
1107
					local IncY = Thing[5]
1108
					if Thing[1].Transparency <= 1 then
1109
						if Thing[2] == "Block1" then
1110
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1111
							Mesh = Thing[7]
1112
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1113
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1114
						elseif Thing[2] == "Ice" then
1115
							if Thing[6] <= Thing[5] then
1116
								Thing[6] = Thing[6] + .05
1117
								Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .4, 0)
1118
							else
1119
								Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1120
							end
1121
						elseif Thing[2] == "Shatter" then
1122
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1123
							Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
1124
							Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1125
							Thing[6] = Thing[6] + Thing[5]
1126
						elseif Thing[2] == "Block2" then
1127
							Thing[1].CFrame = Thing[1].CFrame
1128
							Mesh = Thing[7]
1129
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1130
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1131
						elseif Thing[2] == "Block3" then
1132
							Thing[1].CFrame = Thing[8].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1133
							Mesh = Thing[7]
1134
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1135
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1136
						elseif Thing[2] == "Block4" then
1137
							Thing[1].CFrame = Thing[8].CFrame * CFrame.new(0, -Thing[7].Scale.Y, 0) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0)
1138
							Mesh = Thing[7]
1139
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1140
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1141
						elseif Thing[2] == "Block2Fire" then
1142
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1143
							Mesh = Thing[7]
1144
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1145
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1146
							if Thing[1].Transparency >= .3 then
1147
								Thing[1].BrickColor = BrickColor.new("Bright red")
1148
							else
1149
								Thing[1].BrickColor = BrickColor.new("Bright yellow")
1150
							end
1151
						elseif Thing[2] == "Cylinder" then
1152
							Mesh = Thing[7]
1153
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1154
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1155
						elseif Thing[2] == "Blood" then
1156
							Mesh = Thing[7]
1157
							Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, -.5, 0)
1158
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1159
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1160
						elseif Thing[2] == "Elec" then
1161
							Mesh = Thing[10]
1162
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1163
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1164
							Thing[1].CFrame = Thing[1].CFrame * Thing[11] * CFrame.new(0, 0, .2)
1165
							Thing[1].Rotation = Vector3.new(0, 0, 0)
1166
						elseif Thing[2] == "Disappear" then
1167
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1168
						end
1169
					else
1170
						Part.Parent = nil
1171
						table.remove(Effects, e)
1172
					end
1173
				end
1174
			end
1175
		end
1176
	end
1177
local alg = math.floor(playlist.PlaybackLoudness)/500
1178
local alg2 = math.floor(playlist.PlaybackLoudness)/80
1179
1180
if circleinthesky == false then
1181
FloatField2.BrickColor = BrickColor.new(maincol2)
1182
spinny.Position = Torso.Position
1183
spinny.CFrame = spinny.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0)
1184
efekt=CFuncs.Part.Create(Torso, "Neon", 0, .3, BrickColor.new(maincol2), "ref", Vector3.new(.05,alg2,.3))	
1185
efekt.Anchored=true
1186
efekt.CanCollide=false
1187
game:GetService("Debris"):AddItem(efekt, .5)
1188
--ShowDamage((efekt.CFrame * CFrame.new(0, 0, (Torso.Size.Z / 102)).p + Vector3.new(0, 0, 0)), ".", 1, BrickColor.new(maincol2).Color)
1189
efekt.CFrame=spinny.CFrame*CFrame.new(aoeconstant,0,0)
1190
1191
      elseif circleinthesky == true then
1192
1193
FloatField2.BrickColor = BrickColor.new(maincol2)
1194
spinny.Position = Torso.Position
1195
spinny.CFrame = spinny.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0)
1196
efekt=CFuncs.Part.Create(Torso, "Neon", 0, .3, BrickColor.new(maincol2), "ref", Vector3.new(1+alg2,.05,.3))	
1197
efekt.Anchored=true
1198
efekt.CanCollide=false
1199
efekt2=CFuncs.Part.Create(Torso, "Neon", 0, .3, BrickColor.new(maincol2), "ref", Vector3.new(alg2,.05,.3))	
1200
efekt2.Anchored=true
1201
efekt2.CanCollide=false
1202
game:GetService("Debris"):AddItem(efekt, 2)
1203
game:GetService("Debris"):AddItem(efekt2, 2)
1204
--ShowDamage((efekt.CFrame * CFrame.new(0, 0, (Torso.Size.Z / 102)).p + Vector3.new(0, 0, 0)), ".", 1, BrickColor.new(maincol2).Color)
1205
efekt.CFrame=spinny.CFrame*CFrame.new(aoeconstant,20,0)	
1206
efekt2.CFrame=spinny.CFrame*CFrame.new(aoeconstant-4,10,0)	
1207
end	
1208
humanoid.Health = math.huge
1209
soundbork(workspace) 
1210
end