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