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