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