View difference between Paste ID: EhCC1dgB and 8TkiyuuA
SHOW: | | - or go back to the newest paste.
1
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
4
local RealPlayer = Player
5
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={},Soundscape=r:GetService("RunService").Heartbeat,BindToSoundscape=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
6
7
8
--[[KillerDarkness0105's/Codex#6685 Sonic Yo-yo script i hope you enjoy :D]]--
9
10
-- Yes if you want this to be Yoyo's yoyo or some people just call it hyuns yoyo then feel free to call it that.
11
12
-- also added a function just go to this (local Yoyo = false) and put true  (local Yoyo = true) and then change this to your name
13
14
local Yourname = "0"
15
16
-- Thanks to the Character Yoyo made by Hyun for giving me this idea :)
17
18
--Yoyo Model by Fenrier and also thanks for the welds.
19
20
--[[side note. This yoyo isn't animated by the string. Its fully animated on its own. To see it just go to the idle animation and look for this
21
22
23
--wld1.C0=euler(0,0,1.57*math.cos(sine/60))*cf(0,2.1-1.7*math.sin(sine/30),-1.6*i)
24
wld1.C0=euler(0,0,1.57)*cf(0,2.1,0)
25
this is unanimated.
26
27
28
29
wld1.C0=euler(0,0,1.57*math.cos(sine/60))*cf(0,2.1-1.7*math.sin(sine/30),-1.6*i)
30
--wld1.C0=euler(0,0,1.57)*cf(0,2.1,0)
31
this is animated.
32
33
]]--
34
35
--[[ The Yo-yo's Bio.
36
37
38
The Air grab.
39
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
40
This yo-yo isn't just an ordinary yo-yo. This yo-yo is a very special and deadly yo-yo. It can grapple the air using the wind to keep it in the air long enough to evade.
41
42
It pulls you toward it getting you away from danger and most times might even save your life.
43
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
44
45
Why the yo-yo glows.
46
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
47
The yo-yo also uses a "Micro Energy Generator" which allows the yo-yo to spin so fast it does MAJOR damage to your opponent. 
48
49
Thats why also the reason the yo-yo and string have blue tints and glow blue.
50
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
51
52
The yoyo's name.
53
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
54
The Sonic Yo-Yo.
55
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
56
57
58
59
Attacks and combos
60
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
61
The yo-yo is a very light very deadly weapon meaning you can combo and damage your opponents from far away and still do lots of damage.
62
63
But you must remember. Speed is key here. You must rely on your speed to evade and dodge attacks.
64
65
You are very skilled in hand to hand combat but it doesn't do as much damage as the yo-yo will.
66
67
The yo-yo's speed can reach up to 7000mph and can cut through very tough objects. Sometimes even killing or slicing an opponent in one hit.
68
69
The yo-yo also has very lethal attacks. It can explode using the "Exploder Chip" inside the yo-yo. Dealing almost Tons to One shot attacks. Though this takes time for you to do so you may want to look for an opening first. This attack also leaves you vulnerable while in the air.
70
71
Since your so strong and skilled at fighting you also get a 600 hp boost so 100+600 = 700hp.
72
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
73
74
75
Yo-yo stick figure.
76
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
77
78
http://stickpage.wikia.com/wiki/Yoyo
79
80
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
81
82
83
84
Hyun's youtube
85
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
86
87
https://www.youtube.com/channel/UCpuj2Op5x9NuKbw3HaOEfjA
88
89
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
90
91
92
93
94
Attack keys.
95
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
96
97
C = Air Grapple
98
E = Throw
99
R = YoyoEvade -2 sec cooldown
100
T = Explosion attack -7 sec cooldown
101
F = Dash -3 sec cooldown
102
Shift = Run
103
104
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
105
106
107
108
]]--
109
110
111
112
113
114
115
116
117
118
function FindNearestTorso(Position, Distance, SinglePlayer)
119
	if SinglePlayer then
120
		return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
121
	end
122
	local List = {}
123
	for i, v in pairs(workspace:GetChildren()) do
124
		if v:IsA("Model") then
125
			if v:findFirstChild("Torso") then
126
				if v ~= Character then
127
					if (v.Torso.Position - Position).magnitude <= Distance then
128
						table.insert(List, v)
129
					end 
130
				end 
131
			end 
132
		end 
133
	end
134
	return List
135
end
136
137
138
139
140
141
142
143
144
145
146
147
Player=game:GetService("Players").LocalPlayer
148
Character=Player.Character 
149
PlayerGui=Player.PlayerGui
150
Backpack=Player.Backpack 
151
Torso=Character.Torso 
152
Head=Character.Head 
153
Humanoid=Character.Humanoid
154
m=Instance.new('Model',Character)
155
LeftArm=Character["Left Arm"] 
156
LeftLeg=Character["Left Leg"] 
157
RightArm=Character["Right Arm"] 
158
RightLeg=Character["Right Leg"] 
159
LS=Torso["Left Shoulder"] 
160
LH=Torso["Left Hip"] 
161
RS=Torso["Right Shoulder"] 
162
RH=Torso["Right Hip"] 
163
Face = Head.face
164
Neck=Torso.Neck
165
it=Instance.new
166
attacktype=1
167
vt=Vector3.new
168
cf=CFrame.new
169
bc = BrickColor.new
170
br = BrickColor.random
171
it = Instance.new
172
euler=CFrame.fromEulerAnglesXYZ
173
angles=CFrame.Angles
174
cloaked=false
175
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
176
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
177
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
178
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
179
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
180
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
181
RootPart=Character.HumanoidRootPart
182
RootJoint=RootPart.RootJoint
183
RootCF=euler(-1.57,0,3.14)
184
attack = false 
185
attackdebounce = false
186
equipped=false
187
trispeed=.2
188
attackmode='none'
189
local idle=0
190
local Anim="Idle"
191
local Effects={}
192
local origcolor = BrickColor.new("Toothpaste",White)
193
local evade = false
194
local attackcooldown = false
195
local evadecooldown = false
196
local Yoyo = false
197
local Grabbed = false
198
199
200
201
202
203
204
205
206
207
music = Instance.new("Sound",Torso) -- change to Character for global music --Change to Torso for non-global music
208
music.Volume = .55
209
music.SoundId = "rbxassetid://611389938"--576413172 --music2 = 1117522463 --music3 = 903651242 --music4 = 611389938
210
music.Looped = true
211
music:Play()
212
213
214
215
Humanoid.Animator.Parent = nil
216
Character.Animate.Parent = nil
217
218
219
if Character:findFirstChild("Yoyo",true) ~= nil then 
220
Character:findFirstChild("Yoyo",true).Parent = nil 
221
end 
222
223
function RemoveOutlines(part)
224
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
225
end
226
	
227
228
229
230
231
function lerp(a, b, t) -- Linear interpolation
232
	return a + (b - a)*t
233
end
234
 
235
function slerp(a, b, t) --Spherical interpolation
236
	dot = a:Dot(b)
237
	if dot > 0.99999 or dot < -0.99999 then
238
		return t <= 0.5 and a or b
239
	else
240
		r = math.acos(dot)
241
		return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
242
	end
243
end
244
 
245
function matrixInterpolate(a, b, t)
246
	local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
247
	local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
248
	local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
249
	local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector  right
250
	local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector  up
251
	local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector  back
252
	local t = v1:Dot(v2)
253
	if not (t < 0 or t == 0 or t > 0) then 	-- Failsafe
254
		return CFrame.new()
255
	end
256
	return CFrame.new(
257
	v0.x, v0.y, v0.z,
258
	v1.x, v1.y, v1.z,
259
	v2.x, v2.y, v2.z,
260
	v3.x, v3.y, v3.z)
261
end
262
263
function genWeld(a,b)
264
    local w = Instance.new("Weld",a)
265
    w.Part0 = a
266
    w.Part1 = b
267
    return w
268
end
269
function weld(a, b)
270
    local weld = Instance.new("Weld")
271
    weld.Name = "W"
272
    weld.Part0 = a
273
    weld.Part1 = b
274
    weld.C0 = a.CFrame:inverse() * b.CFrame
275
    weld.Parent = a
276
    return weld;
277
end
278
279
function Lerp(c1,c2,al)
280
	local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
281
	local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
282
	for i,v in pairs(com1) do 
283
		com1[i] = v+(com2[i]-v)*al
284
	end
285
	return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
286
end
287
288
289
function clerp(a,b,t) 
290
local qa = {QuaternionFromCFrame(a)}
291
local qb = {QuaternionFromCFrame(b)} 
292
local ax, ay, az = a.x, a.y, a.z 
293
local bx, by, bz = b.x, b.y, b.z
294
local _t = 1-t
295
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
296
end 
297
 
298
function QuaternionFromCFrame(cf) 
299
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
300
local trace = m00 + m11 + m22 
301
if trace > 0 then 
302
local s = math.sqrt(1 + trace) 
303
local recip = 0.5/s 
304
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
305
else 
306
local i = 0 
307
if m11 > m00 then
308
i = 1
309
end
310
if m22 > (i == 0 and m00 or m11) then 
311
i = 2 
312
end 
313
if i == 0 then 
314
local s = math.sqrt(m00-m11-m22+1) 
315
local recip = 0.5/s 
316
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
317
elseif i == 1 then 
318
local s = math.sqrt(m11-m22-m00+1) 
319
local recip = 0.5/s 
320
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
321
elseif i == 2 then 
322
local s = math.sqrt(m22-m00-m11+1) 
323
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
324
end 
325
end 
326
end
327
 
328
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
329
local xs, ys, zs = x + x, y + y, z + z 
330
local wx, wy, wz = w*xs, w*ys, w*zs 
331
local xx = x*xs 
332
local xy = x*ys 
333
local xz = x*zs 
334
local yy = y*ys 
335
local yz = y*zs 
336
local zz = z*zs 
337
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)) 
338
end
339
 
340
function QuaternionSlerp(a, b, t) 
341
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
342
local startInterp, finishInterp; 
343
if cosTheta >= 0.0001 then 
344
if (1 - cosTheta) > 0.0001 then 
345
local theta = math.acos(cosTheta) 
346
local invSinTheta = 1/math.sin(theta) 
347
startInterp = math.sin((1-t)*theta)*invSinTheta 
348
finishInterp = math.sin(t*theta)*invSinTheta  
349
else 
350
startInterp = 1-t 
351
finishInterp = t 
352
end 
353
else 
354
if (1+cosTheta) > 0.0001 then 
355
local theta = math.acos(-cosTheta) 
356
local invSinTheta = 1/math.sin(theta) 
357
startInterp = math.sin((t-1)*theta)*invSinTheta 
358
finishInterp = math.sin(t*theta)*invSinTheta 
359
else 
360
startInterp = t-1 
361
finishInterp = t 
362
end 
363
end 
364
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 
365
end
366
367
--Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
368
369
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
370
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
371
end 
372
373
374
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
375
local fp = it("Part")
376
fp.formFactor = formfactor 
377
fp.Parent = parent
378
fp.Reflectance = reflectance
379
fp.Transparency = transparency
380
fp.CanCollide = false 
381
fp.Locked=true
382
fp.BrickColor = brickcolor
383
fp.Name = name
384
fp.Size = size
385
fp.Position = Torso.Position 
386
fp.BottomSurface="Smooth"
387
fp.TopSurface="Smooth"
388
fp:BreakJoints()
389
return fp 
390
end 
391
392
function mesh(Mesh,part,meshtype,meshid,offset,scale)
393
local mesh = it(Mesh) 
394
mesh.Parent = part
395
if Mesh=="SpecialMesh" then
396
mesh.MeshType = meshtype
397
mesh.MeshId = meshid
398
end
399
mesh.Offset=offset
400
mesh.Scale=scale
401
return mesh
402
end
403
404
function weld(parent,part0,part1,c0)
405
local weld = it("Weld") 
406
weld.Parent = parent
407
weld.Part0 = part0 
408
weld.Part1 = part1 
409
weld.C0 = c0
410
return weld
411
end
412
413
414
415
--save shoulders 
416
RSH, LSH=nil, nil 
417
--welds 
418
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
419
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
420
LH=Torso["Left Hip"]
421
RH=Torso["Right Hip"]
422
TorsoColor=Torso.BrickColor
423
function NoOutline(Part)
424
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
425
end
426
player=Player 
427
ch=Character
428
RSH=ch.Torso["Right Shoulder"] 
429
LSH=ch.Torso["Left Shoulder"] 
430
-- 
431
RSH.Parent=nil 
432
LSH.Parent=nil 
433
-- 
434
RW.Name="Right Shoulder"
435
RW.Part0=ch.Torso 
436
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
437
RW.C1=cf(0, 0.5, 0) 
438
RW.Part1=ch["Right Arm"] 
439
RW.Parent=ch.Torso 
440
-- 
441
LW.Name="Left Shoulder"
442
LW.Part0=ch.Torso 
443
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
444
LW.C1=cf(0, 0.5, 0) 
445
LW.Part1=ch["Left Arm"] 
446
LW.Parent=ch.Torso 
447
448
449
newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
450
	local wld = Instance.new("Weld", wp1)
451
	wld.Part0 = wp0
452
	wld.Part1 = wp1
453
	wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
454
end
455
456
457
newWeld(RootPart, Torso, 0, -1, 0)
458
Torso.Weld.C1 = CFrame.new(0, -1, 0)
459
newWeld(Torso, LeftLeg, -0.5, -1, 0)
460
LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
461
newWeld(Torso, RightLeg, 0.5, -1, 0)
462
RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
463
464
	Player=game:GetService('Players').LocalPlayer
465
	Character=Player.Character
466
	mouse=Player:GetMouse()
467
	m=Instance.new('Model',Character)
468
469
470
	local function weldBetween(a, b)
471
	    local weldd = Instance.new("ManualWeld")
472
	    weldd.Part0 = a
473
	    weldd.Part1 = b
474
	    weldd.C0 = CFrame.new()
475
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
476
	    weldd.Parent = a
477
	    return weldd
478
	end
479
	
480
	ArtificialHB = Instance.new("BindableEvent", script)
481
ArtificialHB.Name = "Heartbeat"
482
483
script:WaitForChild("Heartbeat")
484
485
frame = 1 / 60
486
tf = 0
487
allowframeloss = false
488
tossremainder = false
489
lastframe = tick()
490
script.Heartbeat:Fire()
491
492
game:GetService("RunService").Heartbeat:connect(function(s, p)
493
	tf = tf + s
494
	if tf >= frame then
495
		if allowframeloss then
496
			script.Heartbeat:Fire()
497
			lastframe = tick()
498
		else
499
			for i = 1, math.floor(tf / frame) do
500
				script.Heartbeat:Fire()
501
			end
502
			lastframe = tick()
503
		end
504
		if tossremainder then
505
			tf = 0
506
		else
507
			tf = tf - frame * math.floor(tf / frame)
508
		end
509
	end
510
end)
511
512
function swait(num)
513
	if num == 0 or num == nil then
514
		ArtificialHB.Event:wait()
515
	else
516
		for i = 0, num do
517
			ArtificialHB.Event:wait()
518
		end
519
	end
520
end
521
522
523
524
525
526
527
528
529
530
local bg = it("BodyGyro") 
531
bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge 
532
bg.P = 20e+003 
533
bg.Parent = nil 
534
535
536
537
538
local modelzorz = Instance.new("Model") 
539
modelzorz.Parent = Character 
540
modelzorz.Name = "Yoyo" 
541
542
local prt1=part(3,modelzorz,0,0,BrickColor.new("White"),"Part1",vt(1,1,1))
543
prt1.CanCollide=true
544
prt1.Material = "Neon"
545
local msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(0.4,0.3,0.4))
546
547
548
549
550
551
local wld1=weld(prt1,prt1,Torso,euler(1.57,0,0)*cf(-1,1,-0.6))
552
numb=-0.15
553
for i=1,2 do
554
local prt2=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part2",vt(1,1,1))
555
local msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(0.6,0.1,0.6))
556
local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,numb,0))
557
numb2=0
558
for i=1,16 do
559
local prt3=part(3,modelzorz,0.5,0,BrickColor.new("Toothpaste"),"Part3",vt(1,1,1))
560
local msh3=mesh("SpecialMesh",prt3,"Wedge","",vt(0,0,0),vt(0.05,0.1,0.1))
561
local wld3=weld(prt3,prt3,prt2,euler(-3.14+0.785,0,1.57)*cf(0,0,0.3))
562
prt3.Material = "Neon"
563
wld3.C1=euler(0,numb2,0)
564
--numb2=numb2+0.785
565
numb2=numb2+0.3925
566
end
567
numb=numb+0.3
568
end
569
570
local string1=part(3,modelzorz,0,0,BrickColor.new("Toothpaste"),"String1",vt(1,1,1))
571
local stringmsh1=mesh("CylinderMesh",string1,"","",vt(0,0,0),vt(0.1,1,0.1))
572
local stringwld1=weld(string1,string1,prt13,euler(0,0,0)*cf(0,0,0))
573
local string2=part(3,modelzorz,0,0,BrickColor.new("White"),"String2",vt(1,1,1))
574
local stringmsh2=mesh("CylinderMesh",string2,"","",vt(0,0,0),vt(0.1,1,0.1))
575
local stringwld2=weld(string2,string2,prt13,euler(0,0,0)*cf(0,0,0))
576
string1.Material = "Neon"
577
string2.Material = "Neon"
578
local strmdl = "Arrow"
579
coroutine.resume(coroutine.create(function()
580
repeat
581
wait(-10)
582
local top = RightArm.CFrame*cf(0,-1,0)
583
local bottom = prt1.CFrame
584
local oristrpos
585
if strmdl == "Bow" then
586
oristrpos = CFrame.new((top.p+bottom.p)/2)
587
elseif strmdl == "Arrow" then
588
oristrpos = prt1.CFrame
589
end
590
local mg1 = (top.p - oristrpos.p).magnitude
591
local mg2 = (bottom.p - oristrpos.p).magnitude
592
593
string1.Size = Vector3.new(.7,mg1,.7)
594
string1.Anchored=true
595
string1.CFrame = CFrame.new((top.p+oristrpos.p)/2,oristrpos.p) * CFrame.Angles(math.rad(90),0,0)
596
string1.Transparency = 0.65
597
string2.Size = Vector3.new(.5,mg1,.5)
598
string2.Anchored=true
599
string2.CFrame = CFrame.new((top.p+oristrpos.p)/2,oristrpos.p) * CFrame.Angles(math.rad(90),0,0)
600
--[[
601
--stringmsh1.Scale=vt(0.1,1,0.1)
602
stringmsh1.Scale=vt(0.1,mg1,0.1)
603
--cff=CFrame.new(prt1.CFrame.p,RightArm.Position)*angles(math.rad(90),0,0)*cf(0,-mg1/2,0)
604
cff=cf(RightArm.CFrame*cf(0,-1,0).p,prt1.Position)*angles(math.rad(90),0,0)*cf(0,-mg1/2,0)
605
hit2=string1
606
hit=prt1
607
stringwld1.Parent=string1
608
stringwld1.Part0=hit2
609
stringwld1.Part1=hit
610
HitPos=cff.p
611
local CJ = CFrame.new(HitPos)
612
local C0=cff:inverse() *CJ 
613
local C1=hit.CFrame:inverse() * CJ 
614
stringwld1.C0=C0
615
stringwld1.C1=C1
616
]]
617
until false
618
end))
619
620
621
if (script.Parent.className ~= "HopperBin") then 
622
Tool = Instance.new("HopperBin") 
623
Tool.Parent = Backpack 
624
Tool.Name = "The Sonic Yo-yo." 
625
script.Parent = Tool 
626
end 
627
Bin = script.Parent 
628
629
630
631
632
so = function(id,par,vol,pit) 
633
coroutine.resume(coroutine.create(function()
634
local sou = Instance.new("Sound",par or workspace)
635
sou.Volume=vol
636
sou.Pitch=pit or 1
637
sou.SoundId=id
638
wait() 
639
sou:play() 
640
wait(6) 
641
sou:Remove() 
642
end))
643
end
644
645
function unequipweld() 
646
wld1.Part1=Torso
647
wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6)
648
649
650
end 
651
652
function equipweld() 
653
wld1.Part1=RightArm
654
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
655
end 
656
657
function hideanim() 
658
equipped=false
659
attacktype=1
660
swait() 
661
bg.Parent=nil
662
663
664
so("http://www.roblox.com/asset/?id=270239880", prt1, 1, 1)
665
unequipweld() 
666
end 
667
668
function equipanim() 
669
equipped=true
670
swait() 
671
equipweld() 
672
attacktype=1
673
--[[
674
RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0)
675
RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2)
676
LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
677
LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
678
]]--
679
end 
680
681
function s(mouse) 
682
unsheathed = true 
683
player = Player 
684
ch = Character 
685
RSH = ch.Torso["Right Shoulder"] 
686
LSH = ch.Torso["Left Shoulder"] 
687
-- 
688
RSH.Parent = nil 
689
LSH.Parent = nil 
690
-- 
691
RW.Part0 = ch.Torso 
692
RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.1) 
693
RW.C1 = CFrame.new(0, 0.5, 0) 
694
RW.Part1 = ch["Right Arm"] 
695
RW.Parent = ch.Torso 
696
--_G.R = RW 
697
-- 
698
LW.Part0 = ch.Torso 
699
LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.1) 
700
LW.C1 = CFrame.new(0, 0.5, 0) 
701
LW.Part1 = ch["Left Arm"] 
702
LW.Parent = ch.Torso 
703
--_G.L = LW 
704
--
705
equipanim() 
706
swait()
707
708
so("http://www.roblox.com/asset/?id=573105336", prt1, 1, 1)
709
710
end 
711
712
713
714
715
function ds(mouse) 
716
hideanim() 
717
swait() 
718
RW.Parent = nil 
719
LW.Parent = nil 
720
RSH.Parent = player.Character.Torso 
721
LSH.Parent = player.Character.Torso 
722
end 
723
724
725
726
Bin.Selected:connect(s) 
727
Bin.Deselected:connect(ds) 
728
729
730
731
732
733
734
735
local particleemitter2 = Instance.new("ParticleEmitter", prt1)
736
particleemitter2.VelocitySpread = 180
737
particleemitter2.Lifetime = NumberRange.new(1)
738
particleemitter2.Texture = "http://roblox.com/asset/?id=284205403"
739
particleemitter2.Speed = NumberRange.new(1.5)
740
particleemitter2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(1, 1)})
741
particleemitter2.RotSpeed = NumberRange.new(-45, 45)
742
particleemitter2.Rate = 0 -- change this is your pc is too trash xd
743
particleemitter2.Rotation = NumberRange.new(-45, 45)
744
--particleemitter2.Acceleration = Vector3.new(0,3,0)
745
particleemitter2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
746
particleemitter2.LightEmission = 0.8
747
particleemitter2.Color = ColorSequence.new(Color3.new(0, 255, 255), Color3.new(0,255,255))
748
749
local light = Instance.new("PointLight",prt1)
750
751
particleemitter2.Enabled = true
752
753
754
755
756
757
758
if Yoyo == true then
759
760
m = game.Players.LocalPlayer
761
	char = m.Character
762
	local txt = Instance.new("BillboardGui", char)
763
	txt.Adornee = char .Head
764
	txt.Name = "_status"
765
	txt.Size = UDim2.new(2, 0, 1.2, 0)
766
	txt.StudsOffset = Vector3.new(-9, 8, 0)
767
	local text = Instance.new("TextLabel", txt)
768
	text.Size = UDim2.new(10, 0, 7, 0)
769
	text.FontSize = "Size24"
770
	text.TextScaled = true
771
	text.TextTransparency = 0
772
	text.BackgroundTransparency = 1 
773
	text.TextTransparency = 0
774
	text.TextStrokeTransparency = 0
775
	text.Font = "Bodoni"
776
	text.TextStrokeColor3 = Color3.new(0,0,0)
777
778
	v=Instance.new("Part")
779
	v.Name = "ColorBrick"
780
	v.Parent=m.Character
781
	v.FormFactor="Symmetric"
782
	v.Anchored=true
783
	v.CanCollide=false
784
	v.BottomSurface="Smooth"
785
	v.TopSurface="Smooth"
786
	v.Size=Vector3.new(10,5,3)
787
	v.Transparency=1
788
	v.CFrame=char.Torso.CFrame
789
	v.BrickColor=BrickColor.new("Really black")
790
	v.Transparency=1
791
	text.TextColor3 = Color3.new(0,0,255)
792
	v.Shape="Block"
793
	text.Text = "Yoyo"
794
795
796
797
for _,v in pairs(m:children()) do
798
if v:IsA("Part") then
799
v.CanCollide = false
800
end
801
end
802
end
803
if Character.Name == Yourname then
804
for _,v in pairs(Character:children()) do
805
if v:IsA("Accessory") then
806
v:Remove()
807
end
808
end	
809
810
811
812
Head.face.Texture = "rbxassetid://0"
813
Character["Body Colors"].HeadColor = BrickColor.new("Navy blue")
814
Character["Body Colors"].TorsoColor = BrickColor.new("Navy blue")
815
Character["Body Colors"].LeftArmColor = BrickColor.new("Navy blue")
816
Character["Body Colors"].RightArmColor = BrickColor.new("Navy blue")
817
Character["Body Colors"].LeftLegColor = BrickColor.new("Navy blue")
818
Character["Body Colors"].RightLegColor = BrickColor.new("Navy blue")
819
----------------------------------------------------
820
ypcall(function()
821
shirt = Instance.new("Shirt", char)
822
shirt.Name = "Shirt"
823
pants = Instance.new("Pants", char)
824
pants.Name = "Pants"
825
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=0"
826
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=0"
827
end)
828
829
end
830
831
832
833
834
835
Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
836
        if hit.Parent==nil then
837
                return
838
        end
839
        h=hit.Parent:FindFirstChild("Humanoid")
840
        for _,v in pairs(hit.Parent:children()) do
841
        if v:IsA("Humanoid") then
842
        h=v
843
        end
844
        end
845
        if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
846
        h=hit.Parent.Parent:FindFirstChild("Humanoid")
847
        end
848
        if hit.Parent.className=="Hat" then
849
        hit=hit.Parent.Parent:findFirstChild("Head")
850
        end
851
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
852
        if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
853
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
854
                        return
855
                end]]
856
--                        hs(hit,1.2) 
857
                        c=Instance.new("ObjectValue")
858
                        c.Name="creator"
859
                        c.Value=game:service("Players").LocalPlayer
860
                        c.Parent=h
861
                        game:GetService("Debris"):AddItem(c,.5)
862
                Damage=math.random(minim,maxim)
863
--                h:TakeDamage(Damage)
864
                blocked=false
865
                block=hit.Parent:findFirstChild("Block")
866
                if block~=nil then
867
                print(block.className)
868
                if block.className=="NumberValue" then
869
                if block.Value>0 then
870
                blocked=true
871
                if decreaseblock==nil then
872
                block.Value=block.Value-1
873
                end
874
                end
875
                end
876
                if block.className=="IntValue" then
877
                if block.Value>0 then
878
                blocked=true
879
                if decreaseblock~=nil then
880
                block.Value=block.Value-1
881
                end
882
                end
883
                end
884
                end
885
                if blocked==false then
886
--                h:TakeDamage(Damage)
887
                h.Health=h.Health-Damage
888
                else
889
                h.Health=h.Health-(Damage/2)
890
                end
891
                h.Health=h.Health-Damage
892
893
894
                
895
                if Type=="Knockdown" then
896
                hum=hit.Parent.Humanoid
897
hum.PlatformStand=true
898
coroutine.resume(coroutine.create(function(HHumanoid)
899
swait(5)
900
HHumanoid.PlatformStand=false
901
end),hum)
902
903
                local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
904
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
905
local bodvol=Instance.new("BodyVelocity")
906
bodvol.velocity=angle*knockback
907
bodvol.P=5000
908
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
909
bodvol.Parent=hit
910
rl=Instance.new("BodyAngularVelocity")
911
rl.P=30000
912
rl.maxTorque=Vector3.new(0,10,10)*5000
913
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(2,4),math.random(-10,10))
914
rl.Parent=hit
915
game:GetService("Debris"):AddItem(bodvol,.5)
916
game:GetService("Debris"):AddItem(rl,.5)
917
               elseif Type=="Normal" then
918
                vp=Instance.new("BodyVelocity")
919
                vp.P=500
920
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
921
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
922
                if KnockbackType==1 then
923
                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
924
                elseif KnockbackType==2 then
925
                vp.velocity=Property.CFrame.lookVector*knockback
926
                end
927
                if knockback>0 then
928
                        vp.Parent=hit.Parent.Torso
929
                end
930
                game:GetService("Debris"):AddItem(vp,.5)
931
                elseif Type=="Up" then
932
                local bodyVelocity=Instance.new("BodyVelocity")
933
                bodyVelocity.velocity=vt(0,40,0)
934
                bodyVelocity.P=1000
935
                bodyVelocity.maxForce=Vector3.new(0, 1e+009, 0)--1e+009
936
                bodyVelocity.Parent=hit
937
                game:GetService("Debris"):AddItem(bodyVelocity,1)
938
                rl=Instance.new("BodyAngularVelocity")
939
                rl.P=3000
940
                rl.maxTorque=Vector3.new(5000,5000,5000)*50000
941
                rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
942
                rl.Parent=hit
943
 game:GetService("Debris"):AddItem(rl,.5)
944
elseif Type=="Slam" then
945
                local bodyVelocity2=Instance.new("BodyVelocity")
946
                bodyVelocity2.velocity=vt(0,-4,0)
947
                bodyVelocity2.P=1000
948
                bodyVelocity2.maxForce=Vector3.new(0,-1e+009,0)
949
                bodyVelocity2.Parent=hit
950
                game:GetService("Debris"):AddItem(bodyVelocity2,1)
951
                rl2=Instance.new("BodyAngularVelocity")
952
                rl2.P=3000
953
                rl2.maxTorque=Vector3.new(5000,5000,5000)*50000
954
                rl2.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
955
                rl2.Parent=hit
956
 game:GetService("Debris"):AddItem(rl2,.5)
957
                elseif Type=="Snare" then
958
                bp=Instance.new("BodyPosition")
959
                bp.P=2000
960
                bp.D=100
961
                bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
962
                bp.position=hit.Parent.Torso.Position
963
                bp.Parent=hit.Parent.Torso
964
                game:GetService("Debris"):AddItem(bp,1)
965
                elseif Type=="Target" then
966
                if Targetting==false then
967
                ZTarget=hit.Parent.Torso
968
                coroutine.resume(coroutine.create(function(Part) 
969
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
970
                swait(5)
971
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
972
                end),ZTarget)
973
                TargHum=ZTarget.Parent:findFirstChild("Humanoid")
974
                targetgui=Instance.new("BillboardGui")
975
                targetgui.Parent=ZTarget
976
                targetgui.Size=UDim2.new(10,100,10,100)
977
                targ=Instance.new("ImageLabel")
978
                targ.Parent=targetgui
979
                targ.BackgroundTransparency=1
980
                targ.Image="rbxassetid://4834067"
981
                targ.Size=UDim2.new(1,0,1,0)
982
                cam.CameraType="Scriptable"
983
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
984
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
985
                workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
986
                Targetting=true
987
                RocketTarget=ZTarget
988
                for i=1,Property do
989
                --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
990
                if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
991
                swait()
992
                end
993
                --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
994
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
995
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
996
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
997
                end
998
                Targetting=false
999
                RocketTarget=nil
1000
                targetgui.Parent=nil
1001
                cam.CameraType="Custom"
1002
                end
1003
                end
1004
1005
1006
1007
1008
1009
1010
  
1011
1012
                        debounce=Instance.new("BoolValue")
1013
                        debounce.Name="DebounceHit"
1014
                        debounce.Parent=hit.Parent
1015
                        debounce.Value=true
1016
                        game:GetService("Debris"):AddItem(debounce,Delay)
1017
                        c=Instance.new("ObjectValue")
1018
                        c.Name="creator"
1019
                        c.Value=Player
1020
                        c.Parent=h
1021
                        game:GetService("Debris"):AddItem(c,.5)
1022
                CRIT=false
1023
                hitDeb=true
1024
                AttackPos=6
1025
        end
1026
end
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
function Dash() 
1041
evadecooldown = true
1042
attack = true
1043
so("http://www.roblox.com/asset/?id=558640653", Torso, 1, 1)
1044
for i = 0,1,0.06 do
1045
swait()
1046
RootPart.Velocity = RootPart.CFrame.lookVector * 240
1047
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.4)
1048
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
1049
RW.C0 = clerp(RW.C0, CFrame.new(.9, 0.5, -.5) * angles(math.rad(80), math.rad(0), math.rad(-50)),.2)
1050
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
1051
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.8)
1052
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.7, -0.7) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.8)
1053
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
1054
end
1055
attack = false
1056
wait(3)
1057
evadecooldown = false
1058
end
1059
1060
1061
1062
function Dash2() 
1063
attack = true
1064
evadecooldown = true
1065
so("http://www.roblox.com/asset/?id=558640653", Torso, 1, 1)
1066
for i = 0,1,0.06 do
1067
swait()
1068
RootPart.Velocity = RootPart.CFrame.lookVector * 240
1069
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.4)
1070
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
1071
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)),.2)
1072
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
1073
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.8)
1074
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.7, -0.7) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.8)
1075
end
1076
attack = false
1077
wait(3)
1078
evadecooldown = false
1079
end
1080
1081
1082
function attackone()
1083
1084
attack = true
1085
1086
local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,13,17,math.random(2,5),"Normal",RootPart,.2,1) end)
1087
so("http://www.roblox.com/asset/?id=821400988", LeftArm, 1, 1)
1088
for i = 0,1,0.10 do
1089
swait()
1090
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
1091
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2)
1092
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2)
1093
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.3) * angles(math.rad(20), math.rad(-40), math.rad(-90)),.2)
1094
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
1095
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
1096
1097
end
1098
con5:disconnect()
1099
attack = false
1100
end
1101
1102
1103
function throw()
1104
1105
attack = true
1106
local con5=prt1.Touched:connect(function(hit) Damagefunc(hit,23,37,math.random(5,15),"Normal",RootPart,.2,1) end)
1107
so("http://www.roblox.com/asset/?id=268009172", Head, 1, 0.88)
1108
for i = 0,1,0.12 do
1109
swait()
1110
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
1111
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2)
1112
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
1113
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
1114
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
1115
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
1116
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
1117
--wld1.C0=clerp(wld1.C0,cf(0,-10,-2)*angles(5+30*i,0,10),.2)
1118
end
1119
1120
so("http://roblox.com/asset/?id=10209640",RightArm,1,0.78) 
1121
for i = 0,4,0.06 do
1122
swait()
1123
so("http://www.roblox.com/asset/?id=346009296", prt1, 1, 1)
1124
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4)
1125
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
1126
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
1127
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
1128
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
1129
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
1130
wld1.C0=euler(0,0,1.57)*cf(0,1.1+15*i,0)
1131
end
1132
for i = 0,1,0.12 do
1133
swait()
1134
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4)
1135
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
1136
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
1137
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
1138
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
1139
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
1140
wld1.C0=euler(0,0,1.57)*cf(0,15.1-14*i,0)
1141
end
1142
con5:disconnect()
1143
attack = false
1144
1145
end
1146
1147
1148
function attackoney()
1149
local con5=prt1.Touched:connect(function(hit) Damagefunc(hit,17,24,math.random(1,1),"Normal",RootPart,.2,1) end)
1150
so("http://www.roblox.com/asset/?id=268009172", Head, 1, 0.88)
1151
for i = 0,1,0.12 do
1152
swait()
1153
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
1154
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2)
1155
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
1156
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
1157
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
1158
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
1159
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
1160
--wld1.C0=clerp(wld1.C0,cf(0,-10,-2)*angles(5+30*i,0,10),.2)
1161
end
1162
1163
so("http://roblox.com/asset/?id=10209640",RightArm,1,0.78) 
1164
for i = 0,1.5,0.36 do
1165
swait()
1166
so("http://www.roblox.com/asset/?id=346009296", prt1, 1, 1)
1167
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4)
1168
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
1169
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
1170
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
1171
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
1172
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
1173
wld1.C0=euler(0,0,1.57)*cf(0,1.1+1*i,0)
1174
end
1175
for i = 0,1,0.16 do
1176
swait()
1177
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4)
1178
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
1179
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
1180
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
1181
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
1182
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
1183
wld1.C0=euler(0,0,1.57)*cf(0,2.1-1*i,0)
1184
end
1185
attack = false
1186
1187
con5:disconnect()
1188
end
1189
1190
1191
1192
1193
1194
function attacktwoy()
1195
attack = true
1196
local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,10,14,math.random(1,1),"Normal",RootPart,.2,1) end)
1197
for i = 0,1,0.10 do
1198
swait()
1199
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.4)
1200
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.2)
1201
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2)
1202
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.7) * angles(math.rad(0), math.rad(-40), math.rad(-90)),.2)
1203
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
1204
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
1205
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
1206
end
1207
1208
1209
for i = 0,1,0.10 do
1210
swait()
1211
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
1212
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2)
1213
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2)
1214
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.3) * angles(math.rad(20), math.rad(-40), math.rad(-90)),.2)
1215
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
1216
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
1217
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
1218
end
1219
con5:disconnect()
1220
attack = false
1221
1222
end
1223
1224
1225
1226
1227
1228
1229
1230
1231
function attackthreey()
1232
attack = true
1233
so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
1234
so("http://www.roblox.com/asset/?id=158475221", LeftLeg, 1, 1.3)
1235
local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,17,22,math.random(1,5),"Normal",RootPart,.2,1) end)
1236
for i = 0,4.6,0.16 do
1237
swait()
1238
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(90*i), math.rad(0)), 0.4)
1239
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(-60)),.2)
1240
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2)
1241
LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2)
1242
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.76, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(-30)), 0.8)
1243
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(100), math.rad(-40), math.rad(90)), 0.8)
1244
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
1245
end
1246
con5:disconnect()
1247
1248
attack = false
1249
1250
end
1251
1252
1253
1254
function YoyoEvade()
1255
evade = true
1256
Character.Humanoid.Jump = true
1257
wait(0.6)
1258
attack = true
1259
local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,57,82,math.random(1,5),"Knockdown",RootPart,.2,1) end)
1260
for i = 0,3.5,0.06 do
1261
--RootPart.Velocity = RootPart.CFrame.lookVector * 0
1262
swait()
1263
so("http://www.roblox.com/asset/?id=346009296", prt1, 1, 1)
1264
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-90), math.rad(50), math.rad(0)), 0.4)
1265
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
1266
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
1267
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
1268
RightLeg.Weld.C0=clerp(RightLeg.Weld.C0,cf(0.5,0.20,-0.25)*angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)
1269
LeftLeg.Weld.C0=clerp(LeftLeg.Weld.C0,cf(-0.5,-0.70,-0.25)*angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)
1270
wld1.C0=euler(0,0,1.57)*cf(0,1.1+10*i,0)
1271
end
1272
wait(3)
1273
for i = 0,4.6,0.16 do
1274
swait()
1275
so("http://www.roblox.com/asset/?id=158475221", RightLeg, 0.5, 1.3)
1276
so("http://www.roblox.com/asset/?id=158475221", LeftLeg, 0.5, 1.3)
1277
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(90*i), math.rad(0)), 0.4)
1278
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(-60)),.2)
1279
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2)
1280
LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2)
1281
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.76, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(-30)), 0.8)
1282
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(100), math.rad(-40), math.rad(90)), 0.8)
1283
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
1284
end
1285
attack = false
1286
Character.Humanoid.Jump = false
1287
con5:disconnect()
1288
wait(2)
1289
evade = false
1290
1291
end
1292
1293
1294
function fy()
1295
attack = true
1296
local con5=prt1.Touched:connect(function(hit) Damagefunc(hit,34,42,math.random(1,5),"Up",RootPart,.2,1) end)
1297
for i = 0,1.5,0.07 do
1298
swait()
1299
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1.8, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.4)
1300
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.2)
1301
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.7) * angles(math.rad(50), math.rad(-80), math.rad(-10)),.2)
1302
LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.3, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2)
1303
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.2, -0.5) * CFrame.Angles(math.rad(20), math.rad(-3), math.rad(0)), 0.8)
1304
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0.3) * CFrame.Angles(math.rad(-32), math.rad(0), math.rad(4)), 0.8)
1305
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
1306
end
1307
1308
1309
for i = 0,1.7,0.13 do
1310
so("http://www.roblox.com/asset/?id=346009296", prt1, 1, 1)
1311
swait()
1312
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.7, 0.2) * CFrame.Angles(math.rad(4), math.rad(5), math.rad(0)), 0.4)
1313
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-40*i),math.rad(0),math.rad(0)),.2)
1314
RW.C0 = clerp(RW.C0, CFrame.new(.9, 0.5, -0.5) * angles(math.rad(90*i), math.rad(-80*i), math.rad(-40*i)),.2)
1315
LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2)
1316
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-32), math.rad(0), math.rad(0)), 0.8)
1317
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.47, -0.5) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(0)), 0.8)
1318
wld1.C0=euler(0,0,1.57)*cf(0,4.1*i,0)
1319
end
1320
1321
1322
1323
for i = 0,1.7,0.13 do
1324
swait()
1325
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.7, 0.2) * CFrame.Angles(math.rad(4), math.rad(5), math.rad(0)), 0.4)
1326
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-40),math.rad(0),math.rad(0)),.2)
1327
RW.C0 = clerp(RW.C0, CFrame.new(.9, 0.5, -0.5) * angles(math.rad(90), math.rad(-80), math.rad(-40)),.2)
1328
LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2)
1329
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-32), math.rad(0), math.rad(0)), 0.8)
1330
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.47, -0.5) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(0)), 0.8)
1331
wld1.C0=euler(0,0,1.57)*cf(0,4.1-3*i,0)
1332
end
1333
1334
1335
attack = false
1336
con5:disconnect()
1337
end
1338
1339
1340
1341
1342
function grabattack()
1343
1344
	attack = true
1345
1346
	--local GGyro = Instance.new("BodyPosition")
1347
	local grab = nil
1348
	for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 200)) do
1349
		if v:FindFirstChild('Torso') then
1350
			Grabbed = true
1351
			grab = v
1352
		end
1353
	end
1354
so("http://roblox.com/asset/?id=10209640",RightArm,1,0.78) 
1355
for i = 0,4,0.06 do
1356
swait()
1357
so("http://www.roblox.com/asset/?id=346009296", prt1, 1, 1)
1358
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4)
1359
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
1360
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
1361
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
1362
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
1363
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
1364
wld1.C0=euler(0,0,1.57)*cf(0,1.1+15*i,0)
1365
end
1366
		for i = 0, 1, 0.13 do
1367
		swait()
1368
		if Grabbed == true then
1369
wld1.C0=euler(0,0,1.57)*cf(0,26.1-25*i,0)
1370
			grab.Humanoid.PlatformStand = true
1371
			--GGyro.position = Partss.Position
1372
			--GGyro.Parent = grab.Head
1373
			grab.Torso.CFrame = prt1.CFrame * CFrame.Angles(0,math.rad(-90),0)
1374
		end
1375
1376
end
1377
1378
Grabbed = true
1379
attack = false
1380
end
1381
1382
1383
1384
1385
1386
function attacktwo()
1387
1388
1389
1390
1391
1392
attack = true
1393
1394
local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,13,17,math.random(2,5),"Normal",RootPart,.2,1) end)
1395
so("http://www.roblox.com/asset/?id=821400988", RightArm, 1, 1)
1396
1397
for i = 0,1,0.10 do
1398
swait()
1399
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
1400
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-50)),.2)
1401
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.3) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
1402
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
1403
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
1404
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-40), math.rad(4)), 0.8)
1405
1406
end
1407
con5:disconnect()
1408
attack = false
1409
1410
1411
1412
end
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
function attackthree()
1423
attack = true
1424
local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,13,17,math.random(0,0),"Knockdown",RootPart,.2,1) end)
1425
so("http://www.roblox.com/asset/?id=821400988", LeftLeg, 1, 1)
1426
1427
for i = 0,1,0.10 do
1428
swait()
1429
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(-90), math.rad(0)), 0.4)
1430
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(60)),.2)
1431
RW.C0 = clerp(RW.C0, CFrame.new(.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(-90)),.2)
1432
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
1433
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(100), math.rad(40), math.rad(-90)), 0.8)
1434
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.76, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(30)), 0.8)
1435
1436
end
1437
attack = false
1438
1439
con5:disconnect()
1440
1441
1442
1443
end
1444
1445
1446
1447
1448
1449
1450
1451
function attackfour()
1452
1453
attack = true
1454
local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,13,17,math.random(0,0),"Normal",RootPart,.2,1) end)
1455
so("http://www.roblox.com/asset/?id=821400988", RightArm, 1, 1)
1456
1457
for i = 0,1,0.10 do
1458
swait()
1459
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.7, 0.2) * CFrame.Angles(math.rad(4), math.rad(5), math.rad(0)), 0.4)
1460
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-40),math.rad(0),math.rad(0)),.2)
1461
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
1462
RW.C0 = clerp(RW.C0, CFrame.new(.9, 0.5, -1.5) * angles(math.rad(90), math.rad(-80), math.rad(-60)),.2)
1463
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-32), math.rad(0), math.rad(0)), 0.8)
1464
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.47, -0.5) * CFrame.Angles(math.rad(-35), math.rad(-0), math.rad(0)), 0.8)
1465
end
1466
con5:disconnect()
1467
1468
attack = false
1469
1470
end
1471
1472
function attackfive()
1473
1474
attack = true
1475
local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,13,17,math.random(0,0),"Normal",RootPart,.2,1) end)
1476
so("http://www.roblox.com/asset/?id=821400988", RightLeg, 1, 1)
1477
for i = 0,1,0.10 do
1478
swait()
1479
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(90), math.rad(0)), 0.4)
1480
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(-60)),.2)
1481
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2)
1482
LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2)
1483
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.76, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(-30)), 0.8)
1484
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(100), math.rad(-40), math.rad(90)), 0.8)
1485
1486
end
1487
con5:disconnect()
1488
attack = false
1489
end
1490
1491
1492
1493
function YoyoExplode()
1494
attackcooldown = true
1495
Character.Humanoid.Jump = true
1496
wait(0.6)
1497
attack = true
1498
so("http://www.roblox.com/asset/?id=449247880", prt1, 1, 1)
1499
for i = 0,4,0.12 do
1500
swait()
1501
RootPart.Velocity = RootPart.CFrame.lookVector * 0
1502
RootPart.Velocity = RootPart.CFrame.lookVector * 0
1503
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(20), 0, 0), 0.8)
1504
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.2)
1505
RightLeg.Weld.C0=clerp(RightLeg.Weld.C0,cf(0.5,-.6,-0.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
1506
LeftLeg.Weld.C0=clerp(LeftLeg.Weld.C0,cf(-0.5,-.4,-0.3)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
1507
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-90),math.rad(0),math.rad(0)),.2)
1508
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(0)),.2)
1509
wld1.C0=clerp(wld1.C0,cf(0,-1.5,-2)*angles(math.rad(5+90*i),1.1,math.rad(0)),.2)
1510
end
1511
1512
so("http://www.roblox.com/asset/?id=465940184", prt1, 1, 1)
1513
for i = 0,4,0.12 do
1514
swait()
1515
RootPart.Velocity = RootPart.CFrame.lookVector * 0
1516
RootPart.Velocity = RootPart.CFrame.lookVector * 0
1517
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), 0, 0), 0.8)
1518
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
1519
RightLeg.Weld.C0=clerp(RightLeg.Weld.C0,cf(0.5,-.6,-0.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
1520
LeftLeg.Weld.C0=clerp(LeftLeg.Weld.C0,cf(-0.5,-.4,-0.3)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
1521
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(0)),.2)
1522
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-90),math.rad(0),math.rad(0)),.2)
1523
wld1.C0=euler(0,0,1.57)*cf(0,1.1+15*i,0)
1524
end
1525
for i = 0,1.5,0.12 do
1526
swait()
1527
RootPart.Velocity = RootPart.CFrame.lookVector * 0
1528
RootPart.Velocity = RootPart.CFrame.lookVector * 0
1529
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), 0, 0), 0.8)
1530
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
1531
RightLeg.Weld.C0=clerp(RightLeg.Weld.C0,cf(0.5,-.6,-0.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
1532
LeftLeg.Weld.C0=clerp(LeftLeg.Weld.C0,cf(-0.5,-.4,-0.3)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
1533
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(0)),.2)
1534
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-90),math.rad(0),math.rad(0)),.2)
1535
wld1.C0=euler(0,0,1.57)*cf(0,56.1,0)
1536
end
1537
1538
for i = 1, 1 do
1539
1540
swait()
1541
RootPart.Velocity = RootPart.CFrame.lookVector * 0
1542
RootPart.Velocity = RootPart.CFrame.lookVector * 0
1543
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), 0, 0), 0.8)
1544
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
1545
RightLeg.Weld.C0=clerp(RightLeg.Weld.C0,cf(0.5,-.6,-0.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
1546
LeftLeg.Weld.C0=clerp(LeftLeg.Weld.C0,cf(-0.5,-.4,-0.3)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
1547
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(0)),.2)
1548
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-90),math.rad(0),math.rad(0)),.2)
1549
wld1.C0=euler(0,0,1.57)*cf(0,56.1,0)
1550
1551
1552
so("http://www.roblox.com/asset/?id=895716446", prt1, 1, 1)
1553
1554
local S = Instance.new("Explosion",workspace)
1555
S.Position = prt1.Position
1556
S.BlastPressure = 5
1557
S.BlastRadius = 15
1558
S.ExplosionType = 2
1559
end
1560
1561
1562
1563
numb=-0.15
1564
for i=1,2 do
1565
local prt1=part(3,modelzorz,0,0,BrickColor.new("White"),"Part1",vt(1,1,1))
1566
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
1567
prt1.CanCollide=true
1568
prt1.Material = "Neon"
1569
local msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(0.4,0.3,0.4))
1570
local prt2=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part2",vt(1,1,1))
1571
local msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(0.6,0.1,0.6))
1572
local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,numb,0))
1573
numb2=0
1574
for i=1,16 do
1575
local prt3=part(3,modelzorz,0.5,0,BrickColor.new("Toothpaste"),"Part3",vt(1,1,1))
1576
local msh3=mesh("SpecialMesh",prt3,"Wedge","",vt(0,0,0),vt(0.05,0.1,0.1))
1577
local wld3=weld(prt3,prt3,prt2,euler(-3.14+0.785,0,1.57)*cf(0,0,0.3))
1578
prt3.Material = "Neon"
1579
wld3.C1=euler(0,numb2,0)
1580
--numb2=numb2+0.785
1581
numb2=numb2+0.3925
1582
end
1583
numb=numb+0.3
1584
end
1585
1586
1587
for i = 0,4,0.12 do
1588
1589
1590
1591
swait()
1592
RootPart.Velocity = RootPart.CFrame.lookVector * -140
1593
Humanoid.CameraOffset = Vector3.new(0,0,0)
1594
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(180*i), math.rad(0)), 0.4)
1595
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
1596
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(-10), math.rad(50)), 0.3)
1597
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(-10), math.rad(-50)), 0.3)
1598
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12), math.rad(0), math.rad(0)), 0.8)
1599
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-25), math.rad(-3), math.rad(0)), 0.8)
1600
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
1601
end
1602
1603
attack = false
1604
wait(7)
1605
attackcooldown = false
1606
end
1607
1608
1609
1610
1611
1612
1613
1614
mouse.Button1Down:connect(function()
1615
 if attack==false and equipped == false then
1616
                if attacktype==1 then
1617
                        attack=true
1618
                        attacktype=2
1619
                        attackone()
1620
                elseif attacktype==2 then
1621
                        attack=true
1622
                        attacktype=3
1623
                        attacktwo()
1624
                elseif attacktype==3 then
1625
                        attack=true
1626
                        attacktype=4
1627
                        attackthree()
1628
                elseif attacktype==4 then
1629
                        attack=true
1630
                        attacktype=5
1631
                        attackfour()
1632
                elseif attacktype==5 then
1633
                        attack=true
1634
                        attacktype=1
1635
                        attackfive()
1636
                end
1637
        end
1638
end)
1639
1640
1641
1642
1643
mouse.Button1Down:connect(function()
1644
 if attack==false and equipped == true then
1645
                if attacktype==1 then
1646
                        attack=true
1647
                        attacktype=2
1648
                        attackoney()
1649
                elseif attacktype==2 then
1650
                        attack=true
1651
                        attacktype=3
1652
                        attacktwoy()
1653
                elseif attacktype==3 then
1654
                        attack=true
1655
                        attacktype=4
1656
                        attackthreey()
1657
                elseif attacktype==4 then
1658
                        attack=true
1659
                        attacktype=1
1660
                        fy()
1661
                elseif attacktype==5 then
1662
                        attack=true
1663
                        attacktype=1
1664
                        attackfivey()
1665
1666
                end
1667
        end
1668
end)
1669
1670
1671
1672
1673
1674
function Grapple()
1675
1676
attack=true
1677
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
1678
for i = 0,1,0.03 do
1679
swait()
1680
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
1681
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2)
1682
RW.C0 = clerp(RW.C0, CFrame.new(.9, 0.5, -.5) * angles(math.rad(90), math.rad(130), math.rad(90)),.2)
1683
LW.C0 = clerp(LW.C0, CFrame.new(-.8, 0.3, -.5) * angles(math.rad(60), math.rad(11), math.rad(70)),.2)
1684
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
1685
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
1686
end
1687
for i=0,1,0.1 do
1688
swait()
1689
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4)
1690
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-20)),.2)
1691
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
1692
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
1693
1694
offset=(Torso.Position.y-mouse.Hit.p.y)/60
1695
mag=(Torso.Position-mouse.Hit.p).magnitude/80
1696
offset=offset/mag 
1697
end
1698
wait(0.2)
1699
so("http://roblox.com/asset/?id=10209640",LeftArm,1,0.78) 
1700
prt1.Velocity=vt(0,0,0)
1701
wld1.Parent=nil
1702
local baseprt=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(1,1,1))
1703
--[[local hit,pos = rayCast(prt1.Position,mouse.Hit.p,100,game) 
1704
local hit,pos = game.Workspace:FindPartOnRay(Ray.new(prt1.Position, mouse.Hit.p.unit * (100)), workspace) 
1705
print(pos)
1706
print(hit)
1707
baseprt.CFrame=CFrame.new(pos)]]
1708
baseprt.CFrame=RightArm.CFrame*cf(0,-200,0)
1709
fd=Instance.new("BodyPosition")
1710
fd.P=200
1711
fd.D=60
1712
fd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
1713
fd.position=baseprt.Position
1714
fd.Parent=prt1
1715
coroutine.resume(coroutine.create(function(BodyPos)
1716
while fd.Parent~=nil do
1717
wait()
1718
end
1719
end),fd)
1720
coroutine.resume(coroutine.create(function()
1721
wait(0.1)
1722
con1=prt1.Touched:connect(function(hit) 
1723
so("http://roblox.com/asset/?id=214876666",prt1,1.4,1) 
1724
if hit.Name~="String1" then
1725
fd.Parent=nil
1726
prt1.Anchored=true
1727
fddd=Instance.new("BodyPosition")
1728
fddd.P=2000
1729
fddd.D=600
1730
fddd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
1731
fddd.position=prt1.Position
1732
fddd.Parent=RightArm
1733
coroutine.resume(coroutine.create(function(BodyPos)
1734
wait(1)
1735
prt1.Anchored=false
1736
wld1.Parent=RightArm
1737
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
1738
BodyPos.Parent=nil
1739
end),fddd)
1740
end
1741
end) 
1742
end))
1743
cond=prt1.Touched:connect(function(hit) Damagefunc(hit,10,20) end) 
1744
wait(2)
1745
con1:disconnect()
1746
coroutine.resume(coroutine.create(function(BodyPos)
1747
for i=1,20 do
1748
wait(0)
1749
BodyPos.position=RightArm.Position
1750
end
1751
end),fd)
1752
wait(1)
1753
cond:disconnect()
1754
fd.Parent=nil
1755
wld1.Parent=RightArm
1756
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
1757
baseprt.Parent=nil
1758
attack=false
1759
end
1760
1761
1762
1763
1764
mouse.KeyDown:connect(function(key)
1765
if key == 'c' and attack == false and equipped == true then
1766
Grapple()
1767
end
1768
end)
1769
mouse.KeyDown:connect(function(key)
1770
if key == 'e' and attack == false and equipped == true then
1771
throw()
1772
end
1773
end)
1774
mouse.KeyDown:connect(function(key)
1775
if key == 'r' and attack == false and equipped == true and evade == false then
1776
YoyoEvade()
1777
end
1778
end)
1779
1780
1781
mouse.KeyDown:connect(function(key)
1782
if key == 't' and attackcooldown == false and equipped == true and attack == false then
1783
YoyoExplode()
1784
end
1785
end)
1786
1787
1788
1789
mouse.KeyDown:connect(function(key)
1790
if key == 'f' and attack == false and equipped == true and evadecooldown == false then
1791
Dash()
1792
end
1793
end)
1794
1795
1796
mouse.KeyDown:connect(function(key)
1797
if key == 'f' and attack == false and equipped == false and evadecooldown == false then
1798
Dash2()
1799
end
1800
end)
1801
1802
mouse.KeyDown:connect(function(key)
1803
if key == 'g' and attack == false and equipped == true then
1804
grabattack()
1805
end
1806
end)
1807
1808
1809
Character.Humanoid.MaxHealth = 700
1810
Character.Humanoid.Health = 700
1811
Character.Humanoid.WalkSpeed = 8
1812
Character.Humanoid.JumpPower = 100
1813
------------------------------------
1814
mouse.KeyDown:connect(function(key)
1815
    if string.byte(key) == 48 then
1816
		Swing = 2
1817
        Character.Humanoid.WalkSpeed = 90
1818
end
1819
end)
1820
1821
mouse.KeyUp:connect(function(key)
1822
    if string.byte(key) == 48 then
1823
		Swing = 1
1824
        Character.Humanoid.WalkSpeed = 8
1825
1826
end
1827
end)
1828
------------------------------------
1829
1830
print("The Sonic Yo-yo")
1831
print("Made by KillerDarkness0105")
1832
print("Hope you enjoy :D")
1833
print("Controls")
1834
print("C = Air Grapple")
1835
print("E = Throw")
1836
print("R = YoyoEvade -2 sec cooldown")
1837
print("T = Explosion attack -7 sec cooldown")
1838
print("F = Dash -3 sec cooldown")
1839
print("Shift = Run")
1840
1841
1842
1843
local sine = 0
1844
local change = 1
1845
local val = 0
1846
while true do
1847
swait()
1848
sine = sine + change
1849
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
1850
local velderp=RootPart.Velocity.y
1851
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
1852
if equipped==true or equipped==false then
1853
if attack==false then
1854
idle=idle+1
1855
else
1856
idle=0
1857
end
1858
if idle>=500 then
1859
if attack==false then
1860
end
1861
end
1862
1863
1864
1865
--The animations are made here, feel free to edit these to how you ya like :). I hope you know how to edit animations tho ;).
1866
	
1867
if RootPart.Velocity.y > 1 and hitfloor==nil then 
1868
Anim="Jump"
1869
if attack==false and equipped == false then
1870
change = 1
1871
for i = 0,4,0.12 do
1872
swait()
1873
Humanoid.CameraOffset = Vector3.new(0,0,0)
1874
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(180*i), math.rad(0)), 0.4)
1875
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10+2.05*math.cos(sine/5)),math.rad(0),math.rad(0)),.3)
1876
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(50-2.05*math.cos(sine/5))), 0.3)
1877
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(-50+2.05*math.cos(sine/5))), 0.3)
1878
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12+3.05*math.cos(sine/5)), math.rad(0), math.rad(0)), 0.1)
1879
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-25+3.05*math.cos(sine/5)), math.rad(-3), math.rad(0)), 0.1)
1880
wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6)
1881
end
1882
else
1883
if attack==false and equipped == true then
1884
for i = 0,4,0.12 do
1885
swait()
1886
Humanoid.CameraOffset = Vector3.new(0,0,0)
1887
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(180*i), math.rad(0)), 0.4)
1888
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10+2.05*math.cos(sine/5)),math.rad(0),math.rad(0)),.3)
1889
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(50-2.05*math.cos(sine/5))), 0.3)
1890
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(-50+2.05*math.cos(sine/5))), 0.3)
1891
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12+3.05*math.cos(sine/5)), math.rad(0), math.rad(0)), 0.1)
1892
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-25+3.05*math.cos(sine/5)), math.rad(-3), math.rad(0)), 0.1)
1893
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
1894
end
1895
end
1896
end
1897
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
1898
Anim="Fall"
1899
change = 1
1900
if attack==false and equipped == false then
1901
Humanoid.CameraOffset = Vector3.new(0,0,0)
1902
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
1903
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(5), math.rad(10), math.rad(20)), 0.3)
1904
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-5), math.rad(-10), math.rad(-20)), 0.3)
1905
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
1906
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3)
1907
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(0)), 0.1)
1908
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.1)
1909
wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6)
1910
else
1911
if attack==false and equipped == true then
1912
Humanoid.CameraOffset = Vector3.new(0,0,0)
1913
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
1914
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(5), math.rad(10), math.rad(20)), 0.3)
1915
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-5), math.rad(-10), math.rad(-20)), 0.3)
1916
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
1917
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3)
1918
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(0)), 0.1)
1919
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.1)
1920
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
1921
end
1922
end
1923
elseif torvel<1 and hitfloor~=nil then
1924
Anim="Idle"
1925
if attack==false and equipped == false then
1926
particleemitter2.Rate = 0 
1927
light.Color = Color3.new(0, 0, 0)
1928
light.Brightness = 0
1929
light.Range = 0
1930
Humanoid.CameraOffset = Vector3.new(0,0,0)
1931
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
1932
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0+4*math.cos(sine/60)),math.rad(0+4*math.sin(sine/60)),math.rad(0)),.2)
1933
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.07*math.sin(sine/60), 0) * angles(math.rad(-3), math.rad(0+15*math.cos(sine/60)), math.rad(10)),.2)
1934
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.07*math.sin(sine/60), 0) * angles(math.rad(-3), math.rad(0-15*math.cos(sine/60)), math.rad(-10)),.2)
1935
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(3), math.rad(-4)), 0.1)
1936
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(4)), 0.1)
1937
wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6)
1938
else
1939
for i = 0,1,0.13 do
1940
if attack==false and equipped == true then
1941
particleemitter2.Rate = 120
1942
light.Color = Color3.new(0, 255, 255)
1943
light.Brightness = 4.50
1944
light.Range = 14
1945
Humanoid.CameraOffset = Vector3.new(0,0,0)
1946
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
1947
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30+4*math.cos(sine/60)),math.rad(0+4*math.sin(sine/60)),math.rad(-15)),.2)
1948
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.07*math.sin(sine/60), 0) * angles(math.rad(90+10*math.cos(sine/60)), math.rad(0-25*math.cos(sine/60)), math.rad(0)),.2)
1949
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.07*math.sin(sine/60), 0) * angles(math.rad(-3), math.rad(0+15*math.cos(sine/60)), math.rad(-10)),.2)
1950
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(3), math.rad(-4)), 0.1)
1951
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(4)), 0.1)
1952
wld1.C0=euler(0,0,1.57*math.cos(sine/60))*cf(0,2.1-1.7*math.sin(sine/30),-1.6*i)
1953
--wld1.C0=euler(0,0,1.57)*cf(0,2.1,0)
1954
end
1955
end
1956
end
1957
elseif torvel>2 and torvel<22 and hitfloor~=nil then
1958
Anim="Walk"
1959
if attack==false and equipped == false then
1960
Humanoid.CameraOffset = Vector3.new(0,0,0)
1961
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
1962
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/7.5), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/15)), 0, 0), 0.1)
1963
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-4+2*math.sin(sine/18)),math.rad(0),math.rad(0)),.2)
1964
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20*math.cos(sine/20)), math.rad(0), math.rad(0)),.2)
1965
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20*math.cos(sine/20)), math.rad(0), math.rad(0)),.2)
1966
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.05*math.cos(sine/15), 0+0.25*math.sin(sine/15)) * CFrame.Angles(math.rad(0-20*math.sin(sine/15)), math.rad(3), math.rad(0)), 0.1)
1967
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.05*math.cos(sine/15), 0-0.25*math.sin(sine/15)) * CFrame.Angles(math.rad(0+20*math.sin(sine/15)), math.rad(-3), math.rad(0)), 0.1)
1968
wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6)
1969
else
1970
if attack==false and equipped == true then
1971
Humanoid.CameraOffset = Vector3.new(0,0,0)
1972
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
1973
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/7.5), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/15)), 0, 0), 0.1)
1974
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-4+2*math.sin(sine/18)),math.rad(0),math.rad(0)),.2)
1975
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20*math.cos(sine/20)), math.rad(0), math.rad(0)),.2)
1976
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20*math.cos(sine/20)), math.rad(0), math.rad(0)),.2)
1977
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.05*math.cos(sine/15), 0+0.25*math.sin(sine/15)) * CFrame.Angles(math.rad(0-20*math.sin(sine/15)), math.rad(3), math.rad(0)), 0.1)
1978
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.05*math.cos(sine/15), 0-0.25*math.sin(sine/15)) * CFrame.Angles(math.rad(0+20*math.sin(sine/15)), math.rad(-3), math.rad(0)), 0.1)
1979
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
1980
end
1981
end
1982
elseif torvel>=22 and hitfloor~=nil then
1983
Anim="Run"
1984
if attack==false and equipped == false then
1985
Humanoid.CameraOffset = Vector3.new(0,0,0)
1986
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)* angles(math.rad(20),math.rad(0),math.rad(0)),.2)
1987
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/6)), 0, 0), 0.8)
1988
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12+5*math.cos(sine/5)),math.rad(0),math.rad(0)),.2)
1989
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(35 + 70 *math.cos (sine / -5)),math.rad(0),math.rad(0)),.2)
1990
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(35 - 70 *math.cos (sine / -5)),math.rad(0),math.rad(0)),.2)
1991
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/4)/2, 0 *math.sin(sine/4)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/4)/1.2, math.rad(0), 0), .4)
1992
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/4)/2,0 *-math.sin(sine/4)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/4)/1.2, math.rad(0), 0), .4)
1993
wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6)
1994
else
1995
if attack==false and equipped == true then
1996
Humanoid.CameraOffset = Vector3.new(0,0,0)
1997
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)* angles(math.rad(20),math.rad(0),math.rad(0)),.2)
1998
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/6)), 0, 0), 0.8)
1999
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12+5*math.cos(sine/5)),math.rad(0),math.rad(0)),.2)
2000
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(35 + 70 *math.cos (sine / -5)),math.rad(0),math.rad(0)),.2)
2001
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(35 - 70 *math.cos (sine / -5)),math.rad(0),math.rad(0)),.2)
2002
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/4)/2, 0 *math.sin(sine/4)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/4)/1.2, math.rad(0), 0), .4)
2003
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/4)/2,0 *-math.sin(sine/4)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/4)/1.2, math.rad(0), 0), .4)
2004
wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
2005
end
2006
end
2007
end
2008
end
2009
end
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
--Thanks for using this :) -KillerDarkness0105