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