View difference between Paste ID: GgtvHBMm and Md1NdniU
SHOW: | | - or go back to the newest paste.
1
local remote = NS ([=[
2
--[[
3
	SUN IS A DEADLY LASER SCRIPT
4
		{ NOT ANYMORE THERE'S A BLANKET! }
5
		Created by Minty_Latios (ROBLOX)
6
				   MintyLatios (V3rmillion)
7
				   Minty Latios#1938
8
				   
9
				   
10
--]]
11
wait(1 / 60)
12
Effects = { }
13
local Player = owner
14
local Character = Player.Character
15
local Humanoid = Character.Humanoid
16-
local Mouse = owner:GetMouse()
16+
local Mouse = Player:GetMouse()
17
local LeftArm = Character["Left Arm"]
18
local RightArm = Character["Right Arm"]
19
local LeftLeg = Character["Left Leg"]
20
local RightLeg = Character["Right Leg"]
21
local Head = Character.Head
22
local Torso = Character.Torso
23
local Camera = game.Workspace.CurrentCamera
24
local RootPart = Character.HumanoidRootPart
25
local RootJoint = RootPart.RootJoint
26
local attack = false
27
local Anim = 'Idle'
28
local attacktype = 1
29
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
30
local velocity = RootPart.Velocity.y
31
local sine = 0
32
local change = 1
33
local Create = LoadLibrary("RbxUtility").Create
34
35
local m = Create("Model"){
36
	Parent = Character,
37
	Name = "WeaponModel",
38
}
39
40
Humanoid.Animator.Parent = nil
41
Character.Animate.Parent = nil
42
43
local newMotor = function(part0, part1, c0, c1)
44
	local w = Create('Motor'){
45
		Parent = part0,
46
		Part0 = part0,
47
		Part1 = part1,
48
		C0 = c0,
49
		C1 = c1,
50
	}
51
	return w
52
end
53
54
function clerp(a, b, t)
55
	return a:lerp(b, t)
56
end
57
58
RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
59
NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
60
61
local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) 
62
local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
63
local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
64
local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
65
RootJoint.C1 = CFrame.new(0, 0, 0)
66
RootJoint.C0 = CFrame.new(0, 0, 0)
67
Torso.Neck.C1 = CFrame.new(0, 0, 0)
68
Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
69
70
local rarmc1 = RW.C1
71
local larmc1 = LW.C1
72
local rlegc1 = RH.C1
73
local llegc1 = LH.C1
74
75
local resetc1 = false
76
77
function PlayAnimationFromTable(table, speed, bool)
78
	RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) 
79
	Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) 
80
	RW.C0 = clerp(RW.C0, table[3], speed) 
81
	LW.C0 = clerp(LW.C0, table[4], speed) 
82
	RH.C0 = clerp(RH.C0, table[5], speed) 
83
	LH.C0 = clerp(LH.C0, table[6], speed) 
84
	if bool == true then
85
		if resetc1 == false then
86
			resetc1 = true
87
			RootJoint.C1 = RootJoint.C1
88
			Torso.Neck.C1 = Torso.Neck.C1
89
			RW.C1 = rarmc1
90
			LW.C1 = larmc1
91
			RH.C1 = rlegc1
92
			LH.C1 = llegc1
93
		end
94
	end
95
end
96
97
ArtificialHB = Create("BindableEvent", script){
98
	Parent = script,
99
	Name = "Heartbeat",
100
}
101
102
script:WaitForChild("Heartbeat")
103
104
frame = 1 / 30
105
tf = 0
106
allowframeloss = false
107
tossremainder = false
108
lastframe = tick()
109
script.Heartbeat:Fire()
110
111
game:GetService("RunService").Heartbeat:connect(function(s, p)
112
	tf = tf + s
113
	if tf >= frame then
114
		if allowframeloss then
115
			script.Heartbeat:Fire()
116
			lastframe = tick()
117
		else
118
			for i = 1, math.floor(tf / frame) do
119
				script.Heartbeat:Fire()
120
			end
121
			lastframe = tick()
122
		end
123
		if tossremainder then
124
			tf = 0
125
		else
126
			tf = tf - frame * math.floor(tf / frame)
127
		end
128
	end
129
end)
130
131
function swait(num)
132
	if num == 0 or num == nil then
133
		ArtificialHB.Event:wait()
134
	else
135
		for i = 0, num do
136
			ArtificialHB.Event:wait()
137
		end
138
	end
139
end
140
141
function RemoveOutlines(part)
142
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
143
end
144
	
145
CFuncs = {	
146
	["Part"] = {
147
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
148
			local Part = Create("Part"){
149
				Parent = Parent,
150
				Reflectance = Reflectance,
151
				Transparency = Transparency,
152
				CanCollide = false,
153
				Locked = true,
154
				BrickColor = BrickColor.new(tostring(BColor)),
155
				Name = Name,
156
				Size = Size,
157
				Material = Material,
158
			}
159
			RemoveOutlines(Part)
160
			return Part
161
		end;
162
	};
163
	
164
	["Mesh"] = {
165
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
166
			local Msh = Create(Mesh){
167
				Parent = Part,
168
				Offset = OffSet,
169
				Scale = Scale,
170
			}
171
			if Mesh == "SpecialMesh" then
172
				Msh.MeshType = MeshType
173
				Msh.MeshId = MeshId
174
			end
175
			return Msh
176
		end;
177
	};
178
	
179
	["Mesh"] = {
180
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
181
			local Msh = Create(Mesh){
182
				Parent = Part,
183
				Offset = OffSet,
184
				Scale = Scale,
185
			}
186
			if Mesh == "SpecialMesh" then
187
				Msh.MeshType = MeshType
188
				Msh.MeshId = MeshId
189
			end
190
			return Msh
191
		end;
192
	};
193
	
194
	["Weld"] = {
195
		Create = function(Parent, Part0, Part1, C0, C1)
196
			local Weld = Create("Weld"){
197
				Parent = Parent,
198
				Part0 = Part0,
199
				Part1 = Part1,
200
				C0 = C0,
201
				C1 = C1,
202
			}
203
			return Weld
204
		end;
205
	};
206
207
	["Sound"] = {
208
		Create = function(id, par, vol, pit) 
209
			coroutine.resume(coroutine.create(function()
210
				local S = Create("Sound"){
211
					Volume = vol,
212
					Pitch = pit or 1,
213
					SoundId = id,
214
					Parent = par or workspace,
215
				}
216
				wait() 
217
				S:play() 
218
				game:GetService("Debris"):AddItem(S, 6)
219
			end))
220
		end;
221
	};
222
	
223
	["ParticleEmitter"] = {
224
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
225
			local fp = Create("ParticleEmitter"){
226
				Parent = Parent,
227
				Color = ColorSequence.new(Color1, Color2),
228
				LightEmission = LightEmission,
229
				Size = Size,
230
				Texture = Texture,
231
				Transparency = Transparency,
232
				ZOffset = ZOffset,
233
				Acceleration = Accel,
234
				Drag = Drag,
235
				LockedToPart = LockedToPart,
236
				VelocityInheritance = VelocityInheritance,
237
				EmissionDirection = EmissionDirection,
238
				Enabled = Enabled,
239
				Lifetime = LifeTime,
240
				Rate = Rate,
241
				Rotation = Rotation,
242
				RotSpeed = RotSpeed,
243
				Speed = Speed,
244
				VelocitySpread = VelocitySpread,
245
			}
246
			return fp
247
		end;
248
	};
249
250
	CreateTemplate = {
251
	
252
	};
253
}
254
255
function rayCast(Position, Direction, Range, Ignore)
256
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
257
end 
258
259
FindNearestTorso = function(pos)
260
	local list = (game.Workspace:children())
261
	local torso = nil
262
	local dist = 1000
263
	local temp, human, temp2 = nil, nil, nil
264
	for x = 1, #list do
265
		temp2 = list[x]
266
		if temp2.className == "Model" and temp2.Name ~= Character.Name then
267
			temp = temp2:findFirstChild("Torso")
268
			human = temp2:findFirstChild("Humanoid")
269
			if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
270
				local dohit = true
271
				if dohit == true then
272
					torso = temp
273
					dist = (temp.Position - pos).magnitude
274
				end
275
			end
276
		end
277
	end
278
	return torso, dist
279
end
280
281
function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
282
	if hit.Parent == nil then
283
		return
284
	end
285
	local h = hit.Parent:FindFirstChild("Humanoid")
286
	for _, v in pairs(hit.Parent:children()) do
287
		if v:IsA("Humanoid") then
288
			h = v
289
		end
290
	end
291
	if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
292
		if hit.Parent:findFirstChild("DebounceHit") ~= nil then
293
			if hit.Parent.DebounceHit.Value == true then
294
				return
295
			end
296
		end
297
		local c = Create("ObjectValue"){
298
			Name = "creator",
299
			Value = Character,
300
			Parent = h,
301
		}
302
		game:GetService("Debris"):AddItem(c, .5)
303
		if HitSound ~= nil and HitPitch ~= nil then
304
			CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) 
305
		end
306
		local Damage = math.random(minim, maxim)
307
		local blocked = false
308
		local block = hit.Parent:findFirstChild("Block")
309
		if block ~= nil then
310
			if block.className == "IntValue" then
311
				if block.Value > 0 then
312
					blocked = true
313
					block.Value = block.Value - 1
314
					print(block.Value)
315
				end
316
			end
317
		end
318
		if blocked == false then
319
			h.Health = h.Health - Damage
320
			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)
321
		else
322
			h.Health = h.Health - (Damage / 2)
323
			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)
324
		end
325
		if Type == "Knockdown" then
326
			local hum = hit.Parent.Humanoid
327
			hum.PlatformStand = true
328
			coroutine.resume(coroutine.create(function(HHumanoid)
329
				swait(1)
330
				HHumanoid.PlatformStand = false
331
			end), hum)
332
			local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
333
			local bodvol = Create("BodyVelocity"){
334
				velocity = angle * knockback,
335
				P = 5000,
336
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
337
				Parent = hit,
338
			}
339
			local rl = Create("BodyAngularVelocity"){
340
				P = 3000,
341
				maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
342
				angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
343
				Parent = hit,
344
			}
345
			game:GetService("Debris"):AddItem(bodvol, .5)
346
			game:GetService("Debris"):AddItem(rl, .5)
347
		elseif Type == "Normal" then
348
			local vp = Create("BodyVelocity"){
349
				P = 500,
350
				maxForce = Vector3.new(math.huge, 0, math.huge),
351
				velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
352
			}
353
			if knockback > 0 then
354
				vp.Parent = hit.Parent.Torso
355
			end
356
			game:GetService("Debris"):AddItem(vp, .5)
357
		elseif Type == "Up" then
358
			local bodyVelocity = Create("BodyVelocity"){
359
				velocity = Vector3.new(0, 20, 0),
360
				P = 5000,
361
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
362
				Parent = hit,
363
			}
364
			game:GetService("Debris"):AddItem(bodyVelocity, .5)
365
		elseif Type == "DarkUp" then
366
			coroutine.resume(coroutine.create(function()
367
				for i = 0, 1, 0.1 do
368
					swait()
369
					Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
370
				end
371
			end))
372
			local bodyVelocity = Create("BodyVelocity"){
373
				velocity = Vector3.new(0, 20, 0),
374
				P = 5000,
375
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
376
				Parent = hit,
377
			}
378
			game:GetService("Debris"):AddItem(bodyVelocity, 1)
379
		elseif Type == "Snare" then
380
			local bp = Create("BodyPosition"){
381
				P = 2000,
382
				D = 100,
383
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
384
				position = hit.Parent.Torso.Position,
385
				Parent = hit.Parent.Torso,
386
			}
387
			game:GetService("Debris"):AddItem(bp, 1)
388
		elseif Type == "Freeze" then
389
			local BodPos = Create("BodyPosition"){
390
				P = 50000,
391
				D = 1000,
392
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
393
				position = hit.Parent.Torso.Position,
394
				Parent = hit.Parent.Torso,
395
			}
396
			local BodGy = Create("BodyGyro") {
397
				maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
398
				P = 20e+003,
399
				Parent = hit.Parent.Torso,
400
				cframe = hit.Parent.Torso.CFrame,
401
			}
402
			hit.Parent.Torso.Anchored = true
403
			coroutine.resume(coroutine.create(function(Part) 
404
				swait(1.5)
405
				Part.Anchored = false
406
			end), hit.Parent.Torso)
407
			game:GetService("Debris"):AddItem(BodPos, 3)
408
			game:GetService("Debris"):AddItem(BodGy, 3)
409
		end
410
		local debounce = Create("BoolValue"){
411
			Name = "DebounceHit",
412
			Parent = hit.Parent,
413
			Value = true,
414
		}
415
		game:GetService("Debris"):AddItem(debounce, Delay)
416
		c = Create("ObjectValue"){
417
			Name = "creator",
418
			Value = Character,
419
			Parent = h,
420
		}
421
		game:GetService("Debris"):AddItem(c, .5)
422
	end
423
end
424
425
function ShowDamage(Pos, Text, Time, Color)
426
	local Rate = (1 / 30)
427
	local Pos = (Pos or Vector3.new(0, 0, 0))
428
	local Text = (Text or "")
429
	local Time = (Time or 2)
430
	local Color = (Color or Color3.new(1, 0, 1))
431
	local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
432
	EffectPart.Anchored = true
433
	local BillboardGui = Create("BillboardGui"){
434
		Size = UDim2.new(3, 0, 3, 0),
435
		Adornee = EffectPart,
436
		Parent = EffectPart,
437
	}
438
	local TextLabel = Create("TextLabel"){
439
		BackgroundTransparency = 1,
440
		Size = UDim2.new(1, 0, 1, 0),
441
		Text = Text,
442
		Font = "SciFi",
443
		TextColor3 = Color,
444
		TextScaled = true,
445
		Parent = BillboardGui,
446
	}
447
	game.Debris:AddItem(EffectPart, (Time))
448
	EffectPart.Parent = game:GetService("Workspace")
449
	delay(0, function()
450
		local Frames = (Time / Rate)
451
		for Frame = 1, Frames do
452
			wait(Rate)
453
			local Percent = (Frame / Frames)
454
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
455
			TextLabel.TextTransparency = Percent
456
		end
457
		if EffectPart and EffectPart.Parent then
458
			EffectPart:Destroy()
459
		end
460
	end)
461
end
462
463
function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
464
	for _, c in pairs(workspace:children()) do
465
		local hum = c:findFirstChild("Humanoid")
466
		if hum ~= nil then
467
			local head = c:findFirstChild("Torso")
468
			if head ~= nil then
469
				local targ = head.Position - Part.Position
470
				local mag = targ.magnitude
471
				if mag <= Magnitude and c.Name ~= Character.Name then 
472
					Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
473
				end
474
			end
475
		end
476
	end
477
end
478
479
EffectModel = Create("Model"){
480
	Parent = Character,
481
	Name = "Effects",
482
}
483
484
Humanoid.WalkSpeed = 0
485
Humanoid.JumpPower = 0
486
487
CFuncs['Sound'].Create("rbxassetid://836740253",Character,10,1)
488
attack = true
489
490
New = function(Object, Parent, Name, Data)
491
	local Object = Instance.new(Object)
492
	for Index, Value in pairs(Data or {}) do
493
		Object[Index] = Value
494
	end
495
	Object.Parent = Parent
496
	Object.Name = Name
497
	return Object
498
end
499
500
Deadly = New("Model",Torso,"Deadly",{})
501
Sun = New("Part",Deadly,"Sun",{BrickColor = BrickColor.new("New Yeller"),Material = Enum.Material.Neon,Size = Vector3.new(0.5, 0.5, 0.5),CFrame = CFrame.new(-128.325043, 6.92500401, -88.5550079, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 1, 0),})
502
SunWeld = New("Weld",Sun,"Weld",{Part0 = Sun,Part1 = Torso,C0 = CFrame.new(0,10,-10)})
503
Mesh = New("SpecialMesh",Sun,"Mesh",{Scale = Vector3.new(25, 25, 25),MeshType = Enum.MeshType.Sphere,})
504
505
506
wait(2.4)
507
for i = 0, 5, .1 do
508
	swait()
509
	PlayAnimationFromTable({
510
     CFrame.new(0, -0, 0, 1, 0, -0, 0, 1, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
511
     CFrame.new(7.62939453e-06, 1.49997127, 0, 1, 0, -0, 0, 1, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
512
     CFrame.new(1.49998116, 1.30000138, -0, -0.925471961, -0.378816098, -0, 0.378816068, -0.925472021, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
513
     CFrame.new(-1.49998665, -7.67409801e-07, 0, 0.996534884, 0.083175458, -0, -0.0831753537, 0.996536195, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
514
     CFrame.new(0.500002444, -1.99997056, 0, 0.997888863, -0.0649460033, -0, 0.0649460033, 0.997888863, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
515
     CFrame.new(-0.499981999, -1.99997056, 0, 0.998180926, 0.0602900013, -0, -0.0602900013, 0.998180926, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
516
	}, .1, false)
517
	SunWeld.C0 = clerp(SunWeld.C0, CFrame.new(0,-15,-10), 0.1)
518
end
519
wait(0.5)
520
Humanoid.WalkSpeed = 19
521
Humanoid.JumpPower = 75
522
attack = false
523
524
Effects = {
525
	Block = {
526
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
527
			local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
528
			prt.Anchored = true
529
			prt.CFrame = cframe
530
			local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
531
			game:GetService("Debris"):AddItem(prt, 10)
532
			if Type == 1 or Type == nil then
533
				table.insert(Effects, {
534
					prt,
535
					"Block1",
536
					delay,
537
					x3,
538
					y3,
539
					z3,
540
					msh
541
				})
542
			elseif Type == 2 then
543
				table.insert(Effects, {
544
					prt,
545
					"Block2",
546
					delay,
547
					x3,
548
					y3,
549
					z3,
550
					msh
551
				})
552
			end
553
		end;
554
	};
555
556
		Cylinder = {
557
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
558
			local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
559
			prt.Anchored = true
560
			prt.CFrame = cframe
561
			local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
562
			game:GetService("Debris"):AddItem(prt, 10)
563
			table.insert(Effects, {
564
				prt,
565
				"Cylinder",
566
				delay,
567
				x3,
568
				y3,
569
				z3,
570
				msh
571
			})
572
		end;
573
	};
574
	Head = {
575
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
576
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
577
			prt.Anchored = true
578
			prt.CFrame = cframe
579
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
580
			game:GetService("Debris"):AddItem(prt, 10)
581
			table.insert(Effects, {
582
				prt,
583
				"Cylinder",
584
				delay,
585
				x3,
586
				y3,
587
				z3,
588
				msh
589
			})
590
		end;
591
	};
592
	
593
	Sphere = {
594
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
595
			local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
596
			prt.Anchored = true
597
			prt.CFrame = cframe
598
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
599
			game:GetService("Debris"):AddItem(prt, 10)
600
			table.insert(Effects, {
601
				prt,
602
				"Cylinder",
603
				delay,
604
				x3,
605
				y3,
606
				z3,
607
				msh
608
			})
609
		end;
610
	};
611
	
612
	Elect = {
613
		Create = function(cff, x, y, z)
614
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
615
			prt.Anchored = true
616
			prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
617
			prt.CFrame = CFrame.new(prt.Position)
618
			game:GetService("Debris"):AddItem(prt, 2)
619
			local xval = math.random() / 2
620
			local yval = math.random() / 2
621
			local zval = math.random() / 2
622
			local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
623
			table.insert(Effects, {
624
				prt,
625
				"Elec",
626
				0.1,
627
				x,
628
				y,
629
				z,
630
				xval,
631
				yval,
632
				zval
633
			})
634
		end;
635
636
	};
637
	
638
	Ring = {
639
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
640
			local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
641
			prt.Anchored = true
642
			prt.CFrame = cframe
643
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
644
			game:GetService("Debris"):AddItem(prt, 10)
645
			table.insert(Effects, {
646
				prt,
647
				"Cylinder",
648
				delay,
649
				x3,
650
				y3,
651
				z3,
652
				msh
653
			})
654
		end;
655
	};
656
657
658
	Wave = {
659
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
660
			local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
661
			prt.Anchored = true
662
			prt.CFrame = cframe
663
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
664
			game:GetService("Debris"):AddItem(prt, 10)
665
			table.insert(Effects, {
666
				prt,
667
				"Cylinder",
668
				delay,
669
				x3,
670
				y3,
671
				z3,
672
				msh
673
			})
674
		end;
675
	};
676
677
	Break = {
678
		Create = function(brickcolor, cframe, x1, y1, z1)
679
			local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
680
			prt.Anchored = true
681
			prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
682
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
683
			local num = math.random(10, 50) / 1000
684
			game:GetService("Debris"):AddItem(prt, 10)
685
			table.insert(Effects, {
686
				prt,
687
				"Shatter",
688
				num,
689
				prt.CFrame,
690
				math.random() - math.random(),
691
				0,
692
				math.random(50, 100) / 100
693
			})
694
		end;
695
	};
696
	
697
	Fire = {
698
		Create = function(brickcolor, cframe, x1, y1, z1, delay)
699
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
700
			prt.Anchored = true
701
			prt.CFrame = cframe
702
			msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
703
			game:GetService("Debris"):AddItem(prt, 10)
704
			table.insert(Effects, {
705
				prt,
706
				"Fire",
707
				delay,
708
				1,
709
				1,
710
				1,
711
				msh
712
			})
713
		end;
714
	};
715
	
716
	FireWave = {
717
		Create = function(brickcolor, cframe, x1, y1, z1)
718
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
719
			prt.Anchored = true
720
			prt.CFrame = cframe
721
			msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
722
			local d = Create("Decal"){
723
				Parent = prt,
724
				Texture = "rbxassetid://26356434",
725
				Face = "Top",
726
			}
727
			local d = Create("Decal"){
728
				Parent = prt,
729
				Texture = "rbxassetid://26356434",
730
				Face = "Bottom",
731
			}
732
			game:GetService("Debris"):AddItem(prt, 10)
733
			table.insert(Effects, {
734
				prt,
735
				"FireWave",
736
				1,
737
				30,
738
				math.random(400, 600) / 100,
739
				msh
740
			})
741
		end;
742
	};
743
	
744
	Lightning = {
745
		Create = function(p0, p1, tym, ofs, col, th, tra, last)
746
			local magz = (p0 - p1).magnitude
747
			local curpos = p0
748
			local trz = {
749
				-ofs,
750
				ofs
751
			}
752
			for i = 1, tym do
753
				local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
754
				local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
755
				local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
756
				li.Material = "Neon"
757
				if tym == i then
758
					local magz2 = (curpos - p1).magnitude
759
					li.Size = Vector3.new(th, th, magz2)
760
					li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
761
					table.insert(Effects, {
762
						li,
763
						"Disappear",
764
						last
765
					})
766
				else
767
					do
768
						do
769
							li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
770
							curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
771
							game.Debris:AddItem(li, 10)
772
							table.insert(Effects, {
773
								li,
774
								"Disappear",
775
								last
776
							})
777
						end
778
					end
779
				end
780
			end
781
		end
782
	};
783
784
	EffectTemplate = {
785
786
	};
787
}
788
789
function supernova()
790
	attack = true
791
	for i = 0, 1, 0.1 do
792
		swait()
793
		PlayAnimationFromTable({
794
         CFrame.new(0, -0, 0, 1, 0, -0, 0, 1, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
795
         CFrame.new(7.62939453e-06, 1.49997127, 0, 1, 0, -0, 0, 1, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
796
         CFrame.new(1.49998248, 1.03999865, 1.31132779e-07, -0.874934673, -0.48424086, -8.74230253e-08, 0.48424086, -0.874934673, 2.16521015e-13, -7.64895418e-08, -4.23336139e-08, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
797
         CFrame.new(-1.45997405, 1.03999221, 0, -0.85547322, 0.5178473, -0, -0.517847538, -0.855473042, 0, 0, -0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
798
         CFrame.new(0.500002444, -1.99997056, 0, 0.997888863, -0.0649460033, -0, 0.0649460033, 0.997888863, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
799
         CFrame.new(-0.499981999, -1.99997056, 0, 0.998180926, 0.0602900013, -0, -0.0602900013, 0.998180926, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
800
		}, .3, false)
801
	end
802
	wait(.5)
803
	for i = 0, 5, .1 do
804
		Mesh.Scale = Mesh.Scale + Vector3.new(2,2,2)
805
		swait()
806
	end
807
	--
808
	coroutine.wrap(function()
809
	repeat swait()
810
		Mesh.Scale = Mesh.Scale + Vector3.new(2,2,2)
811
	until nil
812
	end)()
813
	--CFuncs['Sound'].Create("rbxassetid://265492506",Character,10,1)
814
	local a = Instance.new("ColorCorrectionEffect",game:service'Lighting')
815
	a.TintColor = Color3.new(1,1,1)
816
	local b = Instance.new("BlurEffect",game:service'Lighting')
817
	b.Size = 0
818
	
819
	for i = 1,0,-.1 do
820
	    b.Size = b.Size + .5
821
	    a.TintColor = Color3.new(1,1,i)
822
	    wait()
823
	end
824
	wait(1)
825
	
826
	
827
	for i = 1,0,-.1 do
828
	    a.TintColor = Color3.new(1,i,0)
829
	    b.Size = b.Size + 1
830
	    wait()
831
	end
832
	
833
	wait(1)
834
	
835
	for i = 1,0,-.1 do
836
	    a.TintColor = Color3.new(i,0,0)
837
	    wait()
838
	end
839
	wait(1)
840
	
841
	coroutine.wrap(function()
842
	    for i,v in next, workspace:children() do
843
	        if v:IsA"Model" or v:IsA"Part" then
844
	            if v:FindFirstChildOfClass"Humanoid"then
845
	                v:BreakJoints() 
846
	            end
847
	        end   
848
	    end
849
	end)()
850
	wait(1)
851
	
852
	for i = 0,1,.1 do
853
	    a.TintColor = Color3.new(1,1,i)
854
	    b.Size = b.Size - 2
855
	    wait()
856
	end
857
	
858
	a:destroy()
859
	game:service'Debris':AddItem(b,3)
860
end
861
function attackone()
862
	CFuncs['Sound'].Create("rbxassetid://811841430",Character,10,1)
863
	local a = Instance.new("Part",Character)
864
	a.Name = "Lazer"	
865
	a.Anchored = true
866
	a.CanCollide = false
867
	a.BrickColor = BrickColor.new"New Yeller"
868
	local ray = Ray.new(
869
	    Sun.CFrame.p,                           -- origin
870
	    (Mouse.Hit.p - Sun.CFrame.p).unit * 500 -- direction
871
	) 
872
	local ignore = Character
873
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
874
	if hit then
875
		local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
876
	 
877
		if not humanoid then
878
			humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
879
		end
880
		if humanoid then
881
			if humanoid.Parent:IsA"Model" then
882
				humanoid.Parent:BreakJoints()
883
			end
884
		end
885
	end
886
	a.BottomSurface = 10
887
	a.TopSurface = 10
888
	local distance = (Sun.CFrame.p - position).magnitude
889
	a.Size = Vector3.new(1, 1, distance)
890
	a.CFrame = CFrame.new(Sun.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
891
	game:GetService("Debris"):AddItem(a, 0.1)
892
end
893
894
Mouse.Button1Down:connect(function()
895
	if attack == false and attacktype == 1 then
896
		attackone()
897
	end
898
end)
899
900
901
Mouse.KeyDown:connect(function(k)
902
	if attack == false and k == 'v' then
903
		supernova()
904
	end
905
end)
906
while true do
907
	swait()
908
	for i, v in pairs(Character:GetChildren()) do
909
		if v:IsA("Part") then
910
			v.Material = "SmoothPlastic"
911
		elseif v:IsA("Accessory") then
912
			v:WaitForChild("Handle").Material = "SmoothPlastic"
913
		end
914
	end
915
	Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
916
	velocity = RootPart.Velocity.y
917
	sine = sine + change
918
	local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
919
		if RootPart.Velocity.y > 1 and hit == nil then 
920
			Anim = "Jump"
921
			if attack == false then
922
			PlayAnimationFromTable({
923
	         CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
924
	         CFrame.new(-0.0579944476, 1.48445117, -0.000906195492, 0.999631822, -0.0259140469, -0.00804444961, 0.0262291897, 0.998776913, 0.0419151038, 0.0069484422, -0.0421099029, 0.999089062) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
925
	         CFrame.new(1.68067598, 0.167780995, 5.50026158e-08, 0.965881884, -0.258982956, -3.41060513e-13, 0.258982956, 0.965881884, 4.47034836e-07, 8.49010675e-08, 3.16640808e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
926
	         CFrame.new(-1.67620921, 0.188169807, -3.04922651e-07, 0.95698452, 0.290146649, -2.61441073e-07, -0.290146649, 0.95698452, -1.0069979e-05, -2.89639524e-06, 1.04542296e-05, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
927
	         CFrame.new(0.537238836, -1.93797374, 0.176598221, 0.998698533, -0.0506777391, -0.00574572897, 0.0510024093, 0.992341697, 0.112511501, -6.35704041e-08, -0.112657718, 0.993634105) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
928
	         CFrame.new(-0.536944568, -1.94808352, 0.126473114, 0.998626292, 0.0520468242, 0.00521374354, -0.0523067154, 0.993665218, 0.0995327011, -3.84102691e-07, -0.099668026, 0.995023906) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
929
			}, .3, false)
930
			end
931
		elseif RootPart.Velocity.y < -1 and hit == nil then 
932
			Anim = "Fall"
933
			if attack == false then
934
				PlayAnimationFromTable({
935
		         CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
936
		         CFrame.new(-0.0576509275, 1.50532985, -0.129091382, 0.999631822, -0.0231846143, -0.0140984114, 0.0262298863, 0.958684564, 0.283279002, 0.00694822101, -0.283544153, 0.958935201) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
937
		         CFrame.new(1.68622994, 0.21415168, 7.02040666e-08, 0.881990671, -0.471266806, -3.41060513e-13, 0.471266806, 0.881990671, 4.47034836e-07, 1.54493137e-07, 2.89139166e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
938
		         CFrame.new(-1.72513735, 0.240890861, 2.54038241e-07, 0.814108491, 0.58071363, -2.61430017e-07, -0.580713034, 0.814108849, -1.00698489e-05, -6.08482924e-06, 8.98058715e-06, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
939
		         CFrame.new(0.536720514, -1.92783141, 0.223740995, 0.998698533, -0.0498600565, -0.0107376017, 0.0510031059, 0.976314366, 0.210260883, -3.04512355e-07, -0.210534185, 0.977587521) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
940
		         CFrame.new(-0.535922825, -1.92850935, 0.222419083, 0.99863112, 0.0512506701, 0.0104565797, -0.0523065142, 0.978474379, 0.199629858, -3.7062793e-07, -0.199902818, 0.97981596) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
941
				}, .3, false)
942
			end
943
		elseif Torsovelocity < 1 and hit ~= nil then
944
			Anim = "Idle"
945
			if attack == false then
946
				change = 1
947
				PlayAnimationFromTable({
948
		         CFrame.new(0, -0, 0, 1, 0, -0, 0, 1, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
949
		         CFrame.new(7.62939453e-06, 1.49997127, 0, 1, 0, -0, 0, 1, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(math.sin(sine/22)/12,0,0), 
950
		         CFrame.new(0.429973245, 0.490001738, -0.460011989, 0.0975494087, 0.994276762, -0.0435587466, 0.0559796244, -0.0491798446, -0.997221529, -0.993656218, 0.0948399603, -0.0604567304) * CFrame.new(0, 0, math.sin(sine/16)/14) * CFrame.Angles(0, math.sin(sine/16)/10, math.sin(sine/16)/10), 
951
		         CFrame.new(-0.320005357, 0.480002224, -0.539992452, 0.357028693, -0.930425704, -0.0826981664, -0.130211353, 0.0380947962, -0.990754068, 0.924973309, 0.364495993, -0.107551016) * CFrame.new(0, 0, math.sin(sine/16)/14) * CFrame.Angles(0, -math.sin(sine/16)/10, -math.sin(sine/16)/10), 
952
		         CFrame.new(0.500002444, -1.99997056, 0, 0.997888863, -0.0649460033, -0, 0.0649460033, 0.997888863, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
953
		         CFrame.new(-0.499981999, -1.99997056, 0, 0.998180926, 0.0602900013, -0, -0.0602900013, 0.998180926, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
954
				}, .3, false)
955
				
956
			end
957
		elseif Torsovelocity > 2 and hit ~= nil then
958
			Anim = "Walk"
959
			if attack == false then
960
			 	PlayAnimationFromTable({		
961
		         CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0- .08 * math.cos((sine) / 3), 0) * CFrame.Angles(0, 0, 0), 
962
		         CFrame.new(-0.0595112406, 1.55331731, -0.0425721854, 0.999631822, -0.0248252042, -0.010953242, 0.0262294486, 0.987443328, 0.155781403, 0.00694842171, -0.156010598, 0.987731278) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
963
		         CFrame.new(0.429973245, 0.490001738, -0.460011989, 0.0975494087, 0.994276762, -0.0435587466, 0.0559796244, -0.0491798446, -0.997221529, -0.993656218, 0.0948399603, -0.0604567304) * CFrame.new(0, 0, math.sin(sine/16)/14) * CFrame.Angles(0, math.sin(sine/16)/10, math.sin(sine/16)/10), 
964
		         CFrame.new(-0.320005357, 0.480002224, -0.539992452, 0.357028693, -0.930425704, -0.0826981664, -0.130211353, 0.0380947962, -0.990754068, 0.924973309, 0.364495993, -0.107551016) * CFrame.new(0, 0, math.sin(sine/16)/14) * CFrame.Angles(0, -math.sin(sine/16)/10, -math.sin(sine/16)/10), 
965
		         CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 6)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 6)), 0, 0), 
966
		         CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 6)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 6)), 0, 0), 
967
				}, .3, false)
968
			end
969
		end
970
	if 0 < #Effects then
971
		for e = 1, #Effects do
972
			if Effects[e] ~= nil then
973
				local Thing = Effects[e]
974
				if Thing ~= nil then
975
					local Part = Thing[1]
976
					local Mode = Thing[2]
977
					local Delay = Thing[3]
978
					local IncX = Thing[4]
979
					local IncY = Thing[5]
980
					local IncZ = Thing[6]
981
					if Thing[2] == "Shoot" then
982
						local Look = Thing[1]
983
						local move = 30
984
						if Thing[8] == 3 then
985
							move = 10
986
						end
987
						local hit, pos = rayCast(Thing[4], Thing[1], move, m)
988
						if Thing[10] ~= nil then
989
							da = pos
990
							cf2 = CFrame.new(Thing[4], Thing[10].Position)
991
							cfa = CFrame.new(Thing[4], pos)
992
							tehCF = cfa:lerp(cf2, 0.2)
993
							Thing[1] = tehCF.lookVector
994
						end
995
						local mag = (Thing[4] - pos).magnitude
996
						Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
997
						if Thing[8] == 2 then
998
							Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
999
						end
1000
						Thing[4] = Thing[4] + Look * move
1001
						Thing[3] = Thing[3] - 1
1002
						if 2 < Thing[5] then
1003
							Thing[5] = Thing[5] - 0.3
1004
							Thing[6] = Thing[6] - 0.3
1005
						end
1006
						if hit ~= nil then
1007
							Thing[3] = 0
1008
							if Thing[8] == 1 or Thing[8] == 3 then
1009
								Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
1010
							else
1011
								if Thing[8] == 2 then
1012
									Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
1013
									if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
1014
										ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
1015
										ref.Anchored = true
1016
										ref.CFrame = CFrame.new(pos)
1017
										CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
1018
										game:GetService("Debris"):AddItem(ref, 0.2)
1019
										Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
1020
										Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
1021
										MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
1022
									end
1023
								end
1024
							end
1025
							ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
1026
							ref.Anchored = true
1027
							ref.CFrame = CFrame.new(pos)
1028
							Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
1029
							game:GetService("Debris"):AddItem(ref, 1)
1030
						end
1031
						if Thing[3] <= 0 then
1032
							table.remove(Effects, e)
1033
						end
1034
					end
1035
					do
1036
						do
1037
							if Thing[2] == "FireWave" then
1038
								if Thing[3] <= Thing[4] then
1039
									Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
1040
									Thing[3] = Thing[3] + 1
1041
									Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
1042
								else
1043
									Part.Parent = nil
1044
									table.remove(Effects, e)
1045
								end
1046
							end
1047
							if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
1048
								if Thing[1].Transparency <= 1 then
1049
									if Thing[2] == "Block1" then
1050
										Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1051
										Mesh = Thing[7]
1052
										Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1053
										Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1054
									else
1055
										if Thing[2] == "Block2" then
1056
											Thing[1].CFrame = Thing[1].CFrame
1057
											Mesh = Thing[7]
1058
											Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1059
											Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1060
										else
1061
											if Thing[2] == "Fire" then
1062
												Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
1063
												Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1064
												Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1065
											else
1066
												if Thing[2] == "Cylinder" then
1067
													Mesh = Thing[7]
1068
													Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1069
													Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1070
												else
1071
													if Thing[2] == "Blood" then
1072
														Mesh = Thing[7]
1073
														Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
1074
														Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1075
														Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1076
													else
1077
														if Thing[2] == "Elec" then
1078
															Mesh = Thing[10]
1079
															Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1080
															Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1081
														else
1082
															if Thing[2] == "Disappear" then
1083
																Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1084
															else
1085
																if Thing[2] == "Shatter" then
1086
														Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1087
														Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
1088
														Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1089
														Thing[6] = Thing[6] + Thing[5]
1090
																end
1091
															end
1092
														end
1093
													end
1094
												end
1095
											end
1096
										end
1097
									end
1098
								else
1099
									Part.Parent = nil
1100
									table.remove(Effects, e)
1101
								end
1102
							end
1103
						end
1104
					end
1105
				end
1106
			end
1107
		end
1108
	end
1109
end
1110
remote = Instance.new 'RemoteFunction';
1111
remote.Parent = script;
1112
remote.OnServerInvoke = function (Character, request, ...)
1113
	if (Character ~= owner) then
1114
		return error ('You cannot invoke this remote', 0);
1115
	end;
1116
	
1117
	if (request == 1) then
1118
		local k = ...;
1119
	
1120
		if k == "f" and attack == false and Flying == false then
1121
		Humanoid.CameraOffset = Vector3.new(0, -1, 0)
1122
		Humanoid.WalkSpeed = 25
1123
		Flying = true
1124
		elseif k == "f" and attack == false and Flying == true then
1125
		Humanoid.CameraOffset = Vector3.new(0, -2, 0)
1126
		Humanoid.WalkSpeed = 16
1127
		Flying = false
1128
		end
1129
	end;
1130
	
1131
	
1132
end;
1133
remote.Name = 'ServerRemote';
1134
]=], owner.Character):WaitForChild 'ServerRemote';
1135
1136
local mouse = owner:GetMouse();
1137
mouse.Button1Down:connect(function()
1138
end)
1139
1140
mouse.KeyDown:connect(function(k)
1141
	k = k:lower()
1142
	
1143
	remote:InvokeServer (1, k);
1144
end)