View difference between Paste ID: Y9aFAVMp and TkqLEGu3
SHOW: | | - or go back to the newest paste.
1
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,game,owner = owner,game
4
local RealPlayer = Player
5
do
6
	print("FE Compatibility code V2 by Mokiros")
7
	local RealPlayer = RealPlayer
8
	script.Parent = RealPlayer.Character
9
10
	--Fake event to make stuff like Mouse.KeyDown work
11
	local Disconnect_Function = function(this)
12
		this[1].Functions[this[2]] = nil
13
	end
14
	local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
15
	local FakeEvent_Metatable = {__index={
16
		Connect = function(this,f)
17
			local i = tostring(math.random(0,10000))
18
			while this.Functions[i] do
19
				i = tostring(math.random(0,10000))
20
			end
21
			this.Functions[i] = f
22
			return setmetatable({this,i},Disconnect_Metatable)
23
		end
24
	}}
25
	FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
26
	local function fakeEvent()
27
		return setmetatable({Functions={}},FakeEvent_Metatable)
28
	end
29
30
	--Creating fake input objects with fake variables
31
    local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
32
    FakeMouse.keyUp = FakeMouse.KeyUp
33
    FakeMouse.keyDown = FakeMouse.KeyDown
34
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
35
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
36
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
37
	end}
38
	--Merged 2 functions into one by checking amount of arguments
39
	CAS.UnbindAction = CAS.BindAction
40
41
	--This function will trigger the events that have been :Connect()'ed
42
	local function TriggerEvent(self,ev,...)
43
		for _,f in pairs(self[ev].Functions) do
44
			f(...)
45
		end
46
	end
47
	FakeMouse.TriggerEvent = TriggerEvent
48
	UIS.TriggerEvent = TriggerEvent
49
50
	--Client communication
51
	local Event = Instance.new("RemoteEvent")
52
	Event.Name = "UserInput_Event"
53
	Event.OnServerEvent:Connect(function(plr,io)
54
	    if plr~=RealPlayer then return end
55
		FakeMouse.Target = io.Target
56
		FakeMouse.Hit = io.Hit
57
		if not io.isMouse then
58
			local b = io.UserInputState == Enum.UserInputState.Begin
59
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
60
				return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
61
			end
62-
mouse=Player:GetMouse()
62+
			if io.UserInputType == Enum.UserInputType.MouseButton2 then
63
				return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
64
			end
65
			for _,t in pairs(CAS.Actions) do
66
				for _,k in pairs(t.Keys) do
67
					if k==io.KeyCode then
68
						t.Function(t.Name,io.UserInputState,io)
69
					end
70
				end
71
			end
72
			FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
73
			UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
74
	    end
75
	end)
76
	Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
77
	local Mouse = owner:GetMouse()
78
	local UIS = game:GetService("UserInputService")
79
	local input = function(io,RobloxHandled)
80
		if RobloxHandled then return end
81
		--Since InputObject is a client-side instance, we create and pass table instead
82
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
83
	end
84
	UIS.InputBegan:Connect(input)
85
	UIS.InputEnded:Connect(input)
86
	local h,t
87
	--Give the server mouse data every second frame, but only if the values changed
88
	--If player is not moving their mouse, client won't fire events
89
	local HB = game:GetService("RunService").Heartbeat
90
	while true do
91
		if h~=Mouse.Hit or t~=Mouse.Target then
92
			h,t=Mouse.Hit,Mouse.Target
93
			Event:FireServer({isMouse=true,Target=t,Hit=h})
94
		end
95
		--Wait 2 frames
96
		for i=1,2 do
97
			HB:Wait()
98
		end
99
	end]==],script)
100
101
	----Sandboxed game object that allows the usage of client-side methods and services
102
	--Real game object
103
	local RealGame = game
104
105
	--Metatable for fake service
106
	local FakeService_Metatable = {
107
		__index = function(self,k)
108
			local s = rawget(self,"_RealService")
109
			if s then
110
				return typeof(s[k])=="function"
111
				and function(_,...)return s[k](s,...)end or s[k]
112
			end
113
		end,
114
		__newindex = function(self,k,v)
115
			local s = rawget(self,"_RealService")
116
			if s then s[k]=v end
117
		end
118
	}
119
	local function FakeService(t,RealService)
120
		t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
121
		return setmetatable(t,FakeService_Metatable)
122
	end
123
124
	--Fake game object
125
	local FakeGame = {
126
		GetService = function(self,s)
127
			return rawget(self,s) or RealGame:GetService(s)
128
		end,
129
		Players = FakeService({
130
			LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
131
		},"Players"),
132
		UserInputService = FakeService(UIS,"UserInputService"),
133
		ContextActionService = FakeService(CAS,"ContextActionService"),
134
		RunService = FakeService({
135
			_btrs = {},
136
			RenderStepped = RealGame:GetService("RunService").Heartbeat,
137
			BindToRenderStep = function(self,name,_,fun)
138
				self._btrs[name] = self.Heartbeat:Connect(fun)
139
			end,
140
			UnbindFromRenderStep = function(self,name)
141
				self._btrs[name]:Disconnect()
142
			end,
143
		},"RunService")
144
	}
145
	rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
146
	FakeGame.service = FakeGame.GetService
147
	FakeService(FakeGame,game)
148
	--Changing owner to fake player object to support owner:GetMouse()
149
	game,owner = FakeGame,FakeGame.Players.LocalPlayer
150
end
151
-----------------
152
--some sin thing--
153
--------------------------------------------------------------
154
--By CKbackup (Sugarie Saffron), credits to original creator--
155
--------------------------------------------------------------
156
157
Player=game:GetService("Players").LocalPlayer
158
Character=Player.Character 
159
PlayerGui=Player.PlayerGui 
160
Backpack=Player.Backpack 
161
Torso=Character.Torso 
162
Head=Character.Head 
163
Humanoid=Character:FindFirstChildOfClass("Humanoid")
164
m=Instance.new('Model',Character)
165
LeftArm=Character["Left Arm"] 
166
LeftLeg=Character["Left Leg"] 
167
RightArm=Character["Right Arm"] 
168
RightLeg=Character["Right Leg"] 
169
LS=Torso["Left Shoulder"] 
170
LH=Torso["Left Hip"] 
171
RS=Torso["Right Shoulder"] 
172
RH=Torso["Right Hip"] 
173
Face = Head.face
174
Neck=Torso.Neck
175
it=Instance.new
176
attacktype=1
177
vt=Vector3.new
178
cf=CFrame.new
179
euler=CFrame.fromEulerAnglesXYZ
180
angles=CFrame.Angles
181
cloaked=false
182
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
183
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
184
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
185
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
186
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
187
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
188
RootPart=Character.HumanoidRootPart
189
RootJoint=RootPart.RootJoint
190
RootCF=euler(-1.57,0,3.14)
191
attack = false 
192
attackdebounce = false 
193
deb=false
194
equipped=true
195
hand=false
196
MMouse=nil
197
combo=0
198
trispeed=1
199
pathtrans=.7
200
attackmode='none'
201
local idle=0
202
local Anim="Idle"
203
local Effects={}
204
local gun=false
205
local shoot=false
206
player=nil 
207
cloak=false
208
lightcolor='Royal purple'
209
210
local Color1=Torso.BrickColor
211
212
--save shoulders 
213
RSH, LSH=nil, nil 
214
--welds 
215
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
216
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
217
LH=Torso["Left Hip"]
218
RH=Torso["Right Hip"]
219
TorsoColor=BrickColor.new("Royal purple")
220
function NoOutline(Part)
221
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
222
end
223
player=Player 
224
ch=Character
225
RSH=ch.Torso["Right Shoulder"] 
226
LSH=ch.Torso["Left Shoulder"] 
227
-- 
228
RSH.Parent=nil 
229
LSH.Parent=nil 
230
-- 
231
RW.Name="Right Shoulder"
232
RW.Part0=ch.Torso 
233
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
234
RW.C1=cf(0, 0.5, 0) 
235
RW.Part1=ch["Right Arm"] 
236
RW.Parent=ch.Torso 
237
-- 
238
LW.Name="Left Shoulder"
239
LW.Part0=ch.Torso 
240
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
241
LW.C1=cf(0, 0.5, 0) 
242
LW.Part1=ch["Left Arm"] 
243
LW.Parent=ch.Torso 
244
245
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
246
local fp=it("Part")
247
fp.formFactor=formfactor 
248
fp.Parent=parent
249
fp.Reflectance=reflectance
250
fp.Transparency=transparency
251
fp.CanCollide=false 
252
fp.Locked=true
253
fp.BrickColor=brickcolor
254
fp.Name=name
255
fp.Size=size
256
fp.Position=Torso.Position 
257
NoOutline(fp)
258
fp.Material="Neon"
259
fp:BreakJoints()
260
return fp 
261
end
262
 
263
function mesh(Mesh,part,meshtype,meshid,offset,scale)
264
local mesh=it(Mesh) 
265
mesh.Parent=part
266
if Mesh=="SpecialMesh" then
267
mesh.MeshType=meshtype
268
if meshid~="nil" then
269
mesh.MeshId="rbxassetid://"..meshid
270
end
271
end
272
mesh.Offset=offset
273
mesh.Scale=scale
274
return mesh
275
end
276
 
277
function weld(parent,part0,part1,c0)
278
local weld=it("Weld") 
279
weld.Parent=parent
280
weld.Part0=part0 
281
weld.Part1=part1 
282
weld.C0=c0
283
return weld
284
end
285
 
286
local Color1=Torso.BrickColor
287
288
local bodvel=Instance.new("BodyVelocity")
289
local bg=Instance.new("BodyGyro")
290
291
ArtificialHB = Instance.new("BindableEvent", script)
292
ArtificialHB.Name = "Heartbeat"
293
script:WaitForChild("Heartbeat")
294
frame = 0.015
295
tf = 0
296
allowframeloss = false
297
tossremainder = false
298
lastframe = tick()
299
script.Heartbeat:Fire()
300
game:GetService("RunService").Heartbeat:connect(function(s, p)
301
  tf = tf + s
302
  if tf >= frame then
303
    if allowframeloss then
304
      script.Heartbeat:Fire()
305
      lastframe = tick()
306
    else
307
      for i = 1, math.floor(tf / frame) do
308
        script.Heartbeat:Fire()
309
      end
310
      lastframe = tick()
311
    end
312
    if tossremainder then
313
      tf = 0
314
    else
315
      tf = tf - frame * math.floor(tf / frame)
316
    end
317
  end
318
end)
319
function swait(num)
320
  if num == 0 or num == nil then
321
    ArtificialHB.Event:wait(0)
322
  else
323
    for i = 0, num do
324
      ArtificialHB.Event:wait(0)
325
    end
326
  end
327
end
328
 
329
 
330
function so(id,par,pit,vol)
331
  local sou = Instance.new("Sound", par or workspace)
332
  if par == Character then
333
    sou.Parent = Torso
334
  end
335
  sou.Volume = vol
336
  sou.Pitch = pit or 1
337
  sou.SoundId = "rbxassetid://" .. id
338
  sou.PlayOnRemove = true
339
  sou:Destroy()
340
end
341
 
342
function clerp(a,b,t) 
343
local qa = {QuaternionFromCFrame(a)}
344
local qb = {QuaternionFromCFrame(b)} 
345
local ax, ay, az = a.x, a.y, a.z 
346
local bx, by, bz = b.x, b.y, b.z
347
local _t = 1-t
348
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
349
end 
350
 
351
function QuaternionFromCFrame(cf) 
352
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
353
local trace = m00 + m11 + m22 
354
if trace > 0 then 
355
local s = math.sqrt(1 + trace) 
356
local recip = 0.5/s 
357
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
358
else 
359
local i = 0 
360
if m11 > m00 then
361
i = 1
362
end
363
if m22 > (i == 0 and m00 or m11) then 
364
i = 2 
365
end 
366
if i == 0 then 
367
local s = math.sqrt(m00-m11-m22+1) 
368
local recip = 0.5/s 
369
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
370
elseif i == 1 then 
371
local s = math.sqrt(m11-m22-m00+1) 
372
local recip = 0.5/s 
373
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
374
elseif i == 2 then 
375
local s = math.sqrt(m22-m00-m11+1) 
376
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
377
end 
378
end 
379
end
380
 
381
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
382
local xs, ys, zs = x + x, y + y, z + z 
383
local wx, wy, wz = w*xs, w*ys, w*zs 
384
local xx = x*xs 
385
local xy = x*ys 
386
local xz = x*zs 
387
local yy = y*ys 
388
local yz = y*zs 
389
local zz = z*zs 
390
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)) 
391
end
392
 
393
function QuaternionSlerp(a, b, t) 
394
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
395
local startInterp, finishInterp; 
396
if cosTheta >= 0.0001 then 
397
if (1 - cosTheta) > 0.0001 then 
398
local theta = math.acos(cosTheta) 
399
local invSinTheta = 1/math.sin(theta) 
400
startInterp = math.sin((1-t)*theta)*invSinTheta 
401
finishInterp = math.sin(t*theta)*invSinTheta  
402
else 
403
startInterp = 1-t 
404
finishInterp = t 
405
end 
406
else 
407
if (1+cosTheta) > 0.0001 then 
408
local theta = math.acos(-cosTheta) 
409
local invSinTheta = 1/math.sin(theta) 
410
startInterp = math.sin((t-1)*theta)*invSinTheta 
411
finishInterp = math.sin(t*theta)*invSinTheta 
412
else 
413
startInterp = t-1 
414
finishInterp = t 
415
end 
416
end 
417
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 
418
end
419
420
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
421
return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
422
end 
423
424
function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
425
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
426
prt.Anchored=true
427
prt.CFrame=cframe
428
local msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://4770583",vt(0,0,0),vt(x1,y1,z1))
429
--rbxassetid://4770560
430
game:GetService("Debris"):AddItem(prt,2)
431
CF=prt.CFrame
432
coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) 
433
for i=0,1,0.2 do
434
swait()
435
Part.CFrame=CF*cf(0,0,-0.4)
436
end
437
for i=0,1,delay do
438
swait()
439
--Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
440
Mesh.Scale=Mesh.Scale
441
end
442
for i=0,1,0.1 do
443
swait()
444
Part.Transparency=i
445
end
446
Part:Destroy()
447
end),prt,msh,CF)
448
end
449
 
450
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
451
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
452
prt.Anchored=true
453
prt.CFrame=cframe
454
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
455
game:GetService("Debris"):AddItem(prt,5)
456
coroutine.resume(coroutine.create(function(Part,Mesh) 
457
for i=0,1,delay do
458
swait()
459
Part.CFrame=Part.CFrame*euler(math.random(0,360),math.random(0,360),math.random(0,360))
460
Part.Transparency=i
461
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
462
end
463
Part:Destroy()
464
end),prt,msh)
465
end
466
 
467
function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
468
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
469
prt.Anchored=false
470
prt.CFrame=cframe
471
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
472
local wld=weld(prt,prt,Parent,cframe)
473
game:GetService("Debris"):AddItem(prt,5)
474
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
475
for i=0,1,delay do
476
swait()
477
Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
478
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
479
Part.Transparency=i
480
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
481
end
482
Part:Destroy()
483
end),prt,msh,wld)
484
end
485
 
486
function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
487
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
488
prt.Material = "Neon"
489
prt.Anchored=false
490
prt.CFrame=cframe
491
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
492
local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
493
game:GetService("Debris"):AddItem(prt,5)
494
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
495
for i=0,1,delay do
496
swait()
497
Weld.C0=euler(i*20,0,0)
498
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
499
Part.Transparency=i
500
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
501
end
502
Part:Destroy()
503
end),prt,msh,wld)
504
end
505
 
506
function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
507
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
508
prt.Material = "Neon"
509
prt.Anchored=true
510
prt.CFrame=cframe
511
local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
512
game:GetService("Debris"):AddItem(prt,2)
513
coroutine.resume(coroutine.create(function(Part,Mesh) 
514
for i=0,1,delay do
515
swait()
516
Part.CFrame=Part.CFrame
517
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
518
local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
519
prt2.Anchored=true
520
prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
521
local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
522
game:GetService("Debris"):AddItem(prt2,2)
523
coroutine.resume(coroutine.create(function(Part,Mesh) 
524
for i=0,1,0.1 do
525
swait()
526
Part.CFrame=Part.CFrame*cf(0,0.5,0)
527
end
528
Part:Destroy()
529
end),prt2,msh2)
530
end
531
for i=0,1,delay*2 do
532
swait()
533
Part.CFrame=Part.CFrame
534
Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
535
end
536
Part:Destroy()
537
end),prt,msh)
538
end
539
540
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
541
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
542
prt.Anchored=true
543
prt.CFrame=cframe
544
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
545
game:GetService("Debris"):AddItem(prt,2)
546
coroutine.resume(coroutine.create(function(Part,Mesh) 
547
for i=0,1,delay do
548
swait()
549
Part.CFrame=Part.CFrame
550
Part.Transparency=i
551
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
552
end
553
Part:Destroy()
554
end),prt,msh)
555
end
556
 
557
function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
558
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
559
prt.Anchored=true
560
prt.CFrame=cframe*euler(x2,y2,z2)
561
--"rbxassetid://168892465"
562
local msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://3270017",vt(0,0,0),vt(x1,y1,z1))
563
game:GetService("Debris"):AddItem(prt,2)
564
coroutine.resume(coroutine.create(function(Part,Mesh) 
565
for i=0,1,0.03 do
566
swait()
567
Part.CFrame=Part.CFrame
568
Part.Transparency=i
569
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
570
end
571
Part:Destroy()
572
end),prt,msh)
573
end
574
 
575
function BreakEffect(brickcolor,cframe,x1,y1,z1)
576
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
577
prt.Anchored=true
578
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
579
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
580
game:GetService("Debris"):AddItem(prt,2)
581
coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) 
582
CF=Part.CFrame
583
Numbb=0
584
randnumb=math.random()/10
585
rand1=math.random()/10
586
for i=0,1,rand1 do
587
swait()
588
CF=CF*cf(0,math.random()/2,0)
589
--Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
590
Part.CFrame=CF*euler(Numbb,0,0)
591
Part.Transparency=i
592
Numbb=Numbb+randnumb
593
end
594
Part:Destroy()
595
end),prt,CF,Numbb,randnumb)
596
end
597
 
598
function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
599
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
600
prt.Anchored=true
601
prt.CFrame=cframe
602
msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://1051557",vt(0,0,0),vt(x1,y1,z1))
603
game:GetService("Debris"):AddItem(prt,5)
604
coroutine.resume(coroutine.create(function(Part,Mesh) 
605
for i=0,1,delay do
606
swait()
607
Part.CFrame=Part.CFrame*euler(0,0.7,0)
608
Part.Transparency=i
609
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
610
end
611
Part:Destroy()
612
end),prt,msh)
613
end
614
 
615
function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
616
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
617
prt.Anchored=true
618
prt.CFrame=cframe
619
msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://20329976",vt(0,0,0),vt(x1,y1,z1))
620
game:GetService("Debris"):AddItem(prt,2)
621
coroutine.resume(coroutine.create(function(Part,Mesh) 
622
for i=0,1,delay do
623
swait()
624
Part.CFrame=Part.CFrame*cf(0,y3/2,0)
625
Part.Transparency=i
626
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
627
end
628
Part:Destroy()
629
end),prt,msh)
630
end
631
 
632
function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
633
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
634
prt.Anchored=true
635
prt.CFrame=cframe*cf(x,y,z)
636
msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
637
game:GetService("Debris"):AddItem(prt,5)
638
coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) 
639
local num=math.random()
640
local num2=math.random(-3,2)+math.random()
641
local numm=0
642
for i=0,1,delay*2 do
643
swait()
644
Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
645
Part.Transparency=i
646
numm=numm+0.01
647
end
648
Part:Destroy()
649
Mesh:Destroy()
650
end),prt,msh,x,y,z)
651
end
652
653
function puncheff(par)
654
so(386946017,par,math.random(80,120)/100,1)
655
MagicCircle(BrickColor.new("Alder"), par.CFrame, 1, 1, 1, 1, 1, 1, 0.05)
656
end
657
658
Damagefunc=function(hit,efft,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
659
        if hit.Parent==nil then
660
                return
661
        end
662
         local torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso"))
663
       h=hit.Parent:FindFirstChildOfClass("Humanoid")
664
        for _,v in pairs(hit.Parent:children()) do
665
        if v:IsA("Humanoid") then
666
        h=v
667
        end
668
        end
669
        if hit.Parent.Parent:FindFirstChild("Head")~=nil then
670
        h=hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
671
        end
672
        if hit.Parent.className=="Hat" then
673
        hit=hit.Parent.Parent:findFirstChild("Head")
674
        end
675
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Head")~=nil then
676
        if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
677
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
678
                        return
679
                end]]
680
--                        hs(hit,1.2) 
681
                        c=Instance.new("ObjectValue")
682
                        c.Name="creator"
683
                        c.Value=game:service("Players").LocalPlayer
684
                        c.Parent=h
685
                        game:GetService("Debris"):AddItem(c,.5)
686
                Damage=math.random(minim,maxim)
687
--                h:TakeDamage(Damage)
688
                blocked=false
689
                block=hit.Parent:findFirstChild("Block")
690
                if block~=nil then
691
                print(block.className)
692
                if block.className=="NumberValue" then
693
                if block.Value>0 then
694
                blocked=true
695
                if decreaseblock==nil then
696
                block.Value=block.Value-1
697
                end
698
                end
699
                end
700-
    Mouse=Player:GetMouse()
700+
701
                if block.Value>0 then
702
                blocked=true
703
                if decreaseblock~=nil then
704
                block.Value=block.Value-1
705
                end
706
                end
707
                end
708
                end
709
				if efft == "Blunt" then
710
				puncheff(hit)
711
				end
712
				h.MaxHealth = 100
713
                h.Health=h.Health-Damage
714
                showDamage(hit.Parent,Damage,.5,TorsoColor)
715
                if Type=="Knockdown" then
716
                local hum=hit.Parent:FindFirstChildOfClass("Humanoid")
717
hum.PlatformStand=true
718
coroutine.resume(coroutine.create(function(HHumanoid)
719
swait(30)
720
HHumanoid.PlatformStand=false
721
end),hum)
722
local bodvol=Instance.new("BodyVelocity")
723
bodvol.velocity=RootPart.CFrame.lookVector*knockback
724
bodvol.P=50000
725
bodvol.maxForce=Vector3.new(5000, 0, 5000) * 5000000000
726
bodvol.Parent=torsy
727
torsy.CFrame = CFrame.new(torsy.Position)*CFrame.Angles(math.rad(90),0,0)
728
game:GetService("Debris"):AddItem(bodvol,.5)
729
                elseif Type=="Normal" then
730
                vp=Instance.new("BodyVelocity")
731
                vp.P=500
732
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
733
                vp.velocity=Character.Torso.CFrame.lookVector*knockback
734
--                if KnockbackType==1 then
735
--                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
736
--                elseif KnockbackType==2 then
737
--                vp.velocity=Property.CFrame.lookVector*knockback
738
--                end
739
                if knockback>0 then
740
                        vp.Parent=torsy
741
                end
742
                game:GetService("Debris"):AddItem(vp,.5)
743
                elseif Type=="Up" then
744
                local bodyVelocity=Instance.new("BodyVelocity")
745
                bodyVelocity.velocity=vt(0,10,0)
746
                bodyVelocity.P=1000
747
                bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
748
                bodyVelocity.Parent=hit
749
                game:GetService("Debris"):AddItem(bodyVelocity,1)
750
                rl=Instance.new("BodyAngularVelocity")
751
                rl.P=3000
752
                rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
753
                rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
754
                rl.Parent=hit
755
                game:GetService("Debris"):AddItem(rl,.5)
756
                elseif Type=="Snare" then
757
                bp=Instance.new("BodyPosition")
758
                bp.P=2000
759
                bp.D=100
760
                bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
761
                bp.position=torsy.Position
762
                bp.Parent=torsy
763
                game:GetService("Debris"):AddItem(bp,1)
764
                elseif Type=="Target" then
765
                if Targetting==false then
766
                ZTarget=torsy
767
                coroutine.resume(coroutine.create(function(Part) 
768
                so("15666462",Part,1,1.5) 
769
                swait(5)
770
                so("15666462",Part,1,1.5) 
771
                end),ZTarget)
772
                TargHum=ZTarget.Parent:FindFirstChildOfClass("Humanoid")
773
                targetgui=Instance.new("BillboardGui")
774
                targetgui.Parent=ZTarget
775
                targetgui.Size=UDim2.new(10,100,10,100)
776
                targ=Instance.new("ImageLabel")
777
                targ.Parent=targetgui
778
                targ.BackgroundTransparency=1
779
                targ.Image="rbxassetid://4834067"
780
                targ.Size=UDim2.new(1,0,1,0)
781
                cam.CameraType="Scriptable"
782
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
783
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
784
                workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
785
                Targetting=true
786
                RocketTarget=ZTarget
787
                for i=1,Property do
788
                --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
789
                if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
790
                swait()
791
                end
792
                --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
793
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
794
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
795
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
796
                end
797
                Targetting=false
798
                RocketTarget=nil
799
                targetgui:Destroy()
800
                cam.CameraType="Custom"
801
                end
802
                end
803
                        debounce=Instance.new("BoolValue")
804
                        debounce.Name="DebounceHit"
805
                        debounce.Parent=hit.Parent
806
                        debounce.Value=true
807
                        game:GetService("Debris"):AddItem(debounce,Delay)
808
                        c=Instance.new("ObjectValue")
809
                        c.Name="creator"
810
                        c.Value=Player
811
                        c.Parent=h
812
                        game:GetService("Debris"):AddItem(c,.5)
813
                CRIT=false
814
                hitDeb=true
815
                AttackPos=6
816
        end
817
end
818
 
819-
moosick.SoundId = "rbxassetid://608726256"
819+
820
coroutine.resume(coroutine.create(function()
821
local naeeym2 = Instance.new("BillboardGui",Dude)
822
naeeym2.Size = UDim2.new(0,100,0,40)
823
naeeym2.StudsOffset = Vector3.new(0,3,0)
824
naeeym2.Adornee = Dude.Head
825
naeeym2.Name = "TalkingBillBoard"
826
local tecks2 = Instance.new("TextLabel",naeeym2)
827
tecks2.BackgroundTransparency = 1
828
tecks2.BorderSizePixel = 0
829
tecks2.Text = Text
830
tecks2.Font = "Fantasy"
831
tecks2.TextSize = 24
832
tecks2.TextStrokeTransparency = 0
833
tecks2.TextColor3 = Color3.new(.8,0,1)
834
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
835
tecks2.Size = UDim2.new(1,0,0.5,0)
836
swait(10)
837
for i = 0,1,.05 do
838
swait()
839
tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
840
tecks2.TextStrokeTransparency = i
841
tecks2.TextTransparency = i
842
end
843
naeeym2:Destroy()
844
end))
845
end
846
847
    Player=game:GetService('Players').LocalPlayer
848
    Character=Player.Character
849
    m=Instance.new('Model',Character)
850
851
852
    local function weldBetween(a, b)
853
        local weldd = Instance.new("ManualWeld")
854
        weldd.Part0 = a
855
        weldd.Part1 = b
856
        weldd.C0 = CFrame.new()
857
        weldd.C1 = b.CFrame:inverse() * a.CFrame
858
        weldd.Parent = a
859
        return weldd
860
    end
861
    
862
    it=Instance.new
863
    
864
    function nooutline(part)
865
        part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
866
    end
867
    
868
    function parta(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
869
        local fp=it("Part")
870
        fp.formFactor=formfactor
871
        fp.Parent=parent
872
        fp.Reflectance=reflectance
873
        fp.Transparency=transparency
874
        fp.CanCollide=false
875
        fp.Locked=true
876
        fp.BrickColor=BrickColor.new(tostring(brickcolor))
877
        fp.Name=name
878
        fp.Size=size
879
        fp.Position=Character.Torso.Position
880
        nooutline(fp)
881
        fp.Material=material
882
        fp:BreakJoints()
883
        return fp
884
    end
885
    
886
    function mesh(Mesh,part,meshtype,meshid,offset,scale)
887
        local mesh=it(Mesh)
888
        mesh.Parent=part
889
        if Mesh=="SpecialMesh" then
890
            mesh.MeshType=meshtype
891
            mesh.MeshId=meshid
892
        end
893
        mesh.Offset=offset
894
        mesh.Scale=scale
895
        return mesh
896
    end
897
    
898
    function weld(parent,part0,part1,c0,c1)
899
        local weld=it("Weld")
900
        weld.Parent=parent
901
        weld.Part0=part0
902
        weld.Part1=part1
903
        weld.C0=c0
904
        weld.C1=c1
905
        return weld
906
    end
907
908
local modelzorz=Instance.new("Model") 
909
modelzorz.Parent=Character 
910
modelzorz.Name="Claw1"
911
912
Handle=parta(Enum.FormFactor.Custom,modelzorz,Enum.Material.Neon,0,1,TorsoColor,"Handle",Vector3.new(4,4,1))
913
Handleweld=weld(m,Character["Torso"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.74455023, 0.843135834, 3.31332064, 0.866820872, 0.000393055088, -0.498619556, 0.129048944, -0.966104209, 0.223582461, -0.481630623, -0.258152217, -0.837489963))
914
Gear=parta(Enum.FormFactor.Custom,modelzorz,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1))
915
Gearweld=weld(modelzorz,Handle,Gear,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0552597046, -0.0398271084, -0.0363032818, 0.999988854, -3.23429704e-005, 0.00164097548, 3.37436795e-005, 0.999994695, -0.000689953566, -0.00164103508, 0.000689953566, 0.999993086))
916
917
local modelzorz2=Instance.new("Model") 
918
modelzorz2.Parent=Character 
919
modelzorz2.Name="Claw2"
920
921
Handle2=parta(Enum.FormFactor.Custom,modelzorz2,Enum.Material.Neon,0,1,TorsoColor,"Handle",Vector3.new(4,4,1))
922
Handle2weld=weld(modelzorz2,Character["Torso"],Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.65693045, 1.66835713, 2.9684639, 0.866025746, 0.129405379, 0.482963592, -3.67555799e-006, -0.965926409, 0.258817136, 0.499999553, -0.224144042, -0.836516559))
923
Gear2=parta(Enum.FormFactor.Custom,modelzorz2,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1))
924
Gear2weld=weld(modelzorz2,Handle2,Gear2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.049841404, 0.049908638, 2.78949738e-005, 0.999990344, -5.01424074e-006, -1.49011612e-007, 5.28991222e-006, 0.999994934, 2.98023224e-008, 2.38418579e-007, -1.63912773e-007, 0.999994636))
925
926
local modelzorz3=Instance.new("Model") 
927
modelzorz3.Parent=Character 
928
modelzorz3.Name="Eye"
929
930
handle=parta(Enum.FormFactor.Custom,modelzorz3,Enum.Material.SmoothPlastic,0,1,TorsoColor,"Handle",Vector3.new(1,6,6))
931
handleweld=weld(modelzorz3,Character["Torso"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.22326851, -3.5562191, -0.038143158, 0, 0, 1, 0, 1, 0, -1, 0, 0))
932
933
New = function(Object, Parent, Name, Data)
934
	local Object = Instance.new(Object)
935
	for Index, Value in pairs(Data or {}) do
936
		Object[Index] = Value
937
	end
938
	Object.Parent = Parent
939
	Object.Name = Name
940
	return Object
941
end
942
	
943
Gear2 = New("Part",modelzorz2,"Gear2",{BrickColor = BrickColor.new("Really black"),Size = Vector3.new(5, 7, 5),CFrame = CFrame.new(68.5, 2.5, -42.5, 0, 0, -1, -1, 0, 0, 0, 1, 0),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
944
Mesh = New("SpecialMesh",Gear2,"Mesh",{Offset = Vector3.new(0, 0, -1),Scale = Vector3.new(25, 25, 25),MeshId = "rbxassetid://92052865",MeshType = Enum.MeshType.FileMesh,})
945
Weld = New("ManualWeld",Gear2,"Weld",{Part0 = Gear2,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, 1, -1, 0, 0),C1 = CFrame.new(0, 3.57627869e-06, 2.99999237, 0.999991357, -6.94066244e-08, 4.63798642e-07, 6.63525327e-07, -0.999994934, -2.62497252e-07, 2.04890966e-08, 2.84217094e-13, -0.999997139),})
946
Gear = New("Part",modelzorz,"Gear",{BrickColor = BrickColor.new("Really black"),Size = Vector3.new(5, 7, 5),CFrame = CFrame.new(78.5, 2.5, -42.5, 0, 0, 1, 1, 0, 0, 0, 1, 0),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
947
Mesh = New("SpecialMesh",Gear,"Mesh",{Offset = Vector3.new(0, 0, -1),Scale = Vector3.new(25, 25, 25),MeshId = "rbxassetid://92053026",MeshType = Enum.MeshType.FileMesh,})
948
Weld = New("ManualWeld",Gear,"Weld",{Part0 = Gear,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0),C1 = CFrame.new(0, 3.57627869e-06, 2.99999237, 0.999991357, -6.94066244e-08, 4.63798642e-07, 6.63525327e-07, -0.999994934, -2.62497252e-07, 2.04890966e-08, 2.84217094e-13, -0.999997139),})
949
DragonHead = New("Part",modelzorz3,"DragonHead",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(72.5999985, 5.5999999, -63.5999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
950
Mesh = New("SpecialMesh",DragonHead,"Mesh",{Scale = Vector3.new(5, 5, 5),MeshId = "rbxassetid://420164161",MeshType = Enum.MeshType.FileMesh,})
951
Weld = New("ManualWeld",DragonHead,"Weld",{Part0 = DragonHead,Part1 = handle,C1 = CFrame.new(-4, 0, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0),})
952
EyePart = New("Part",modelzorz3,"EyePart",{BrickColor = BrickColor.new("Royal purple"),Material = Enum.Material.Neon,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(70.0999985, 8.60000038, -63.5999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.384314, 0.145098, 0.819608),})
953
Mesh = New("SpecialMesh",EyePart,"Mesh",{Scale = Vector3.new(1, 1, 2),MeshId = "rbxassetid://420164161",MeshType = Enum.MeshType.Sphere,})
954
Weld = New("ManualWeld",EyePart,"Weld",{Part0 = EyePart,Part1 = handle,C1 = CFrame.new(-4, 3.00000048, 2.5, 0, 0, 1, 0, 1, 0, -1, -0, -0),})
955
EyePart = New("Part",modelzorz3,"EyePart",{BrickColor = BrickColor.new("Royal purple"),Material = Enum.Material.Neon,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(75.0999985, 8.60000038, -63.5999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.384314, 0.145098, 0.819608),})
956
Mesh = New("SpecialMesh",EyePart,"Mesh",{Scale = Vector3.new(1, 1, 2),MeshId = "rbxassetid://420164161",MeshType = Enum.MeshType.Sphere,})
957
Weld = New("ManualWeld",EyePart,"Weld",{Part0 = EyePart,Part1 = handle,C1 = CFrame.new(-4, 3.00000048, -2.5, 0, 0, 1, 0, 1, 0, -1, -0, -0),})
958
EyePart = New("Part",modelzorz3,"EyePart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(70.0999985, 8.60000038, -64.0999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
959
Mesh = New("SpecialMesh",EyePart,"Mesh",{Scale = Vector3.new(0.899999976, 0.899999976, 0.5),MeshId = "rbxassetid://420164161",MeshType = Enum.MeshType.Sphere,})
960
Weld = New("ManualWeld",EyePart,"Weld",{Part0 = EyePart,Part1 = handle,C1 = CFrame.new(-4.5, 3.00000048, 2.5, 0, 0, 1, 0, 1, 0, -1, -0, -0),})
961
EyePart = New("Part",modelzorz3,"EyePart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(75.0999985, 8.60000038, -64.0999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
962
Mesh = New("SpecialMesh",EyePart,"Mesh",{Scale = Vector3.new(0.899999976, 0.899999976, 0.5),MeshId = "rbxassetid://420164161",MeshType = Enum.MeshType.Sphere,})
963
Weld = New("ManualWeld",EyePart,"Weld",{Part0 = EyePart,Part1 = handle,C1 = CFrame.new(-4.5, 3.00000048, -2.5, 0, 0, 1, 0, 1, 0, -1, -0, -0),})
964
965
966
local moosick = it("Sound",Character)
967
moosick.SoundId = "rbxassetid://1445417765"
968
 --142653441, 175067863
969
moosick.Name = "moosick"
970
moosick.Looped = true
971
moosick.Volume = 1
972
973
anim = Character:findFirstChild("Animate")
974
if anim then
975
anim:Destroy()
976
end
977
978
local pemit = Instance.new("ParticleEmitter")
979
pemit.Color = ColorSequence.new(Color3.new(.5,0,1))
980
pemit.Lifetime = NumberRange.new(1)
981
pemit.Acceleration = Vector3.new(0,20,0)
982
pemit.EmissionDirection = "Front"
983
pemit.Size = NumberSequence.new(1,0)
984
pemit.Speed = NumberRange.new(10)
985
pemit.LightEmission = 1
986
pemit.Rate = 500
987
pemit.Rotation = NumberRange.new(0,360)
988
pemit.RotSpeed = NumberRange.new(150)
989
pemit.Texture = "rbxasset://textures/particles/smoke_main.dds"
990
pemit.Enabled = false
991
992
local pe1 = pemit:Clone()
993
pe1.Parent = Handle
994
local pe2 = pemit:Clone()
995
pe2.Parent = Handle2
996
local pe3 = pemit:Clone()
997
pe3.Parent = handle
998
pe3.EmissionDirection = "Right"
999
pe3.Rate = 1000
1000
1001
local light = Instance.new("PointLight", Character.Torso)
1002
light.Color = TorsoColor.Color
1003
light.Brightness = 5
1004
light.Range = 15
1005
light.Enabled = false
1006
1007
local Footsteps = it("Sound",Character.Torso)
1008
Footsteps.SoundId = "rbxassetid://142665235"
1009
Footsteps.Looped = true
1010
Footsteps.Pitch = 0.8
1011
Footsteps.Volume = 0.3
1012
1013
local Footsteps2 = it("Sound",Character.Torso)
1014
Footsteps2.SoundId = "rbxassetid://142665235"
1015
Footsteps2.Looped = true
1016
Footsteps2.Pitch = 1
1017
Footsteps2.Volume = 0.4
1018
1019
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1020
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1021
prt.Material = Enum.Material.Neon
1022
prt.Anchored=true
1023
prt.CFrame=cframe
1024
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1025
game:GetService("Debris"):AddItem(prt,2)
1026
coroutine.resume(coroutine.create(function(Part,Mesh) 
1027
for i=0,1,delay do
1028
swait()
1029
Part.CFrame=Part.CFrame
1030
Part.Transparency=i
1031
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1032
end
1033
Part:Destroy()
1034
end),prt,msh)
1035
end
1036
1037
TrailDeb = false
1038
1039
function equipanim()
1040
attack=true
1041
Gear.Transparency = 1
1042
Gear2.Transparency = 1
1043
for i,v in pairs(modelzorz3:children()) do
1044
if v:IsA("BasePart") then v.Transparency = 1 end
1045
end
1046
Humanoid.WalkSpeed = 0
1047
moosick:Play()
1048
for i=0,1,0.05 do
1049
swait()
1050
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1051
Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
1052
RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
1053
LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
1054
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1055
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1056
handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
1057
Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2)
1058
Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2)
1059
end
1060
swait(60)
1061
for i=0,1,0.05 do
1062
swait()
1063
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1064
Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
1065
LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3)
1066
RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3)
1067
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1068
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1069
handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2)
1070
Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2)
1071
Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2)
1072
end
1073
so(136007472,Torso,1,1)
1074
swait(30)
1075
for i=0,30 do
1076
swait(1)
1077
MagicRing(BrickColor.new("Alder"), Gear.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), 20, 20, 2, 1, 1, 1, -1, -1, 0)
1078
MagicRing(BrickColor.new("Alder"), Gear2.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), 20, 20, 2, 1, 1, 1, -1, -1, 0)
1079
MagicRing(BrickColor.new("Alder"), DragonHead.CFrame*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))), 60, 60, 6, 1, 1, 1, -3, -3, 0)
1080
end
1081
swait(180)
1082
so(233096557,Torso,1,5)
1083
so(233091205,Torso,1,5)
1084
so(150829983,DragonHead,.9,5)
1085
MagicCircle(BrickColor.new("Alder"), Gear.CFrame, 10, 10, 10, 1, 1, 1, 0.01)
1086
MagicCircle(BrickColor.new("Alder"), Gear2.CFrame, 10, 10, 10, 1, 1, 1, 0.01)
1087
MagicCircle(BrickColor.new("Alder"), DragonHead.CFrame, 20, 20, 20, 1, 1, 1, 0.01)
1088
Gear.Transparency = 0
1089
Gear2.Transparency = 0
1090
for i,v in pairs(modelzorz3:children()) do
1091
if v:IsA("BasePart") and v ~= handle then v.Transparency = 0 end
1092
end
1093
pe1.Enabled = true
1094
pe2.Enabled = true
1095
pe3.Enabled = true
1096
light.Enabled = true
1097
for a=1,300 do
1098
handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(50),math.rad(0),math.rad(0))
1099
swait()
1100
end
1101
attack = false
1102
end
1103
1104
function attackone()
1105
attack=true
1106
if TrailDeb == false then
1107
TrailDeb = true
1108
end
1109
coroutine.wrap(function()
1110
local Old = Handle.CFrame.p
1111
while true do swait()
1112
if not TrailDeb then break end
1113
local New = Handle.CFrame.p
1114
local Mag =(Old -New).magnitude
1115
local Dis =(Old +New)/2
1116
local Trail = Instance.new("Part",Character)
1117
Trail.Material = "Neon"
1118
Trail.Anchored = true
1119
Trail.CanCollide = false
1120
Trail.BrickColor = TorsoColor
1121
Trail.Size = Vector3.new(0.2,Mag,0.2)
1122
Trail.TopSurface = 0
1123
Trail.BottomSurface = 0
1124
Trail.formFactor = "Custom"
1125
Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
1126
local ms = Instance.new("BlockMesh",Trail)
1127
ms.Scale = Vector3.new(1,1,1)
1128
local TM = Instance.new("CylinderMesh",Trail)
1129
TM.Scale = Vector3.new(20,1,20)
1130
Old = New
1131
coroutine.wrap(function()
1132
for i = 1,0,-0.1 do
1133
swait()
1134
TM.Scale = TM.Scale * Vector3.new(i,1,i)
1135
end
1136
Trail:remove()
1137
end)()
1138
coroutine.wrap(function()
1139
for i = 1,10 do
1140
swait()
1141
Trail.Transparency = Trail.Transparency +0.1
1142
end end)()end end)()
1143
    con1=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",20,25,20,"Normal",RootPart,.2,1) end) 
1144
    for i=0,1,0.08 do
1145
        swait()
1146
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3)
1147
        Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3)
1148
        RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
1149
        LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
1150
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
1151
        Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
1152
        Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1153
    end
1154
    so("231917758",Handle,1,.9) 
1155
    so("159972643",Torso,1,1) 
1156
    for i=0,1,0.1 do
1157
        swait()
1158
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
1159
        Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
1160
        RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3)
1161
        LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
1162
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
1163
        Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2)
1164
        Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1165
    end
1166
    --dmgstop()
1167
    attack=false
1168
    con1:disconnect()
1169
if TrailDeb == true then
1170
TrailDeb = false
1171
end
1172
end
1173
1174
function attacktwo()
1175
attack=true
1176
if TrailDeb == false then
1177
TrailDeb = true
1178
end
1179
coroutine.wrap(function()
1180
local Old = Handle2.CFrame.p
1181
while true do swait()
1182
if not TrailDeb then break end
1183
local New = Handle2.CFrame.p
1184
local Mag =(Old -New).magnitude
1185
local Dis =(Old +New)/2
1186
local Trail = Instance.new("Part",Character)
1187
Trail.Material = "Neon"
1188
Trail.Anchored = true
1189
Trail.CanCollide = false
1190
Trail.BrickColor = TorsoColor
1191
Trail.Size = Vector3.new(0.2,Mag,0.2)
1192
Trail.TopSurface = 0
1193
Trail.BottomSurface = 0
1194
Trail.formFactor = "Custom"
1195
Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
1196
local ms = Instance.new("BlockMesh",Trail)
1197
ms.Scale = Vector3.new(1,1,1)
1198
local TM = Instance.new("CylinderMesh",Trail)
1199
TM.Scale = Vector3.new(20,1,20)
1200
Old = New
1201
coroutine.wrap(function()
1202
for i = 1,0,-0.1 do
1203
swait()
1204
TM.Scale = TM.Scale * Vector3.new(i,1,i)
1205
end
1206
Trail:remove()
1207
end)()
1208
coroutine.wrap(function()
1209
for i = 1,10 do
1210
swait()
1211
Trail.Transparency = Trail.Transparency +0.1
1212
end end)()end end)()
1213
    con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",20,25,20,"Normal",RootPart,.2,1) end) 
1214
    for i=0,1,0.08 do
1215
        swait()
1216
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
1217
        Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
1218
        LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3)
1219
        RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
1220
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
1221
        Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
1222
        Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1223
    end
1224
    so("231917758",Handle2,1,.8) 
1225
    so("159972627",Torso,1,1) 
1226
    for i=0,1,0.1 do
1227
        swait()
1228
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
1229
        Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
1230
        LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3)
1231
        RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
1232
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
1233
        Handle2weld.C0=clerp(Handle2weld.C0,cf(10,1,-5)*angles(math.rad(0),math.rad(-80),math.rad(20)),.2)
1234
        Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1235
    end
1236
    --dmgstop()
1237
    attack=false
1238
    con1:disconnect()
1239
if TrailDeb == true then
1240
TrailDeb = false
1241
end
1242
end
1243
1244
function attackthree()
1245
attack=true
1246
if TrailDeb == false then
1247
TrailDeb = true
1248
end						
1249
coroutine.wrap(function()
1250
local Old = Handle.CFrame.p
1251
while true do swait()
1252
if not TrailDeb then break end
1253
local New = Handle.CFrame.p
1254
local Mag =(Old -New).magnitude
1255
local Dis =(Old +New)/2
1256
local Trail = Instance.new("Part",Character)
1257
Trail.Material = "Neon"
1258
Trail.Anchored = true
1259
Trail.CanCollide = false
1260
Trail.BrickColor = TorsoColor
1261
Trail.Size = Vector3.new(0.2,Mag,0.2)
1262
Trail.TopSurface = 0
1263
Trail.BottomSurface = 0
1264
Trail.formFactor = "Custom"
1265
Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
1266
local ms = Instance.new("BlockMesh",Trail)
1267
ms.Scale = Vector3.new(1,1,1)
1268
local TM = Instance.new("CylinderMesh",Trail)
1269
TM.Scale = Vector3.new(20,1,20)
1270
Old = New
1271
coroutine.wrap(function()
1272
for i = 1,0,-0.1 do
1273
swait()
1274
TM.Scale = TM.Scale * Vector3.new(i,1,i)
1275
end
1276
Trail:remove()
1277
end)()
1278
coroutine.wrap(function()
1279
for i = 1,10 do
1280
swait()
1281
Trail.Transparency = Trail.Transparency +0.1
1282
end end)()end end)()
1283
    con1=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",20,25,30,"Up",RootPart,.2,1) end) 
1284
    for i=0,1,0.08 do
1285
        swait()
1286
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
1287
        Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
1288
        RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(0.5,-1.3,-0.1),.3)
1289
        LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
1290
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
1291
        Handleweld.C0=clerp(Handleweld.C0,cf(3,7,-1)*angles(math.rad(20),math.rad(0),math.rad(-120)),.2)
1292
        Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1293
    end
1294
    so("231917758",Handle,1,1) 
1295
    so("159882477",Torso,1,1) 
1296
    for i=0,1,0.05 do
1297
        swait()
1298
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1299
        Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
1300
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
1301
        Handleweld.C0=clerp(Handleweld.C0,cf(2,4,-3)*angles(math.rad(120),math.rad(0),math.rad(-120)),.2)
1302
        Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1303
        RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(2,-1.3,0.1),.3)
1304
        LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
1305
    end
1306
    --dmgstop()
1307
    attack=false
1308
    con1:disconnect()
1309
if TrailDeb == true then
1310
TrailDeb = false
1311
end
1312
end
1313
1314
function attackfour()
1315
attack=true
1316
if TrailDeb == false then
1317
TrailDeb = true
1318
end
1319
coroutine.wrap(function()
1320
local Old = Handle2.CFrame.p
1321
while true do swait()
1322
if not TrailDeb then break end
1323
local New = Handle2.CFrame.p
1324
local Mag =(Old -New).magnitude
1325
local Dis =(Old +New)/2
1326
local Trail = Instance.new("Part",Character)
1327
Trail.Material = "Neon"
1328
Trail.Anchored = true
1329
Trail.CanCollide = false
1330
Trail.BrickColor = TorsoColor
1331
Trail.Size = Vector3.new(0.2,Mag,0.2)
1332
Trail.TopSurface = 0
1333
Trail.BottomSurface = 0
1334
Trail.formFactor = "Custom"
1335
Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
1336
local ms = Instance.new("BlockMesh",Trail)
1337
ms.Scale = Vector3.new(1,1,1)
1338
local TM = Instance.new("CylinderMesh",Trail)
1339
TM.Scale = Vector3.new(20,1,20)
1340
Old = New
1341
coroutine.wrap(function()
1342
for i = 1,0,-0.1 do
1343
swait()
1344
TM.Scale = TM.Scale * Vector3.new(i,1,i)
1345
end
1346
Trail:remove()
1347
end)()
1348
coroutine.wrap(function()
1349
for i = 1,10 do
1350
swait()
1351
Trail.Transparency = Trail.Transparency +0.1
1352
end end)()end end)()
1353
coroutine.wrap(function()
1354
local Old = Handle.CFrame.p
1355
while true do swait()
1356
if not TrailDeb then break end
1357
local New = Handle.CFrame.p
1358
local Mag =(Old -New).magnitude
1359
local Dis =(Old +New)/2
1360
local Trail = Instance.new("Part",Character)
1361
Trail.Material = "Neon"
1362
Trail.Anchored = true
1363
Trail.CanCollide = false
1364
Trail.BrickColor = TorsoColor
1365
Trail.Size = Vector3.new(0.2,Mag,0.2)
1366
Trail.TopSurface = 0
1367
Trail.BottomSurface = 0
1368
Trail.formFactor = "Custom"
1369
Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
1370
local ms = Instance.new("BlockMesh",Trail)
1371
ms.Scale = Vector3.new(1,1,1)
1372
local TM = Instance.new("CylinderMesh",Trail)
1373
TM.Scale = Vector3.new(20,1,20)
1374
Old = New
1375
coroutine.wrap(function()
1376
for i = 1,0,-0.1 do
1377
swait()
1378
TM.Scale = TM.Scale * Vector3.new(i,1,i)
1379
end
1380
Trail:remove()
1381
end)()
1382
coroutine.wrap(function()
1383
for i = 1,10 do
1384
swait()
1385
Trail.Transparency = Trail.Transparency +0.1
1386
end end)()end end)()
1387
    con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,20,math.random(20,40),"Normal",RootPart,.2,1) end) 
1388
    con2=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,20,math.random(20,40),"Normal",RootPart,.2,1) end) 
1389
    for i=0,1,0.08 do
1390
        swait()
1391
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3)
1392
        RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3)
1393
        LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3)
1394
       	RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
1395
		LH.C0=clerp(LH.C0,cf(-1,0.5,0)*euler(0,-1.57,0)*angles(math.rad(-10),math.rad(30),math.rad(-40)),.3)
1396
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
1397
        Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)  
1398
        Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)  
1399
    end
1400
if anim then
1401
anim.Disabled=true
1402
end
1403
    so("231917758",Torso,1,0.7) 
1404
    so("159882584",Torso,1,1) 
1405
    for i=0,1,0.04 do
1406
        swait()
1407
        Torso.Velocity=RootPart.CFrame.lookVector*50
1408
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(-5),math.rad(0),math.rad(0+360*i)),.3)
1409
        RW.C0=clerp(RW.C0,cf(1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
1410
        LW.C0=clerp(LW.C0,cf(-1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
1411
        RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1412
		LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1413
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
1414
        Handleweld.C0=clerp(Handleweld.C0,cf(3,4,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)  
1415
        Handle2weld.C0=clerp(Handle2weld.C0,cf(-3,4,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) 
1416
    end
1417
    --dmgstop()
1418
    attack=false
1419
    con1:disconnect()
1420
    con2:disconnect()
1421
if anim then
1422
anim.Disabled=false
1423
end
1424
if TrailDeb == true then
1425
TrailDeb = false
1426
end
1427
end
1428
1429
function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2)
1430
	local prt = parta(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1431
	prt.Anchored = true
1432
	prt.CFrame = cframe
1433
	local msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", vt(0, 0, 0), vt(x1, y1, z1))
1434
	coroutine.resume(coroutine.create(function() 
1435
		for i = 0, 1, 0.05 do
1436
			swait()
1437
			prt.Transparency = i
1438
			msh.Scale = msh.Scale + vt(x2, y2, z2)
1439
		end
1440
		prt.Parent = nil
1441
	end))
1442
end
1443
1444
function MagniDamage(par,efft,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
1445
  for _, c in pairs(workspace:GetDescendants()) do
1446
    local hum = c:FindFirstChildOfClass("Humanoid")
1447
    if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
1448
      local head = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
1449
      if head ~= nil then
1450
        local targ = head.Position - par.Position
1451
        local mag = targ.magnitude
1452
        if magni >= mag and c.Name ~= Player.Name then
1453
          Damagefunc(head,efft,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
1454
        end
1455
      end
1456
    end
1457
  end
1458
end
1459
1460
function MagicCircle4(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1461
	local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1462
	prt.Anchored = true
1463
	prt.CFrame = cframe
1464
	local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
1465
	game:GetService("Debris"):AddItem(prt, 2)
1466
	coroutine.resume(coroutine.create(function(Part, Mesh) 
1467
		for i = 0, 1, delay do
1468
			swait()
1469
			Part.CFrame = Part.CFrame
1470
			Part.Transparency = i
1471
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1472
		end
1473
		Part.Parent = nil
1474
	end), prt, msh)
1475
end
1476
1477
function smashdown()
1478
attack=true
1479
1480
if TrailDeb == false then
1481
TrailDeb = true
1482
end
1483
coroutine.wrap(function()
1484
local Old = Handle2.CFrame.p
1485
while true do swait()
1486
if not TrailDeb then break end
1487
local New = Handle2.CFrame.p
1488
local Mag =(Old -New).magnitude
1489
local Dis =(Old +New)/2
1490
local Trail = Instance.new("Part",Character)
1491
Trail.Material = "Neon"
1492
Trail.Anchored = true
1493
Trail.CanCollide = false
1494
Trail.BrickColor = TorsoColor
1495
Trail.Size = Vector3.new(0.2,Mag,0.2)
1496
Trail.TopSurface = 0
1497
Trail.BottomSurface = 0
1498
Trail.formFactor = "Custom"
1499
Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
1500
local ms = Instance.new("BlockMesh",Trail)
1501
ms.Scale = Vector3.new(1,1,1)
1502
local TM = Instance.new("CylinderMesh",Trail)
1503
TM.Scale = Vector3.new(20,1,20)
1504
Old = New
1505
coroutine.wrap(function()
1506
for i = 1,0,-0.1 do
1507
swait()
1508
TM.Scale = TM.Scale * Vector3.new(i,1,i)
1509
end
1510
Trail:remove()
1511
end)()
1512
coroutine.wrap(function()
1513
for i = 1,10 do
1514
swait()
1515
Trail.Transparency = Trail.Transparency +0.1
1516
end end)()end end)()
1517
coroutine.wrap(function()
1518
local Old = Handle.CFrame.p
1519
while true do swait()
1520
if not TrailDeb then break end
1521
local New = Handle.CFrame.p
1522
local Mag =(Old -New).magnitude
1523
local Dis =(Old +New)/2
1524
local Trail = Instance.new("Part",Character)
1525
Trail.Material = "Neon"
1526
Trail.Anchored = true
1527
Trail.CanCollide = false
1528
Trail.BrickColor = TorsoColor
1529
Trail.Size = Vector3.new(0.2,Mag,0.2)
1530
Trail.TopSurface = 0
1531
Trail.BottomSurface = 0
1532
Trail.formFactor = "Custom"
1533
Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
1534
local ms = Instance.new("BlockMesh",Trail)
1535
ms.Scale = Vector3.new(1,1,1)
1536
local TM = Instance.new("CylinderMesh",Trail)
1537
TM.Scale = Vector3.new(20,1,20)
1538
Old = New
1539
coroutine.wrap(function()
1540
for i = 1,0,-0.1 do
1541
swait()
1542
TM.Scale = TM.Scale * Vector3.new(i,1,i)
1543
end
1544
Trail:remove()
1545
end)()
1546
coroutine.wrap(function()
1547
for i = 1,10 do
1548
swait()
1549
Trail.Transparency = Trail.Transparency +0.1
1550
end end)()end end)()
1551
    con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,100,"Normal",RootPart,.2,1) end) 
1552
    con2=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,100,"Normal",RootPart,.2,1) end) 
1553
    for i=0,1,0.08 do
1554
        swait()
1555
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1556
		Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
1557
		LW.C0=clerp(LW.C0,cf(-1.5,1,0)*euler(math.rad(180),0,0),.3)
1558
		RW.C0=clerp(RW.C0,cf(1.5,1,0)*euler(math.rad(180),0,0),.3)
1559
		RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1560
		LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1561
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2)
1562
        Handleweld.C0=clerp(Handleweld.C0,cf(4,30,10)*angles(math.rad(35),math.rad(0),math.rad(-90)),.2)  
1563
        Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,30,10)*angles(math.rad(35),math.rad(0),math.rad(90)),.2)  
1564
    end
1565
	Humanoid.WalkSpeed = 0
1566
    so("231917758",Torso,1,0.7) 
1567
    so("159882584",Torso,1,1) 
1568
	    for i=0,1,0.08 do
1569
        swait()
1570
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
1571
		Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
1572
		LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(90),0,0),.3)
1573
		RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(90),0,0),.3)
1574
		RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1575
		LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1576
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
1577
        Handleweld.C0=clerp(Handleweld.C0,cf(4,6,-10)*angles(math.rad(-35),math.rad(0),math.rad(-90)),.2)  
1578
        Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,6,-10)*angles(math.rad(-35),math.rad(0),math.rad(90)),.2)  
1579
	end
1580
	con1:disconnect()
1581
    con2:disconnect()
1582
    attack=false
1583
if anim then
1584
anim.Disabled=false
1585
end
1586
if TrailDeb == true then
1587
TrailDeb = false
1588
end
1589
	local ref = it("Part",Character)
1590
	ref.Size = Vector3.new(0,0,0)
1591
	ref.Anchored = true
1592
	ref.CanCollide = false
1593
	ref.Transparency = 1
1594
	local looky = RootPart.CFrame
1595
	for i=1,10 do
1596
	ref.CFrame = looky*CFrame.new(0,-2.5,-10*i)
1597
	BlastEffect(BrickColor.new("White"),ref.CFrame,1,.2,1,1,0,1)
1598
	BlastEffect(BrickColor.new("White"),ref.CFrame,5,1,.5,.1,2,.1)
1599
	MagniDamage(ref,"",10,30,35,50,"Knockdown",RootPart,.2,1)
1600
	so(178452221,ref,.6,1)
1601
    so(192410084,ref,1,1)
1602
	swait(5)
1603
	end
1604
	ref:Destroy()
1605
	swait(60)
1606
    --dmgstop()
1607
end
1608
1609
function mudads()
1610
attack=true
1611
so("624164065",Torso,1,3)
1612
print("SUNLIGHT YELLO OVRDREV")
1613
1614
1615
if TrailDeb == false then
1616
TrailDeb = true
1617
end
1618
coroutine.wrap(function()
1619
local Old = Handle2.CFrame.p
1620
while true do swait()
1621
if not TrailDeb then break end
1622
local New = Handle2.CFrame.p
1623
local Mag =(Old -New).magnitude
1624
local Dis =(Old +New)/2
1625
local Trail = Instance.new("Part",Character)
1626
Trail.Material = "Neon"
1627
Trail.Anchored = true
1628
Trail.CanCollide = false
1629
Trail.BrickColor = TorsoColor
1630
Trail.Size = Vector3.new(0.2,Mag,0.2)
1631
Trail.TopSurface = 0
1632
Trail.BottomSurface = 0
1633
Trail.formFactor = "Custom"
1634
Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
1635
local ms = Instance.new("BlockMesh",Trail)
1636
ms.Scale = Vector3.new(1,1,1)
1637
local TM = Instance.new("CylinderMesh",Trail)
1638
TM.Scale = Vector3.new(20,1,20)
1639
Old = New
1640
coroutine.wrap(function()
1641
for i = 1,0,-0.1 do
1642
swait()
1643
TM.Scale = TM.Scale * Vector3.new(i,1,i)
1644
end
1645
Trail:remove()
1646
end)()
1647
coroutine.wrap(function()
1648
for i = 1,10 do
1649
swait()
1650
Trail.Transparency = Trail.Transparency +0.1
1651
end end)()end end)()
1652
coroutine.wrap(function()
1653
local Old = Handle.CFrame.p
1654
while true do swait()
1655
if not TrailDeb then break end
1656
local New = Handle.CFrame.p
1657-
		sannd.SoundId = "rbxassetid://162246683"
1657+
1658
local Dis =(Old +New)/2
1659
local Trail = Instance.new("Part",Character)
1660
Trail.Material = "Neon"
1661
Trail.Anchored = true
1662
Trail.CanCollide = false
1663
Trail.BrickColor = TorsoColor
1664
Trail.Size = Vector3.new(0.2,Mag,0.2)
1665
Trail.TopSurface = 0
1666
Trail.BottomSurface = 0
1667
Trail.formFactor = "Custom"
1668
Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
1669
local ms = Instance.new("BlockMesh",Trail)
1670
ms.Scale = Vector3.new(1,1,1)
1671
local TM = Instance.new("CylinderMesh",Trail)
1672
TM.Scale = Vector3.new(20,1,20)
1673
Old = New
1674
coroutine.wrap(function()
1675
for i = 1,0,-0.1 do
1676
swait()
1677
TM.Scale = TM.Scale * Vector3.new(i,1,i)
1678
end
1679
Trail:remove()
1680
end)()
1681
coroutine.wrap(function()
1682
for i = 1,10 do
1683
swait()
1684
Trail.Transparency = Trail.Transparency +0.1
1685
end end)()end end)()
1686
    con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,10,"Normal",RootPart,.05,1) end) 
1687
    con2=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,10,"Normal",RootPart,.05,1) end) 
1688
	Humanoid.WalkSpeed = 16
1689
    so("159882584",Torso,1,1) 
1690
	    for i=0,1,0.08 do
1691
        swait()
1692
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
1693
		Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
1694
		LW.C0=clerp(LW.C0,cf(-1.2,1,0)*euler(math.rad(90),math.rad(-90),0),.3)
1695
		RW.C0=clerp(RW.C0,cf(1.2,1,0)*euler(math.rad(90),math.rad(90),0),.3)
1696
		RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1697
		LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1698
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
1699
        Handleweld.C0=clerp(Handleweld.C0,cf(4,2,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)  
1700
        Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,2,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)  
1701
		end
1702
		for a = 1,20 do
1703
		so("231917758",Torso,math.random(6,10)/10,1) 
1704
	    for i=0,1,0.2 do
1705
        swait()
1706
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
1707
		Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
1708
		LW.C0=clerp(LW.C0,cf(-1.2,1,-2)*euler(math.rad(90),math.rad(-90),0),.3)
1709
		RW.C0=clerp(RW.C0,cf(1.2,1,2)*euler(math.rad(90),math.rad(90),0),.3)
1710
		RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1711
		LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1712
		handleweld.C0=clerp(handleweld.C0,cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
1713
        Handleweld.C0=clerp(Handleweld.C0,cf(math.random(-10,10),math.random(0,4),-20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)  
1714
        Handle2weld.C0=clerp(Handle2weld.C0,cf(math.random(-10,10),math.random(0,4),20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)  
1715
		end
1716
		so("231917758",Torso,math.random(6,10)/10,1) 
1717
	    for i=0,1,0.2 do
1718
        swait()
1719
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
1720
		Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
1721
		LW.C0=clerp(LW.C0,cf(-1.2,1,2)*euler(math.rad(90),math.rad(-90),0),.3)
1722
		RW.C0=clerp(RW.C0,cf(1.2,1,-2)*euler(math.rad(90),math.rad(90),0),.3)
1723
		RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1724
		LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1725
		handleweld.C0=clerp(handleweld.C0,cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
1726
        Handleweld.C0=clerp(Handleweld.C0,cf(math.random(-10,10),math.random(0,4),20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)  
1727
        Handle2weld.C0=clerp(Handle2weld.C0,cf(math.random(-10,10),math.random(0,4),-20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)  
1728
		end
1729
		end
1730
	con1:disconnect()
1731
    con2:disconnect()
1732
    --dmgstop()
1733
    attack=false
1734
if anim then
1735
anim.Disabled=false
1736
end
1737
if TrailDeb == true then
1738
TrailDeb = false
1739
end
1740
end
1741
1742
function laser()
1743
attack = true
1744
Humanoid.WalkSpeed = 16
1745
for i=0,1,0.05 do
1746
swait()
1747
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1748
Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
1749
LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3)
1750
RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3)
1751
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1752
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1753
handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2)
1754
Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2)
1755
Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2)
1756
end
1757
	local blmod = Instance.new("Model",Character)
1758
	  for a = 1, 5 do
1759
	  	local blast2 = it("Part",blmod)
1760
		blast2.Size = vt(1,1,1)
1761
		blast2.BrickColor = TorsoColor
1762
		blast2.Material = "Neon"
1763
        blast2.Anchored = false
1764
		blast2.CanCollide = false
1765
		local blwe = Instance.new("Weld",blast2)
1766
		blwe.Part0 = DragonHead
1767
		blwe.Part1 = blast2		
1768
		blwe.C0 = CFrame.new(0, 0, -5)
1769
		blwe.C1 = CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
1770
        local m = Instance.new("BlockMesh", blast2)
1771
        m.Scale = Vector3.new(6,6,6)
1772
        coroutine.resume(coroutine.create(function()
1773
          for i = 0,1,.1 do
1774
            blast2.Transparency = 1.2-i
1775
            swait()
1776
            blwe.C1 = blwe.C1 * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
1777
          end
1778
		while blast2 do
1779
		swait()
1780
		blwe.C1 = blwe.C1 * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
1781
		end
1782
      	end))
1783
	  end
1784
so(864314263,DragonHead,1,5)
1785
for i=1,150 do
1786
MagicRing(BrickColor.new("Alder"), DragonHead.CFrame * CFrame.new(0,0,-5) * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), 20, 20, 2, 1, 1, 1, -1, -1, 0)
1787
handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(50),math.rad(0),math.rad(0))
1788
swait()
1789
end
1790
for i=0,1,0.05 do
1791
swait()
1792
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1793
Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
1794
LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3)
1795
RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3)
1796
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1797
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1798
handleweld.C0=clerp(handleweld.C0,cf(math.random(-1,1),math.random(5,7),math.random(6,8))*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
1799
Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2)
1800
Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2)
1801
end
1802
		so(162246701,DragonHead,1,5)
1803
		local frontcf = DragonHead.CFrame * CFrame.new(0,0,-5)
1804
		local sannd = Instance.new("Sound",Torso)
1805
		sannd.SoundId = "rbxassetid://274698941"
1806
		sannd.Looped = true
1807
		sannd.Volume = 1
1808
		sannd:Play()
1809
		local hitcf = mouse.Hit
1810
		local ref = it("Part",Character)
1811
		ref.Size = Vector3.new(0,0,0)
1812
		ref.Anchored = true
1813
		ref.CanCollide = false
1814
		ref.Transparency = 1
1815
		local blast = it("Part",blmod)
1816
		blast.Size = vt(1,1,(frontcf.p - hitcf.p).magnitude)
1817
		blast.BrickColor = TorsoColor
1818
		blast.Material = "Neon"
1819
        blast.Anchored = true
1820
		blast.CanCollide = false
1821
		blast.CFrame = CFrame.new((frontcf.p + hitcf.p)/2,frontcf.p)
1822
		local m = Instance.new("BlockMesh", blast)
1823
        m.Scale = Vector3.new(5,5,1)
1824
		for a = 1, 200 do
1825
		local frontcf = DragonHead.CFrame * CFrame.new(0,0,-5)
1826
		local hitcf = mouse.Hit
1827
		ref.CFrame = hitcf
1828
		blast.Size = vt(1,1,(frontcf.p - hitcf.p).magnitude)
1829
		blast.CFrame = CFrame.new((frontcf.p + hitcf.p)/2,frontcf.p)
1830
		MagicBlock(TorsoColor, hitcf, 1, 1, 1, 6, 6, 6, 0.1)
1831
		MagniDamage(ref,"",10,5,7,0,"Knockdown",RootPart,.05,1)
1832
		handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-5),math.rad(0),math.rad(0))
1833
		--handleweld.C0 = cf(math.random(-2,2),math.random(4,8),math.random(5,9))*angles(math.rad(-5),math.rad(0),math.rad(0))
1834
		swait(1)
1835
		end
1836
		for a = 0,1,.05 do
1837
		sannd.Volume = a
1838
		for _, b in pairs(blmod:GetChildren()) do
1839
		b.Transparency = a
1840
		end
1841
		swait()
1842
		end
1843
		sannd:Destroy()
1844
		blmod:Destroy()
1845
		attack = false
1846
end
1847
1848
function yummy()
1849
attack=true
1850
if TrailDeb == false then
1851
TrailDeb = true
1852
end
1853
coroutine.wrap(function()
1854
local Old = Handle.CFrame.p
1855
while true do swait()
1856
if not TrailDeb then break end
1857
local New = Handle.CFrame.p
1858
local Mag =(Old -New).magnitude
1859
local Dis =(Old +New)/2
1860
local Trail = Instance.new("Part",Character)
1861
Trail.Material = "Neon"
1862
Trail.Anchored = true
1863
Trail.CanCollide = false
1864
Trail.BrickColor = TorsoColor
1865
Trail.Size = Vector3.new(0.2,Mag,0.2)
1866
Trail.TopSurface = 0
1867
Trail.BottomSurface = 0
1868
Trail.formFactor = "Custom"
1869
Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
1870
local ms = Instance.new("BlockMesh",Trail)
1871
ms.Scale = Vector3.new(1,1,1)
1872
local TM = Instance.new("CylinderMesh",Trail)
1873
TM.Scale = Vector3.new(20,1,20)
1874
Old = New
1875
coroutine.wrap(function()
1876
for i = 1,0,-0.1 do
1877
swait()
1878
TM.Scale = TM.Scale * Vector3.new(i,1,i)
1879
end
1880
Trail:remove()
1881
end)()
1882
coroutine.wrap(function()
1883
for i = 1,10 do
1884
swait()
1885
Trail.Transparency = Trail.Transparency +0.1
1886
end end)()end end)()
1887
local grab
1888
local torsy
1889
local ghum
1890
local soaa
1891
    for i=0,1,0.05 do
1892
        swait()
1893
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3)
1894
        Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3)
1895
        RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
1896
        LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
1897
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
1898
        Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
1899
        Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1900
    end
1901
con1=Gear.Touched:connect(function(hit)
1902
if grab == nil and hit.Parent ~= Character then
1903
torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso"))
1904
ghum = hit.Parent:FindFirstChildOfClass("Humanoid")
1905
if ghum ~= nil and torsy ~= nil then
1906
grab=hit.Parent
1907
so(386946017,hit,1,1)
1908
local soaa = it("Sound",grab.Head)
1909
soaa.Volume = 1
1910
local cho = math.random(1,5)
1911
if cho == 1 then
1912
soaa.SoundId = "rbxassetid://111896685"
1913
elseif cho == 2 then
1914
soaa.SoundId = "rbxassetid://535528169"
1915
elseif cho == 3 then
1916
soaa.SoundId = "rbxassetid://1080363252"
1917
elseif cho == 4 then
1918
soaa.SoundId = "rbxassetid://147758746"
1919
elseif cho == 5 then
1920
soaa.SoundId = "rbxassetid://626777433"
1921
soaa.Volume = .2
1922
soaa.TimePosition = 1
1923
end
1924
soaa:Play()
1925
end
1926
end
1927
end) 
1928
    so("231917758",Handle,1,.9) 
1929
    so("159972643",Torso,1,1) 
1930
    for i=0,3,0.1 do
1931
        swait()
1932
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
1933
        Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
1934
        RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3)
1935
        LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
1936
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
1937
        Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2)
1938
        Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1939
		if torsy~=nil then
1940
		ghum.PlatformStand = true
1941
		torsy.CFrame = Gear.CFrame
1942
		end
1943
    end
1944
if grab ~= nil then
1945
	Humanoid.WalkSpeed = 0
1946
	con1:disconnect()
1947
    for i=0,3,0.05 do
1948
        swait()
1949
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1950
Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
1951
RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
1952
LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
1953
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1954
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1955
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(20),math.rad(0),math.rad(0)),.2)
1956
        Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-8)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
1957
        Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1958
		if torsy~=nil then
1959
		ghum.PlatformStand = true
1960
		torsy.CFrame = Gear.CFrame
1961
		end
1962
    end
1963
    for i=0,1,0.1 do
1964
        swait()
1965
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1966
Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
1967
RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
1968
LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
1969
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1970
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
1971
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(20),math.rad(0),math.rad(0)),.2)
1972
        Handleweld.C0=clerp(Handleweld.C0,cf(0,16,5)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
1973
        Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1974
		if torsy~=nil then
1975
		ghum.PlatformStand = true
1976
		torsy.CFrame = Gear.CFrame
1977
		end
1978
    end
1979
	grab:BreakJoints()
1980
	for i,v in pairs(grab:children()) do
1981
	if v:IsA("BasePart") then
1982
	game:service'Debris':AddItem(v,.01)
1983
	end
1984
	end
1985
	local ref = it("Part",Character)
1986
	ref.Size = Vector3.new(0,0,0)
1987
	ref.Anchored = true
1988
	ref.CanCollide = false
1989
	ref.Transparency = 1
1990
	ref.CFrame = Gear.CFrame
1991
so(206082327,Gear,1,3)
1992
local partasdeff = Instance.new("ParticleEmitter",ref)
1993
partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
1994
partasdeff.LightEmission = .1
1995
partasdeff.Size = NumberSequence.new(0.2)
1996
partasdeff.Texture = "rbxassetid://771221224"
1997
aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
1998
bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
1999
partasdeff.Transparency = bbb
2000
partasdeff.Size = aaa
2001
partasdeff.ZOffset = .9
2002
partasdeff.Acceleration = Vector3.new(0, -5, 0)
2003
partasdeff.LockedToPart = false
2004
partasdeff.EmissionDirection = "Back"
2005
partasdeff.Lifetime = NumberRange.new(1, 2)
2006
partasdeff.Rate = 1000
2007
partasdeff.Rotation = NumberRange.new(-100, 100)
2008
partasdeff.RotSpeed = NumberRange.new(-100, 100)
2009
partasdeff.Speed = NumberRange.new(6)
2010
partasdeff.VelocitySpread = 10000
2011
partasdeff.Enabled=false
2012
partasdeff:Emit(70)
2013
game:service'Debris':AddItem(ref,5)
2014
swait(90)
2015
so(2767085,DragonHead,1,1)
2016
	swait(150)
2017
	    for i=0,1,0.1 do
2018
        swait()
2019
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
2020
Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
2021
RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
2022
LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
2023
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
2024
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
2025
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
2026
        Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
2027
        Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2028
	    end
2029
so(133966572,DragonHead,.8,2)
2030
for i=1,15 do
2031
for a=1,5 do
2032
handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-20),math.rad(0),math.rad(0))
2033
swait()
2034
end
2035
local bo = it("Part",Character)
2036
bo.Size = vt(.2,.6,1)
2037
bo.BrickColor = BrickColor.new("Persimmon")
2038
bo.CFrame = DragonHead.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2039
bo.Velocity = RootPart.CFrame.lookVector*40
2040
local m = it("SpecialMesh",bo)
2041
m.MeshId = "rbxassetid://305829157"
2042
m.Scale = vt(math.random(9,13)/10,math.random(9,13)/10,math.random(9,13)/10)
2043
coroutine.wrap(function()
2044
swait(300)
2045
for a=0,1,.05 do
2046
swait()
2047
bo.Transparency = a
2048
end
2049
bo:Destroy()
2050
end)()
2051
end
2052
for a=1,5 do
2053
handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-20),math.rad(0),math.rad(0))
2054
swait()
2055
end
2056
local bo = it("Part",Character)
2057
bo.Size = vt(1,1,1)
2058
bo.BrickColor = BrickColor.new("Persimmon")
2059
bo.CFrame = DragonHead.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2060
bo.Velocity = RootPart.CFrame.lookVector*40
2061
local m = it("SpecialMesh",bo)
2062
m.MeshId = "rbxassetid://4770583"
2063
m.Scale = vt(3,3,3)
2064
coroutine.wrap(function()
2065
swait(300)
2066
for a=0,1,.05 do
2067
swait()
2068
bo.Transparency = a
2069
end
2070
bo:Destroy()
2071
end)()
2072
swait(60)
2073
end
2074
    --dmgstop()
2075
    attack=false
2076
    con1:disconnect()
2077
if TrailDeb == true then
2078
TrailDeb = false
2079
end
2080
end
2081
2082
function smek()
2083
attack=true
2084
if TrailDeb == false then
2085
TrailDeb = true
2086
end
2087
coroutine.wrap(function()
2088
local Old = Handle.CFrame.p
2089
while true do swait()
2090
if not TrailDeb then break end
2091
local New = Handle.CFrame.p
2092
local Mag =(Old -New).magnitude
2093
local Dis =(Old +New)/2
2094
local Trail = Instance.new("Part",Character)
2095
Trail.Material = "Neon"
2096
Trail.Anchored = true
2097
Trail.CanCollide = false
2098
Trail.BrickColor = TorsoColor
2099
Trail.Size = Vector3.new(0.2,Mag,0.2)
2100
Trail.TopSurface = 0
2101
Trail.BottomSurface = 0
2102
Trail.formFactor = "Custom"
2103
Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
2104
local ms = Instance.new("BlockMesh",Trail)
2105
ms.Scale = Vector3.new(1,1,1)
2106
local TM = Instance.new("CylinderMesh",Trail)
2107
TM.Scale = Vector3.new(20,1,20)
2108
Old = New
2109
coroutine.wrap(function()
2110
for i = 1,0,-0.1 do
2111
swait()
2112
TM.Scale = TM.Scale * Vector3.new(i,1,i)
2113
end
2114
Trail:remove()
2115
end)()
2116
coroutine.wrap(function()
2117
for i = 1,10 do
2118
swait()
2119
Trail.Transparency = Trail.Transparency +0.1
2120
end end)()end end)()
2121
local grab
2122
local torsy
2123
local ghum
2124
local soaa
2125
    for i=0,1,0.05 do
2126
        swait()
2127
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3)
2128
        Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3)
2129
        RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
2130
        LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
2131
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
2132
        Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
2133
        Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2134
    end
2135
con1=Gear.Touched:connect(function(hit)
2136
if grab == nil and hit.Parent ~= Character then
2137
torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso"))
2138
ghum = hit.Parent:FindFirstChildOfClass("Humanoid")
2139
if ghum ~= nil and torsy ~= nil then
2140
grab=hit.Parent
2141
so(386946017,hit,1,1)
2142
soaa = it("Sound",grab.Head)
2143
soaa.Volume = 1
2144
local cho = math.random(1,5)
2145
if cho == 1 then
2146
soaa.SoundId = "rbxassetid://111896685"
2147
elseif cho == 2 then
2148
soaa.SoundId = "rbxassetid://535528169"
2149
elseif cho == 3 then
2150
soaa.SoundId = "rbxassetid://1080363252"
2151
elseif cho == 4 then
2152
soaa.SoundId = "rbxassetid://147758746"
2153
elseif cho == 5 then
2154
soaa.SoundId = "rbxassetid://626777433"
2155
soaa.Volume = .2
2156
soaa.TimePosition = 1
2157
end
2158
game:service'Debris':AddItem(soaa,8)
2159
soaa:Play()
2160
end
2161
end
2162
end) 
2163
    so("231917758",Handle,1,.9) 
2164
    so("159972643",Torso,1,1) 
2165
    for i=0,3,0.1 do
2166
        swait()
2167
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
2168
        Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
2169
        RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3)
2170
        LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
2171
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
2172
        Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-10)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2)
2173
        Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2174
		if torsy~=nil then
2175
		ghum.PlatformStand = true
2176
		torsy.CFrame = Gear.CFrame
2177
		end
2178
    end
2179
if grab ~= nil then
2180
	Humanoid.WalkSpeed = 0
2181
	con1:disconnect()
2182
    for i=0,3,0.05 do
2183
        swait()
2184
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
2185
Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
2186
RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
2187
LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
2188
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
2189
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
2190
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
2191
        Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-8)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
2192
        Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2193
		if torsy~=nil then
2194
		ghum.PlatformStand = true
2195
		torsy.CFrame = Gear.CFrame
2196
		end
2197
    end
2198
for a=1,5 do
2199
    for i=0,1,0.1 do
2200-
moosick.SoundId = "rbxassetid://608726256"
2200+
2201
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
2202
Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
2203
RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
2204
LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
2205
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
2206
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
2207
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
2208
        Handleweld.C0=clerp(Handleweld.C0,cf(2,-5,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2209
        Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2210
		if torsy~=nil then
2211
		ghum.PlatformStand = true
2212
		torsy.CFrame = Gear.CFrame
2213
		end
2214
    end
2215
so(386946017,torsy,1,1)
2216
BlastEffect(BrickColor.new("White"),CFrame.new(torsy.Position),.5,.5,.5,.5,.2,.5)
2217
if ghum.Health > 10 then
2218
Damagefunc(torsy,"",8,10,0,"Normal",RootPart,0,1)
2219
end
2220
    for i=0,1,0.1 do
2221
        swait()
2222
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
2223
Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
2224
RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
2225
LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
2226
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
2227
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
2228
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
2229
        Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2230
        Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2231
		if torsy~=nil then
2232
		ghum.PlatformStand = true
2233
		torsy.CFrame = Gear.CFrame
2234
		end
2235
    end
2236
end
2237
for i=1,30 do
2238
swait()
2239
		if torsy~=nil then
2240
		ghum.PlatformStand = true
2241
		torsy.CFrame = Gear.CFrame
2242
		end
2243
end
2244
    for i=0,5,0.1 do
2245
        swait()
2246
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
2247
Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
2248
RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
2249
LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
2250
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
2251
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
2252
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2253
        Handleweld.C0=clerp(Handleweld.C0,cf(2,15,10)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
2254
        Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2255
		if torsy~=nil then
2256
		ghum.PlatformStand = true
2257
		torsy.CFrame = Gear.CFrame
2258
		end
2259
    end
2260
    for i=0,1,0.1 do
2261
        swait()
2262
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
2263
Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
2264
RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
2265
LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
2266
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
2267
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
2268
		handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
2269
        Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2270
        Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2271
		if torsy~=nil then
2272
		ghum.PlatformStand = true
2273
		torsy.CFrame = Gear.CFrame
2274
		end
2275
    end
2276
torsy.Velocity = RootPart.CFrame.lookVector*100
2277
coroutine.wrap(function()
2278
local par,pos
2279
repeat swait() par,pos = rayCast(torsy.Position,Vector3.new(0,-1,0),2,grab) until par
2280
Damagefunc(torsy,"",15,20,0,"Normal",RootPart,0,1)
2281
BlastEffect(BrickColor.new("White"),CFrame.new(pos),0,0,0,.5,.2,.5)
2282
so(260430079,torsy,1,5)
2283
swait(60)
2284
ghum.PlatformStand = false
2285
end)()
2286
swait(60)
2287
end
2288
    --dmgstop()
2289
    attack=false
2290
    con1:disconnect()
2291
if TrailDeb == true then
2292
TrailDeb = false
2293
end
2294
end
2295
2296
function rawr()
2297
attack=true
2298
Humanoid.WalkSpeed = 0
2299
for i=0,1,0.05 do
2300
swait()
2301
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
2302
Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
2303
LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3)
2304
RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3)
2305
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
2306
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
2307
handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2)
2308
Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2)
2309
Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2)
2310
end
2311
so(150829983,DragonHead,.9,5)
2312
for a=1,300 do
2313
handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(50),math.rad(0),math.rad(0))
2314
BlastEffect(BrickColor.new("White"),RootPart.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,math.random(-50,50),0),1,.2,1,2,0,2)
2315
MagniDamage(Torso,"",30,1,1,5,"Knockdown",RootPart,.05,1)
2316
swait()
2317
end
2318
attack = false
2319
end
2320
2321
equipanim()
2322
2323
mouse.Button1Down:connect(function()
2324
        if attack==false and attacktype==1 then
2325
                attacktype=2
2326
                attackone()
2327
        elseif attack==false and attacktype==2 then
2328
                attacktype=3
2329
                attacktwo()
2330
		elseif attack==false and attacktype==3 then
2331
				attacktype=1
2332
				attackthree()
2333
        end
2334
end)
2335
2336
mouse.KeyDown:connect(function(k)
2337
k = k:lower()
2338
if k=='m' then
2339
if Character:FindFirstChild("moosick")~=nil then
2340
if moosick.IsPlaying == true then
2341
moosick:Stop()
2342
elseif moosick.IsPaused == true then
2343
moosick:Play()
2344
end
2345
elseif Character:FindFirstChild("moosick")==nil then
2346
local moosick = Instance.new("Sound",Character)
2347
moosick.Name = "moosick"
2348
moosick.SoundId = "rbxassetid://1445417765"
2349
moosick.Looped = true
2350
moosick.Volume = 1
2351
moosick:Play()
2352
end
2353
end
2354
if attack == false then
2355
if k=='z' then
2356
mudads()
2357
elseif k=='x' then
2358
smashdown()
2359
elseif k=='c' then
2360
laser()
2361
elseif k=='v' then
2362
smek()
2363
elseif k=='b' then
2364
yummy()
2365
elseif k=='g' then
2366
rawr()
2367
end
2368
end
2369
end)
2370
2371
local sine = 0
2372
local change = 1
2373
local val = 0
2374
2375
local mananum=0
2376
while true do
2377
swait()
2378
sine = sine + change
2379
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
2380
local velderp=RootPart.Velocity.y
2381
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
2382
if equipped==true or equipped==false then
2383
--if Anim=="Idle" and attack==false then
2384
--idle=idle+1
2385
--else
2386
--idle=0
2387
--end
2388
if idle>=1000 then
2389
if attack==false then
2390
--Sheath()
2391
end
2392
end
2393
if RootPart.Velocity.y > 1 and hitfloor==nil then 
2394
Anim="Jump"
2395
if attack==false then
2396
Footsteps:Stop()
2397
Footsteps2:Stop()
2398
Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
2399
Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
2400
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0),.3)
2401
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,0.5),.3)
2402
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
2403
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.25,0,-0.5),.3)
2404
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
2405
RH.C0=clerp(RH.C0,cf(1,0,-.75)*euler(-0.5,1.57,0)*euler(0,0,0),.2)
2406
LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(0,0,0),.2)
2407
handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),6-0.5*math.cos(sine/20),7)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2)
2408
Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
2409
Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
2410
end
2411
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
2412
Anim="Fall"
2413
if attack==false then
2414
Footsteps:Stop()
2415
Footsteps2:Stop()
2416
Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3)
2417
Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
2418
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
2419
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3)
2420
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
2421
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3)
2422
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
2423
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2)
2424
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2)
2425
handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),6-0.5*math.cos(sine/20),7)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2)
2426
Handleweld.C0=clerp(Handleweld.C0,cf(4,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
2427
Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
2428
end
2429
elseif torvel<1 and hitfloor~=nil then
2430
Anim="Idle"
2431
change=0.5
2432
if attack==false then
2433
Footsteps:Stop()
2434
Footsteps2:Stop()
2435
Humanoid.WalkSpeed=12
2436
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(6),math.rad(0),math.rad(0)),.3)
2437
Neck.C0=clerp(Neck.C0,necko*angles(math.rad(3+3*math.cos(sine/36)),math.rad(0),math.rad(0)),.3)
2438
Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
2439
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(16-6*math.cos(sine/28))),.3)
2440
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16+6*math.cos(sine/28))),.3)
2441
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(16)),.3)
2442
LH.C0=clerp(LH.C0,cf(-1,-1.1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(24)),.3)
2443
handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),6-0.5*math.cos(sine/20),7)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2)
2444
Handleweld.C0=clerp(Handleweld.C0,cf(4-1*math.cos(sine/30),0,0-1*math.cos(sine/30))*angles(math.rad(0+8*math.cos(sine/30)),math.rad(0),math.rad(0-8*math.cos(sine/30))),.2)
2445
Handle2weld.C0=clerp(Handle2weld.C0,cf(-4+1*math.cos(sine/36),0,0+1*math.cos(sine/36))*angles(math.rad(0-12*math.cos(sine/36)),math.rad(0),math.rad(0-12*math.cos(sine/36))),.2)
2446
end
2447
elseif torvel>2 and hitfloor~=nil then
2448
Anim="Walk"
2449
if attack==false then
2450
change=1
2451
--[[RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(35),math.rad(0),math.rad(15*math.cos(sine/10))),.3)
2452
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
2453
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
2454
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
2455
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
2456
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
2457
--Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
2458
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
2459
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
2460
--RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
2461
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3)
2462
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3)
2463
RH.C0=clerp(RH.C0,RHC0,.3)
2464
LH.C0=clerp(LH.C0,LHC0,.3)
2465
Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2466
Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2467
]]--
2468
Humanoid.WalkSpeed=50
2469
--Footsteps:Play()
2470
--Footsteps2:Stop()
2471
--RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(10+1*math.cos(sine/2.5)),math.rad(0),math.rad(1-5*math.cos(sine/5))),.3)
2472
--Neck.C0=clerp(Neck.C0,necko*euler(0+0.075*math.cos(sine/2.5),0,0)*angles(math.rad(0),math.rad(0),math.rad(1+5*math.cos(sine/5))),.3)
2473
--Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
2474
--RW.C0=clerp(RW.C0,cf(1.4+0.25*math.cos(sine/5),0.5+0.25*math.cos(sine/5),-0.2+0.5*math.cos(sine/5))*angles(math.rad(20-60*math.cos(sine/5)),math.rad(0),math.rad(-4+30*math.cos(sine/5))),.3)
2475
--LW.C0=clerp(LW.C0,cf(-1.4+0.25*math.cos(sine/5),0.5-0.25*math.cos(sine/5),-0.2-0.5*math.cos(sine/5))*angles(math.rad(20+60*math.cos(sine/5)),math.rad(0),math.rad(4+30*math.cos(sine/5))),.3)
2476
--RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3)
2477
--LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3)
2478
--handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),6-0.5*math.cos(sine/20),7)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2)
2479
--Handleweld.C0=clerp(Handleweld.C0,cf(4-.5*math.cos(sine/30),0,0-.5*math.cos(sine/30))*angles(math.rad(0+1*math.cos(sine/30)),math.rad(-30),math.rad(0-1*math.cos(sine/30))),.2)
2480
--Handle2weld.C0=clerp(Handle2weld.C0,cf(-4+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(30),math.rad(0-3*math.cos(sine/36))),.2)
2481
--end
2482
--elseif torvel>=22 and hitfloor~=nil then
2483
--Anim="Run"
2484
change=1
2485
--if attack==false then
2486
Footsteps:Stop()
2487
Footsteps2:Play()
2488
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(20+1*math.cos(sine/2.5)),math.rad(0),math.rad(0)),.3)
2489
Neck.C0=clerp(Neck.C0,necko*euler(-0.2+0.075*math.cos(sine/2.5),0,0),.3)
2490
Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
2491
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(24)),.3)
2492
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(-24)),.3)
2493
RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3)
2494
LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3)
2495
handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
2496
Handleweld.C0=clerp(Handleweld.C0,cf(4-.5*math.cos(sine/30),0,0-.5*math.cos(sine/30))*angles(math.rad(0+1*math.cos(sine/30)),math.rad(-60),math.rad(0-1*math.cos(sine/30))),.2)
2497
Handle2weld.C0=clerp(Handle2weld.C0,cf(-4+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(60),math.rad(0-3*math.cos(sine/36))),.2)
2498
end
2499
end
2500
end
2501
end