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