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