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