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