-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDSword.lua
494 lines (490 loc) · 21.3 KB
/
DSword.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
--==Made by LuisPambid==--
--==DSword==--
local antiSteal="LuisPambid"
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 hat
for i, v in pairs(char:children()) do if v:isA("Hat") then hat=v end end
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
pcall(function() torso.roblox:clone().Parent=fake.Torso torso.roblox:remove() head.face:remove() for i, v in pairs(char:children()) do if v.ClassName=="Hat" then v:remove() end v.Transparency=1 end end)
local add={
Part=function(par, a, c, col, t, s, cf)
local p=Instance.new("Part", par) 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()
return p
end,
Weld=function(par, p1, cf)
local w=Instance.new("Weld", par) w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new()
return w
end,
Mesh=function(ins, par, s, of, t)
local m=Instance.new(ins, par) m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() pcall(function() m.MeshType=t end)
return m
end
}
local scriptname="DSword"
pcall(function() char[scriptname]:remove() end)
local model=Instance.new("Model", char) model.Name=scriptname
local bin=Instance.new("HopperBin", player.Backpack) bin.Name=model.Name
local skincolor="Really black"
local fake={}
local weld={}
local mesh={}
fake.arm={}
fake.leg={}
fake.torso=nil
fake.Mesh={} fake.Weld={}
--====--
weld.arm={}
weld.leg={}
weld.torso=nil
--====--
mesh.arm={}
mesh.leg={}
--==FAKE, MESH, WELDZ==--
fake.arm.left=add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil)
fake.arm.right=add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil)
fake.leg.left=add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil)
fake.leg.right=add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil)
fake.torso=add.Part(model, false, false, skincolor, 0, Vector3.new(2, 2, 1), nil)
fake.head=head:clone() fake.head.Parent=model fake.head.BrickColor=BrickColor.new(skincolor) fake.head.Transparency=0
-------------------------
mesh.arm.left=add.Mesh("BlockMesh", fake.arm.left, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
mesh.arm.right=add.Mesh("BlockMesh", fake.arm.right, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
mesh.leg.left=add.Mesh("BlockMesh", fake.leg.left, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
mesh.leg.right=add.Mesh("BlockMesh", fake.leg.right, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
-------------------------
weld.arm.left=add.Weld(fake.arm.left, fake.torso, CFrame.new(-1.5, .5, 0))
weld.arm.right=add.Weld(fake.arm.right, fake.torso, CFrame.new(1.5, .5, 0))
weld.leg.left=add.Weld(fake.leg.left, fake.torso, CFrame.new(-.5, -1.5, 0))
weld.leg.right=add.Weld(fake.leg.right, fake.torso, CFrame.new(.5, -1.5, 0))
weld.torso=add.Weld(fake.torso, torso, nil)
weld.head=add.Weld(fake.head, fake.torso, CFrame.new(0, 1.5, 0))
pcall(function() torso.roblox:remove() head.face:remove() for i, v in pairs(char:children()) do if v.ClassName=="Hat" then v:remove() end v.Transparency=1 end end)
--==SIGN==--
fake.Rot=add.Part(model, false, false, "Really black", 0, Vector3.new(1, 1, 1), nil)
fake.Mesh.Rot=add.Mesh("CylinderMesh", fake.Rot, Vector3.new(1.5, .5, 1.5), nil, nil)
fake.Weld.Rot=add.Weld(fake.Rot, fake.torso, CFrame.new(0, 0, -.3)*CFrame.Angles(math.rad(90), 0, 0))
fake.L=add.Part(model, false, false, "Bright yellow", 0, Vector3.new(1, 1, 1), nil)
fake.Mesh.L=add.Mesh("BlockMesh", fake.L, Vector3.new(.25, .5, 1), nil, nil)
fake.Weld.L=add.Weld(fake.L, fake.Rot, CFrame.new(.25, -0.05, 0))
fake.L2=add.Part(model, false, false, "Bright yellow", 0, Vector3.new(1, 1, 1), nil)
fake.Mesh.L2=add.Mesh("BlockMesh", fake.L2, Vector3.new(.75, .5, .25), nil, nil)
fake.Weld.L2=add.Weld(fake.L2, fake.Rot, CFrame.new(0, -0.05, .4))
c(function() for i=0, math.huge, .1 do wait() fake.Weld.Rot.C0=CFrame.Angles(0, i, 0) end end)
--==MANA==--
local gui=Instance.new("ScreenGui", player.PlayerGui)
local label=Instance.new("TextLabel", gui)
label.Text="--==100%==--"
label.Position=UDim2.new(0, 0, 0, 200)
label.Size=UDim2.new(0, 200, 0, 20)
label.BorderColor=BrickColor.Black() label.BackgroundColor=BrickColor.White()
label.TextColor=BrickColor.Black()
local charge=label:clone() charge.Parent=label
charge.Position=UDim2.new()
charge.Text=""
charge.Size=UDim2.new(1, 0, 1, 0)
charge.BorderColor=BrickColor.Black() charge.BackgroundColor=BrickColor.Yellow() charge.Transparency=.5
----------------------------------------------------------------------------------------------
local colorA="Cyan"
local colorB="Really black"
local bladecolor="Medium stone grey"
local mana=100
c(function()
while true do wait()
label.Text="--=="..mana.."%==--"
charge.Size=UDim2.new(mana/100, 0, 1, 0)
end
end)
--bag--
local bag=add.Part(model, false, false, colorA, 0, Vector3.new(.5, 4, .2), nil)
local bagweld=add.Weld(bag, fake.torso, CFrame.new(0, 0, .6)*CFrame.Angles(0, 0, -math.rad(45)))
local tip=add.Part(model, false, false, colorA, 0, Vector3.new(.2, 1, .5), nil)
local tipmesh=add.Mesh("SpecialMesh", tip, Vector3.new(1, 1, 1), nil, "Wedge")
local tipweld=add.Weld(tip, bag, CFrame.new(0, -2.5, 0)*CFrame.Angles(-math.rad(90), -math.rad(90), math.rad(90)))
local a=add.Part(model, false, false, colorB, 0, Vector3.new(.55, .5, .25), nil)
local aweld=add.Weld(a, bag, nil)
local b=add.Part(model, false, false, colorB, 0, Vector3.new(.55, .5, .25), nil)
local bweld=add.Weld(b, bag, CFrame.new(0, -1, 0))
local c2=add.Part(model, false, false, colorB, 0, Vector3.new(.55, .5, .25), nil)
local cweld=add.Weld(c2, bag, CFrame.new(0, 1, 0))
local d=add.Part(model, false, false, colorB, 0, Vector3.new(.25, 3, .25), nil)
local dweld=add.Weld(d, bag, nil)
local tipe=add.Part(model, false, false, colorB, 0, Vector3.new(.25, .5, .25), nil)
local tipmeshe=add.Mesh("SpecialMesh", tipe, Vector3.new(1, 1, 1), nil, "Wedge")
local tipwelde=add.Weld(tipe, tip, CFrame.new(0, -.2, 0))
--sword--
local smodel=Instance.new("Model", model) smodel.Name="DSwordB"
local handle=add.Part(smodel, false, false, colorB, 0, Vector3.new(.2, 2, .2), nil)
local handleweld=add.Weld(handle, bag, CFrame.new(0, 3, 0)*CFrame.Angles(0, -math.rad(90), math.rad(180)))
local handlemesh=add.Mesh("CylinderMesh", handle, Vector3.new(1, 1, 1), nil, nil)
local stip=add.Part(smodel, false, false, colorA, 0, Vector3.new(.4, .4, .4), nil)
local stipweld=add.Weld(stip, handle, CFrame.new(0, -1, 0))
local stipmesh=add.Mesh("SpecialMesh", stip, Vector3.new(1, 1, 1), nil, "Sphere")
local handleb=add.Part(smodel, false, false, colorA, 0, Vector3.new(.55, .1, .55), nil)
local handlebmesh=add.Mesh("CylinderMesh", handleb, Vector3.new(1, .8, 1), nil, nil)
local handlebweld=add.Weld(handleb, handle, CFrame.new(0, 1, 0))
local blade=add.Part(smodel, false, false, bladecolor, 0, Vector3.new(.1, 3, .4), nil) blade.Reflectance=.5
local bladeweld=add.Weld(blade, handleb, CFrame.new(0, 1.5, 0))
local blademesh=add.Mesh("BlockMesh", blade, Vector3.new(.5, 1, 1), nil, nil)
local bladetip=add.Part(smodel, false, false, bladecolor, 0, Vector3.new(.1, 1, .4), nil) bladetip.Reflectance=.5
local bladetipmesh=add.Mesh("SpecialMesh", bladetip, Vector3.new(.5, 1, 1), nil, "Wedge")
local bladetipweld=add.Weld(bladetip, blade, CFrame.new(0, 2, 0))
local a=add.Part(smodel, false, false, colorB, 0, Vector3.new(.1, .25, .4), nil)
local amesh=add.Mesh("BlockMesh", a, Vector3.new(.8, 1, 1.1), nil, nil)
local aweld=add.Weld(a, handleb, CFrame.new(0, .22, 0))
local b=add.Part(smodel, false, false, colorB, 0, Vector3.new(.1, .5, .1), nil)
local bmesh=add.Mesh("BlockMesh", b, Vector3.new(.5, 1, .5), nil, nil)
local bweld=add.Weld(b, a, CFrame.new(0, -.1, .3)*CFrame.Angles(math.rad(135), 0, 0))
local cc=add.Part(smodel, false, false, colorB, 0, Vector3.new(.1, .75, .1), nil)
local cmesh=add.Mesh("BlockMesh", cc, Vector3.new(.5, 1, .5), nil, nil)
local cweld=add.Weld(cc, handleb, CFrame.new(0, -.25, .22)*CFrame.Angles(-math.rad(135), 0, 0))
local d=add.Part(smodel, false, false, colorB, 0, Vector3.new(.35, 1, .1), nil)
local dweld=add.Weld(d, blade, CFrame.new(0, 0, 0))
local dmesh=add.Mesh("BlockMesh", d, Vector3.new(.6, 2.8, 1), nil, nil)
local tdeb=false
local bdeb=false
local rdeb=false
local deb=false
local tsize=.5
local move=1
local dmg=math.random(5, 10)
local wspeed=32
local hDeb=false
local dmg=math.random(5, 10)
function hit(h)
local humanoid=h.Parent:findFirstChild("Humanoid")
if humanoid and h.Parent~=char and hDeb==false then
hDeb=true
--c(function()
local fakeP=add.Part(workspace, true, false, "Bright yellow", 0, Vector3.new(1, 1, 1), CFrame.new(h.CFrame.p, torso.CFrame.p))
local mesh=add.Mesh("SpecialMesh", fakeP, Vector3.new(1, 1, 1), nil, "File") mesh.MeshId="http://www.roblox.com/asset/?id=3270017"
c(function()
for i=0, 1, .05 do
wait()
fakeP.Mesh.Scale=fakeP.Mesh.Scale+Vector3.new(i, i, 0)
end
fakeP:remove()
end)
c(function()
for i=0, 1, .05 do
wait()
fakeP.Transparency=i
end
end)
humanoid.Health=humanoid.Health-dmg
local fakeM=Instance.new("Model", workspace) fakeM.Name=dmg
local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
local fakeP=add.Part(fakeM, false, false, "Bright red", 0, Vector3.new(1, 1, 1), h.CFrame) fakeP.Name="Head"
local fakeMesh=add.Mesh("CylinderMesh", fakeP, Vector3.new(1, .2, 1), nil, nil)
local bp=Instance.new("BodyPosition", fakeP) bp.maxForce=Vector3.new(math.huge, math.huge, math.huge) bp.position=h.Position+Vector3.new(0, 4, 0)
game.Debris:addItem(fakeM, 2)
pcall(function()h.Parent:findFirstChild("Torso").RotVelocity=Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))end)
pcall(function()h.Parent:findFirstChild("Torso").Velocity=Vector3.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100))end)
wait()
hDeb=false
--end)
end
end
for i, v in pairs(smodel:children()) do v.Touched:connect(hit) end
function trail(pos, cf, col)
c(function()
local old=(pos.CFrame*cf).p
while tdeb==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, col, 0, Vector3.new(tsize, mag, tsize), CFrame.new(dis, new)*CFrame.Angles(math.pi/2, 0, 0))
local tMesh=add.Mesh("CylinderMesh", trail, Vector3.new(.5, 1, .5), nil, nil)
old=new
c(function()
for i=1, 0, -.2 do
wait()
trail.Mesh.Scale=trail.Mesh.Scale*Vector3.new(i, 1, i)
end
trail:remove()
end)
c(function()
for i=0, 1, .2 do
wait()
trail.Transparency=i
end
end)
end
end)
end
local actions={
["Spin"]=function()
if tdeb==false then tdeb=true
trail(bladetip, CFrame.new(), bladecolor)
for i=0, 1, .1 do
wait()
weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(0, 0, -math.rad(90)*i)
weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i)
handleweld.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(0, math.rad(180)-(math.rad(180)*i), math.rad(180))
end
c(function()
while tdeb do wait()
local trail=add.Part(workspace, true, false, colorA, 0, Vector3.new(1, 1, 1), fake.torso.CFrame*CFrame.Angles(math.random(-45, 45), math.random(-45, 45), math.random(-45, 45)))
local tMesh=add.Mesh("BlockMesh", trail, Vector3.new(1, 1, 1), nil, nil)
old=new
c(function()
for i=0, 2, .2 do
wait()
trail.Mesh.Scale=trail.Mesh.Scale+Vector3.new(i, i, i)
end
trail:remove()
end)
c(function()
for i=0, 1, .1 do
wait()
trail.Transparency=i
end
end)
end
end)
for i=1, 100 do
wait()
weld.torso.C1=CFrame.Angles(0, math.rad(45)*i, 0)
end
tdeb=false
for i=1, 0, -.1 do
wait()
weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(0, 0, -math.rad(90)*i)
weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i)
handleweld.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90)-(math.rad(90)*i), math.rad(180), math.rad(180))
end
end
end;
["ForeSpin"]=function()
if tdeb==false then tdeb=true
trail(bladetip, CFrame.new(), bladecolor)
for i=0, 1, .1 do
wait()
weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(math.rad(180)*i, 0, math.rad(45)*i)
weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(math.rad(180)*i, 0, -math.rad(45)*i)
handleweld.C1=CFrame.new(0, -1.5+(-.5*i), 0)*CFrame.Angles(0, math.rad(180)-(math.rad(180)*i), math.rad(225))
end
for i=1, 100 do
wait()
weld.torso.C1=CFrame.new(0, 0, -i/10)*CFrame.Angles(-math.rad(45)*i, 0, 0)
end
tdeb=false
for i=1, 0, -.1 do
wait()
weld.torso.C1=CFrame.new(0, 0, -10*i)
weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(math.rad(180)*i, 0, math.rad(45)*i)
weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(math.rad(180)*i, 0, -math.rad(45)*i)
handleweld.C1=CFrame.new(0, -1.5+(-.5*i), 0)*CFrame.Angles(math.rad(90)-(math.rad(90)*i), math.rad(180)-(math.rad(180)*i), math.rad(225))
end
end
end;
["Coup"]=function()
if tdeb==false then tdeb=true
trail(bladetip, CFrame.new(), bladecolor)
for i=0, 1, .1 do
wait()
weld.torso.C1=CFrame.new(0, 0, -10*i)*CFrame.Angles(0, math.rad(90)*i, 0)
weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(math.rad(45)*i, 0, math.rad(90)*i)
end
tdeb=false
for i=1, 0, -.1 do
wait()
weld.torso.C1=CFrame.new(0, 0, -10*i)*CFrame.Angles(0, math.rad(90)*i, 0)
weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(math.rad(45)*i, 0, math.rad(90)*i)
end
end
end;
["Fence"]=function()
if tdeb==false then tdeb=true
trail(bladetip, CFrame.new(), bladecolor)
for i=0, 1, .1 do
wait()
weld.torso.C1=CFrame.new(0, 0, 0)*CFrame.Angles(0, math.rad(90)*i, 0)
weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i)
handleweld.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(0, math.rad(180)-(math.rad(180)*i), math.rad(180))
end
c(function()
while tdeb do wait()
local trail=add.Part(workspace, true, false, colorA, 0, Vector3.new(1, 1, 1), bladetip.CFrame*CFrame.Angles(math.random(-45, 45), math.random(-45, 45), math.random(-45, 45)))
local tMesh=add.Mesh("BlockMesh", trail, Vector3.new(1, 1, 1), nil, nil)
old=new
c(function()
for i=0, 2, .2 do
wait()
trail.Mesh.Scale=trail.Mesh.Scale+Vector3.new(i, i, i)
end
trail:remove()
end)
c(function()
for i=0, 1, .2 do
wait()
trail.Transparency=i
end
end)
end
end)
for i=1, 100 do
wait()
weld.torso.C1=CFrame.new(0, 0, -i)*CFrame.Angles(0, math.rad(90), 0)
weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(math.rad(45)*i, 0, math.rad(90))
end
for i=1, 0, -.1 do
wait()
weld.torso.C1=CFrame.new(0, 0, -100*i)*CFrame.Angles(0, math.rad(90)*i, 0)
weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i)
handleweld.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90)-(math.rad(90)*i), math.rad(180), math.rad(180))
end
tdeb=false
end
end;
["CHARGE"]=function()
human.WalkSpeed=0
for i=0, 1, .1 do
wait()
weld.torso.C1=CFrame.Angles(0, math.rad(45)*i, 0)
weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(135)*i)
handleweld.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(0, math.rad(180)-(math.rad(180)*i), math.rad(180))
end
while bdeb do wait()
if mana>0 and mana<100 then mana=mana+1 end
local trail=add.Part(workspace, true, false, colorA, 0, Vector3.new(1, 1, 1), fake.torso.CFrame*CFrame.Angles(math.random(-45, 45), math.random(-45, 45), math.random(-45, 45)))
local tMesh=add.Mesh("BlockMesh", trail, Vector3.new(1, 1, 1), nil, nil)
local trailb=add.Part(workspace, true, false, colorA, 0, Vector3.new(4, 2, 4), fake.torso.CFrame*CFrame.new(0, -3, 0)*CFrame.Angles(math.rad(90), 0, 0))
local tMeshb=add.Mesh("SpecialMesh", trailb, Vector3.new(1, 1, 1), nil, "File") tMeshb.MeshId="http://www.roblox.com/asset/?id=3270017"
local trailc=add.Part(workspace, true, false, colorA, 0, Vector3.new(1, 1, 1), fake.torso.CFrame*CFrame.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))*CFrame.Angles(math.random(-45, 45), math.random(-45, 45), math.random(-45, 45)))
local tMeshc=add.Mesh("BlockMesh", trailc, Vector3.new(1, 1, 1), nil, nil)
old=new
c(function()
for i=0, 2.5, .2 do
wait()
trail.Mesh.Scale=trail.Mesh.Scale+Vector3.new(i, i, i)
trailb.Mesh.Scale=trailb.Mesh.Scale+Vector3.new(i, i, 0)
trailc.Mesh.Scale=trailc.Mesh.Scale+Vector3.new(i, i, i)
end
trail:remove()
trailb:remove()
end)
c(function()
for i=0, 1, .1 do
wait()
trail.Transparency=i
trailb.Transparency=i
trailc.Transparency=i
end
end)
end
for i=1, 0, -.1 do
wait()
weld.torso.C1=CFrame.Angles(0, math.rad(45)*i, 0)
weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(135)*i)
handleweld.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90)-(math.rad(90)*i), math.rad(180), math.rad(180))
end
human.WalkSpeed=16
end;
}
bin.Selected:connect(function(mouse)
mouse.KeyDown:connect(function(k)
if k=="z" and bdeb==false and mana>=20 then mana=mana-20 bdeb=true actions.Spin() bdeb=false end
if k=="x" and bdeb==false and mana>=5 then mana=mana-5 bdeb=true actions.Coup() bdeb=false end
if k=="c" and bdeb==false and mana>=25 then mana=mana-25 bdeb=true actions.ForeSpin() bdeb=false end
if k=="f" and bdeb==false and mana>=30 then mana=mana-30 bdeb=true actions.Fence() bdeb=false end
if k=="q" and bdeb==false then bdeb=true actions.CHARGE() end
end)
mouse.KeyUp:connect(function(k)
if k=="q" and bdeb==true then bdeb=false end
end)
human.Running:connect(function(speed)
if speed>5 then
while bdeb do wait() end
for i=0, 1, .1 do
wait()
weld.torso.C1=CFrame.Angles(0, math.rad(90)*i, 0)
weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(0, math.rad(45)*i, -math.rad(45)*i)
weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(math.rad(45)*i, 0, math.rad(90)*i)
end
else
while bdeb do wait() end
for i=1, 0, -.1 do
wait()
weld.torso.C1=CFrame.Angles(0, math.rad(90)*i, 0)
weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(0, math.rad(45)*i, -math.rad(45)*i)
weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(math.rad(45)*i, 0, math.rad(90)*i)
end
end
end)
for i=0, 1, .1 do
wait()
weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(135)*i)
handleweld.C1=CFrame.new(0, 3+(3*i), 0)*CFrame.Angles(0, -math.rad(90), math.rad(180))
handle.Transparency=i
stip.Transparency=i
handleb.Transparency=i
blade.Transparency=i
bladetip.Transparency=i
a.Transparency=i
b.Transparency=i
cc.Transparency=i
d.Transparency=i
end
handleweld.Part1=fake.arm.right
handleweld.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(0, math.rad(180), math.rad(180))
for i=1, 0, -.1 do
wait()
weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(135)*i)
handleweld.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90)-(math.rad(90)*i), math.rad(180), math.rad(180))
handle.Transparency=i
stip.Transparency=i
handleb.Transparency=i
blade.Transparency=i
bladetip.Transparency=i
a.Transparency=i
b.Transparency=i
cc.Transparency=i
d.Transparency=i
end
end)
bin.Deselected:connect(function()
for i=0, 1, .1 do
wait()
weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(135)*i)
handleweld.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90)-(math.rad(90)*i), math.rad(180), math.rad(180))
handle.Transparency=i
stip.Transparency=i
handleb.Transparency=i
blade.Transparency=i
bladetip.Transparency=i
a.Transparency=i
b.Transparency=i
cc.Transparency=i
d.Transparency=i
end
handleweld.Part1=bag
handleweld.C1=CFrame.new(0, 6, 0)*CFrame.Angles(0, -math.rad(90), math.rad(180))
for i=1, 0, -.1 do
wait()
weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(135)*i)
handleweld.C1=CFrame.new(0, 3+(3*i), 0)*CFrame.Angles(0, -math.rad(90), math.rad(180))
handle.Transparency=i
stip.Transparency=i
handleb.Transparency=i
blade.Transparency=i
bladetip.Transparency=i
a.Transparency=i
b.Transparency=i
cc.Transparency=i
d.Transparency=i
end
end)