-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChop Chop.lua
497 lines (492 loc) · 20.5 KB
/
Chop Chop.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
--==Made by LuisPambid==--
--==Chop-Chop Operation==--
local player=game.Players.LocalPlayer
local char=player.Character
repeat wait() until player and char
local torso=char.Torso
local head=char.Head
local human=char.Humanoid
local arm={Left=char["Left Arm"], Right=char["Right Arm"]}
local leg={Left=char["Left Leg"], Right=char["Right Leg"]}
local c=function(f) coroutine.resume(coroutine.create(f)) end
local p=function(f) pcall(f) end
local add={
Part=function(par, a, c, col, t, s, cf, ms)
local p=Instance.new("Part", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
local m=Instance.new("BlockMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) end)
return p
end,
Wedge=function(par, a, c, col, t, s, cf, ms)
local p=Instance.new("WedgePart", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
local m=Instance.new("SpecialMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) m.MeshType="Wedge" end)
return p
end,
Gui=function(ins, par, bc, bg, tc, fs, text, t, s, pos)
local g=Instance.new(ins, par) pcall(function() g.BorderColor=BrickColor.new(bc) g.BackgroundColor=BrickColor.new(bg) g.TextColor=BrickColor.new(tc) g.FontSize=fs g.Font="ArialBold" g.Text=text g.Transparency=t g.Size=s g.Position=pos end)
return g
end,
Weld=function(par, p1, cf)
local w=Instance.new("Weld", par) pcall(function() w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() end)
return w
end,
Mesh=function(ins, par, s, of, t)
local m=Instance.new(ins, par) pcall(function() m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() m.MeshType=t end)
return m
end,
Sound=function(parent, id, volume, pitch)
local s=Instance.new("Sound", parent) pcall(function() s.SoundId=id s.Volume=volume s.Pitch=pitch end)
return s
end,
}
local scriptname="Chop-Chop" --Name here
pcall(function() player.Backpack[scriptname]:remove() char[scriptname]:remove() char["Objects"]:remove() player.PlayerGui[scriptname]:remove() end)
local model=Instance.new("Model", char) model.Name="Objects"
local modelB=Instance.new("Model", char) modelB.Name=scriptname
local gui=Instance.new("ScreenGui", player.PlayerGui) gui.Name=scriptname
local bin=Instance.new("HopperBin", player.Backpack) bin.Name=scriptname
local skincolor="Really black"
local body={}
local animate={}
local obj={}
--Variables--
local trailDeb=false
local hitDeb=false
local using=false
local keyDeb=false
local pressing=false
local combo=0
local mana=100
local range=20
local dmg=math.random(10, 25)
local form=false
local Forms
local pitch=.5
local speed=16
local car
local pitch=.8
local Slash=add.Sound(torso, "rbxasset://sounds//swordslash.wav", 1, pitch)
local Portal2=add.Sound(torso, "http://roblox.com/asset/?id=10209668", 1, 1)
local Charge=add.Sound(torso, "http://www.roblox.com/asset/?id=2101137", 1, .5)
local chargeLabel=add.Gui("TextLabel", gui, "Really black", "White", "Really black", "Size14", mana, 0, UDim2.new(0, 200, 0, 20), UDim2.new(0, 0, 0, 100))
local charge=add.Gui("TextLabel", chargeLabel, "Really black", "Bright blue", "Really black", "Size14", "", 0.5, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 0, 0))
local attackLabel=add.Gui("TextLabel", gui, "Really black", "Really black", "White", "Size18", "Festival(Hold(Q))", 0, UDim2.new(0, 150, 0, 50), UDim2.new(0, 0, 0, 150))
local attackLabel2=add.Gui("TextLabel", attackLabel, "Really black", "Really black", "White", "Size18", "Charge(F)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
local attackLabel3=add.Gui("TextLabel", attackLabel2, "Really black", "Really black", "White", "Size18", "Tornado(E)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
local attackLabel4=add.Gui("TextLabel", attackLabel3, "Really black", "Really black", "White", "Size18", "ChibiForm(C)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
local attackLabel5=add.Gui("TextLabel", attackLabel4, "Really black", "Really black", "White", "Size18", "CarForm(V)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
function createParts()
--==PARTS==--
body.Head=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
body.Torso=add.Part(model, false, false, skincolor, 1, Vector3.new(2, 2, 1), nil)
body.ArmLeft, body.ArmRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
body.LegLeft, body.LegRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
--==WELDS==--
body.HeadW=add.Weld(body.Head, body.Torso, CFrame.new(0, 1.5, 0))
body.TorsoW=add.Weld(body.Torso, torso, nil)
body.ArmLeftW, body.ArmRightW=add.Weld(body.ArmLeft, body.Torso, CFrame.new(-1.5, .5, 0)), add.Weld(body.ArmRight, body.Torso, CFrame.new(1.5, .5, 0))
body.LegLeftW, body.LegRightW=add.Weld(body.LegLeft, body.Torso, CFrame.new(-.5, -1.5, 0)), add.Weld(body.LegRight, body.Torso, CFrame.new(.5, -1.5, 0))
--==WELDS==--
add.Weld(body.Head, head, nil)
add.Weld(arm.Left, body.ArmLeft, CFrame.new(0, -.5, 0))
add.Weld(arm.Right, body.ArmRight, CFrame.new(0, -.5, 0))
torso["Left Hip"].Part0=torso
torso["Right Hip"].Part0=torso
---------------------------------------------------------------------------------------
animate={
["Head"]=function(cf)
body.HeadW.C1=CFrame.new(0, 1.5, 0)*cf
end;
["Torso"]=function(cf) body.Torso.Transparency=0 torso.Transparency=1
body.TorsoW.C1=cf
c(function()
wait(0)
body.Torso.Transparency=1 torso.Transparency=0
end)
end;
["ArmLeft"]=function(cf)
body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*cf
end;
["ArmRight"]=function(cf)
body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*cf
end;
["LegLeft"]=function(cf)
legLeftW=add.Weld(leg.Left, body.LegLeft, CFrame.new(0, -.5, 0))
body.LegLeftW.C1=CFrame.new(-.5, -1.5, 0)*cf
c(function()
wait(0)
legLeftW:remove()
end)
end;
["LegRight"]=function(cf)
legRightW=add.Weld(leg.Right, body.LegRight, CFrame.new(0, -.5, 0))
body.LegRightW.C1=CFrame.new(.5, -1.5, 0)*cf
c(function()
wait(0)
legRightW:remove()
end)
end;
}
--==Objects==--
end
function removeParts()
p(function()
if torso then
torso["Left Hip"].Part0=torso
torso["Right Hip"].Part0=torso
end
for i, v in pairs(model:children()) do v:remove() end for i, v in pairs(modelB:children()) do v:remove() end for i, v in pairs(char:children()) do v.Transparency=0 end
wait()
torso.Transparency=0
end)
end
function hit(h)
if using==true then
if h.Parent~=char and h.Parent:findFirstChild("Humanoid") and hitDeb==false then hitDeb=true
local hHuman=h.Parent:findFirstChild("Humanoid")
hHuman.Health=hHuman.Health-dmg
local fakeM=Instance.new("Model", workspace) fakeM.Name=dmg
local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
local effect=add.Part(fakeM, false, false, "Bright red", 0, Vector3.new(1, 1, 1), h.CFrame) effect.Name="Head"
local fakeMesh=add.Mesh("CylinderMesh", effect, Vector3.new(1, .5, 1), nil, nil)
local bp=Instance.new("BodyPosition", effect) bp.maxForce=Vector3.new(math.huge, math.huge, math.huge) bp.position=h.Position+Vector3.new(0, 4, 0)
game.Debris:addItem(fakeM, 2)
wait(.5)
hitDeb=false
end
end
end
function running()
if form==false then speed=16
animate.Torso(CFrame.new())
animate.Head(CFrame.new())
animate.ArmLeft(CFrame.Angles(-math.rad(15), 0, -math.rad(15)))
animate.ArmRight(CFrame.Angles(-math.rad(15), 0, math.rad(15)))
elseif form==true and Form=="Chibi" then speed=16 Portal2:play()
animate.Torso(CFrame.new(0, -1.5, 0))
wait()
torso.Transparency=1
animate.ArmLeft(CFrame.new(.5, 0, 0)*CFrame.Angles(0, 0, -math.rad(45)))
animate.ArmRight(CFrame.new(-.5, 0, 0)*CFrame.Angles(0, 0, math.rad(45)))
elseif form==true and Form=="Car" then speed=100 Portal2:play()
human.WalkSpeed=speed
animate.Torso(CFrame.new(0, -2, 0)*CFrame.Angles(-math.rad(90), 0, 0))
animate.Head(CFrame.new(0, -1.5, 1)*CFrame.Angles(math.rad(90), 0, 0))
animate.ArmLeft(CFrame.new(.5, 0, 0)*CFrame.Angles(math.rad(180), 0, math.rad(15)))
animate.ArmRight(CFrame.new(-.5, 0, 0)*CFrame.Angles(math.rad(180), 0, -math.rad(15)))
car=Instance.new("Model", char) car.Name="Car"
local handle=add.Part(car, false,true, "Medium stone grey", 0, Vector3.new(.5, 7.2, .5), nil)
local handleM=add.Mesh("CylinderMesh", handle, Vector3.new(1, 1, 1), nil, nil)
local handleW=add.Weld(handle, body.Torso, CFrame.new(0, 2, 0)*CFrame.Angles(0, 0, -math.rad(90)))
local TireLeft=add.Part(car, false, true, "Really black", 0, Vector3.new(2, 1, 2), nil)
TireLeftM=add.Mesh("CylinderMesh", TireLeft, Vector3.new(1, 1, 1), nil, nil)
TireLeftW=add.Weld(TireLeft, handle, CFrame.new(0, -3, 0))
local TireRight=add.Part(car, false, true, "Really black", 0, Vector3.new(2, 1, 2), nil)
TireRightM=add.Mesh("CylinderMesh", TireRight, Vector3.new(1, 1, 1), nil, nil)
TireRightW=add.Weld(TireRight, handle, CFrame.new(0, 3, 0))
local handle=add.Part(car, false,true, "Medium stone grey", 0, Vector3.new(.5, 7.2, .5), nil)
local handleM=add.Mesh("CylinderMesh", handle, Vector3.new(1, 1, 1), nil, nil)
local handleW=add.Weld(handle, body.Torso, CFrame.new(0, -2, 0)*CFrame.Angles(0, 0, -math.rad(90)))
local TireLeft=add.Part(car, false, true, "Really black", 0, Vector3.new(2, 1, 2), nil)
TireLeftM=add.Mesh("CylinderMesh", TireLeft, Vector3.new(1, 1, 1), nil, nil)
TireLeftW=add.Weld(TireLeft, handle, CFrame.new(0, -3, 0))
local TireRight=add.Part(car, false, true, "Really black", 0, Vector3.new(2, 1, 2), nil)
TireRightM=add.Mesh("CylinderMesh", TireRight, Vector3.new(1, 1, 1), nil, nil)
TireRightW=add.Weld(TireRight, handle, CFrame.new(0, 3, 0))
c(function()
while form do wait()
animate.Torso(CFrame.new(0, -2, 0)*CFrame.Angles(-math.rad(90), 0, 0))
animate.LegLeft(CFrame.Angles(0, 0, 0))
animate.LegRight(CFrame.Angles(0, 0, 0))
end
animate.Torso(CFrame.new())
animate.Head(CFrame.new())
car:remove()
end)
end
human.WalkSpeed=speed
end
function computePos(pos, pos2)
local pos3=Vector3.new(pos2.x, pos.y, pos2.z)
torso.CFrame=CFrame.new(pos, pos3)
return pos3
end
function nearTorso(pos, dis)
local temp
local distance=dis
for i, v in pairs(workspace:children()) do
if v:isA("Model") then
temp=v:findFirstChild("Torso")
local humanoid=v:findFirstChild("Humanoid")
if temp and humanoid and v~=char and (temp.CFrame.p-pos).magnitude<distance then
distance=(temp.CFrame.p-pos).magnitude
return temp
end
end
end
end
function trail(pos, cf)
c(function()
local old=(pos.CFrame*cf).p
while trailDeb==true do
wait()
local new=(pos.CFrame*cf).p
local mag=(old-new).magnitude
local dis=(old+new)/2
local trail=add.Part(workspace, true, false, "White", 0, Vector3.new(.5, mag, .5), CFrame.new(dis, new)*CFrame.Angles(math.pi/2, 0, 0)) trail.Name="Trail"
local tMesh=add.Mesh("CylinderMesh", trail, Vector3.new(.5, 1, .5), nil, nil)
trail.Touched:connect(hit)
old=new
c(function()
for i=1, 0, -.1 do
wait()
tMesh.Scale=tMesh.Scale*Vector3.new(i, 1, i)
end
trail:remove()
end)
c(function()
for i=0, 1, .1 do
wait()
trail.Transparency=i
end
end)
end
end)
end
function Attack() combo=combo+1
if using==false then
if form==false and keyDeb==false then
using=true
for i, v in pairs(char:children()) do
if v:isA("BasePart") then
v.Touched:connect(hit)
end
end
if combo==1 then Slash:play() print("Right Hook")
trailDeb=true
trail(body.ArmRight, CFrame.new(0, -1.5, 0))
for i=0, 1, .1 do wait()
animate.Torso(CFrame.Angles(0, math.rad(15)*i, 0))
animate.ArmRight(CFrame.new(-.5*i, 0, -range*i)*CFrame.Angles(math.rad(90), 0, 0))
end
for i=1, 0, -.1 do wait()
animate.Torso(CFrame.Angles(0, math.rad(15)*i, 0))
animate.ArmRight(CFrame.new(-.5*i, 0, -range*i)*CFrame.Angles(math.rad(90), 0, 0))
end
trailDeb=false
if combo>2 then Slash:play()
trailDeb=true
trail(body.ArmLeft, CFrame.new(0, -1.5, 0))
for i=0, 1, .1 do wait()
animate.Torso(CFrame.Angles(0, -math.rad(15)*i, 0))
animate.ArmLeft(CFrame.new(.5*i, 0, -range*i)*CFrame.Angles(math.rad(90), 0, 0))
end
for i=1, 0, -.1 do wait()
animate.Torso(CFrame.Angles(0, -math.rad(15)*i, 0))
animate.ArmLeft(CFrame.new(.5*i, 0, -range*i)*CFrame.Angles(math.rad(90), 0, 0))
end
trailDeb=false
end
if combo>3 then Slash:play() print("Both Hook")
trailDeb=true
for i=0, 1, .1 do wait()
animate.ArmLeft(CFrame.new(.5*i, 0, -range*i)*CFrame.Angles(math.rad(90), 0, 0))
animate.ArmRight(CFrame.new(-.5*i, 0, -range*i)*CFrame.Angles(math.rad(90), 0, 0))
end
for i=1, 0, -.1 do wait()
animate.ArmLeft(CFrame.new(.5*i, 0, -range*i)*CFrame.Angles(math.rad(90), 0, 0))
animate.ArmRight(CFrame.new(-.5*i, 0, -range*i)*CFrame.Angles(math.rad(90), 0, 0))
end
trailDeb=false
end
if combo>4 then print("Rappid Punch")
trailDeb=true
for i=1, 2 do wait()
for i=0, 1, .2 do wait() Slash:play()
animate.ArmLeft(CFrame.new(math.random(-2, 2), math.random(-2, 2), -range*i)*CFrame.Angles(math.rad(90), 0, 0))
animate.ArmRight(CFrame.new(math.random(-2, 2), math.random(-2, 2), -range-(-range*i))*CFrame.Angles(math.rad(90), 0, 0))
end
for i=0, 1, .2 do wait()
animate.ArmLeft(CFrame.new(math.random(-2, 2), math.random(-2, 2), -range-(-range*i))*CFrame.Angles(math.rad(90), 0, 0))
animate.ArmRight(CFrame.new(math.random(-2, 2), math.random(-2, 2), -range*i)*CFrame.Angles(math.rad(90), 0, 0))
end
end
trailDeb=false
end
end
trailDeb=false
animate.ArmLeft(CFrame.Angles(0, 0, 0))
animate.ArmRight(CFrame.Angles(0, 0, 0))
using=false
combo=0
running()
end
end
end
local Specials={
["Festival"]=function() human.WalkSpeed=0
pressing=true
for i=0, 1, .1 do wait()
animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(135)*i))
animate.ArmRight(CFrame.Angles(0, 0, math.rad(135)*i))
animate.LegLeft(CFrame.Angles(0, 0, -math.rad(45)*i))
animate.LegRight(CFrame.Angles(0, 0, math.rad(45)*i))
end
trailDeb=true
trail(body.ArmLeft, CFrame.new(0, -1.5, 0))
trail(body.ArmRight, CFrame.new(0, -1.5, 0))
trail(body.LegLeft, CFrame.new(0, -1.5, 0))
trail(body.LegRight, CFrame.new(0, -1.5, 0))
while pressing and mana>=1 do wait() mana=mana-1 Slash:play()
pcall(function()
local touchHelper=add.Part(workspace, true, false, "White", 1, Vector3.new(range*1.5, range*1.5, range*1.5), torso.CFrame)
touchHelper.Touched:connect(hit)
c(function() wait(1)
touchHelper:remove()
end)
end)
for i, v in pairs(char:children()) do
if v.ClassName=="Hat" then
pcall(function()
v.Handle.Transparency=1
torso.Transparency=1
head.Transparency=1
end)
end
pcall(function() v.face.Transparency=1 end)
end
animate.ArmLeft(CFrame.new(math.random(-range, range), math.random(-range, range), math.random(-range, range))*CFrame.Angles(math.random(-range, range), math.random(-45, 45), math.random(-45, 45)))
animate.ArmRight(CFrame.new(math.random(-range, range), math.random(-range, range), math.random(-range, range))*CFrame.Angles(math.random(-range, range), math.random(-45, 45), math.random(-45, 45)))
animate.LegLeft(CFrame.new(math.random(-range, range), math.random(-range, range), math.random(-range, range))*CFrame.Angles(math.random(-range, range), math.random(-45, 45), math.random(-45, 45)))
animate.LegRight(CFrame.new(math.random(-range, range), math.random(-range, range), math.random(-range, range))*CFrame.Angles(math.random(-range, range), math.random(-45, 45), math.random(-45, 45)))
end
trailDeb=false
for i, v in pairs(char:children()) do
if v.ClassName=="Hat" then
pcall(function()
v.Handle.Transparency=0
torso.Transparency=0
head.Transparency=0
end)
end
pcall(function() v.face.Transparency=0 end)
end
for i=1, 0, -.1 do wait()
animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(135)*i))
animate.ArmRight(CFrame.Angles(0, 0, math.rad(135)*i))
animate.LegLeft(CFrame.Angles(0, 0, -math.rad(45)*i))
animate.LegRight(CFrame.Angles(0, 0, math.rad(45)*i))
end
running()
human.WalkSpeed=speed
end;
["Charge"]=function() human.WalkSpeed=0
pressing=true
for i=0, 1, .1 do wait()
animate.ArmLeft(CFrame.Angles(-math.rad(15)*i, 0, -math.rad(15)*i))
animate.ArmRight(CFrame.Angles(math.rad(135)*i, 0, math.rad(15)*i))
end
Charge:play()
while pressing do wait() if mana<100 then mana=mana+1 end
local aura=add.Part(workspace, true, false, "Bright blue", .5, Vector3.new(1, 1, 1), torso.CFrame*CFrame.new(0, -2, 0)*CFrame.Angles(0, math.rad(math.random(-45, 45)), 0)) aura.Name="Effect"
local auraM=add.Mesh("SpecialMesh", aura, Vector3.new(1, 1, 1), nil, "File") auraM.MeshId="http://www.roblox.com/asset/?id=20329976"
c(function()
for i=0, 3, .1 do wait()
auraM.Scale=auraM.Scale+Vector3.new(i, i/2, i)
end
c(function()
for i=.5, 1, .1 do
wait()
aura.Transparency=i
end
end)
aura:remove()
end)
end
for i=1, 0, -.1 do wait()
animate.ArmLeft(CFrame.Angles(-math.rad(15)*i, 0, -math.rad(15)*i))
animate.ArmRight(CFrame.Angles(math.rad(135)*i, 0, -math.rad(15)*i))
end
running()
human.WalkSpeed=speed
end;
["Tornado"]=function() human.WalkSpeed=0
mana=mana-20
for i=0, 1, .1 do wait()
animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(90)*i))
animate.ArmRight(CFrame.Angles(0, 0, math.rad(90)*i))
animate.LegLeft(CFrame.new()) animate.LegRight(CFrame.new())
end
trailDeb=true
trail(body.ArmLeft, CFrame.new(0, -1.5, 0))
trail(body.ArmRight, CFrame.new(0, -1.5, 0))
for i=1, 50 do wait() Slash:play()
animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
animate.ArmLeft(CFrame.new(-i, i/25, 0)*CFrame.Angles(0, 0, -math.rad(90)))
animate.ArmRight(CFrame.new(i, i/25, 0)*CFrame.Angles(0, 0, math.rad(90)))
animate.LegLeft(CFrame.new()) animate.LegRight(CFrame.new())
end
for i=50, 0, -1 do wait() Slash:play()
animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
animate.ArmLeft(CFrame.new(-i, i/25, 0)*CFrame.Angles(0, 0, -math.rad(90)))
animate.ArmRight(CFrame.new(i, i/25, 0)*CFrame.Angles(0, 0, math.rad(90)))
animate.LegLeft(CFrame.new()) animate.LegRight(CFrame.new())
end
trailDeb=false
for i=1, 0, -.1 do wait()
animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(90)*i))
animate.ArmRight(CFrame.Angles(0, 0, math.rad(90)*i))
end
human.WalkSpeed=speed
end;
}
bin.Selected:connect(function(mouse) createParts()
running()
mouse.Button1Down:connect(Attack)
mouse.KeyDown:connect(function(key)
local key=key:lower()
if form==false and using==false then
if key=="q" and mana>=0 and keyDeb==false then
keyDeb=true using=true
Specials.Festival()
keyDeb=false using=false
end
if key=="e" and keyDeb==false and mana>=20 then
keyDeb=true using=true
Specials.Tornado()
keyDeb=false using=false
end
if key=="f" and keyDeb==false then
keyDeb=true
Specials.Charge()
keyDeb=false
end
end
if key=="c" and keyDeb==false and form==false then
keyDeb=true form=true Form="Chibi"
running()
keyDeb=false
elseif key=="c" and keyDeb==false and form==true then
keyDeb=true form=false Form=nil
running()
keyDeb=false
end
if key=="v" and keyDeb==false and form==false then
keyDeb=true form=true Form="Car"
running()
keyDeb=false
elseif key=="v" and keyDeb==false and form==true then
keyDeb=true form=false Form=nil
running()
pcall(function() car:remove() end)
keyDeb=false
end
end)
mouse.KeyUp:connect(function(key)
if form==false then
if key=="q" then pressing=false end
if key=="f" then pressing=false end
end
end)
while wait() do charge.Size=UDim2.new(mana/100, 0, 1, 0) chargeLabel.Text=mana end
end)
bin.Deselected:connect(function() removeParts() end)--mediafire