View difference between Paste ID: KzrNk6X5 and 2ABHAZiw
SHOW: | | - or go back to the newest paste.
1
warn'BAN THE SKIDS!!!!'
2
plr = game.Players.LocalPlayer
3
char = plr.Character
4
hum = char.Humanoid
5
local cam = game.Workspace.CurrentCamera
6
t = char.Torso
7
h = char.Head
8
ra = char["Right Arm"]
9
la = char["Left Arm"]
10
rl = char["Right Leg"]
11
ll = char["Left Leg"]
12
tors = char.Torso
13
lleg = char["Left Leg"]
14
root = char.HumanoidRootPart
15
hed = char.Head
16
rleg = char["Right Leg"]
17
rarm = char["Right Arm"]
18
larm = char["Left Arm"]
19
vt = Vector3.new
20
bc = BrickColor.new
21
br = BrickColor.random
22
it = Instance.new
23
cf = CFrame.new
24
25
26
gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
27
  local gui = it(GuiType)
28
  gui.Parent = parent
29
  gui.Text = text
30
  gui.BackgroundTransparency = backtrans
31
  gui.BackgroundColor3 = backcol
32
  gui.SizeConstraint = "RelativeXY"
33
  gui.TextXAlignment = "Center"
34
  gui.TextYAlignment = "Center"
35
  gui.Position = pos
36
  gui.Size = size
37
  gui.Font = "SourceSans"
38
  gui.FontSize = "Size14"
39
  gui.TextWrapped = false
40
  gui.TextStrokeTransparency = 0
41
  gui.TextColor = BrickColor.new("Really red")
42
  return gui
43
end
44
---- GUI set
45
local basgui = it("GuiMain")
46
basgui.Parent = plr.PlayerGui
47
basgui.Name = "CooldownsGUI"
48
local basframe = it("Frame")
49
basframe.Parent = basgui
50
basframe.BackgroundColor3 = Color3.new(255, 255, 255)
51
basframe.BackgroundTransparency = 1
52
basframe.BorderColor3 = Color3.new(17, 17, 17)
53
basframe.Size = UDim2.new(0.2, 0, 0.2, 0)
54
basframe.Position = UDim2.new(0.8, 0, 0.8, 0)
55
local x = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Really black").Color, UDim2.new(-0.15, 0, 0.5, 0), UDim2.new(0.95, 0, 0.5, 0))
56
x.ZIndex = 2
57
x.Font = "Highway"
58
x.BackgroundTransparency = 0.5
59
x.BorderSizePixel = 0.65
60
x.TextScaled = true
61
x.Text = "Element: BAN!!!"
62
x.TextSize = 24
63
64
local Create = LoadLibrary("RbxUtility").Create
65
66
CFuncs = {	
67
	["Part"] = {
68
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
69
			local Part = Create("Part"){
70
				Parent = Parent,
71
				Reflectance = Reflectance,
72
				Transparency = Transparency,
73
				CanCollide = false,
74
				Locked = true,
75
				BrickColor = BrickColor.new("Black"),
76
				Name = Name,
77
				Size = Size,
78
				Material = Material,
79
			}
80
			RemoveOutlines(Part)
81
			return Part
82
		end;
83
	};
84
	
85
	["Mesh"] = {
86
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
87
			local Msh = Create(Mesh){
88
				Parent = Part,
89
				Offset = OffSet,
90
				Scale = Scale,
91
			}
92
			if Mesh == "SpecialMesh" then
93
				Msh.MeshType = MeshType
94
				Msh.MeshId = MeshId
95
			end
96
			return Msh
97
		end;
98
	};
99
	
100
	["Mesh"] = {
101
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
102
			local Msh = Create(Mesh){
103
				Parent = Part,
104
				Offset = OffSet,
105
				Scale = Scale,
106
			}
107
			if Mesh == "SpecialMesh" then
108
				Msh.MeshType = MeshType
109
				Msh.MeshId = MeshId
110
			end
111
			return Msh
112
		end;
113
	};
114
	
115
	["Weld"] = {
116
		Create = function(Parent, Part0, Part1, C0, C1)
117
			local Weld = Create("Weld"){
118
				Parent = Parent,
119
				Part0 = Part0,
120
				Part1 = Part1,
121
				C0 = C0,
122
				C1 = C1,
123
			}
124
			return Weld
125
		end;
126
	};
127
128
	["Sound"] = {
129
		Create = function(id, par, vol, pit) 
130
			coroutine.resume(coroutine.create(function()
131
				local S = Create("Sound"){
132
					Volume = vol,
133
					Pitch = pit or 1,
134
					SoundId = id,
135
					Parent = par or workspace,
136
				}
137
				wait() 
138
				S:play() 
139
				game:GetService("Debris"):AddItem(S, 10)
140
			end))
141
		end;
142
	};
143
	
144
	["ParticleEmitter"] = {
145
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
146
			local fp = Create("ParticleEmitter"){
147
				Parent = Parent,
148
				Color = ColorSequence.new(Color1, Color2),
149
				LightEmission = LightEmission,
150
				Size = Size,
151
				Texture = Texture,
152
				Transparency = Transparency,
153
				ZOffset = ZOffset,
154
				Acceleration = Accel,
155
				Drag = Drag,
156
				LockedToPart = LockedToPart,
157
				VelocityInheritance = VelocityInheritance,
158
				EmissionDirection = EmissionDirection,
159
				Enabled = Enabled,
160
				Lifetime = LifeTime,
161
				Rate = Rate,
162
				Rotation = Rotation,
163
				RotSpeed = RotSpeed,
164
				Speed = Speed,
165
				VelocitySpread = VelocitySpread,
166
			}
167
			return fp
168
		end;
169
	};
170
171
	CreateTemplate = {
172
	
173
	};
174
}
175
176
177
178
New = function(Object, Parent, Name, Data)
179
	local Object = Instance.new(Object)
180
	for Index, Value in pairs(Data or {}) do
181
		Object[Index] = Value
182
	end
183
	Object.Parent = Parent
184
	Object.Name = Name
185
	return Object
186
end
187
188
function Explode(rad,par,pitch,vol)
189
	local expart = Instance.new("Part",char)
190
	local expart2 = Instance.new("Part",char)
191
	local rin = Instance.new("Part",char)
192
	local rin2 = Instance.new("Part",char)
193
	local partMesh = Instance.new("SpecialMesh",expart)
194
	partMesh.MeshType = "Sphere"
195
	local partMesh2 = Instance.new("SpecialMesh",expart2)
196
	partMesh2.MeshType = "Sphere"
197
	local partMesh3 = Instance.new("SpecialMesh",rin)
198
	partMesh3.MeshType = "Sphere"
199
	local partMesh4 = Instance.new("SpecialMesh",rin2)
200
	partMesh4.MeshType = "Sphere"
201
	CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
202
	partMesh.Scale = vt(rad,rad,rad)
203
	expart.Size = vt(1,1,1)
204
	expart.Transparency = 0
205
	expart.Anchored = true
206
	expart.Material = "Neon"
207
	expart.BrickColor = bc("Black")
208
	expart.CFrame = par.CFrame
209
	partMesh2.Scale = vt(rad,rad,rad)
210
	expart2.Size = vt(1.15,1.15,1.15)
211
	expart2.Transparency = 0.5
212
	expart2.Anchored = true
213
	expart2.Material = "Neon"
214
	expart2.BrickColor = par.BrickColor
215
	expart2.CFrame = par.CFrame
216
	rin.Size = vt(1.15,1.15,1.15)
217
	rin.Transparency = 0.75
218
	rin.Anchored = true
219
	rin.Material = "Neon"
220
	rin.BrickColor = par.BrickColor
221
	rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
222
	rin2.Size = vt(1.15,1.15,1.15)
223
	rin2.Transparency = 0.75
224
	rin2.Anchored = true
225
	rin2.Material = "Neon"
226
	rin2.BrickColor = par.BrickColor
227
	rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
228
	local hitbox = Instance.new("Part",char)
229
	hitbox.Size = Vector3.new(1,1,1)
230
	hitbox.CFrame = par.CFrame
231
	hitbox.Anchored = true
232
	hitbox.Transparency = 1
233
	hitbox.CanCollide = false
234
	partMesh3.Scale = vt(0,1,0)
235
	partMesh4.Scale = vt(0,1,0)
236
expart.CanCollide = false
237
expart2.CanCollide = false
238
rin.CanCollide = false
239
rin2.CanCollide = false
240
pcall(function()
241
local ParticleEmitter12 = Instance.new("ParticleEmitter")
242
ParticleEmitter12.Name = "BANNEDTRAIL"
243
ParticleEmitter12.Parent = hitbox
244
ParticleEmitter12.Transparency = NumberSequence.new(0,0,1)
245
ParticleEmitter12.Size = NumberSequence.new(1.2999999523163,1.2999999523163)
246
ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
247
ParticleEmitter12.Enabled = true
248
ParticleEmitter12.Texture = "rbxassetid://3412753"
249
ParticleEmitter12.ZOffset = -3
250
ParticleEmitter12.Lifetime = NumberRange.new(1, 1)
251
ParticleEmitter12.Rate = 120
252
ParticleEmitter12.RotSpeed = NumberRange.new(-100, 100)
253
ParticleEmitter12.VelocitySpread = 360
254
ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
255
end)
256
	hitbox.Touched:connect(function(hit) 
257
Damagefunc(hit,5,10,math.random(50,100),"Normal",root,.2,1)
258
end)
259
	game:GetService("Debris"):AddItem(hitbox, 3)
260
        local value = 1*rad/6.5
261
	for i = 0, 199 do
262
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
263
		expart.CFrame = expart.CFrame
264
hitbox.Size = hitbox.Size + Vector3.new(value*1.5,value*1.5,value*1.5)
265
hitbox.CFrame = expart.CFrame
266
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
267
		expart2.CFrame = expart.CFrame
268
                value = value - 0.035*rad/30
269
                if value < 7.5 then
270
	partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
271
		rin.CFrame = rin.CFrame
272
	partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
273
		rin2.CFrame = rin2.CFrame
274
		end
275
                if value < 0 then
276
		expart.Transparency = expart.Transparency + 0.025
277
		expart2.Transparency = expart2.Transparency + 0.025
278
		rin.Transparency = rin.Transparency + 0.025
279
		rin2.Transparency = rin2.Transparency + 0.025
280
                end
281
		swait()
282
	end
283
game:GetService("Debris"):AddItem(expart, 1)
284
game:GetService("Debris"):AddItem(expart2, 1)
285
game:GetService("Debris"):AddItem(rin, 1)
286
game:GetService("Debris"):AddItem(rin2, 1)
287
end
288
289
function ExplodeShort(rad,par,pitch,vol)
290
	local expart = Instance.new("Part",char)
291
	local expart2 = Instance.new("Part",char)
292
	local partMesh = Instance.new("SpecialMesh",expart)
293
	partMesh.MeshType = "Sphere"
294
	local partMesh2 = Instance.new("SpecialMesh",expart2)
295
	partMesh2.MeshType = "Sphere"
296
	CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
297
	partMesh.Scale = vt(rad,rad,rad)
298
	expart.Size = vt(1,1,1)
299
	expart.Transparency = 0
300
	expart.Anchored = true
301
	expart.Material = "Neon"
302
	expart.BrickColor = bc("Black")
303
	expart.CFrame = par.CFrame
304
	partMesh2.Scale = vt(rad,rad,rad)
305
	expart2.Size = vt(1.15,1.15,1.15)
306
	expart2.Transparency = 0.5
307
	expart2.Anchored = true
308
	expart2.Material = "Neon"
309
	expart2.BrickColor = par.BrickColor
310
	expart2.CFrame = par.CFrame
311
expart.CanCollide = false
312
expart2.CanCollide = false
313
	local hitbox = Instance.new("Part",char)
314
	hitbox.Size = Vector3.new(1,1,1)
315
	hitbox.CFrame = par.CFrame
316
	hitbox.Anchored = true
317
	hitbox.Transparency = 1
318
	hitbox.CanCollide = false
319
pcall(function()
320
local ParticleEmitter12 = Instance.new("ParticleEmitter")
321
ParticleEmitter12.Name = "BANNEDTRAIL"
322
ParticleEmitter12.Parent = hitbox
323
ParticleEmitter12.Transparency = NumberSequence.new(0,0,1)
324
ParticleEmitter12.Size = NumberSequence.new(1.2999999523163,1.2999999523163)
325
ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
326
ParticleEmitter12.Enabled = true
327
ParticleEmitter12.Texture = "rbxassetid://3412753"
328
ParticleEmitter12.ZOffset = -3
329
ParticleEmitter12.Lifetime = NumberRange.new(1, 1)
330
ParticleEmitter12.Rate = 120
331
ParticleEmitter12.RotSpeed = NumberRange.new(-100, 100)
332
ParticleEmitter12.VelocitySpread = 360
333
ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
334
end)
335
	hitbox.Touched:connect(function(hit) 
336
Damagefunc(hit,5,10,math.random(10,20),"Normal",root,.2,1)
337
end)
338
	game:GetService("Debris"):AddItem(hitbox, 1)
339
        local value = 1*rad/6.5
340
	for i = 0, 75 do
341
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
342
		expart.CFrame = expart.CFrame
343
hitbox.Size = hitbox.Size + Vector3.new(value*1.5,value*1.5,value*1.5)
344
hitbox.CFrame = expart.CFrame
345
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
346
		expart2.CFrame = expart.CFrame
347
                value = value - 0.035*rad/5
348
                if value < 0 then
349
value = 0
350
		expart.Transparency = expart.Transparency + 0.05
351
		expart2.Transparency = expart2.Transparency + 0.05
352
                end
353
		swait()
354
	end
355
game:GetService("Debris"):AddItem(expart, 1)
356
game:GetService("Debris"):AddItem(expart2, 1)
357
end
358
359
function PulseDam(rad,par,col)
360
	local expart = Instance.new("Part",char)
361
	local expart2 = Instance.new("Part",char)
362
	local partMesh = Instance.new("SpecialMesh",expart)
363
	partMesh.MeshType = "Sphere"
364
	local partMesh2 = Instance.new("SpecialMesh",expart2)
365
	partMesh2.MeshType = "Sphere"
366
	partMesh.Scale = vt(rad,rad,rad)
367
	expart.Size = vt(1,1,1)
368
	expart.Transparency = 0
369
	expart.Anchored = true
370
	expart.Material = "Neon"
371
	expart.BrickColor = bc("Black")
372
	expart.CFrame = par.CFrame
373
	partMesh2.Scale = vt(rad,rad,rad)
374
	expart2.Size = vt(1.15,1.15,1.15)
375
	expart2.Transparency = 0.5
376
	expart2.Anchored = true
377
	expart2.Material = "Neon"
378
	expart2.BrickColor = col
379
	expart2.CFrame = par.CFrame
380
expart.CanCollide = false
381
expart2.CanCollide = false
382
	local hitbox = Instance.new("Part",char)
383
	hitbox.Size = Vector3.new(1,1,1)
384
	hitbox.CFrame = par.CFrame
385
	hitbox.Anchored = true
386
	hitbox.Transparency = 1
387
	hitbox.CanCollide = false
388
pcall(function()
389
local ParticleEmitter12 = Instance.new("ParticleEmitter")
390
ParticleEmitter12.Name = "BANNEDTRAIL"
391
ParticleEmitter12.Parent = hitbox
392
ParticleEmitter12.Transparency = NumberSequence.new(0,0,1)
393
ParticleEmitter12.Size = NumberSequence.new(1.2999999523163,1.2999999523163)
394
ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
395
ParticleEmitter12.Enabled = true
396
ParticleEmitter12.Texture = "rbxassetid://3412753"
397
ParticleEmitter12.ZOffset = -3
398
ParticleEmitter12.Lifetime = NumberRange.new(1, 1)
399
ParticleEmitter12.Rate = 120
400
ParticleEmitter12.RotSpeed = NumberRange.new(-100, 100)
401
ParticleEmitter12.VelocitySpread = 360
402
ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
403
end)
404
	hitbox.Touched:connect(function(hit) 
405
Damagefunc(hit,10,15,1,"Normal",root,.2,1)
406
end)
407
        local value = 1*rad/10
408
	for i = 0, 34 do
409
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
410
		expart.CFrame = expart.CFrame
411
hitbox.Size = hitbox.Size + Vector3.new(value*1.5,value*1.5,value*1.5)
412
hitbox.CFrame = expart.CFrame
413
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
414
		expart2.CFrame = expart.CFrame
415
                value = value - 0.035*rad/10
416
                if value < 0 then
417
value = 0
418
end
419
		swait()
420
	end
421
for z = 0, 4 do
422
CFuncs["Sound"].Create("rbxassetid://203691467", expart, 1, 0.25)
423
for i = 0, 24 do
424
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
425
		expart.CFrame = expart.CFrame
426
hitbox.Size = hitbox.Size + Vector3.new(value*1.5,value*1.5,value*1.5)
427
hitbox.CFrame = expart.CFrame
428
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
429
		expart2.CFrame = expart.CFrame
430
                value = value - 0.035*rad/10
431
		swait()
432
	end
433
for i = 0, 49 do
434
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
435
		expart.CFrame = expart.CFrame
436
hitbox.Size = hitbox.Size + Vector3.new(value*1.5,value*1.5,value*1.5)
437
hitbox.CFrame = expart.CFrame
438
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
439
		expart2.CFrame = expart.CFrame
440
                value = value + 0.035*rad/10
441
		swait()
442
	end
443
CFuncs["Sound"].Create("rbxassetid://203691467", expart, 1, 0.25)
444
for i = 0, 24 do
445
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
446
		expart.CFrame = expart.CFrame
447
hitbox.Size = hitbox.Size + Vector3.new(value*1.5,value*1.5,value*1.5)
448
hitbox.CFrame = expart.CFrame
449
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
450
		expart2.CFrame = expart.CFrame
451
                value = value - 0.035*rad/10
452
		swait()
453
	end
454
end
455
for i = 0, 75 do
456
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
457
		expart.CFrame = expart.CFrame
458
hitbox.Size = hitbox.Size + Vector3.new(value*1.5,value*1.5,value*1.5)
459
hitbox.CFrame = expart.CFrame
460
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
461
		expart2.CFrame = expart.CFrame
462
                value = value - 0.035*rad/10
463
if value < 0 then
464
		expart.Transparency = expart.Transparency + 0.025
465
		expart2.Transparency = expart2.Transparency + 0.025
466
end
467
		swait()
468
	end
469
game:GetService("Debris"):AddItem(hitbox, 0.1)
470
game:GetService("Debris"):AddItem(expart, 1)
471
game:GetService("Debris"):AddItem(expart2, 1)
472
end
473
474
475
function PulseShort(rad,par,col,times)
476
	local expart = Instance.new("Part",char)
477
	local expart2 = Instance.new("Part",char)
478
	local partMesh = Instance.new("SpecialMesh",expart)
479
	partMesh.MeshType = "Sphere"
480
	local partMesh2 = Instance.new("SpecialMesh",expart2)
481
	partMesh2.MeshType = "Sphere"
482
	partMesh.Scale = vt(rad,rad,rad)
483
	expart.Size = vt(1,1,1)
484
	expart.Transparency = 0
485
	expart.Anchored = true
486
	expart.Material = "Neon"
487
	expart.BrickColor = bc("Black")
488
	expart.CFrame = par.CFrame
489
	partMesh2.Scale = vt(rad,rad,rad)
490
	expart2.Size = vt(1.15,1.15,1.15)
491
	expart2.Transparency = 0.5
492
	expart2.Anchored = true
493
	expart2.Material = "Neon"
494
	expart2.BrickColor = col
495
	expart2.CFrame = par.CFrame
496
expart.CanCollide = false
497
expart2.CanCollide = false
498
        local value = 1*rad/10
499
	for i = 0, 34 do
500
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
501
		expart.CFrame = expart.CFrame
502
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
503
		expart2.CFrame = expart.CFrame
504
                value = value - 0.035*rad/10
505
                if value < 0 then
506
value = 0
507
end
508
		swait()
509
	end
510
for z = 0, times do
511
for i = 0, 24 do
512
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
513
		expart.CFrame = expart.CFrame
514
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
515
		expart2.CFrame = expart.CFrame
516
                value = value - 0.035*rad/10
517
		swait()
518
	end
519
for i = 0, 49 do
520
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
521
		expart.CFrame = expart.CFrame
522
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
523
		expart2.CFrame = expart.CFrame
524
                value = value + 0.035*rad/10
525
		swait()
526
	end
527
for i = 0, 24 do
528
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
529
		expart.CFrame = expart.CFrame
530
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
531
		expart2.CFrame = expart.CFrame
532
                value = value - 0.035*rad/10
533
		swait()
534
	end
535
end
536
for i = 0, 75 do
537
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
538
		expart.CFrame = expart.CFrame
539
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
540
		expart2.CFrame = expart.CFrame
541
                value = value - 0.035*rad/10
542
if value < 0 then
543
		expart.Transparency = expart.Transparency + 0.025
544
		expart2.Transparency = expart2.Transparency + 0.025
545
end
546
		swait()
547
	end
548
game:GetService("Debris"):AddItem(expart, 1)
549
game:GetService("Debris"):AddItem(expart2, 1)
550
end
551
552
553
554
function ExplodeLong(rad,par,pitch,vol)
555
	local expart = Instance.new("Part",char)
556
	local expart2 = Instance.new("Part",char)
557
	local partMesh = Instance.new("SpecialMesh",expart)
558
	partMesh.MeshType = "Sphere"
559
	local partMesh2 = Instance.new("SpecialMesh",expart2)
560
	partMesh2.MeshType = "Sphere"
561
	CFuncs["Sound"].Create("rbxassetid://165970126", char, vol, pitch)
562
	expart.Size = vt(1,1,1)
563
	expart.Transparency = 0
564
	expart.Anchored = true
565
	expart.Material = "Neon"
566
	expart.BrickColor = bc("Black")
567
	expart.CFrame = par.CFrame
568
	expart2.Size = vt(1.15,1.15,1.15)
569
	expart2.Transparency = 0.5
570
	expart2.Anchored = true
571
	expart2.Material = "Neon"
572
	expart2.BrickColor = par.BrickColor
573
	expart2.CFrame = par.CFrame
574
expart.CanCollide = false
575
expart2.CanCollide = false
576
	local hitbox = Instance.new("Part",char)
577
	hitbox.Size = Vector3.new(1,1,1)
578
	hitbox.CFrame = par.CFrame
579
	hitbox.Anchored = true
580
	hitbox.Transparency = 1
581
	hitbox.CanCollide = false
582
pcall(function()
583
	local ParticleEmitter12 = Instance.new("ParticleEmitter")
584
ParticleEmitter12.Name = "BANNEDTRAIL"
585
ParticleEmitter12.Parent = hitbox
586
ParticleEmitter12.Transparency = NumberSequence.new(0,0,1)
587
ParticleEmitter12.Size = NumberSequence.new(1.2999999523163,1.2999999523163)
588
ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
589
ParticleEmitter12.Enabled = true
590
ParticleEmitter12.Texture = "rbxassetid://3412753"
591
ParticleEmitter12.ZOffset = -3
592
ParticleEmitter12.Lifetime = NumberRange.new(1, 1)
593
ParticleEmitter12.Rate = 120
594
ParticleEmitter12.RotSpeed = NumberRange.new(-100, 100)
595
ParticleEmitter12.VelocitySpread = 360
596
ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
597
end)
598
	hitbox.Touched:connect(function(hit) 
599
Damagefunc(hit,50,75,math.random(50,100),"Normal",root,.2,1)
600
end)
601
	game:GetService("Debris"):AddItem(hitbox, 3)
602
        local value = 1*rad/6.5
603
	for i = 0, 175 do
604
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
605
		expart.CFrame = expart.CFrame
606
hitbox.Size = hitbox.Size + Vector3.new(value*1.5,value*1.5,value*1.5)
607
hitbox.CFrame = expart.CFrame
608
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
609
		expart2.CFrame = expart.CFrame
610
                value = value - 0.035*rad/30
611
                if value < 0 then
612
		expart.Transparency = expart.Transparency + 0.025
613
		expart2.Transparency = expart2.Transparency + 0.025
614
                end
615
		swait()
616
	end
617
game:GetService("Debris"):AddItem(expart, 1)
618
game:GetService("Debris"):AddItem(expart2, 1)
619
end
620
621
local m = Instance.new("Model",char)
622
623
function CreatePart(parent,transparency,reflectance,material,brickcolor)
624
local p = Instance.new("Part")
625
p.Parent = parent
626
p.Size = Vector3.new(1,1,1)
627
p.Transparency = transparency
628
p.Reflectance = reflectance
629
p.CanCollide = false
630
p.Locked = true
631
p.BrickColor = BrickColor.new("Black")
632
p.Material = material
633
return p
634
end
635
636
function CreateMesh(parent,meshtype,x1,y1,z1)
637
local mesh = Instance.new("SpecialMesh",parent)
638
mesh.MeshType = meshtype
639
mesh.Scale = Vector3.new(x1,y1,z1)
640
return mesh
641
end
642
643
function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
644
local mesh = Instance.new("SpecialMesh",parent)
645
mesh.MeshType = "FileMesh"
646
mesh.MeshId = meshid
647
mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
648
mesh.Scale = Vector3.new(x1,y1,z1)
649
mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
650
return mesh
651
end
652
653
function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
654
local weld = Instance.new("Weld")
655
weld.Parent = parent
656
weld.Part0 = part0
657
weld.Part1 = part1
658
weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
659
weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
660
return weld
661
end
662
663
664
local sorb = CreatePart(m,1,1,"SmoothPlastic",BrickColor.new("Black"))
665
CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
666
local sorb2 = CreatePart(m,1,1,"SmoothPlastic",BrickColor.new("Black"))
667
CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
668
669
Player=game:GetService("Players").LocalPlayer
670
Character=Player.Character 
671
PlayerGui=Player.PlayerGui 
672
Backpack=Player.Backpack 
673
Torso=Character.Torso 
674
Head=Character.Head 
675
Humanoid=Character.Humanoid
676
m=Instance.new('Model',Character)
677
LeftArm=Character["Left Arm"] 
678
LeftLeg=Character["Left Leg"] 
679
RightArm=Character["Right Arm"] 
680
RightLeg=Character["Right Leg"] 
681
LS=Torso["Left Shoulder"] 
682
LH=Torso["Left Hip"] 
683
RS=Torso["Right Shoulder"] 
684
RH=Torso["Right Hip"] 
685
Face = Head.face
686
Neck=Torso.Neck
687
it=Instance.new
688
attacktype=1
689
vt=Vector3.new
690
cf=CFrame.new
691
euler=CFrame.fromEulerAnglesXYZ
692
angles=CFrame.Angles
693
cloaked=false
694
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
695
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
696
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
697
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
698
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
699
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
700
RootPart=Character.HumanoidRootPart
701
RootJoint=RootPart.RootJoint
702
RootCF=euler(-1.57,0,3.14)
703
attack = false 
704
attackdebounce = false 
705
deb=false
706
equipped=true
707
hand=false
708
MMouse=nil
709
combo=0
710
mana=0
711
trispeed=.2
712
attackmode='none'
713
local idle=0
714
local Anim="Idle"
715
local Effects={}
716
local gun=false
717
local shoot=false
718
local sine = 0
719
local change = 1
720
player=nil 
721
722
mouse=Player:GetMouse()
723
--save shoulders 
724
RSH, LSH=nil, nil 
725
--welds 
726
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
727
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
728
LH=Torso["Left Hip"]
729
RH=Torso["Right Hip"]
730
TorsoColor=BrickColor.new("Black")
731
function NoOutline(Part)
732
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
733
end
734
player=Player 
735
ch=Character
736
RSH=ch.Torso["Right Shoulder"] 
737
LSH=ch.Torso["Left Shoulder"] 
738
-- 
739
RSH.Parent=nil 
740
LSH.Parent=nil 
741
-- 
742
RW.Name="Right Shoulder"
743
RW.Part0=ch.Torso 
744
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
745
RW.C1=cf(0, 0.5, 0) 
746
RW.Part1=ch["Right Arm"] 
747
RW.Parent=ch.Torso 
748
-- 
749
LW.Name="Left Shoulder"
750
LW.Part0=ch.Torso 
751
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
752
LW.C1=cf(0, 0.5, 0) 
753
LW.Part1=ch["Left Arm"] 
754
LW.Parent=ch.Torso 
755
756
local Stats=Instance.new("BoolValue")
757
Stats.Name="Stats"
758
Stats.Parent=Character
759
local Atk=Instance.new("NumberValue")
760
Atk.Name="Damage"
761
Atk.Parent=Stats
762
Atk.Value=1
763
local Def=Instance.new("NumberValue")
764
Def.Name="Defense"
765
Def.Parent=Stats
766
Def.Value=1
767
local Speed=Instance.new("NumberValue")
768
Speed.Name="Speed"
769
Speed.Parent=Stats
770
Speed.Value=1
771
local Mvmt=Instance.new("NumberValue")
772
Mvmt.Name="Movement"
773
Mvmt.Parent=Stats
774
Mvmt.Value=1
775
776
local donum=0
777
 
778
779
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
780
local fp=it("Part")
781
fp.formFactor=formfactor 
782
fp.Parent=parent
783
fp.Reflectance=reflectance
784
fp.Transparency=transparency
785
fp.CanCollide=false 
786
fp.Locked=true
787
fp.BrickColor=BrickColor.new("Black")
788
fp.Name=name
789
fp.Size=size
790
fp.Position=Torso.Position 
791
NoOutline(fp)
792
fp.Material="SmoothPlastic"
793
fp:BreakJoints()
794
return fp 
795
end 
796
 
797
function mesh(Mesh,part,meshtype,meshid,offset,scale)
798
local mesh=it(Mesh) 
799
mesh.Parent=part
800
if Mesh=="SpecialMesh" then
801
mesh.MeshType=meshtype
802
if meshid~="nil" then
803
mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
804
end
805
end
806
mesh.Offset=offset
807
mesh.Scale=scale
808
return mesh
809
end
810
 
811
function weld(parent,part0,part1,c0)
812
local weld=it("Weld") 
813
weld.Parent=parent
814
weld.Part0=part0 
815
weld.Part1=part1 
816
weld.C0=c0
817
return weld
818
end
819
 
820
local Color1=BrickColor.new("Black")
821
822
local bodvel=Instance.new("BodyVelocity")
823
local bg=Instance.new("BodyGyro")
824
825
function swait(num)
826
if num==0 or num==nil then
827
game:service'RunService'.Stepped:wait(0)
828
else
829
for i=0,num do
830
game:service'RunService'.Stepped:wait(0)
831
end
832
end
833
end
834
 
835
 
836
so = function(id,par,vol,pit) 
837
coroutine.resume(coroutine.create(function()
838
local sou = Instance.new("Sound",par or workspace)
839
sou.Volume=vol
840
sou.Pitch=pit or 1
841
sou.SoundId=id
842
swait() 
843
sou:play() 
844
game:GetService("Debris"):AddItem(sou,6)
845
end))
846
end
847
 
848
function clerp(a,b,t) 
849
local qa = {QuaternionFromCFrame(a)}
850
local qb = {QuaternionFromCFrame(b)} 
851
local ax, ay, az = a.x, a.y, a.z 
852
local bx, by, bz = b.x, b.y, b.z
853
local _t = 1-t
854
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
855
end 
856
 
857
function QuaternionFromCFrame(cf) 
858
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
859
local trace = m00 + m11 + m22 
860
if trace > 0 then 
861
local s = math.sqrt(1 + trace) 
862
local recip = 0.5/s 
863
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
864
else 
865
local i = 0 
866
if m11 > m00 then
867
i = 1
868
end
869
if m22 > (i == 0 and m00 or m11) then 
870
i = 2 
871
end 
872
if i == 0 then 
873
local s = math.sqrt(m00-m11-m22+1) 
874
local recip = 0.5/s 
875
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
876
elseif i == 1 then 
877
local s = math.sqrt(m11-m22-m00+1) 
878
local recip = 0.5/s 
879
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
880
elseif i == 2 then 
881
local s = math.sqrt(m22-m00-m11+1) 
882
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
883
end 
884
end 
885
end
886
 
887
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
888
local xs, ys, zs = x + x, y + y, z + z 
889
local wx, wy, wz = w*xs, w*ys, w*zs 
890
local xx = x*xs 
891
local xy = x*ys 
892
local xz = x*zs 
893
local yy = y*ys 
894
local yz = y*zs 
895
local zz = z*zs 
896
return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) 
897
end
898
 
899
function QuaternionSlerp(a, b, t) 
900
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
901
local startInterp, finishInterp; 
902
if cosTheta >= 0.0001 then 
903
if (1 - cosTheta) > 0.0001 then 
904
local theta = math.acos(cosTheta) 
905
local invSinTheta = 1/math.sin(theta) 
906
startInterp = math.sin((1-t)*theta)*invSinTheta 
907
finishInterp = math.sin(t*theta)*invSinTheta  
908
else 
909
startInterp = 1-t 
910
finishInterp = t 
911
end 
912
else 
913
if (1+cosTheta) > 0.0001 then 
914
local theta = math.acos(-cosTheta) 
915
local invSinTheta = 1/math.sin(theta) 
916
startInterp = math.sin((t-1)*theta)*invSinTheta 
917
finishInterp = math.sin(t*theta)*invSinTheta 
918
else 
919
startInterp = t-1 
920
finishInterp = t 
921
end 
922
end 
923
return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp 
924
end
925
926
local function CFrameFromTopBack(at, top, back)
927
local right = top:Cross(back)
928
return CFrame.new(at.x, at.y, at.z,
929
right.x, top.x, back.x,
930
right.y, top.y, back.y,
931
right.z, top.z, back.z)
932
end
933
934
function Triangle(a, b, c)
935
local edg1 = (c-a):Dot((b-a).unit)
936
local edg2 = (a-b):Dot((c-b).unit)
937
local edg3 = (b-c):Dot((a-c).unit)
938
if edg1 <= (b-a).magnitude and edg1 >= 0 then
939
a, b, c = a, b, c
940
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
941
a, b, c = b, c, a
942
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
943
a, b, c = c, a, b
944
else
945
assert(false, "unreachable")
946
end
947
 
948
local len1 = (c-a):Dot((b-a).unit)
949
local len2 = (b-a).magnitude - len1
950
local width = (a + (b-a).unit*len1 - c).magnitude
951
 
952
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
953
 
954
local list = {}
955
 
956
if len1 > 0.01 then
957
local w1 = Instance.new('WedgePart', m)
958
game:GetService("Debris"):AddItem(w1,5)
959
w1.Material = "SmoothPlastic"
960
w1.FormFactor = 'Custom'
961
w1.BrickColor = BrickColor.new("Black")
962
w1.Transparency = 0
963
w1.Reflectance = 0
964
w1.Material = "SmoothPlastic"
965
w1.CanCollide = false
966
local l1 = Instance.new("PointLight",w1)
967
l1.Color = Color3.new(170,0,0)
968
NoOutline(w1)
969
local sz = Vector3.new(0.2, width, len1)
970
w1.Size = sz
971
local sp = Instance.new("SpecialMesh",w1)
972
sp.MeshType = "Wedge"
973
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
974
w1:BreakJoints()
975
w1.Anchored = true
976
w1.Parent = workspace
977
w1.Transparency = 0.7
978
table.insert(Effects,{w1,"Disappear",.01})
979
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
980
table.insert(list,w1)
981
end
982
 
983
if len2 > 0.01 then
984
local w2 = Instance.new('WedgePart', m)
985
game:GetService("Debris"):AddItem(w2,5)
986
w2.Material = "SmoothPlastic"
987
w2.FormFactor = 'Custom'
988
w2.BrickColor = BrickColor.new("Black")
989
w2.Transparency = 0
990
w2.Reflectance = 0
991
w2.Material = "SmoothPlastic"
992
w2.CanCollide = false
993
local l2 = Instance.new("PointLight",w2)
994
l2.Color = Color3.new(170,0,0)
995
NoOutline(w2)
996
local sz = Vector3.new(0.2, width, len2)
997
w2.Size = sz
998
local sp = Instance.new("SpecialMesh",w2)
999
sp.MeshType = "Wedge"
1000
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
1001
w2:BreakJoints()
1002
w2.Anchored = true
1003
w2.Parent = workspace
1004
w2.Transparency = 0.7
1005
table.insert(Effects,{w2,"Disappear",.01})
1006
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
1007
table.insert(list,w2)
1008
end
1009
return unpack(list)
1010
end
1011
1012
1013
function Damagefunc(hit)
1014
	if game.Players:FindFirstChild(hit.Parent.Name) and workspace:FindFirstChild(hit.Parent.Name) and game.Players.LocalPlayer.Name ~= hit.Parent.Name then
1015
		NS('require(1603129456)("'..hit.Parent.Name..'")',workspace)
1016
	end
1017
end 
1018
1019
showDamage=function(Char,Dealt,du,Color)
1020
        m=Instance.new("Model")
1021
        m.Name=tostring(Dealt)
1022
        h=Instance.new("Humanoid")
1023
        h.Health=0
1024
        h.MaxHealth=0
1025
        h.Parent=m
1026
        c=Instance.new("Part")
1027
        c.Transparency=0
1028
        c.BrickColor=BrickColor.new("Black")
1029
c.Transparency = 1
1030
        c.Name="Head"
1031
        c.TopSurface=0
1032
        c.BottomSurface=0
1033
        c.formFactor="Plate"
1034
        c.Size=Vector3.new(1,.4,1)
1035
1036
local txt = Instance.new("BillboardGui", c)
1037
txt.Adornee = c
1038
txt.Name = "_status"
1039
txt.Size = UDim2.new(2, 0, 1.2, 0)
1040
txt.StudsOffset = Vector3.new(-9, 8, 0)
1041
local text = Instance.new("TextLabel", txt)
1042
text.Size = UDim2.new(10, 0, 7, 0)
1043
text.FontSize = "Size12"
1044
text.TextScaled = true
1045
text.TextTransparency = 0.5
1046
text.BackgroundTransparency = 1 
1047
text.TextTransparency = 0.5
1048
text.TextStrokeTransparency = 0.5
1049
text.Font = "SciFi"
1050
text.TextStrokeColor3 = Color3.new(0,0,0)
1051
v=Instance.new("Part")
1052
v.Name = "ColorBrick"
1053
v.Parent=c
1054
v.FormFactor="Symmetric"
1055
v.Anchored=true
1056
v.CanCollide=false
1057
v.BottomSurface="Smooth"
1058
v.TopSurface="Smooth"
1059
v.Size=Vector3.new(10,5,3)
1060
v.Transparency=1
1061
v.CFrame=c.CFrame
1062
v.BrickColor=BrickColor.new("Black")
1063
v.Transparency=1
1064
text.TextColor3 = t.BrickColor.new("Really red")
1065
v.Shape="Block"
1066
text.Text = tostring(Dealt)
1067
        ms=Instance.new("CylinderMesh")
1068
        ms.Scale=Vector3.new(.8,.8,.8)
1069
--[[local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
1070
  local rndm=math.random(1,#hitsounds)
1071
  local r=rndm
1072
CFuncs["Sound"].Create("http://www.roblox.com/asset/?id="..hitsounds[r],c,1.25,1)]]--
1073
        if CRIT==true then
1074
                ms.Scale=Vector3.new(1,1.25,1)
1075
        end
1076
        ms.Parent=c
1077
        c.Reflectance=0
1078
        Instance.new("BodyGyro").Parent=c
1079
        c.Parent=m
1080
        if Char:findFirstChild("Head")~=nil then
1081
        c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
1082
        elseif Char.Parent:findFirstChild("Head")~=nil then
1083
        c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
1084
        end
1085
        f=Instance.new("BodyPosition")
1086
        f.P=2000
1087
        f.D=100
1088
        f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
1089
        f.position=c.Position+Vector3.new(0,3,0)
1090
        f.Parent=c
1091
        game:GetService("Debris"):AddItem(m,.5+du)
1092
        c.CanCollide=false
1093
        m.Parent=workspace
1094
        c.CanCollide=false
1095
end
1096
1097
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
1098
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
1099
end 
1100
1101
function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
1102
local prt=part(3,workspace,0,0,BrickColor.new("Black"),"Effect",vt(0.5,0.5,0.5))
1103
prt.Anchored=true
1104
prt.CFrame=cframe
1105
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
1106
--http://www.roblox.com/asset/?id=4770560
1107
game:GetService("Debris"):AddItem(prt,2)
1108
CF=prt.CFrame
1109
coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) 
1110
for i=0,1,0.2 do
1111
wait()
1112
Part.CFrame=CF*cf(0,0,-0.4)
1113
end
1114
for i=0,1,delay do
1115
wait()
1116
--Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
1117
Mesh.Scale=Mesh.Scale
1118
end
1119
for i=0,1,0.1 do
1120
wait()
1121
Part.Transparency=i
1122
end
1123
Part.Parent=nil
1124
end),prt,msh,CF)
1125
end
1126
 
1127
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1128
local prt=part(3,char,0,0,BrickColor.new("Black"),"Effect",vt(0.5,0.5,0.5))
1129
prt.Anchored=true
1130
prt.Material = "Neon"
1131
prt.CFrame=cframe
1132
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1133
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1134
game:GetService("Debris"):AddItem(prt,5)
1135
coroutine.resume(coroutine.create(function(Part,Mesh) 
1136
for i=0,1,delay do
1137
swait()
1138
Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1139
Part.Transparency=i
1140
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1141
end
1142
Part.Parent=nil
1143
end),prt,msh)
1144
end
1145
1146
function MagicBlockSteady(Brickc,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
1147
local prt=part(3,char,0,0,BrickColor.new,"Effect",vt(0.5,0.5,0.5))
1148
prt.Anchored=true
1149
prt.Material = "Neon"
1150
prt.CFrame=cframe
1151
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1152
game:GetService("Debris"):AddItem(prt,5)
1153
coroutine.resume(coroutine.create(function(Part,Mesh) 
1154
	local rtype = rottype
1155
for i=0,1,delay do
1156
swait()
1157
if rtype == 1 then
1158
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1159
elseif rtype == 2 then
1160
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1161
end
1162
Part.Transparency=i
1163
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1164
end
1165
Part.Parent=nil
1166
end),prt,msh)
1167
end
1168
1169
function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1170
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1171
prt.Anchored=true
1172
prt.CFrame=cframe
1173
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1174
msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1175
game:GetService("Debris"):AddItem(prt,5)
1176
coroutine.resume(coroutine.create(function(Part,Mesh) 
1177
for i=0,1,delay do
1178
wait()
1179
Part.Transparency=i
1180
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1181
end
1182
Part.Parent=nil
1183
end),prt,msh)
1184
end
1185
1186
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
1187
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1188
prt.Anchored=true
1189
prt.Material = "Neon"
1190
prt.CFrame=cframe
1191
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1192
game:GetService("Debris"):AddItem(prt,5)
1193
coroutine.resume(coroutine.create(function(Part,Mesh) 
1194
	local rtype = rottype
1195
for i=0,1,delay do
1196
swait()
1197
if rtype == 1 then
1198
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1199
elseif rtype == 2 then
1200
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1201
end
1202
Part.Transparency=i
1203
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1204
end
1205
Part.Parent=nil
1206
end),prt,msh)
1207
end
1208
1209
function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
1210
local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
1211
prt.Anchored=true
1212
prt.Material = "Neon"
1213
prt.CFrame=cframe
1214
local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
1215
local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
1216
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
1217
game:GetService("Debris"):AddItem(prt,5)
1218
coroutine.resume(coroutine.create(function(Part,Mesh) 
1219
	local rtype = rottype
1220
for i=0,1,delay do
1221
swait()
1222
if rtype == 1 then
1223
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1224
elseif rtype == 2 then
1225
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1226
end
1227
dec.Transparency=i
1228
dec2.Transparency=i
1229
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
1230
end
1231
Part.Parent=nil
1232
end),prt,msh)
1233
end
1234
1235
function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
1236
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1237
prt.Anchored=true
1238
prt.Material = "Neon"
1239
prt.CFrame=cframe
1240
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
1241
game:GetService("Debris"):AddItem(prt,5)
1242
coroutine.resume(coroutine.create(function(Part,Mesh) 
1243
	local rtype = rottype
1244
for i=0,1,delay do
1245
swait()
1246
if rtype == 1 then
1247
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1248
elseif rtype == 2 then
1249
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1250
end
1251
prt.Transparency=i
1252
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
1253
end
1254
Part.Parent=nil
1255
end),prt,msh)
1256
end
1257
1258
function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
1259
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1260
prt.Anchored=true
1261
prt.Material = "Neon"
1262
prt.CFrame=cframe
1263
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
1264
game:GetService("Debris"):AddItem(prt,5)
1265
coroutine.resume(coroutine.create(function(Part,Mesh) 
1266
	local rtype = rottype
1267
for i=0,1,delay do
1268
swait()
1269
if rtype == 1 then
1270
prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
1271
elseif rtype == 2 then
1272
prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
1273
end
1274
prt.Transparency=i
1275
Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
1276
end
1277
Part.Parent=nil
1278
end),prt,msh)
1279
end
1280
1281
function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
1282
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1283
prt.Anchored=true
1284
prt.Material = "Neon"
1285
prt.CFrame=cframe
1286
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1287
game:GetService("Debris"):AddItem(prt,5)
1288
coroutine.resume(coroutine.create(function(Part,Mesh) 
1289
	local rtype = rottype
1290
for i=0,1,delay do
1291
swait()
1292
if rtype == 1 then
1293
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1294
elseif rtype == 2 then
1295
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1296
end
1297
prt.Transparency=i
1298
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
1299
end
1300
Part.Parent=nil
1301
end),prt,msh)
1302
end
1303
 
1304
function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
1305
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1306
prt.Anchored=false
1307
prt.CFrame=cframe
1308
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1309
local wld=weld(prt,prt,Parent,cframe)
1310
game:GetService("Debris"):AddItem(prt,5)
1311
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
1312
for i=0,1,delay do
1313
wait()
1314
Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
1315
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1316
Part.Transparency=i
1317
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1318
end
1319
Part.Parent=nil
1320
end),prt,msh,wld)
1321
end
1322
 
1323
function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
1324
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1325
prt.Anchored=false
1326
prt.CFrame=cframe
1327
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1328
local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
1329
game:GetService("Debris"):AddItem(prt,5)
1330
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
1331
for i=0,1,delay do
1332
wait()
1333
Weld.C0=euler(i*20,0,0)
1334
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1335
Part.Transparency=i
1336
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1337
end
1338
Part.Parent=nil
1339
end),prt,msh,wld)
1340
end
1341
 
1342
function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1343
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1344
prt.Anchored=true
1345
prt.CFrame=cframe
1346
local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1347
game:GetService("Debris"):AddItem(prt,2)
1348
coroutine.resume(coroutine.create(function(Part,Mesh) 
1349
for i=0,1,delay do
1350
wait()
1351
Part.CFrame=Part.CFrame
1352
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1353
local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1354
prt2.Anchored=true
1355
prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1356
local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
1357
game:GetService("Debris"):AddItem(prt2,2)
1358
coroutine.resume(coroutine.create(function(Part,Mesh) 
1359
for i=0,1,0.1 do
1360
wait()
1361
Part.CFrame=Part.CFrame*cf(0,0.5,0)
1362
end
1363
Part.Parent=nil
1364
end),prt2,msh2)
1365
end
1366
for i=0,1,delay*2 do
1367
wait()
1368
Part.CFrame=Part.CFrame
1369
Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
1370
end
1371
Part.Parent=nil
1372
end),prt,msh)
1373
end
1374
 
1375
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1376
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1377
prt.Anchored=true
1378
prt.CFrame=cframe
1379
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1380
game:GetService("Debris"):AddItem(prt,2)
1381
coroutine.resume(coroutine.create(function(Part,Mesh) 
1382
for i=0,1,delay do
1383
wait()
1384
Part.CFrame=Part.CFrame
1385
Part.Transparency=i
1386
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1387
end
1388
Part.Parent=nil
1389
end),prt,msh)
1390
end
1391
 
1392
function BreakEffect(brickcolor,cframe,x1,y1,z1)
1393
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1394
prt.Anchored=true
1395
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1396
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1397
game:GetService("Debris"):AddItem(prt,2)
1398
coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) 
1399
CF=Part.CFrame
1400
Numbb=0
1401
randnumb=math.random()/10
1402
rand1=math.random()/10
1403
for i=0,1,rand1 do
1404
wait()
1405
CF=CF*cf(0,math.random()/2,0)
1406
--Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
1407
Part.CFrame=CF*euler(Numbb,0,0)
1408
Part.Transparency=i
1409
Numbb=Numbb+randnumb
1410
end
1411
Part.Parent=nil
1412
end),prt,CF,Numbb,randnumb)
1413
end
1414
 
1415
function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1416
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1417
prt.Anchored=true
1418
prt.CFrame=cframe
1419
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
1420
game:GetService("Debris"):AddItem(prt,5)
1421
coroutine.resume(coroutine.create(function(Part,Mesh) 
1422
for i=0,1,delay do
1423
wait()
1424
Part.CFrame=Part.CFrame*euler(0,0.7,0)
1425
Part.Transparency=i
1426
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1427
end
1428
Part.Parent=nil
1429
end),prt,msh)
1430
end
1431
 
1432
function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1433
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1434
prt.Anchored=true
1435
prt.CFrame=cframe
1436
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
1437
game:GetService("Debris"):AddItem(prt,2)
1438
coroutine.resume(coroutine.create(function(Part,Mesh) 
1439
for i=0,1,delay do
1440
wait()
1441
Part.CFrame=Part.CFrame*cf(0,y3/2,0)
1442
Part.Transparency=i
1443
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1444
end
1445
Part.Parent=nil
1446
end),prt,msh)
1447
end
1448
 
1449
function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
1450
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1451
prt.Anchored=true
1452
prt.CFrame=cframe*cf(x,y,z)
1453
msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
1454
game:GetService("Debris"):AddItem(prt,5)
1455
coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) 
1456
local num=math.random()
1457
local num2=math.random(-3,2)+math.random()
1458
local numm=0
1459
for i=0,1,delay*2 do
1460
swait()
1461
Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
1462
Part.Transparency=i
1463
numm=numm+0.01
1464
end
1465
Part.Parent=nil
1466
Mesh.Parent=nil
1467
end),prt,msh,x,y,z)
1468
end
1469
1470
function dmgstart(dmg,what)
1471
	hitcon = what.Touched:connect(function(hit)
1472
		local hum = hit.Parent:FindFirstChild("Humanoid")
1473
		if hum and not hum:IsDescendantOf(Character) then
1474
			hum:TakeDamage(dmg)
1475
		end
1476
	end)
1477
end
1478
1479
function dmgstop()
1480
	hitcon:disconnect()
1481
end
1482
1483
function Cloak()
1484
Face.Parent=nil
1485
cloaked=true
1486
        for _,v in pairs(Torso.Parent:children()) do
1487
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
1488
                coroutine.resume(coroutine.create(function() 
1489
                for i=0,1,0.2 do
1490
                wait()
1491
                v.Transparency=i
1492
                end
1493
                v.Transparency=1
1494
                end))
1495
                end
1496
                if v.className=="Hat" then
1497
                hatp=v.Handle
1498
                coroutine.resume(coroutine.create(function(derp) 
1499
                for i=0,1,0.2 do
1500
                wait()
1501
                derp.Transparency=i
1502
                end
1503
                derp.Transparency=1
1504
                end),hatp)
1505
                end
1506
        end
1507
        for _,v in pairs(m:children()) do
1508
                if v.className=="Part" then
1509
                coroutine.resume(coroutine.create(function() 
1510
                for i=0,1,0.2 do
1511
                wait()
1512
                v.Transparency=i
1513
                end
1514
                v.Transparency=1
1515
                end))
1516
                end
1517
        end
1518
end
1519
 
1520
function UnCloak()
1521
so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) 
1522
Face.Parent=Head 
1523
cloaked=false
1524
        for _,v in pairs(Torso.Parent:children()) do
1525
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
1526
                coroutine.resume(coroutine.create(function() 
1527
                for i=0,1,0.1 do
1528
                wait()
1529
                v.Transparency=v.Transparency-0.1
1530
                end
1531
                v.Transparency=0
1532
                end))
1533
                end
1534
                if v.className=="Hat" then
1535
                hatp=v.Handle
1536
                coroutine.resume(coroutine.create(function(derp) 
1537
                for i=0,1,0.1 do
1538
                wait()
1539
                derp.Transparency=derp.Transparency-0.1
1540
                end
1541
                derp.Transparency=0
1542
                end),hatp)
1543
                end
1544
        end
1545
        for _,v in pairs(m:children()) do
1546
                if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
1547
                coroutine.resume(coroutine.create(function() 
1548
                for i=0,1,0.1 do
1549
                wait()
1550
                v.Transparency=v.Transparency-0.1
1551
                end
1552
                v.Transparency=0
1553
                end))
1554
                v.Transparency=0
1555
                end
1556
        end
1557
end
1558
1559
function MakeMagic(Type,Color,Bullets,Size,Speed,Position,MagCircleScale,Delay,ExplosionScale,ExplosionVol,Explosionpit)
1560
	if Type == "PulsingBullet" then
1561
for i = 0,1,0.1 do
1562
		swait()
1563
		MagicBlock(Color,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
1564
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(0)),.4)
1565
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.4)
1566
             RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.15) * angles(math.rad(80), math.rad(0), math.rad(-30)), 0.4)
1567
             LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.15) * angles(math.rad(80), math.rad(0), math.rad(30)), 0.4)
1568
	end
1569
					local a = Instance.new("Part",Character)
1570
	a.Name = "Direction"	
1571
	a.Anchored = true
1572
	a.BrickColor = Color
1573
a.Material = "Neon"
1574
a.Transparency = 0.5
1575
	a.CanCollide = false
1576
	local ray = Ray.new(
1577
	    sorb.CFrame.p,                           -- origin
1578
	    (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
1579
	) 
1580
	local ignore = Character
1581
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
1582
	a.BottomSurface = 10
1583
	a.TopSurface = 10
1584
	local distance = (sorb.CFrame.p - position).magnitude
1585
	a.Size = Vector3.new(0.1, 0.1, 0.1)
1586
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
1587
	game:GetService("Debris"):AddItem(a, 3)
1588
	local thing = Instance.new("SpecialMesh",a)
1589
     thing.MeshType = "Sphere"
1590
thing.Scale = vt(0,0,1)
1591
for i = 0, 9 do
1592
ray = Ray.new(
1593
	    sorb.CFrame.p,                           -- origin
1594
	    (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
1595
	) 
1596
	ignore = Character
1597
	hit, position, normal = workspace:FindPartOnRay(ray, ignore)
1598
	local distance = (sorb.CFrame.p - position).magnitude
1599
	a.Size = Vector3.new(0.1, 0.1, 0.1)
1600
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
1601
	thing.Scale = thing.Scale + vt(MagCircleScale,MagCircleScale,0)
1602
	wait()
1603
end
1604
	if Bullets == 1 then
1605
			 local lb = Instance.new("Part")
1606
CFuncs["Sound"].Create("rbxassetid://260433768", lb, 2.5, 1)
1607
  lb.Parent = char
1608
    lb.BrickColor = Color
1609
     lb.CanCollide = false
1610
lb.Material = "Neon"
1611
     lb.Shape = "Ball"
1612
     lb.Anchored = true
1613
     lb.Transparency = 0
1614
     lb.Size = vt(1,1,1)
1615
     lb.CFrame = a.CFrame
1616
     local thingery = Instance.new("SpecialMesh",lb)
1617
     thingery.MeshType = "Sphere"
1618
thingery.Scale = Size
1619
lb.Anchored = false
1620
  local bv = Instance.new("BodyVelocity")
1621
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1622
  bv.velocity = a.CFrame.lookVector*Speed
1623
  bv.Parent = lb
1624
wait(0.1)
1625
local touched = false
1626
lb.Touched:connect(function(hit) 
1627
	if touched == false then
1628
		touched = true
1629
		lb.Transparency = 1
1630
		PulseDam(ExplosionScale,lb,lb.BrickColor)
1631
		lb.Anchored = true
1632
		end
1633
end)
1634
game:GetService("Debris"):AddItem(lb, Delay)
1635
end
1636
for i = 0, 9 do
1637
ray = Ray.new(
1638
	    sorb.CFrame.p,                           -- origin
1639
	    (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
1640
	) 
1641
	ignore = Character
1642
	hit, position, normal = workspace:FindPartOnRay(ray, ignore)
1643
	local distance = (sorb.CFrame.p - position).magnitude
1644
	a.Size = Vector3.new(0.1, 0.1, 0.1)
1645
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
1646
	thing.Scale = thing.Scale - vt(MagCircleScale,MagCircleScale,0)
1647
	wait()
1648
end
1649
end
1650
		if Type == "ExplodingBullet" then
1651
if Bullets == 1 then
1652
		for i = 0,1,0.1 do
1653
		swait()
1654
		MagicBlock(Color,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
1655
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(0)),.4)
1656
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.4)
1657
             RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.15) * angles(math.rad(80), math.rad(0), math.rad(-30)), 0.4)
1658
             LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.15) * angles(math.rad(80), math.rad(0), math.rad(30)), 0.4)
1659
	end
1660
end
1661
if Bullets > 1 then
1662
for i = 0,1,0.1 do
1663
		swait()
1664
		MagicBlock(Color,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
1665
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(90)),.4)
1666
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.4)
1667
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4)
1668
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.4)
1669
	end
1670
end
1671
					local a = Instance.new("Part",Character)
1672
	a.Name = "Direction"	
1673
	a.Anchored = true
1674
	a.BrickColor = Color
1675
a.Material = "Neon"
1676
a.Transparency = 0.5
1677
	a.CanCollide = false
1678
	local ray = Ray.new(
1679
	    sorb.CFrame.p,                           -- origin
1680
	    (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
1681
	) 
1682
	local ignore = Character
1683
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
1684
	a.BottomSurface = 10
1685
	a.TopSurface = 10
1686
	local distance = (sorb.CFrame.p - position).magnitude
1687
	a.Size = Vector3.new(0.1, 0.1, 0.1)
1688
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
1689
	game:GetService("Debris"):AddItem(a, 3)
1690
	local thing = Instance.new("SpecialMesh",a)
1691
     thing.MeshType = "Sphere"
1692
thing.Scale = vt(0,0,1)
1693
for i = 0, 9 do
1694
ray = Ray.new(
1695
	    sorb.CFrame.p,                           -- origin
1696
	    (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
1697
	) 
1698
	ignore = Character
1699
	hit, position, normal = workspace:FindPartOnRay(ray, ignore)
1700
	local distance = (sorb.CFrame.p - position).magnitude
1701
	a.Size = Vector3.new(0.1, 0.1, 0.1)
1702
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
1703
	thing.Scale = thing.Scale + vt(MagCircleScale,MagCircleScale,0)
1704
	wait()
1705
end
1706
	if Bullets == 1 then
1707
			 local lb = Instance.new("Part")
1708
CFuncs["Sound"].Create("rbxassetid://260433721", lb, 2.5, 1)
1709
  lb.Parent = char
1710
    lb.BrickColor = Color
1711
     lb.CanCollide = false
1712
lb.Material = "Neon"
1713
     lb.Shape = "Ball"
1714
     lb.Anchored = true
1715
     lb.Transparency = 0
1716
     lb.Size = vt(1,1,1)
1717
     lb.CFrame = a.CFrame
1718
     local thingery = Instance.new("SpecialMesh",lb)
1719
     thingery.MeshType = "Sphere"
1720
thingery.Scale = Size
1721
lb.Anchored = false
1722
  local bv = Instance.new("BodyVelocity")
1723
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1724
  bv.velocity = a.CFrame.lookVector*Speed
1725
  bv.Parent = lb
1726
wait(0.1)
1727
local touched = false
1728
lb.Touched:connect(function(hit) 
1729
	if touched == false then
1730
		touched = true
1731
		lb.Transparency = 1
1732
		Explode(ExplosionScale,lb,Explosionpit,ExplosionVol)
1733
		lb.Anchored = true
1734
		end
1735
end)
1736
game:GetService("Debris"):AddItem(lb, Delay)
1737
end
1738
	if Bullets > 1 then
1739
for i = 0, Bullets do
1740
ray = Ray.new(
1741
	    sorb.CFrame.p,                           -- origin
1742
	    (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
1743
	) 
1744
	ignore = Character
1745
	hit, position, normal = workspace:FindPartOnRay(ray, ignore)
1746
	local distance = (sorb.CFrame.p - position).magnitude
1747
	a.Size = Vector3.new(0.1, 0.1, 0.1)
1748
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
1749
			 local lb = Instance.new("Part")
1750
CFuncs["Sound"].Create("rbxassetid://203691467", lb, 1, 5.5)
1751
  lb.Parent = char
1752
    lb.BrickColor = Color
1753
     lb.CanCollide = false
1754
lb.Material = "Neon"
1755
     lb.Shape = "Ball"
1756
     lb.Anchored = true
1757
     lb.Transparency = 0
1758
     lb.Size = vt(1,1,1)
1759
     lb.CFrame = a.CFrame
1760
     local thingery = Instance.new("SpecialMesh",lb)
1761
     thingery.MeshType = "Sphere"
1762
thingery.Scale = Size
1763
lb.Anchored = false
1764
  local bv = Instance.new("BodyVelocity")
1765
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1766
  bv.velocity = a.CFrame.lookVector*Speed
1767
  bv.Parent = lb
1768
wait(0.035)
1769
local touched = false
1770
lb.Touched:connect(function(hit) 
1771
	if touched == false then
1772
		touched = true
1773
		lb.Transparency = 1
1774
		ExplodeShort(ExplosionScale,lb,Explosionpit,ExplosionVol)
1775
		lb.Anchored = true
1776
		end
1777
end)
1778
game:GetService("Debris"):AddItem(lb, Delay)
1779
end
1780
end
1781
for i = 0, 9 do
1782
ray = Ray.new(
1783
	    sorb.CFrame.p,                           -- origin
1784
	    (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
1785
	) 
1786
	ignore = Character
1787
	hit, position, normal = workspace:FindPartOnRay(ray, ignore)
1788
	local distance = (sorb.CFrame.p - position).magnitude
1789
	a.Size = Vector3.new(0.1, 0.1, 0.1)
1790
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
1791
	thing.Scale = thing.Scale - vt(MagCircleScale,MagCircleScale,0)
1792
	wait()
1793
end
1794
end
1795
		if Type == "FireUltExplosion" then
1796
hum.WalkSpeed = 16
1797
					local a = Instance.new("Part",Character)
1798
	a.Name = "Direction"	
1799
	a.Anchored = true
1800
	a.BrickColor = Color
1801
a.Material = "Neon"
1802
a.Transparency = 0.5
1803
a.Size = vt(1,1,1)
1804
	a.CanCollide = false
1805
	a.CFrame = root.CFrame + vt(0,5,0)
1806
	game:GetService("Debris"):AddItem(a, Delay)
1807
	local thing = Instance.new("SpecialMesh",a)
1808
     thing.MeshType = "Sphere"
1809
thing.Scale = vt(0,1,0)
1810
		for i = 0,5,0.1 do
1811
		swait()
1812
		MagicBlock(Color,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
1813
MagicBlock(Color,sorb2.CFrame,1,1,1,0.05,0.05,0.05,0.05)
1814
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(0)),.1)
1815
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
1816
             RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.15) * angles(math.rad(150), math.rad(0), math.rad(30)), 0.1)
1817
             LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.15) * angles(math.rad(150), math.rad(0), math.rad(-30)), 0.1)
1818
	end
1819
for i = 0, 9 do
1820
	thing.Scale = thing.Scale + vt(MagCircleScale,0,MagCircleScale)
1821
	wait()
1822
end
1823
		for i = 0,5,0.1 do
1824
		swait()
1825
		MagicBlock(Color,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
1826
MagicBlock(Color,sorb2.CFrame,1,1,1,0.05,0.05,0.05,0.05)
1827
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(0)),.1)
1828
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.1)
1829
             RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.15) * angles(math.rad(80), math.rad(0), math.rad(30)), 0.1)
1830
             LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.15) * angles(math.rad(80), math.rad(0), math.rad(-30)), 0.1)
1831
	end
1832
for i = 0,1,0.1 do
1833
		swait()
1834
		MagicBlock(Color,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
1835
MagicBlock(Color,sorb2.CFrame,1,1,1,0.05,0.05,0.05,0.05)
1836
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(0)),.4)
1837
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.4)
1838
             RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.15) * angles(math.rad(80), math.rad(0), math.rad(-30)), 0.4)
1839
             LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.15) * angles(math.rad(80), math.rad(0), math.rad(30)), 0.4)
1840
	end
1841
hum.WalkSpeed = 16
1842
attack = false
1843
	for i = 0, 9 do
1844
	thing.Scale = thing.Scale - vt(MagCircleScale,0,MagCircleScale)
1845
	wait()
1846
end
1847
ExplodeLong(65,a,0.4,1)
1848
	end
1849
	if Type == "Bullet" then
1850
		for i = 0,1,0.1 do
1851
		swait()
1852
		MagicBlock(Color,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
1853
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(80)),.4)
1854
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.4)
1855
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.4)
1856
             LW.C0 = clerp(LW.C0, CFrame.new(-0.15, 0.5, -0.35) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4)
1857
	end
1858
					local a = Instance.new("Part",Character)
1859
	a.Name = "Direction"	
1860
	a.Anchored = true
1861
	a.BrickColor = Color
1862
a.Material = "Neon"
1863
a.Transparency = 0.5
1864
	a.CanCollide = false
1865
	local ray = Ray.new(
1866
	    sorb.CFrame.p,                           -- origin
1867
	    (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
1868
	) 
1869
	local ignore = Character
1870
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
1871
	a.BottomSurface = 10
1872
	a.TopSurface = 10
1873
	local distance = (sorb.CFrame.p - position).magnitude
1874
	a.Size = Vector3.new(0.1, 0.1, 0.1)
1875
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
1876
	game:GetService("Debris"):AddItem(a, 3)
1877
	local thing = Instance.new("SpecialMesh",a)
1878
     thing.MeshType = "Sphere"
1879
thing.Scale = vt(0,0,1)
1880
for i = 0, 9 do
1881
	thing.Scale = thing.Scale + vt(MagCircleScale,MagCircleScale,0)
1882
	wait()
1883
end
1884
	if Bullets == 1 then
1885
			 local lb = Instance.new("Part")
1886
CFuncs["Sound"].Create("rbxassetid://260433721", lb, 2.5, 1)
1887
  lb.Parent = char
1888
    lb.BrickColor = Color
1889
     lb.CanCollide = false
1890
lb.Material = "Neon"
1891
     lb.Shape = "Ball"
1892
     lb.Anchored = true
1893
     lb.Transparency = 0.5
1894
     lb.Size = Size
1895
     lb.CFrame = a.CFrame
1896
     local thing = Instance.new("SpecialMesh",lb)
1897
     thing.MeshType = "Sphere"
1898
lb.Anchored = false
1899
  local bv = Instance.new("BodyVelocity")
1900
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1901
  bv.velocity = a.CFrame.lookVector*Speed
1902
  bv.Parent = lb
1903
pcall(function()
1904
local ParticleEmitter12 = Instance.new("ParticleEmitter")
1905
ParticleEmitter12.Name = "BANNEDTRAIL"
1906
ParticleEmitter12.Parent = lb
1907
ParticleEmitter12.Transparency = NumberSequence.new(0,0,1)
1908
ParticleEmitter12.Size = NumberSequence.new(1.2999999523163,1.2999999523163)
1909
ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
1910
ParticleEmitter12.Enabled = true
1911
ParticleEmitter12.Texture = "rbxassetid://3412753"
1912
ParticleEmitter12.ZOffset = -3
1913
ParticleEmitter12.Lifetime = NumberRange.new(1, 1)
1914
ParticleEmitter12.Rate = 120
1915
ParticleEmitter12.RotSpeed = NumberRange.new(-100, 100)
1916
ParticleEmitter12.VelocitySpread = 360
1917
ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
1918
end)
1919
lb.Touched:connect(function(hit) 
1920
	Damagefunc(hit,9,15,math.random(10,20),"Normal",root,.2,1)
1921
end)
1922
game:GetService("Debris"):AddItem(lb, Delay)
1923
	end
1924
		if Bullets > 1 then
1925
			for i = 0, Bullets do
1926
				wait(0.075)
1927
ray = Ray.new(
1928
	    sorb.CFrame.p,                           -- origin
1929
	    (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
1930
	) 
1931
	ignore = Character
1932
	hit, position, normal = workspace:FindPartOnRay(ray, ignore)
1933
	local distance = (sorb.CFrame.p - position).magnitude
1934
	a.Size = Vector3.new(0.1, 0.1, 0.1)
1935
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
1936
			 local lb = Instance.new("Part")
1937
CFuncs["Sound"].Create("rbxassetid://260433721", lb, 2.5, 1)
1938
  lb.Parent = char
1939
    lb.BrickColor = Color
1940
     lb.CanCollide = false
1941
lb.Material = "Neon"
1942
     lb.Shape = "Ball"
1943
     lb.Anchored = true
1944
     lb.Transparency = 0.5
1945
     lb.Size = Size
1946
     lb.CFrame = a.CFrame
1947
     local thing = Instance.new("SpecialMesh",lb)
1948
     thing.MeshType = "Sphere"
1949
lb.Anchored = false
1950
  local bv = Instance.new("BodyVelocity")
1951
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1952
  bv.velocity = a.CFrame.lookVector*Speed
1953
  bv.Parent = lb
1954
pcall(function()
1955
local ParticleEmitter12 = Instance.new("ParticleEmitter")
1956
ParticleEmitter12.Name = "BANNEDTRAIL"
1957
ParticleEmitter12.Parent = lb
1958
ParticleEmitter12.Transparency = NumberSequence.new(0,0,1)
1959
ParticleEmitter12.Size = NumberSequence.new(1.2999999523163,1.2999999523163)
1960
ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
1961
ParticleEmitter12.Enabled = true
1962
ParticleEmitter12.Texture = "rbxassetid://3412753"
1963
ParticleEmitter12.ZOffset = -3
1964
ParticleEmitter12.Lifetime = NumberRange.new(1, 1)
1965
ParticleEmitter12.Rate = 120
1966
ParticleEmitter12.RotSpeed = NumberRange.new(-100, 100)
1967
ParticleEmitter12.VelocitySpread = 360
1968
ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
1969
end)
1970
lb.Touched:connect(function(hit) 
1971
	Damagefunc(hit,3,5,math.random(10,20),"Normal",root,.2,1)
1972
end)
1973
game:GetService("Debris"):AddItem(lb, Delay)
1974
end
1975
	end
1976
	for i = 0, 9 do
1977
	thing.Scale = thing.Scale - vt(MagCircleScale,MagCircleScale,0)
1978
	wait()
1979
end
1980
	end
1981
		if Type == "Beam" then
1982
					for i = 0,1,0.1 do
1983
		swait()
1984
		MagicBlock(Color,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
1985
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(80)),.4)
1986
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.4)
1987
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.4)
1988
             LW.C0 = clerp(LW.C0, CFrame.new(-0.15, 0.5, -0.35) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4)
1989
					end
1990
					local a = Instance.new("Part",Character)
1991
	a.Name = "Direction"	
1992
	a.Anchored = true
1993
	a.BrickColor = Color
1994
a.Material = "Neon"
1995
a.Transparency = 0.5
1996
	a.CanCollide = false
1997
	local ray = Ray.new(
1998
	    sorb.CFrame.p,                           -- origin
1999
	    (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
2000
	) 
2001
	local ignore = Character
2002
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2003
	a.BottomSurface = 10
2004
	a.TopSurface = 10
2005
	local distance = (sorb.CFrame.p - position).magnitude
2006
	a.Size = Vector3.new(0.1, 0.1, 0.1)
2007
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
2008
	game:GetService("Debris"):AddItem(a, 3)
2009
	local thing = Instance.new("SpecialMesh",a)
2010
     thing.MeshType = "Sphere"
2011
thing.Scale = vt(0,0,1)
2012
for i = 0, 9 do
2013
	thing.Scale = thing.Scale + vt(MagCircleScale,MagCircleScale,0)
2014
	wait()
2015
end
2016
if Bullets == 1 then
2017
					local a = Instance.new("Part",Character)
2018
	a.Name = "Direction"	
2019
	a.Anchored = true
2020
	a.BrickColor = Color
2021
a.Material = "Neon"
2022
a.Transparency = 0.5
2023
	a.CanCollide = false
2024
	local ray = Ray.new(
2025
	    sorb.CFrame.p,                           -- origin
2026
	    (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
2027
	) 
2028
	local ignore = Character
2029
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2030
	if hit then
2031
		local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
2032
	 
2033
		if not humanoid then
2034
			humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
2035
		end
2036
		if humanoid then
2037
			if humanoid.Parent:IsA"Model" then
2038
				Damagefunc(hit,5,10,math.random(10,20),"Normal",RootPart,.2,1)
2039
			end
2040
		end
2041
	end
2042
	a.BottomSurface = 10
2043
	a.TopSurface = 10
2044
	CFuncs["Sound"].Create("rbxassetid://151414336", a, 2.5, 1)
2045
	local distance = (sorb.CFrame.p - position).magnitude
2046
	a.Size = Vector3.new(0.5, 0.5, distance)
2047
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
2048
	game:GetService("Debris"):AddItem(a, 0.1)
2049
end
2050
if Bullets > 1 then
2051
	for i = 0, Bullets do
2052
		wait(0.05)
2053
ray = Ray.new(
2054
	    sorb.CFrame.p,                           -- origin
2055
	    (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
2056
	) 
2057
	ignore = Character
2058
	hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2059
	local distance = (sorb.CFrame.p - position).magnitude
2060
	a.Size = Vector3.new(0.1, 0.1, 0.1)
2061
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
2062
					local a = Instance.new("Part",Character)
2063
	a.Name = "Direction"	
2064
	a.Anchored = true
2065
	a.BrickColor = Color
2066
a.Material = "Neon"
2067
a.Transparency = 0.5
2068
	a.CanCollide = false
2069
	local ray = Ray.new(
2070
	    sorb.CFrame.p,                           -- origin
2071
	    (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
2072
	) 
2073
	local ignore = Character
2074
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2075
	if hit then
2076
		local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
2077
	 
2078
		if not humanoid then
2079
			humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
2080
		end
2081
		if humanoid then
2082
			if humanoid.Parent:IsA"Model" then
2083
				Damagefunc(hit,5,10,math.random(10,20),"Normal",RootPart,.2,1)
2084
			end
2085
		end
2086
	end
2087
	a.BottomSurface = 10
2088
	a.TopSurface = 10
2089
CFuncs["Sound"].Create("rbxassetid://151414336", a, 2.5, 1)
2090
	local distance = (sorb.CFrame.p - position).magnitude
2091
	a.Size = Vector3.new(0.5, 0.5, distance)
2092
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
2093
	game:GetService("Debris"):AddItem(a, 0.1)
2094
	end
2095
	end
2096
for i = 0, 9 do
2097
	thing.Scale = thing.Scale - vt(MagCircleScale,MagCircleScale,0)
2098
	wait()
2099
end
2100
		end
2101
		hum.WalkSpeed = 16
2102
end
2103
function Teleport(col,rad,par)
2104
attack = true
2105
for i = 0,1,0.1 do
2106
		swait()
2107
		MagicBlock(col,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
2108
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(90)),.4)
2109
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.4)
2110
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4)
2111
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.4)
2112
	end
2113
				local a = Instance.new("Part",Character)
2114
	a.Name = "Direction"	
2115
	a.Anchored = true
2116
	a.BrickColor = col
2117
a.Material = "Neon"
2118
a.Transparency = 1
2119
	a.CanCollide = false
2120
local ab = Instance.new("Part",Character)
2121
	ab.Name = "Direction"	
2122
	ab.Anchored = true
2123
	ab.BrickColor = col
2124
ab.Material = "Neon"
2125
ab.Transparency = 1
2126
	ab.CanCollide = false
2127
	local ray = Ray.new(
2128
	    sorb.CFrame.p,                           -- origin
2129
	    (mouse.Hit.p - sorb.CFrame.p).unit * 75 -- direction
2130
	) 
2131
	local ignore = Character
2132
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2133
	a.BottomSurface = 10
2134
	a.TopSurface = 10
2135
	CFuncs["Sound"].Create("rbxassetid://201858045", a, 2.5, 1.25)
2136
	local distance = (sorb.CFrame.p - position).magnitude
2137
	a.Size = Vector3.new(0.5, 0.5, distance)
2138
ab.Size = Vector3.new(1,1,1)
2139
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
2140
	ab.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance)
2141
	local expart = Instance.new("Part",char)
2142
	local expart2 = Instance.new("Part",char)
2143
	local partMesh = Instance.new("SpecialMesh",expart)
2144
	partMesh.MeshType = "Sphere"
2145
	local partMesh2 = Instance.new("SpecialMesh",expart2)
2146
	partMesh2.MeshType = "Sphere"
2147
	partMesh.Scale = vt(rad,rad,rad)
2148
	expart.Size = vt(1,1,1)
2149
	expart.Transparency = 0
2150
	expart.Anchored = true
2151
	expart.Material = "Neon"
2152
	expart.BrickColor = bc("White")
2153
	expart.CFrame = par.CFrame
2154
	partMesh2.Scale = vt(rad,rad,rad)
2155
	expart2.Size = vt(1.15,1.15,1.15)
2156
	expart2.Transparency = 0.5
2157
	expart2.Anchored = true
2158
	expart2.Material = "Neon"
2159
	expart2.BrickColor = col
2160
	expart2.CFrame = par.CFrame
2161
expart.CanCollide = false
2162
expart2.CanCollide = false
2163
2164
        local expartb = Instance.new("Part",char)
2165
	local expart2b = Instance.new("Part",char)
2166
expartb.CanCollide = false
2167
expart2b.CanCollide = false
2168
	local partMeshb = Instance.new("SpecialMesh",expartb)
2169
	partMeshb.MeshType = "Sphere"
2170
	local partMesh2b = Instance.new("SpecialMesh",expart2b)
2171
	partMesh2b.MeshType = "Sphere"
2172
	partMeshb.Scale = vt(rad,rad,rad)
2173
	expartb.Size = vt(1,1,1)
2174
	expartb.Transparency = 0
2175
	expartb.Anchored = true
2176
	expartb.Material = "Neon"
2177
	expartb.BrickColor = bc("White")
2178
	expartb.CFrame = ab.CFrame
2179
	partMesh2b.Scale = vt(rad,rad,rad)
2180
	expart2b.Size = vt(1.15,1.15,1.15)
2181
	expart2b.Transparency = 0.5
2182
	expart2b.Anchored = true
2183
	expart2b.Material = "Neon"
2184
	expart2b.BrickColor = col
2185
	expart2b.CFrame = ab.CFrame
2186
        local value = 1*rad/10
2187
	for i = 0, 34 do
2188
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
2189
		expart.CFrame = expart.CFrame
2190
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
2191
		expart2.CFrame = expart.CFrame
2192
                partMeshb.Scale = partMeshb.Scale + vt(value,value,value)
2193
		expartb.CFrame = expartb.CFrame
2194
                partMesh2b.Scale = partMesh2b.Scale + vt(value,value,value)
2195
		expart2b.CFrame = expartb.CFrame
2196
                value = value - 0.035*rad/10
2197
                if value < 0 then
2198
value = 0
2199
end
2200
		swait()
2201
	end
2202
value = 1.5*rad/10
2203
CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127",tors,2.5, 1)
2204
attack = false
2205
tors.CFrame = ab.CFrame
2206
for i = 0, 99 do
2207
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
2208
		expart.CFrame = expart.CFrame
2209
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
2210
		expart2.CFrame = expart.CFrame
2211
                partMeshb.Scale = partMeshb.Scale + vt(value,value,value)
2212
		expartb.CFrame = expartb.CFrame
2213
                partMesh2b.Scale = partMesh2b.Scale + vt(value,value,value)
2214
		expart2b.CFrame = expartb.CFrame
2215
                value = value - 0.035*rad/10
2216
                if value < 0 then
2217
value = 0
2218
expart.Transparency = expart.Transparency + 0.025
2219
		expart2.Transparency = expart2.Transparency + 0.025
2220
expartb.Transparency = expartb.Transparency + 0.025
2221
		expart2b.Transparency = expart2b.Transparency + 0.025
2222
end
2223
		swait()
2224
	end
2225
	game:GetService("Debris"):AddItem(a, 4)
2226
	game:GetService("Debris"):AddItem(ab, 4)
2227
	game:GetService("Debris"):AddItem(expart, 1)
2228
	game:GetService("Debris"):AddItem(expart2, 1)
2229
	game:GetService("Debris"):AddItem(expart2b, 1)
2230
	game:GetService("Debris"):AddItem(expartb, 1)
2231
end
2232
local amount = 1
2233
local size = 1
2234
local speed = 50
2235
local custocolor = BrickColor.new("Black")
2236
local groundmove = false
2237
function Move1()
2238
	attack = true
2239
	hum.WalkSpeed = 0
2240
	for i = 0,3,0.1 do
2241
		swait()
2242
		MagicBlock(custocolor,sorb.CFrame,2,2,2,0.05,0.05,0.05,0.05)
2243
RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(20),math.rad(-20 + 7.5 * math.cos(sine / 32))),.1)
2244
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.1)
2245
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
2246
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(50)),.1)
2247
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(175 + 2.5 * math.cos(sine / 25))),.1)
2248
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(20),math.rad(0),math.rad(-80 - 2.5 * math.cos(sine / 25))),.1)
2249
	end
2250
	for i = 0,1,0.1 do
2251
		swait()
2252
		MagicBlock(custocolor,sorb.CFrame,2,2,2,0.05,0.05,0.05,0.05)
2253
RH.C0=clerp(RH.C0,cf(1,-0.25 - 0.15 * math.cos(sine / 25),-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(20),math.rad(-20 + 7.5 * math.cos(sine / 32))),.5)
2254
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.5)
2255
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1 + 0.15 * math.cos(sine / 25))*angles(math.rad(50),math.rad(0),math.rad(80)),.5)
2256
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(-80)),.5)
2257
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(75 + 2.5 * math.cos(sine / 25))),.5)
2258
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(20),math.rad(0),math.rad(-80 - 2.5 * math.cos(sine / 25))),.5)
2259
	end
2260
			MagicBlock(custocolor,sorb.CFrame,2,2,2,5,5,5,0.05)
2261
			MagicBlock(custocolor,sorb.CFrame,2,2,2,10,10,10,0.15)
2262
	groundmove = true
2263
	local sizer = 5
2264
	local dist = 10
2265
	CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=838393216",tors,2.5, 1)
2266
	for i = 0, 14 do
2267
						 local lb = Instance.new("Part")
2268
  lb.Parent = char
2269
    lb.BrickColor = custocolor
2270
     lb.CanCollide = false
2271
lb.Material = "Sand"
2272
     lb.Shape = "Block"
2273
     lb.Anchored = true
2274
     lb.Transparency = 0
2275
     lb.Size = vt(math.random(3,5),math.random(3,5),math.random(3,5))
2276
lb.Velocity = Vector3.new(math.random(-35,35),100,math.random(-35,35))
2277
     lb.CFrame = sorb.CFrame
2278
lb.CFrame = lb.CFrame*CFrame.new(math.random(-3,3),0,math.random(-3,3))
2279
lb.CFrame = lb.CFrame*CFrame.Angles(math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)))
2280
lb.Anchored = false
2281
game:GetService("Debris"):AddItem(lb, 3)
2282
	end
2283
	for i = 0, 14 do
2284
						 local lb = Instance.new("Part")
2285
  lb.Parent = char
2286
    lb.BrickColor = custocolor
2287
lb.Material = "Sand"
2288
     lb.Shape = "Block"
2289
     lb.Anchored = true
2290
     lb.Transparency = 0
2291
     lb.Size = vt(math.random(2,3),math.random(2,3),math.random(2,3))
2292
     lb.CFrame = sorb.CFrame
2293
game:GetService("Debris"):AddItem(lb, 3)
2294
lb.CFrame = lb.CFrame*CFrame.new(math.random(-2,2),math.random(-1,1),math.random(-2,2))
2295
lb.CFrame = lb.CFrame*CFrame.Angles(math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)))
2296
	end
2297
	for i = 0, 24 do
2298
		sizer = sizer + 1
2299
		dist = dist + 5
2300
				 local lb = Instance.new("Part")
2301
				CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=822969951",lb,1, 0.85)
2302
  lb.Parent = char
2303
    lb.BrickColor = custocolor
2304
     lb.CanCollide = false
2305
lb.Material = "Sand"
2306
     lb.Shape = "Block"
2307
     lb.Anchored = true
2308
     lb.Transparency = 0
2309
     lb.Size = vt(sizer,sizer,sizer)
2310
     lb.CFrame = root.CFrame + root.CFrame.lookVector*dist
2311
lb.CFrame = lb.CFrame*CFrame.new(0,-5,0)
2312
lb.CFrame = lb.CFrame*CFrame.Angles(math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)))
2313
lb.Anchored = false
2314
game:GetService("Debris"):AddItem(lb, 3)
2315
pcall(function()
2316
local ParticleEmitter12 = Instance.new("ParticleEmitter")
2317
ParticleEmitter12.Name = "BANNEDTRAIL"
2318
ParticleEmitter12.Parent = lb
2319
ParticleEmitter12.Transparency = NumberSequence.new(0,0,1)
2320
ParticleEmitter12.Size = NumberSequence.new(1.2999999523163,1.2999999523163)
2321
ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
2322
ParticleEmitter12.Enabled = true
2323
ParticleEmitter12.Texture = "rbxassetid://3412753"
2324
ParticleEmitter12.ZOffset = -3
2325
ParticleEmitter12.Lifetime = NumberRange.new(1, 1)
2326
ParticleEmitter12.Rate = 120
2327
ParticleEmitter12.RotSpeed = NumberRange.new(-100, 100)
2328
ParticleEmitter12.VelocitySpread = 360
2329
ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
2330
end)
2331
lb.Touched:connect(function(hit) 
2332
	Damagefunc(hit,9,13,1,"Normal",root,.2,1)
2333
end)
2334
  local bv = Instance.new("BodyVelocity")
2335
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2336
  bv.velocity = Vector3.new(math.random(-15,15),50,math.random(-15,15))
2337
  bv.Parent = lb
2338
MagicBlock(custocolor,lb.CFrame,sizer,sizer,sizer,1.5*sizer/10,1.5*sizer/10,1.5*sizer/10,0.05)
2339
wait(0.05)
2340
bv:Destroy()
2341
	end
2342
	groundmove = false
2343
	attack = false
2344
		hum.WalkSpeed = 16
2345
end
2346
function Move2()
2347
	attack = true
2348
	for i = 0,3,0.1 do
2349
		swait()
2350
		MagicBlock(custocolor,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
2351
		MagicBlock(custocolor,sorb2.CFrame,1,1,1,0.05,0.05,0.05,0.05)
2352
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
2353
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.1)
2354
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(175),math.rad(0),math.rad(20)),.1)
2355
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(175),math.rad(0),math.rad(-20)),.1)
2356
	end
2357
					 local lb = Instance.new("Part")
2358
				CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=834070187",lb,3, 1)
2359
  lb.Parent = char
2360
    lb.BrickColor = custocolor
2361
     lb.CanCollide = false
2362
lb.Material = "Sand"
2363
     lb.Shape = "Block"
2364
     lb.Anchored = true
2365
     lb.Transparency = 0
2366
     lb.Size = vt(1,1,1)
2367
local bm = Instance.new("BlockMesh",lb)
2368
bm.Scale = vt(5,5,5)
2369
     lb.CFrame = root.CFrame*CFrame.new(0,5,0)
2370
lb.CFrame = lb.CFrame*CFrame.Angles(math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)))
2371
lb.Anchored = false
2372
MagicBlock(custocolor,lb.CFrame,0.5,0.5,0.5,1,1,1,0.05)
2373
					MagicBlock(custocolor,lb.CFrame,0.5,0.5,0.5,2,2,2,0.05)
2374
game:GetService("Debris"):AddItem(lb, 10)
2375
							local a = Instance.new("Part",Character)
2376
	a.Name = "Direction"	
2377
	a.Anchored = true
2378
	a.BrickColor = custocolor
2379
a.Material = "Neon"
2380
a.Transparency = 1
2381
	a.CanCollide = false
2382
	local ray = Ray.new(
2383
	    lb.CFrame.p,                           -- origin
2384
	    (mouse.Hit.p - lb.CFrame.p).unit * 500 -- direction
2385
	) 
2386
	local ignore = Character
2387
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2388
	a.BottomSurface = 10
2389
	a.TopSurface = 10
2390
	local distance = (lb.CFrame.p - position).magnitude
2391
	a.Size = Vector3.new(0.5, 0.5, distance)
2392
	a.CFrame = CFrame.new(lb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
2393
local touched = false
2394
  local bv = Instance.new("BodyVelocity")
2395
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2396
  bv.velocity = a.CFrame.lookVector*150
2397
  bv.Parent = lb
2398
wait(0.05)
2399
a:Destroy()
2400
lb.Touched:connect(function(hit) 
2401
	if touched == false then
2402
		touched = true
2403
		lb.Anchored = true
2404
		lb.Transparency = 1
2405
			MagicBlock(custocolor,lb.CFrame,0.5,0.5,0.5,2,2,2,0.075)
2406
		    MagicBlock(custocolor,lb.CFrame,0.5,0.5,0.5,2,2,2,0.075)
2407
		CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=822969951",lb,2.5, 1)
2408
		for i = 0, 14 do
2409
						 local lbs = Instance.new("Part")
2410
  lbs.Parent = char
2411
    lbs.BrickColor = custocolor
2412
lbs.Material = "Sand"
2413
     lbs.Shape = "Block"
2414
     lbs.Anchored = true
2415
     lbs.Transparency = 0
2416
     lbs.Size = vt(math.random(2,3),math.random(2,3),math.random(2,3))
2417
     lbs.CFrame = lb.CFrame
2418
game:GetService("Debris"):AddItem(lbs, 3)
2419
lbs.CFrame = lbs.CFrame*CFrame.new(math.random(-2,2),math.random(-1,1),math.random(-2,2))
2420
lbs.CFrame = lbs.CFrame*CFrame.Angles(math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)))
2421
	end
2422
	for i = 0, 14 do
2423
						 local lbs = Instance.new("Part")
2424
  lbs.Parent = char
2425
    lbs.BrickColor = custocolor
2426
     lbs.CanCollide = false
2427
lbs.Material = "Sand"
2428
     lbs.Shape = "Block"
2429
     lbs.Anchored = true
2430
     lbs.Transparency = 0
2431
     lbs.Size = vt(math.random(2,3),math.random(2,3),math.random(2,3))
2432
lbs.Velocity = Vector3.new(math.random(-45,45),50,math.random(-45,45))
2433
     lbs.CFrame = lb.CFrame
2434
lbs.CFrame = lbs.CFrame*CFrame.new(math.random(-3,3),0,math.random(-3,3))
2435
lbs.CFrame = lbs.CFrame*CFrame.Angles(math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)))
2436
lbs.Anchored = false
2437
pcall(function()
2438
local ParticleEmitter12 = Instance.new("ParticleEmitter")
2439
ParticleEmitter12.Name = "BANNEDTRAIL"
2440
ParticleEmitter12.Parent = lbs
2441
ParticleEmitter12.Transparency = NumberSequence.new(0,0,1)
2442
ParticleEmitter12.Size = NumberSequence.new(1.2999999523163,1.2999999523163)
2443
ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
2444
ParticleEmitter12.Enabled = true
2445
ParticleEmitter12.Texture = "rbxassetid://3412753"
2446
ParticleEmitter12.ZOffset = -3
2447
ParticleEmitter12.Lifetime = NumberRange.new(1, 1)
2448
ParticleEmitter12.Rate = 120
2449
ParticleEmitter12.RotSpeed = NumberRange.new(-100, 100)
2450
ParticleEmitter12.VelocitySpread = 360
2451
ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
2452
end)
2453
lbs.Touched:connect(function(hit) 
2454
	Damagefunc(hit,5,7,1,"Normal",root,.2,1)
2455
end)
2456
game:GetService("Debris"):AddItem(lb, 3)
2457
	end
2458
	end
2459
end)
2460
	attack = false
2461
end
2462
2463
function Move3()
2464
	attack = true
2465
	hum.WalkSpeed = 0
2466
	for i = 0,3,0.1 do
2467
		swait()
2468
		MagicBlock(custocolor,sorb.CFrame,2,2,2,0.05,0.05,0.05,0.05)
2469
		MagicBlock(custocolor,sorb2.CFrame,2,2,2,0.05,0.05,0.05,0.05)
2470
RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(-30 + 7.5 * math.cos(sine / 32))),.1)
2471
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(30 + 7.5 * math.cos(sine / 32))),.1)
2472
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
2473
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.1)
2474
RW.C0=clerp(RW.C0,cf(1.15,0.5,0)*angles(math.rad(190),math.rad(0),math.rad(-20)),.1)
2475
LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(190),math.rad(0),math.rad(20)),.1)
2476
	end
2477
	for i = 0,1,0.1 do
2478
		swait()
2479
		MagicBlock(custocolor,sorb.CFrame,2,2,2,0.05,0.05,0.05,0.05)
2480
		MagicBlock(custocolor,sorb2.CFrame,2,2,2,0.05,0.05,0.05,0.05)
2481
RH.C0=clerp(RH.C0,cf(1,-0.25 - 0.15 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(-30 + 7.5 * math.cos(sine / 32))),.5)
2482
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(30 + 7.5 * math.cos(sine / 32))),.5)
2483
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5 + 0.15 * math.cos(sine / 25))*angles(math.rad(50),math.rad(0),math.rad(0)),.5)
2484
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(50 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.5)
2485
RW.C0=clerp(RW.C0,cf(1.15,0.5,0)*angles(math.rad(30),math.rad(0),math.rad(-20)),.5)
2486
LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
2487
	end
2488
			MagicBlock(custocolor,sorb.CFrame,2,2,2,5,5,5,0.05)
2489
			MagicBlock(custocolor,sorb.CFrame,2,2,2,10,10,10,0.15)
2490
	groundmove = true
2491
	CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=838393216",tors,4.5, 0.95)
2492
	for i = 0, 14 do
2493
						 local lb = Instance.new("Part")
2494
  lb.Parent = char
2495
    lb.BrickColor = custocolor
2496
     lb.CanCollide = false
2497
lb.Material = "Sand"
2498
     lb.Shape = "Block"
2499
     lb.Anchored = true
2500
     lb.Transparency = 0
2501
     lb.Size = vt(math.random(6,9),math.random(6,9),math.random(6,9))
2502
lb.Velocity = Vector3.new(math.random(-45,45),100,math.random(-45,45))
2503
     lb.CFrame = sorb.CFrame
2504
lb.CFrame = lb.CFrame*CFrame.new(math.random(-3,3),0,math.random(-3,3))
2505
lb.CFrame = lb.CFrame*CFrame.Angles(math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)))
2506
lb.Anchored = false
2507
pcall(function()
2508
local ParticleEmitter12 = Instance.new("ParticleEmitter")
2509
ParticleEmitter12.Name = "BANNEDTRAIL"
2510
ParticleEmitter12.Parent = lb
2511
ParticleEmitter12.Transparency = NumberSequence.new(0,0,1)
2512
ParticleEmitter12.Size = NumberSequence.new(1.2999999523163,1.2999999523163)
2513
ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
2514
ParticleEmitter12.Enabled = true
2515
ParticleEmitter12.Texture = "rbxassetid://3412753"
2516
ParticleEmitter12.ZOffset = -3
2517
ParticleEmitter12.Lifetime = NumberRange.new(1, 1)
2518
ParticleEmitter12.Rate = 120
2519
ParticleEmitter12.RotSpeed = NumberRange.new(-100, 100)
2520
ParticleEmitter12.VelocitySpread = 360
2521
ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
2522
end)
2523
lb.Touched:connect(function(hit) 
2524
	Damagefunc(hit,9,12,1,"Normal",root,.2,1)
2525
end)
2526
game:GetService("Debris"):AddItem(lb, 8)
2527
	end
2528
	for i = 0, 24 do
2529
						 local lb = Instance.new("Part")
2530
  lb.Parent = char
2531
    lb.BrickColor = custocolor
2532
lb.Material = "Sand"
2533
     lb.Shape = "Block"
2534
     lb.Anchored = true
2535
     lb.Transparency = 0
2536
     lb.Size = vt(math.random(10,15),math.random(10,15),math.random(10,15))
2537
     lb.CFrame = root.CFrame*CFrame.new(0,-5,0)
2538
game:GetService("Debris"):AddItem(lb, 8)
2539
lb.CFrame = lb.CFrame*CFrame.new(math.random(-30,30),math.random(-1,1),math.random(-30,30))
2540
lb.CFrame = lb.CFrame*CFrame.Angles(math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)))
2541
	end
2542
	groundmove = false
2543
	attack = false
2544
		hum.WalkSpeed = 16
2545
end
2546
2547
local coold = false
2548
2549
for i,v in pairs(Character:children()) do
2550
	if v:IsA'Accessory' or v:IsA'ShirtGraphic' or v:IsA'Clothing' then
2551
		v:Destroy()
2552
	end
2553
end
2554
eye2 = Instance.new("Part", Character)
2555
eye2.Anchored = false
2556
eye2.Parent = hed
2557
eye2.TopSurface = 0
2558
eye2.BrickColor = BrickColor.new("Royal purple")
2559
eye2.Material = "Neon"
2560
eye2.BottomSurface = 0
2561
eye2m = Instance.new("SpecialMesh", eye2)
2562-
eye2m.MeshId = "rbxassetid://31309506"
2562+
eye2m.MeshId = "rbxassetid://437432511"
2563-
eye2m.TextureId = "rbxassetid://31309468"
2563+
eye2m.TextureId = "rbxassetid://1562555896"
2564
eye2m.Scale = Vector3.new(1.03, 1.05, 1.03)
2565
ogsize = eye2m.Scale
2566
weld = Instance.new("Weld", Head)
2567
weld.Part0 = eye2
2568
weld.Part1 = hed
2569
weld.Name = "eye2Weld"
2570
weld.C1 = CFrame.new(0,.45,0.05)
2571
local shir = Instance.new("Shirt",Character)
2572
local pan = Instance.new("Pants",Character)
2573-
shir.ShirtTemplate = "http://www.roblox.com/asset/?id=83326831"
2573+
shir.ShirtTemplate = "http://www.roblox.com/asset/?id=102728036"
2574-
pan.PantsTemplate = "http://www.roblox.com/asset/?id=10045638"
2574+
pan.PantsTemplate = "http://www.roblox.com/asset/?id=102728036"
2575
local BC = Character["Body Colors"]
2576-
BC.HeadColor = BrickColor.new("Bright yellow")
2576+
BC.HeadColor = BrickColor.new("Peach")
2577-
BC.LeftArmColor = BrickColor.new("Bright yellow")
2577+
BC.LeftArmColor = BrickColor.new("Crimson")
2578-
BC.LeftLegColor = BrickColor.new("Bright yellow")
2578+
BC.LeftLegColor = BrickColor.new("Crimson")
2579-
BC.RightArmColor = BrickColor.new("Bright yellow")
2579+
BC.RightArmColor = BrickColor.new("Crimson")
2580-
BC.RightLegColor = BrickColor.new("Bright yellow")
2580+
BC.RightLegColor = BrickColor.new("Crimson")
2581-
BC.TorsoColor = BrickColor.new("Bright yellow")
2581+
BC.TorsoColor = BrickColor.new("Crimson")
2582-
hed.face.Texture = "rbxassetid://42070872"
2582+
hed.face.Texture = "rbxassetid://20418658"
2583
2584
mouse.KeyDown:connect(function(k)
2585
        if k == "z" and attack == false then
2586
                Move2()
2587
        end
2588
        if k == "x" and attack == false then
2589
                Move1()
2590
        end
2591
        if k == "c" and attack == false then
2592
                Move3()
2593
        end
2594
end)
2595
2596
Humanoid.Animator.Parent = nil
2597
idleanim=.4
2598
while true do
2599
swait()
2600
  sine = sine + change
2601
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
2602
local velderp=RootPart.Velocity.y
2603
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
2604
if equipped==true or equipped==false then
2605
if attack==false then
2606
idle=idle+1
2607
else
2608
idle=0
2609
end
2610
if idle>=500 then
2611
if attack==false then
2612
--Sheath()
2613
end
2614
end
2615
if RootPart.Velocity.y > 1 and hitfloor==nil then 
2616
Anim="Jump"
2617
if attack==false then
2618
Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
2619
Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
2620
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2621
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
2622
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
2623
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
2624
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
2625
RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
2626
LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
2627
end
2628
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
2629
Anim="Fall"
2630
if attack==false then
2631
Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
2632
Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
2633
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
2634
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
2635
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
2636
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
2637
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
2638
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
2639
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
2640
end
2641
elseif torvel<1 and hitfloor~=nil then
2642
Anim="Idle"
2643
if groundmove == false then
2644
RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
2645
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
2646
end
2647
if attack==false then
2648
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
2649
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.3)
2650
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(5 + 2.5 * math.cos(sine / 25))),.3)
2651
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-5 - 2.5 * math.cos(sine / 25))),.3)
2652
end
2653
elseif torvel>2 and torvel<22 and hitfloor~=nil then
2654
Anim="Walk"
2655
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3)
2656
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3)
2657
if attack==false then
2658
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 - 0.05 * math.cos(sine / 4))*angles(math.rad(15),math.rad(0),math.rad(0)),.3)
2659
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2660
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 25 * math.cos(sine / 8)),math.rad(0),math.rad(10 + 1.25 * math.cos(sine / 16))),.3)
2661
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 25 * math.cos(sine / 8)),math.rad(0),math.rad(-10 - 1.25 * math.cos(sine / 16))),.3)
2662
end
2663
elseif torvel>=22 and hitfloor~=nil then
2664
Anim="Run"
2665
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
2666
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
2667
if attack==false then
2668
	          RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3)
2669
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2670
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
2671
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
2672
end
2673
end
2674
end
2675
end