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