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