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