View difference between Paste ID: kdw37j2K and rzq9WPM5
SHOW: | | - or go back to the newest paste.
1-
Player = game:GetService("Players").Builderman3464
1+
Player = game:GetService("Players").gyropromainia456
2
Character = Player.Character 
3
PlayerGui = Player.PlayerGui 
4
Backpack = Player.Backpack 
5
Torso = Character.Torso 
6
Head = Character.Head 
7
Humanoid = Character.Humanoid
8
LeftArm = Character["Left Arm"] 
9
LeftLeg = Character["Left Leg"] 
10
RightArm = Character["Right Arm"] 
11
RightLeg = Character["Right Leg"] 
12
LS = Torso["Left Shoulder"] 
13
LH = Torso["Left Hip"] 
14
RS = Torso["Right Shoulder"] 
15
RH = Torso["Right Hip"] 
16
Neck = Torso.Neck
17
it=Instance.new
18
vt=Vector3.new
19
cf=CFrame.new
20
euler=CFrame.fromEulerAnglesXYZ
21
angles=CFrame.Angles
22
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
23
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
24
attack = false 
25
attacktype = 1 
26
damage = 5 
27
oridamage = 50 
28
attackdebounce = false 
29
ssdebounce=false
30
MMouse=nil
31
combo=0
32
GyroNumb=0
33
cond=nil
34
--player 
35
player = nil 
36
--save shoulders 
37
RSH, LSH = nil, nil 
38
--welds 
39
RW, LW = Instance.new("Weld"), Instance.new("Weld") 
40
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
41
 
42
 
43
if Character:findFirstChild("Yoyo",true) ~= nil then 
44
Character:findFirstChild("Yoyo",true).Parent = nil 
45
end 
46
 
47
 
48
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
49
local fp = it("Part")
50
fp.formFactor = formfactor 
51
fp.Parent = parent
52
fp.Reflectance = reflectance
53
fp.Transparency = transparency
54
fp.CanCollide = false 
55
fp.Locked=true
56
fp.BrickColor = brickcolor
57
fp.Name = name
58
fp.Size = size
59
fp.Position = Torso.Position 
60
fp.BottomSurface="Smooth"
61
fp.TopSurface="Smooth"
62
fp:BreakJoints()
63
return fp 
64
end 
65
 
66
function mesh(Mesh,part,meshtype,meshid,offset,scale)
67
local mesh = it(Mesh) 
68
mesh.Parent = part
69
if Mesh=="SpecialMesh" then
70
mesh.MeshType = meshtype
71
mesh.MeshId = meshid
72
end
73
mesh.Offset=offset
74
mesh.Scale=scale
75
return mesh
76
end
77
 
78
function weld(parent,part0,part1,c0)
79
local weld = it("Weld") 
80
weld.Parent = parent
81
weld.Part0 = part0 
82
weld.Part1 = part1 
83
weld.C0 = c0
84
return weld
85
end
86
 
87
local modelzorz = Instance.new("Model") 
88
modelzorz.Parent = Character 
89
modelzorz.Name = "Yoyo" 
90
 
91
local prt1=part(3,modelzorz,0,0,Torso.BrickColor,"Part1",vt(1,1,1))
92
prt1.CanCollide=true
93
 
94
local msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(0.4,0.3,0.4))
95
 
96
local wld1=weld(prt1,prt1,Torso,euler(1.57,0,0)*cf(-1,1,-0.6))
97
 
98
numb=-0.15
99
for i=1,2 do
100
local prt2=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part2",vt(1,1,1))
101
local msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(0.6,0.1,0.6))
102
local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,numb,0))
103
numb2=0
104
for i=1,16 do
105
local prt3=part(3,modelzorz,0.5,0,BrickColor.new("Really red"),"Part3",vt(1,1,1))
106
local msh3=mesh("SpecialMesh",prt3,"Wedge","",vt(0,0,0),vt(0.05,0.1,0.1))
107
local wld3=weld(prt3,prt3,prt2,euler(-3.14+0.785,0,1.57)*cf(0,0,0.3))
108
wld3.C1=euler(0,numb2,0)
109
--numb2=numb2+0.785
110
numb2=numb2+0.3925
111
end
112
numb=numb+0.3
113
end
114
 
115
local string1=part(3,modelzorz,0,0,BrickColor.new("Really black"),"String1",vt(1,1,1))
116
local stringmsh1=mesh("CylinderMesh",string1,"","",vt(0,0,0),vt(0.1,1,0.1))
117
local stringwld1=weld(string1,string1,prt13,euler(0,0,0)*cf(0,0,0))
118
 
119
local strmdl = "Arrow"
120
coroutine.resume(coroutine.create(function()
121
repeat
122
wait(-10)
123
local top = RightArm.CFrame*cf(0,-1,0)
124
local bottom = prt1.CFrame
125
local oristrpos
126
if strmdl == "Bow" then
127
oristrpos = CFrame.new((top.p+bottom.p)/2)
128
elseif strmdl == "Arrow" then
129
oristrpos = prt1.CFrame
130
end
131
local mg1 = (top.p - oristrpos.p).magnitude
132
local mg2 = (bottom.p - oristrpos.p).magnitude
133
 
134
string1.Size = Vector3.new(0.2,mg1,0.2)
135
string1.Anchored=true
136
string1.CFrame = CFrame.new((top.p+oristrpos.p)/2,oristrpos.p) * CFrame.Angles(math.rad(90),0,0)
137
 
138
--[[
139
--stringmsh1.Scale=vt(0.1,1,0.1)
140
stringmsh1.Scale=vt(0.1,mg1,0.1)
141
--cff=CFrame.new(prt1.CFrame.p,RightArm.Position)*angles(math.rad(90),0,0)*cf(0,-mg1/2,0)
142
cff=cf(RightArm.CFrame*cf(0,-1,0).p,prt1.Position)*angles(math.rad(90),0,0)*cf(0,-mg1/2,0)
143
hit2=string1
144
hit=prt1
145
stringwld1.Parent=string1
146
stringwld1.Part0=hit2
147
stringwld1.Part1=hit
148
HitPos=cff.p
149
local CJ = CFrame.new(HitPos)
150
local C0=cff:inverse() *CJ 
151
local C1=hit.CFrame:inverse() * CJ 
152
stringwld1.C0=C0
153
stringwld1.C1=C1
154
]]
155
until false
156
end))
157
 
158
 
159
if (script.Parent.className ~= "HopperBin") then 
160
Tool = Instance.new("HopperBin") 
161
Tool.Parent = Backpack 
162
Tool.Name = "Yoyo" 
163
script.Parent = Tool 
164
end 
165
Bin = script.Parent 
166
 
167
local bg = it("BodyGyro") 
168
bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge 
169
bg.P = 20e+003 
170
bg.Parent = nil 
171
 
172
so = function(id,par,vol,pit) 
173
coroutine.resume(coroutine.create(function()
174
local sou = Instance.new("Sound",par or workspace)
175
sou.Volume=vol
176
sou.Pitch=pit or 1
177
sou.SoundId=id
178
wait() 
179
sou:play() 
180
wait(6) 
181
sou:Remove() 
182
end))
183
end
184
 
185
function unequipweld() 
186
wld1.Part1=Torso
187
wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6)
188
end 
189
 
190
function equipweld() 
191
wld1.Part1=RightArm
192
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
193
end 
194
 
195
function hideanim() 
196
equipped=false
197
wait(0.1) 
198
bg.Parent=nil
199
unequipweld() 
200
end 
201
 
202
function equipanim() 
203
equipped=true
204
wait(0.1) 
205
equipweld() 
206
RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0)
207
RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2)
208
LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
209
LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
210
end 
211
 
212
function MagicCircle(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
213
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
214
prt.Anchored=true
215
prt.CFrame=cframe*cf(x2,y2,z2)
216
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
217
coroutine.resume(coroutine.create(function() 
218
for i=0,1,0.1 do
219
wait()
220
prt.CFrame=prt.CFrame
221
prt.Transparency=i
222
msh.Scale=msh.Scale+vt(x3,y3,z3)
223
end
224
prt.Parent=nil
225
end))
226
end
227
 
228
function SpecialEffect() 
229
local prt=part(3,workspace,1,0,BrickColor.new("Really black"),"Part",vt(1,1,1))
230
prt.Anchored=true
231
prt.CFrame=Torso.CFrame
232
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
233
coroutine.resume(coroutine.create(function(Part,Mesh) 
234
for i=0,1,0.2 do
235
wait(0)
236
Part.Transparency=i
237
Mesh.Scale=Mesh.Scale+vt(10,10,10)
238
end
239
prt.Parent=nil
240
end),prt,msh)
241
end 
242
 
243
Damagefunc1=function(hit,Damage,Knockback)
244
        if hit.Parent==nil then
245
                return
246
        end
247
        CPlayer=Bin 
248
        h=hit.Parent:FindFirstChild("Humanoid")
249
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
250
        if attackdebounce == false then 
251
        attackdebounce = true 
252
        coroutine.resume(coroutine.create(function() 
253
        wait(0.2) 
254
        attackdebounce = false 
255
        end)) 
256
        Damage=Damage
257
--[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
258
                        return
259
                end]]
260
--                        hs(hit,1.2) 
261
                        c=Instance.new("ObjectValue")
262
                        c.Name="creator"
263
                        c.Value=game.Players.LocalPlayer
264
                        c.Parent=h
265
                        game:GetService("Debris"):AddItem(c,.5)
266
                Damage=Damage+math.random(0,10)
267
--                h:TakeDamage(Damage)
268
                h.Health=h.Health-Damage
269
                showDamage(hit.Parent,Damage,.5)
270
                vp=Instance.new("BodyVelocity")
271
                vp.P=500
272
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
273
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
274
                vp.velocity=Head.CFrame.lookVector*Knockback+Head.Velocity/1.05
275
                if Knockback>0 then
276
                        vp.Parent=hit.Parent.Torso
277
                end
278
                rl=Instance.new("BodyAngularVelocity")
279
                rl.P=3000
280
                rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
281
                rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
282
--                rl.Parent=hit
283
coroutine.resume(coroutine.create(function(vel) 
284
wait(1) 
285
vel:Remove() 
286
end),rl) 
287
                game:GetService("Debris"):AddItem(vp,.25)
288
                game:GetService("Debris"):AddItem(r,.5)
289
                                c=Instance.new("ObjectValue")
290
                        c.Name="creator"
291
                        c.Value=Player
292
                        c.Parent=h
293
                        game:GetService("Debris"):AddItem(c,.5)
294
                CRIT=false
295
                hitDeb=true
296
                AttackPos=6
297
        end
298
        end 
299
end
300
 
301
Damagefunc2=function(hit,Damage,Knockback)
302
        if hit.Parent==nil then
303
                return
304
        end
305
        CPlayer=Bin 
306
        blocked=false
307
        h=hit.Parent:FindFirstChild("Humanoid")
308
        if h~=nil and hit.Parent:FindFirstChild("Torso")~=nil then
309
                Damage=Damage
310
                        c=it("ObjectValue")
311
                        c.Name="creator"
312
                        c.Value=game.Players.LocalPlayer
313
                        c.Parent=h
314
                        game:GetService("Debris"):AddItem(c,.5)
315
--                        print(c.Value)
316
--[[                if math.random(0,99)+math.random()<=7.8 then
317
                        CRIT=true
318
                        Damage=Damage*2
319
                        s=it("Sound")
320
                        s.SoundId="http://www.roblox.com/asset/?id=2801263"
321
                        s.Volume=1
322
                        s.Pitch=2
323
                        s.Parent=hit
324
                        s.PlayOnRemove=true
325
                        s.Parent=nil
326
        
327
                end]]
328
                Damage=Damage+math.random(0,10)
329
--                Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
330
                block=hit.Parent:findFirstChild("Block")
331
                if block~=nil then
332
                print("herp")
333
                if block.Value>0 then
334
                blocked=true
335
                block.Value=block.Value-3
336
                print(block.Value)
337
                end
338
                end
339
                if blocked==false then
340
--                h:TakeDamage(Damage)
341
                h.Health=h.Health-Damage
342
                showDamage(hit.Parent,Damage,.5)
343
                else
344
                h:TakeDamage(1)
345
                showDamage(hit.Parent,1,.5)
346
                end
347
--if blocked==false then
348
--end
349
local bodyVelocity=Instance.new("BodyVelocity")
350
bodyVelocity.velocity=angle*40+Vector3.new(0,0,0)
351
bodyVelocity.P=5000
352
bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
353
bodyVelocity.Parent=hit
354
coroutine.resume(coroutine.create(function(Vel) 
355
wait(1) 
356
Vel:Remove() 
357
end),bodyVelocity) 
358
                game:GetService("Debris"):AddItem(vp,1)
359
                                c=it("ObjectValue")
360
                        c.Name="creator"
361
                        c.Value=Player
362
                        c.Parent=h
363
                        game:GetService("Debris"):AddItem(c,.5)
364
                CRIT=false
365
                hitDeb=true
366
                AttackPos=6
367
        end
368
end
369
 
370
showDamage=function(Char,Dealt,du)
371
        m=Instance.new("Model")
372
        m.Name=tostring(Dealt)
373
        h=Instance.new("Humanoid")
374
        h.Health=0
375
        h.MaxHealth=0
376
        h.Parent=m
377
        c=Instance.new("Part")
378
        c.Transparency=0
379
        c.BrickColor=BrickColor:Red()
380
        if CRIT==true then
381
                c.BrickColor=BrickColor.new("Really red")
382
        end
383
        c.Name="Head"
384
        c.TopSurface=0
385
        c.BottomSurface=0
386
        c.formFactor="Plate"
387
        c.Size=Vector3.new(1,.4,1)
388
        ms=Instance.new("CylinderMesh")
389
        ms.Scale=Vector3.new(.8,.8,.8)
390
        if CRIT==true then
391
                ms.Scale=Vector3.new(1,1.25,1)
392
        end
393
        ms.Parent=c
394
        c.Reflectance=0
395
        Instance.new("BodyGyro").Parent=c
396
        c.Parent=m
397
        c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
398
        f=Instance.new("BodyPosition")
399
        f.P=2000
400
        f.D=100
401
        f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
402
        f.position=c.Position+Vector3.new(0,3,0)
403
        f.Parent=c
404
        game:GetService("Debris"):AddItem(m,.5+du)
405
        c.CanCollide=false
406
        m.Parent=workspace
407
        c.CanCollide=false
408
end
409
 
410
local function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
411
return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
412
end 
413
 
414
function oneslash()
415
attack=true
416
for i=0,1,0.1 do
417
wait()
418
Neck.C0=necko*euler(0,0,0.785*i)
419
RW.C0=cf(1.5, 0.5, 0) * euler(-0.5*i,0,0)
420
end
421
for i=0,1,0.2 do
422
wait()
423
offset=(Torso.Position.y-MMouse.Hit.p.y)/60
424
mag=(Torso.Position-MMouse.Hit.p).magnitude/80
425
offset=offset/mag 
426
Neck.C0=necko*euler(0,0,0.785-2.355*i)
427
RW.C0=cf(1.5, 0.5, 0) * euler(-0.5+0.5*i,0,-offset)
428
RW.C1=cf(0, 0.5, 0) * euler(0,0.2-0.2*i,-0.2-1.37*i)
429
end
430
wait(0.2)
431
so("http://roblox.com/asset/?id=10209640",LeftArm,1,1) 
432
prt1.Velocity=vt(0,0,0)
433
wld1.Parent=nil
434
local baseprt=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(1,1,1))
435
--[[local hit,pos = rayCast(prt1.Position,MMouse.Hit.p,100,game) 
436
local hit,pos = game.Workspace:FindPartOnRay(Ray.new(prt1.Position, MMouse.Hit.p.unit * (100)), workspace) 
437
print(pos)
438
print(hit)
439
baseprt.CFrame=CFrame.new(pos)]]
440
baseprt.CFrame=RightArm.CFrame*cf(0,-70,0)
441
fd=Instance.new("BodyPosition")
442
fd.P=200
443
fd.D=60
444
fd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
445
fd.position=baseprt.Position
446
fd.Parent=prt1
447
coroutine.resume(coroutine.create(function(BodyPos)
448
while fd.Parent~=nil do
449
wait()
450
so("http://roblox.com/asset/?id=10209640",prt1,0.4,3) 
451
end
452
end),fd)
453
con1=prt1.Touched:connect(function(hit) 
454
if hit==baseprt then
455
coroutine.resume(coroutine.create(function(BodyPos)
456
for i=1,20 do
457
wait(0)
458
BodyPos.position=RightArm.Position
459
end
460
end),fd)
461
con1:disconnect()
462
con2=prt1.Touched:connect(function(hit) 
463
if hit==RightArm then
464
fd.Parent=nil
465
wld1.Parent=RightArm
466
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
467
con2:disconnect()
468
end
469
end)
470
end
471
end) 
472
cond=prt1.Touched:connect(function(hit) Damagefunc1(hit,10,20) end) 
473
wait(0.5)
474
coroutine.resume(coroutine.create(function(BodyPos)
475
for i=1,20 do
476
wait(0)
477
BodyPos.position=RightArm.Position
478
end
479
end),fd)
480
wait(1)
481
cond:disconnect()
482
fd.Parent=nil
483
wld1.Parent=RightArm
484
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
485
baseprt.Parent=nil
486
attack=false
487
end
488
 
489
function YoyoGrab()
490
attack=true
491
for i=0,1,0.1 do
492
wait()
493
Neck.C0=necko*euler(0,0,0.785*i)
494
RW.C0=cf(1.5, 0.5, 0) * euler(-0.5*i,0,0)
495
end
496
for i=0,1,0.2 do
497
wait()
498
offset=(Torso.Position.y-MMouse.Hit.p.y)/60
499
mag=(Torso.Position-MMouse.Hit.p).magnitude/80
500
offset=offset/mag 
501
Neck.C0=necko*euler(0,0,0.785-2.355*i)
502
RW.C0=cf(1.5, 0.5, 0) * euler(-0.5+0.5*i,0,-offset)
503
RW.C1=cf(0, 0.5, 0) * euler(0,0.2-0.2*i,-0.2-1.37*i)
504
end
505
wait(0.2)
506
so("http://roblox.com/asset/?id=10209640",LeftArm,1,1) 
507
prt1.Velocity=vt(0,0,0)
508
wld1.Parent=nil
509
local baseprt=part(3,workspace,0,1,BrickColor.new("Really black"),"BasePart",vt(1,1,1))
510
--[[local hit,pos = rayCast(prt1.Position,MMouse.Hit.p,100,game) 
511
local hit,pos = game.Workspace:FindPartOnRay(Ray.new(prt1.Position, MMouse.Hit.p.unit * (100)), workspace) 
512
print(pos)
513
print(hit)
514
baseprt.CFrame=CFrame.new(pos)]]
515
baseprt.CFrame=RightArm.CFrame*cf(0,-200,0)
516
fd=Instance.new("BodyPosition")
517
fd.P=200
518
fd.D=60
519
fd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
520
fd.position=baseprt.Position
521
fd.Parent=prt1
522
coroutine.resume(coroutine.create(function(BodyPos)
523
while fd.Parent~=nil do
524
wait()
525
so("http://roblox.com/asset/?id=10209640",prt1,0.4,3) 
526
end
527
end),fd)
528
coroutine.resume(coroutine.create(function()
529
wait(0.1)
530
con1=prt1.Touched:connect(function(hit) 
531
if hit.Name~="String1" then
532
fd.Parent=nil
533
prt1.Anchored=true
534
fddd=Instance.new("BodyPosition")
535
fddd.P=2000
536
fddd.D=600
537
fddd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
538
fddd.position=prt1.Position
539
fddd.Parent=RightArm
540
coroutine.resume(coroutine.create(function(BodyPos)
541
wait(1)
542
prt1.Anchored=false
543
wld1.Parent=RightArm
544
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
545
BodyPos.Parent=nil
546
end),fddd)
547
end
548
end) 
549
end))
550
cond=prt1.Touched:connect(function(hit) Damagefunc1(hit,10,20) end) 
551
wait(2)
552
con1:disconnect()
553
coroutine.resume(coroutine.create(function(BodyPos)
554
for i=1,20 do
555
wait(0)
556
BodyPos.position=RightArm.Position
557
end
558
end),fd)
559
wait(1)
560
cond:disconnect()
561
fd.Parent=nil
562
wld1.Parent=RightArm
563
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
564
baseprt.Parent=nil
565
attack=false
566
end
567
 
568
function ob1d(mouse) 
569
if attack == true then return end 
570
attack=true
571
coroutine.resume(coroutine.create(function()
572
bg.maxTorque = vt(math.huge,math.huge,math.huge) 
573
bg.P = 9000
574
bg.Parent = Torso
575
--wld1.C0 = euler(0,0,0) * cf(0,0,0) 
576
while attack==true do
577
wait()
578
local pos4 = vt(workspace.CurrentCamera.CoordinateFrame.X,Head.Position.Y,workspace.CurrentCamera.CoordinateFrame.Z)
579
bg.cframe = cf(Head.Position,pos4) * euler(0,3.14+GyroNumb,0) * cf(0,0,0) --cf(Torso.Position,MMouse.Hit.p) * 
580
bg.Parent = Head
581
local pos5 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
582
offset=(Torso.Position.y-MMouse.Hit.p.y)/60
583
mag=(Torso.Position-MMouse.Hit.p).magnitude/80
584
offset=offset/mag 
585
--[[Neck.C0=necko*euler(0,0,0)
586
RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0)
587
RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2)
588
LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
589
LW.C1=cf(0, 0.5, 0) * euler(0,0,0)]]
590
end
591
for i=0,1,0.1 do
592
wait()
593
Neck.C0=necko*euler(0,0,0)
594
Neck.C1=necko2*euler(0,0,0)
595
RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0)
596
RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2)
597
LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
598
LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
599
bg.Parent=nil
600
end
601
end))
602
hold=true
603
oneslash()
604
--twoslash()
605
end 
606
 
607
function ob1u(mouse) 
608
hold = false 
609
 
610
end 
611
 
612
buttonhold = false 
613
 
614
eul=0
615
function key(key) 
616
if attack == true then return end 
617
if key=="z" or key=="x" or key=="c" or key=="v" then
618
coroutine.resume(coroutine.create(function()
619
bg.maxTorque = vt(math.huge,math.huge,math.huge) 
620
bg.P = 9000
621
bg.Parent = Torso
622
--wld1.C0 = euler(0,0,0) * cf(0,0,0) 
623
attack=true
624
while attack==true do
625
wait()
626
local pos4 = vt(workspace.CurrentCamera.CoordinateFrame.X,Head.Position.Y,workspace.CurrentCamera.CoordinateFrame.Z)
627
bg.cframe = cf(Head.Position,pos4) * euler(0,3.14+GyroNumb,0) * cf(0,0,0) --cf(Torso.Position,MMouse.Hit.p) * 
628
bg.Parent = Head
629
local pos5 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
630
offset=(Torso.Position.y-MMouse.Hit.p.y)/60
631
mag=(Torso.Position-MMouse.Hit.p).magnitude/80
632
offset=offset/mag 
633
--[[Neck.C0=necko*euler(0,0,0)
634
RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0)
635
RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2)
636
LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
637
LW.C1=cf(0, 0.5, 0) * euler(0,0,0)]]
638
end
639
for i=0,1,0.1 do
640
wait()
641
Neck.C0=necko*euler(0,0,0)
642
Neck.C1=necko2*euler(0,0,0)
643
RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0)
644
RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2)
645
LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
646
LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
647
bg.Parent=nil
648
end
649
end))
650
end
651
if key=="z" then
652
YoyoGrab()
653
end
654
if key=="x" then
655
--SonicExplosion()
656
end
657
if key=="c" then
658
end
659
end 
660
 
661
function key2(key) 
662
 
663
end 
664
 
665
function s(mouse) 
666
mouse.Button1Down:connect(function() ob1d(mouse) end) 
667
mouse.Button1Up:connect(function() ob1u(mouse) end) 
668
mouse.KeyDown:connect(key) 
669
mouse.KeyUp:connect(key2) 
670
unsheathed = true 
671
player = Player 
672
ch = Character 
673
MMouse = mouse 
674
RSH = ch.Torso["Right Shoulder"] 
675
LSH = ch.Torso["Left Shoulder"] 
676
-- 
677
RSH.Parent = nil 
678
LSH.Parent = nil 
679
-- 
680
RW.Part0 = ch.Torso 
681
RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
682
RW.C1 = CFrame.new(0, 0.5, 0) 
683
RW.Part1 = ch["Right Arm"] 
684
RW.Parent = ch.Torso 
685
--_G.R = RW 
686
-- 
687
LW.Part0 = ch.Torso 
688
LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
689
LW.C1 = CFrame.new(0, 0.5, 0) 
690
LW.Part1 = ch["Left Arm"] 
691
LW.Parent = ch.Torso 
692
--_G.L = LW 
693
--
694
equipanim() 
695
end 
696
 
697
function ds(mouse) 
698
hideanim() 
699
wait(0) 
700
RW.Parent = nil 
701
LW.Parent = nil 
702
RSH.Parent = player.Character.Torso 
703
LSH.Parent = player.Character.Torso 
704
end 
705
 
706
Bin.Selected:connect(s) 
707
Bin.Deselected:connect(ds) 
708
print("Yoyo loaded.")