View difference between Paste ID: EBCj5CRG and eMnAc8EV
SHOW: | | - or go back to the newest paste.
1
--line 4
2
3
Players = game:GetService("Players")
4-
Player = Players.USERNAME
4+
Player = Players.iiPandaPaws
5
Bp = Player.Backpack
6
Pg = Player.PlayerGui
7
Char = Player.Character
8
Head = Char.Head
9
Torso = Char.Torso
10
Hum = Char.Humanoid
11
Humanoid = Hum
12
Neck = Torso["Neck"]
13
LS = Torso["Left Shoulder"]
14
RS = Torso["Right Shoulder"]
15
Ra = Char["Right Arm"]
16
La = Char["Left Arm"]
17
mouse = nil
18
Mouse = nil
19
20
bets =
21
{"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"," "}
22
inew = Instance.new
23
it = Instance.new
24
bc = BrickColor.new
25
vn = Vector3.new
26
cn = CFrame.new
27
ca = CFrame.Angles
28
mpi = math.pi
29
v3 = vn
30
mr = math.rad
31
br = BrickColor.new
32
cf = CFrame.new
33
ca = CFrame.Angles
34
Colors = {"Really Red"}
35
BladeColor = tostring(BrickColor.Random()) --Colors[math.random(1,#Colors)]
36
TrailColor = BladeColor
37
HopperName = "light saber"
38
Rage = 100000
39
MaxRage = Rage
40
SwordType = "Single"
41
LeftDebounce = {}
42
RightDebounce = {}
43
OtherDebounce = {}
44
Anim = {key = {}}
45
for i=1,#bets do table.insert(Anim.key,bets) end
46
Anim.Move = "None"
47
Anim.Click = false
48
Anim.Button = false
49
Anim.CanBerserk = 0
50
Anim.ComboBreak = false
51
Anim.Equipped = false
52
keydown = false
53
Speed = 2
54
RageIncome = 500
55
Left = false
56
Right = false
57
Anim.Act = false
58
RealSpeed = 35
59
DebounceSpeed = 0.85/Speed
60
RageCost = {
61
["Berserk"] = 200;
62
["RotorBlade"] = 30;
63
["Blocking"] = 0.1;
64
["Boomerang"] = 30;
65
["RageRegening"] = -0.7;
66
["BoulderForce"] = 45;
67
["ForceWave"] = 65;
68
["ForceWave"] = 32;
69
["Teleport"] = 25;
70
["DualSpin"] = 4;
71
}
72
MagnitudeHit = {
73
["ForceWave"] = 500;
74
}
75
Damage = {
76
["RotorBlade"] = 8;
77
["BoulderForce"] = 100;
78
["Boomerang"] = 100;
79
["ForceWave"] = 100;
80
["DualSpin"] = 5;
81
}
82
Props = {}
83
Props.MaxTeleDistance = 500
84
Props.Buff = 1
85
BlastMesh = Instance.new("FileMesh")
86
BlastMesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
87
RingMesh = Instance.new("FileMesh")
88
RingMesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
89
RockMesh = Instance.new("FileMesh")
90
RockMesh.MeshId = "http://www.roblox.com/asset/?id=1290033"
91
RockMesh.TextureId = "http://www.roblox.com/asset/?id=1290030"
92
DiamondMesh = Instance.new("FileMesh")
93
DiamondMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
94
RingMesh = Instance.new("FileMesh")
95
RingMesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
96
RockMesh = Instance.new("FileMesh")
97
RockMesh.MeshId = "http://www.roblox.com/asset/?id=1290033"
98
RockMesh.TextureId = "http://www.roblox.com/asset/?id=1290030"
99
DiamondMesh = Instance.new("FileMesh")
100
DiamondMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
101
RockMesh = Instance.new("FileMesh")
102
RockMesh.MeshId = "http://www.roblox.com/asset/?id=1290033"
103
RockMesh.TextureId = "http://www.roblox.com/asset/?id=1290030"
104
DiamondMesh = Instance.new("FileMesh")
105
DiamondMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
106
DiamondMesh = Instance.new("FileMesh")
107
DiamondMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
108
109
function rayCast(Pos, Dir, Max, Ignore)
110
return Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
111
end
112
function MinusRage(raggge)
113
Rage = Rage - raggge
114
if Rage < 0 then Rage = 0 end
115
end
116
117
function r(zParent,zName)
118
if zParent:findFirstChild(zName) ~= nil then
119
zParent[zName]:Remove()
120
else
121
end
122
end
123
function rclass(zParent,zClass)
124
local ch = zParent:GetChildren()
125
for i=1,#ch do
126
if (ch.className == zClass) then
127
ch:Remove()
128
else
129
end
130
end
131
end
132
133
function fWeld(zName,zParent,zPart0,zPart1,zCoco,a,b,c,d,e,f)
134
local funcw = Instance.new("Weld")
135
funcw.Name = zName
136
funcw.Parent = zParent
137
funcw.Part0 = zPart0
138
funcw.Part1 = zPart1
139
if (zCoco == true) then
140
funcw.C0 = CFrame.new(a,b,c) *CFrame.fromEulerAnglesXYZ(d,e,f)
141
else
142
funcw.C1 = CFrame.new(a,b,c) *CFrame.fromEulerAnglesXYZ(d,e,f)
143
end
144
return funcw
145
end
146
function Dash(ob,se,mes,of)
147
local off = nil
148
if of == nil then off = 0 else off = of end
149
pcall(function()
150
coroutine.resume(coroutine.create(function()
151
local dashin = true
152
local oldpos = (ob.CFrame *CFrame.new(0,off,0)).p
153
coroutine.resume(coroutine.create(function()
154
wait(se) dashin = false end))
155
for i=1,9999 do
156
if dashin == false then break end
157
local newpos = (ob.CFrame *CFrame.new(0,off,0)).p --+ Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
158
local np = Instance.new("Part")
159
np.BrickColor = BrickColor.new(TrailColor) np.CanCollide = false
160
np.BottomSurface = 0 np.TopSurface = 0 np.Anchored = true np.Transparency = 0.4
161
np.formFactor = "Custom" np.Parent = ob local mag = math.abs((newpos - oldpos).magnitude)
162
local mp = nil
163
if mes ~= nil then
164
np.Size = Vector3.new(2,mag,2) mp = Instance.new("FileMesh",np) mp.MeshId = mes else
165
np.Size = Vector3.new(0.4,0.4,mag) mp = Instance.new("BlockMesh",np) end
166
np.CFrame = CFrame.new(newpos,oldpos)
167
np.CFrame = np.CFrame + np.CFrame.lookVector* (mag/2)
168
if mes == BlastMesh.MeshId then np.CFrame = np.CFrame *ca(mr(-90),0,0) else np.CFrame = np.CFrame *ca(0,0,mr(-45)) end
169
oldpos = newpos
170
coroutine.resume(coroutine.create(function()
171
for i=1,0,-0.1 do
172
np.Transparency = np.Transparency + 0.03
173
--if mes ~= nil then
174
--mp.Scale = Vector3.new(i,mag,i) else
175
mp.Scale = Vector3.new(i,i,1) -- end
176
wait()
177
end
178
np:Remove()
179
end))
180
wait(0.08)
181
end
182
end))
183
end)
184
end
185
Sounds = {
186
Boom = "http://www.roblox.com/asset/?id=16976189";
187
SniperFire = "http://www.roblox.com/asset/?id=1369158";
188
ShotgunFire2 = "http://www.roblox.com/asset/?id=1868836";
189
MinigunFire = "http://www.roblox.com/asset/?id=2692806";
190
MinigunCharge = "http://www.roblox.com/asset/?id=2692844";
191
MinigunDischarge = "http://www.roblox.com/asset/?id=1753007";
192
Flashbang = "http://www.roblox.com/asset/?id=16976189";
193
Beep = "http://www.roblox.com/asset/?id=15666462";
194
Smash = "http://www.roblox.com/asset/?id=2801263";
195
Punch = "http://www.roblox.com/asset/?id=31173820";
196
Slash = "rbxasset://sounds/swordslash.wav";
197
Falcon = "http://www.roblox.com/asset/?id=1387390";
198
Cast = "http://www.roblox.com/asset/?id=2101137";
199
Spin = "http://www.roblox.com/asset/?id=1369159";
200
Abscond = "http://www.roblox.com/asset/?id=2767090";
201
ElectricalCharge = "http://www.roblox.com/asset/?id=2800815";
202
FireExplosion = "http://www.roblox.com/asset/?id=3264793";
203
SaberLightUp = "http://www.roblox.com/asset/?id=10209303";
204
SaberSlash = "http://www.roblox.com/asset/?id=10209280";
205
SaberHit = "http://www.roblox.com/asset/?id=44463749";
206
EnergyBlast = "http://www.roblox.com/asset/?id=10209268";
207
}
208
function Sound(sid,pit,vol)
209
local ss = Instance.new("Sound")
210
ss.Name = "Sound"
211
ss.Parent = Head
212
ss.SoundId = sid
213
ss.Pitch = pit
214
ss.Volume = vol
215
ss.PlayOnRemove = true
216
wait()
217
ss:Remove()
218
end
219
220
221
r(Char,"SwordPack")
222
r(Char,"Suit")
223
r(Char,"Saber" ..Player.Name)
224
r(Pg,"Sabers")
225
Suit = inew("Model")
226
Suit.Name = "Suit"
227
Suit.Parent = Char
228
function p(pa,sh,x,y,z,c,a,tr,re,bc)
229
local fp = it("Part",pa)
230
fp.formFactor = "Custom"
231
fp.Shape = sh
232
fp.Size = v3(x,y,z)
233
fp.CanCollide = c
234
fp.Anchored = a
235
fp.BrickColor = br(bc)
236
fp.Transparency = tr
237
fp.Reflectance = re
238
fp.BottomSurface = 0
239
fp.TopSurface = 0
240
fp.CFrame = Torso.CFrame
241
fp:BreakJoints()
242
return fp
243
end
244
function weld(pa,p0,p1,x,y,z,a,b,c)
245
local fw = it("Weld",pa)
246
fw.Part0 = p0
247
fw.Part1 = p1
248
fw.C0 = cf(x,y,z) *ca(a,b,c)
249
return fw
250
end
251
function ft(tab,nam)
252
if tab == nil or nam == nil then print("U: Fail table") return false end
253
for i=1,#tab do
254
if tab == nam then
255
return i
256
else
257
end
258
end
259
return nil
260
end
261
function spm(ty,pa,ssx,ssy,ssz)
262
local sp = it("SpecialMesh",pa)
263
sp.MeshType = ty
264
sp.Scale = Vector3.new(ssx,ssy,ssz)
265
return sp
266
end
267
Torso.Transparency = 1
268
Torm = Instance.new("Model",Char)
269
Torm.Name = "Saber" ..Player.Name
270
Tor = p(Torm,"Block",1.98,1.98,1,false,false,0,0,"basda") Tor.Name = "Torso"
271
Torw = weld(Tor,Torso,Tor,0,0,0,0,0,0)
272
pcall(function() Char.Shirt:Clone().Parent = Torm end)
273
pcall(function() Char.Pants:Clone().Parent = Torm end)
274
function ShockWave(onb,scale,col)
275
coroutine.resume(coroutine.create(function()
276
local e1 = Instance.new("Part")
277
e1.Anchored = true
278
e1.formFactor = "Custom"
279
e1.CanCollide = false
280
e1.Size = Vector3.new(1,1,1)
281
e1.BrickColor = BrickColor.new(col)
282
e1.Transparency = 0.6
283
e1.TopSurface = 0
284
e1.BottomSurface = 0
285
e1.Parent = Torm
286
e1.CFrame = onb.CFrame
287
e1.CFrame = e1.CFrame *CFrame.Angles(math.rad(-90),0,0)
288
local e1m = Instance.new("SpecialMesh")
289
e1m.MeshType = "FileMesh"
290
e1m.Scale = Vector3.new(3,3,3)
291
e1m.Parent = e1
292
e1m.MeshId = RingMesh.MeshId
293
local r1 = Instance.new("Part")
294
r1.Anchored = true
295
r1.formFactor = "Custom"
296
r1.CanCollide = false
297
r1.Size = Vector3.new(1,1,1)
298
r1.BrickColor = BrickColor.new(col)
299
r1.Transparency = 0.6
300
r1.TopSurface = 0
301
r1.BottomSurface = 0
302
r1.Parent = Torm
303
r1.CFrame = e1.CFrame *CFrame.Angles(math.rad(90),0,0)
304
local r1m = Instance.new("SpecialMesh")
305
r1m.MeshType = "FileMesh"
306
r1m.Scale = Vector3.new(3,3,3)
307
r1m.Parent = r1
308
r1m.MeshId = BlastMesh.MeshId
309
for i=1,30 do
310
local pluscal = scale/38
311
e1m.Scale = e1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
312
r1m.Scale = r1m.Scale + Vector3.new(pluscal/1.5,pluscal/3,pluscal/1.5)
313
r1.CFrame = r1.CFrame * CFrame.Angles(0,math.rad(6),0)
314
wait()
315
end
316
for i=1,30 do
317
local pluscal = scale/38
318
e1m.Scale = e1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
319
r1m.Scale = r1m.Scale + Vector3.new(pluscal/1.5,pluscal/4,pluscal/1.5)
320
r1.CFrame = r1.CFrame * CFrame.Angles(0,math.rad(6),0)
321
e1.Transparency = e1.Transparency + 0.1
322
r1.Transparency = r1.Transparency + 0.1
323
wait()
324
end
325
e1:Remove()
326
r1:Remove()
327
end))
328
end
329
330
function Explode(onb,scale,col)
331
coroutine.resume(coroutine.create(function()
332
local e1 = Instance.new("Part")
333
e1.Anchored = true
334
e1.formFactor = "Custom"
335
e1.CanCollide = false
336
e1.Size = Vector3.new(1,1,1)
337
e1.BrickColor = BrickColor.new(col)
338
e1.Transparency = 0.6
339
e1.TopSurface = 0
340
e1.BottomSurface = 0
341
e1.Parent = Torm
342
e1.CFrame = onb.CFrame
343
local e1m = Instance.new("SpecialMesh")
344
e1m.MeshType = "Sphere"
345
e1m.Parent = e1
346
local r1 = Instance.new("Part")
347
r1.Anchored = true
348
r1.formFactor = "Custom"
349
r1.CanCollide = false
350
r1.Size = Vector3.new(1,1,1)
351
r1.BrickColor = BrickColor.new(col)
352
r1.Transparency = 0.6
353
r1.TopSurface = 0
354
r1.BottomSurface = 0
355
r1.Parent = Torm
356
r1.CFrame = e1.CFrame *CFrame.Angles(math.rad(180),0,0)
357
local r1m = Instance.new("SpecialMesh")
358
r1m.MeshType = "FileMesh"
359
r1m.Scale = Vector3.new(3,3,3)
360
r1m.Parent = r1
361
r1m.MeshId = RingMesh.MeshId
362
local r2 = Instance.new("Part")
363
r2.Anchored = true
364
r2.formFactor = "Custom"
365
r2.CanCollide = false
366
r2.Size = Vector3.new(1,1,1)
367
r2.BrickColor = BrickColor.new(col)
368
r2.Transparency = 0.6
369
r2.TopSurface = 0
370
r2.BottomSurface = 0
371
r2.Parent = Torm
372
r2.CFrame = e1.CFrame *CFrame.Angles(0,math.rad(180),0)
373
local r2m = Instance.new("SpecialMesh")
374
r2m.MeshType = "FileMesh"
375
r2m.Parent = r2
376
r2m.Scale = Vector3.new(3,3,3)
377
r2m.MeshId = RingMesh.MeshId
378
local bla = Instance.new("Part")
379
bla.Anchored = true
380
bla.formFactor = "Custom"
381
bla.CanCollide = false
382
bla.Size = Vector3.new(1,1,1)
383
bla.BrickColor = BrickColor.new(col)
384
bla.Transparency = 0.6
385
bla.TopSurface = 0
386
bla.BottomSurface = 0
387
bla.Parent = Torm
388
bla.CFrame = CFrame.new(e1.Position.x,e1.Position.y,e1.Position.z)
389
local blam = Instance.new("SpecialMesh")
390
blam.MeshType = "FileMesh"
391
blam.Parent = bla
392
blam.Scale = Vector3.new(5,5,5)
393
blam.MeshId = BlastMesh.MeshId
394
for i=1,30 do
395
local pluscal = scale/38
396
e1m.Scale = e1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
397
r1m.Scale = r1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
398
r2m.Scale = r1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
399
blam.Scale = blam.Scale + Vector3.new(pluscal,pluscal/2,pluscal)
400
bla.CFrame = bla.CFrame * CFrame.Angles(0,math.rad(12),0)
401
r1.CFrame = r1.CFrame * CFrame.Angles(math.rad(6),0,0)
402
r2.CFrame = r2.CFrame * CFrame.Angles(0,math.rad(6),0)
403
wait()
404
end
405
for i=1,30 do
406
local pluscal = scale/38
407
e1m.Scale = e1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
408
r1m.Scale = r1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
409
r2m.Scale = r1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
410
blam.Scale = blam.Scale + Vector3.new(pluscal/1.5,pluscal/3,pluscal/1.5)
411
bla.CFrame = bla.CFrame * CFrame.Angles(0,math.rad(12),0)
412
r1.CFrame = r1.CFrame * CFrame.Angles(math.rad(6),0,0)
413
r2.CFrame = r2.CFrame * CFrame.Angles(0,math.rad(6),0)
414
bla.Transparency = bla.Transparency + 0.1
415
e1.Transparency = e1.Transparency + 0.1
416
r1.Transparency = r1.Transparency + 0.1
417
r2.Transparency = r2.Transparency + 0.1
418
wait()
419
end
420
e1:Remove()
421
r1:Remove()
422
r2:Remove()
423
end))
424
end
425
H1 = p(Torm,"Block",0.5,0.9,0.5,false,false,0,0.1,"Medium stone grey") spm("Head",H1,1,1.3,1)
426
H1w = weld(Tor,Torso,H1,0.4,-0.7,0.5,0,0,mr(45))
427
H2 = p(Torm,"Block",0.5,0.9,0.5,false,false,0,0.1,"Medium stone grey") spm("Head",H2,1,1.3,1)
428
H2w = weld(Tor,H1,H2,0,-0.8,0,mr(180),0,0)
429
Des1 = p(Torm,"Block",0.6,0.1,0.6,false,false,0,0.1,"Black") Instance.new("CylinderMesh",Des1)
430
Des1w = weld(Tor,H1,Des1,0,0.5,0,0,0,0)
431
Des2 = p(Torm,"Block",0.6,0.1,0.6,false,false,0,0.1,"Black") Instance.new("CylinderMesh",Des2)
432
Des2w = weld(Tor,H2,Des2,0,0.5,0,0,0,0)
433
Des21 = p(Torm,"Block",0.6,0.1,0.6,false,false,0,0.1,"Black") Des21m = Instance.new("CylinderMesh",Des21) Des21m.Scale = Vector3.new(1,0.6,1)
434
Des21w = weld(Tor,H1,Des21,0,-0.55,0,0,0,0)
435
Des22 = p(Torm,"Block",0.6,0.1,0.6,false,false,0,0.1,"Black") Des22m = Instance.new("CylinderMesh",Des22) Des22m.Scale = Vector3.new(1,0.6,1)
436
Des22w = weld(Tor,H2,Des22,0,-0.55,0,0,0,0)
437
438
Blad1 = p(Torm,"Block",0.3,4,0.3,false,false,1,0.25,BladeColor) M1 = spm("Head",Blad1,1,1,1)
439
Blad1w = weld(Tor,H1,Blad1,0,1.9,0,0,0,0)
440
Blad2 = p(Torm,"Block",0.3,4,0.3,false,false,1,0.25,BladeColor) M2 = spm("Head",Blad2,1,1,1)
441
Blad2w = weld(Tor,H2,Blad2,0,1.9,0,0,0,0)
442
Glow1 = p(Torm,"Block",0.47,4.2,0.47,false,false,1,0,BladeColor) GM1 = spm("Head",Glow1,1,1,1)
443
Glow1w = weld(Tor,H1,Glow1,0,1.9,0,0,0,0)
444
Glow2 = p(Torm,"Block",0.47,4.2,0.47,false,false,1,0,BladeColor) GM2 = spm("Head",Glow2,1,1,1)
445
Glow2w = weld(Tor,H2,Glow2,0,1.9,0,0,0,0)
446
447
r(Bp,HopperName)
448
bin = inew("HopperBin")
449
bin.Name = HopperName
450
bin.Parent = Bp
451
452
Gui = Instance.new("ScreenGui",Pg)
453
Gui.Name = "Sabers"
454
Frame = Instance.new("Frame",Gui)
455
Frame.BackgroundTransparency = 1 Frame.Size = UDim2.new(1,0,1,0)
456
ImageGui = Instance.new("ImageLabel",Frame)
457
ImageGui.Image = "http://www.roblox.com/asset/?id=51262246"
458
ImageGui.BackgroundTransparency = 1
459
ImageGui.Size = UDim2.new(0.3,0,0.075,0)
460
HealthBar = Instance.new("ImageLabel",Frame)
461
HealthBar.Image = "http://www.roblox.com/asset/?id=48965808"
462
HealthBar.BorderSizePixel = 0
463
HealthBar.Size = UDim2.new(0.23,0,0.017,0)
464
HealthBar.Position = UDim2.new(0.06,0,0.017,0)
465
RageBar = Instance.new("ImageLabel",Frame)
466
RageBar.Image = "http://www.roblox.com/asset/?id=48965808"
467
RageBar.BorderSizePixel = 0
468
RageBar.Size = UDim2.new(0.165,0,0.012,0)
469
RageBar.Position = UDim2.new(0.06,0,0.04,0)
470
RageBar.BackgroundColor3 = BrickColor.new("Alder").Color
471
SelectBar = Instance.new("ImageButton",Frame)
472
SelectBar.Image = "http://www.roblox.com/asset/?id=48965808"
473
SelectBar.BorderSizePixel = 0
474
SelectBar.Size = UDim2.new(0.1,0,0.07,0)
475
SelectBar.Position = UDim2.new(0.8,0,0.6,0)
476
SelectBar.BackgroundColor3 = BrickColor.new(BladeColor).Color
477
SelectrBar = Instance.new("TextLabel",SelectBar)
478
SelectrBar.BackgroundTransparency = 1
479
SelectrBar.BorderSizePixel = 0
480
SelectrBar.Size = UDim2.new(0,0,0,0)
481
SelectrBar.Position = UDim2.new(0.5,0,0.5,0)
482
SelectrBar.Font = "ArialBold"
483
SelectrBar.FontSize = "Size18"
484
SelectBar.MouseButton1Up:connect(function()
485
if Anim.Move ~= "None" then return end
486
if Anim.Act == true then return end
487
if Anim.Equipped == false then return end
488
if SwordType == "Single" then
489
Anim.Move = "Changing"
490
Anims.ChangeToDual(0,1,0.065*Speed) SwordType = "Dual"
491
Anim.Move = "None"
492
else
493
Anim.Move = "Changing"
494
Anims.ChangeToSingle(0,1,0.065*Speed) SwordType = "Single"
495
Anim.Move = "None"
496
end
497
end)
498
coroutine.resume(coroutine.create(function()
499
while true do
500
wait(0.05)
501
local hh = Hum.Health local hmh = Hum.MaxHealth
502
HealthBar.Size = UDim2.new((hh/hmh)*0.23,0,0.017,0)
503
if ((hh/hmh)*100) > 75 then
504
HealthBar.BackgroundColor3 = BrickColor.new("Alder").Color
505
elseif ((hh/hmh)*100) > 25 and ((hh/hmh)*100) < 76 then
506
HealthBar.BackgroundColor3 = BrickColor.new("Deep orange").Color
507
elseif ((hh/hmh)*100) < 26 then
508
HealthBar.BackgroundColor3 = BrickColor.new("Bright red").Color
509
end
510
RageBar.Size = UDim2.new((Rage/MaxRage)*0.165,0,0.012,0)
511
SelectrBar.Text = SwordType
512
end
513
end))
514
-------
515
function TellXPos(brick1,posd)
516
local lb = p(nil,"Block",1,1,1,true,false,1,0.1,BladeColor)
517
lb.CFrame = CFrame.new((brick1.CFrame *cf(-10,0,0)).p)
518
local rb = p(nil,"Block",1,1,1,true,false,1,0.1,BladeColor)
519
rb.CFrame = CFrame.new((brick1.CFrame *cf(10,0,0)).p)
520
local posml = math.abs((posd - rb.Position).magnitude)
521
local posmr = math.abs((posd - lb.Position).magnitude)
522
if posml > posmr then
523
return "left"
524
else
525
return "right"
526
end
527
end
528
function GetNearPlayer(urpos,maxmag)
529
if maxmag == nil then return nil end
530
for i,v in pairs(game.Players:GetChildren()) do
531
if v.Character ~= Char and v.Character ~= nil and v.Character:findFirstChild("Torso") ~= nil and math.abs((v.Character.Torso.Position-urpos).magnitude) < maxmag then
532
return v.Character.Torso
533
end
534
end
535
return nil
536
end
537
function Dmgz(hum,dmg)
538
dmg = dmg*Props.Buff
539
hum.Health = hum.Health - dmg
540
Rage = Rage + ((dmg/1.25)*RageIncome)
541
if Rage > MaxRage then Rage = MaxRage end
542
end
543
coroutine.resume(coroutine.create(function()
544
while true do
545
wait()
546
if Right == true and Anim.Move == "ForceWave" then
547
for i,v in pairs(workspace:GetChildren()) do
548
coroutine.resume(coroutine.create(function()
549
if v ~= Char and v ~= nil and v:findFirstChild("Torso") ~= nil and math.abs((v.Torso.Position-Blad2.Position).magnitude) < MagnitudeHit[Anim.Move] then
550
local hit = v.Torso
551
if hit ~= nil and hit.Parent:findFirstChild("Humanoid") ~= nil and ft(RightDebounce,hit.Parent.Name) == nil then
552
Dmgz(hit.Parent.Humanoid,Damage[Anim.Move])
553
table.insert(RightDebounce,hit.Parent.Name)
554
wait(DebounceSpeed) local nf = ft(RightDebounce,hit.Parent.Name) if nf ~= nil then table.remove(RightDebounce,nf) end
555
end
556
else
557
if v:IsA("BasePart") and v.Anchored == false and math.abs((v.Position-Blad2.Position).magnitude) < MagnitudeHit[Anim.Move] then v:BreakJoints() v.Velocity = cf(Blad2.Position,v.Position).lookVector*30 + Vector3.new(0,20,0) end
558
end
559
end))
560
end -- for
561
end
562
end
563
end))
564
Blad1.Touched:connect(function(hit)
565
if Left == true then
566
if hit ~= nil and hit.Parent:findFirstChild("Humanoid") ~= nil and ft(LeftDebounce,hit.Parent.Name) == nil then
567
coroutine.resume(coroutine.create(function()
568
table.insert(LeftDebounce,hit.Parent.Name)
569
wait(DebounceSpeed) local nf = ft(LeftDebounce,hit.Parent.Name) if nf ~= nil then table.remove(LeftDebounce,nf) end
570
end))
571
Sound(Sounds.SaberHit,1,1)
572
Dmgz(hit.Parent.Humanoid,Damage[Anim.Move])
573
else
574
--if hit.Parent:findFirstChild("Humanoid") == nil and not hit:IsDescendantOf(Char) and hit.Anchored == false then hit:BreakJoints() hit.Velocity = cf(Blad1.Position,hit.Position).lookVector*30 end
575
end
576
end
577
end)
578
579
Blad2.Touched:connect(function(hit)
580
if Right == true then
581
if hit ~= nil and hit.Parent:findFirstChild("Humanoid") ~= nil and ft(RightDebounce,hit.Parent.Name) == nil then
582
coroutine.resume(coroutine.create(function()
583
table.insert(RightDebounce,hit.Parent.Name)
584
wait(DebounceSpeed) local nf = ft(RightDebounce,hit.Parent.Name) if nf ~= nil then table.remove(RightDebounce,nf) end
585
end))
586
Sound(Sounds.SaberHit,1,1)
587
Dmgz(hit.Parent.Humanoid,Damage[Anim.Move])
588
else
589
--if hit.Parent:findFirstChild("Humanoid") == nil and not hit:IsDescendantOf(Char) and hit.Anchored == false then hit:BreakJoints() hit.Velocity = cf(Blad2.Position,hit.Position).lookVector*30 end
590
end
591
end
592
end)
593
LW = inew("Weld")
594
RW = inew("Weld")
595
Fla = p(Torm,"Block",1,2,1,false,false,1,0,BladeColor)
596
Fra = p(Torm,"Block",1,2,1,false,false,1,0,BladeColor)
597
Flaw = fWeld("Weld",Fla,Tor,Fla,true,-1.5,0.5,0,0,0,0)
598
Fraw = fWeld("Weld",Fla,Tor,Fra,true,1.5,0.5,0,0,0,0)
599
Flaw.C1 = CFrame.new(0,0.5,0)
600
Fraw.C1 = CFrame.new(0,0.5,0)
601
602
Fll = p(Torm,"Block",1,2,1,false,false,1,0,BladeColor)
603
Frl = p(Torm,"Block",1,2,1,false,false,1,0,BladeColor)
604
Fllw = fWeld("Weld",Fll,Torso,Fll,true,0,0,0,0,0,0)
605
Frlw = fWeld("Weld",Fll,Torso,Frl,true,0,0,0,0,0,0)
606
607
function FeetWeld(yesorno,lhh,rhh)
608
if yesorno == false then
609
lhh.Parent = nil
610
rhh.Parent = nil
611
Lh.Parent = Torso
612
Rh.Parent = Torso
613
Lh.Part0 = Tor
614
Rh.Part0 = Tor
615
Lh.Part1 = Char["Left Leg"]
616
Rh.Part1 = Char["Right Leg"]
617
return Lh,Rh
618
else
619
Rh.Parent = nil
620
Lh.Parent = nil
621
local hl,hr = it("Weld",Torso),it("Weld",Torso)
622
hl.Part0 = Fll
623
hr.Part0 = Frl
624
hl.Part1 = Char["Left Leg"]
625
hr.Part1 = Char["Right Leg"]
626
hr.C1 = cf(-0.5,1.75,0)
627
hl.C1 = cf(0.5,1.75,0)
628
return hl,hr
629
end
630
end
631
Anims = {}
632
Anims.Equip = function(i1,i2,is)
633
Anim.Act = true
634
for i=i1,i2,is do
635
RW.C1 = ca(mr(40*i),mr(20*i),0)
636
RW.C0 = cf(-0.4*i,-0.1*i,0.4*i)
637
wait()
638
end
639
H1w.Part0 = Ra
640
H1w.Part1 = H1
641
H1w.C0 = cf(0,-1.1,0) *ca(0,mr(180),0) H1w.C1 = ca(mr(-90),0,0)
642
Sound(Sounds.Slash,1,1)
643
for i=i1,i2,is do
644
H1w.C0 = cf(0,-1.1,0) *ca(0,mr(90+(270*i)),0)
645
LW.C1 = ca(mr(-80*i),mr(40*i),0)
646
LW.C0 = cf(0.6*i,0.3*i,-1*i)
647
RW.C1 = ca(mr(40+(-120*i)),mr(20+(-60*i)),0)
648
RW.C0 = cf(-0.4+(-0.2*i),-0.1+(0.4*i),0.4+(-1.4*i))
649
wait()
650
end
651
Sound(Sounds.SaberLightUp,3,1)
652
for i=i1,i2,is do
653
Blad1w.C0 = cf(0,0.95+(0.95*i),0)
654
Blad2w.C0 = cf(0,0.95+(0.95*i),0)
655
M1.Scale = Vector3.new(1,1*i,1)
656
M2.Scale = Vector3.new(1,1*i,1)
657
Blad1.Transparency = 0.9-(1*i)
658
Blad2.Transparency = 0.9-(1*i)
659
Glow1w.C0 = cf(0,0.95+(0.95*i),0)
660
Glow2w.C0 = cf(0,0.95+(0.95*i),0)
661
GM1.Scale = Vector3.new(1,1*i,1)
662
GM2.Scale = Vector3.new(1,1*i,1)
663
Glow1.Transparency = 1.05-(0.5*i)
664
Glow2.Transparency = 1.05-(0.5*i)
665
wait()
666
end
667
Anim.Act = false
668
end
669
Anims.UnEquip = function(i1,i2,is)
670
Anim.Act = true
671
Sound(Sounds.SaberLightUp,3,1)
672
for i=i1,i2,is do
673
Blad1w.C0 = cf(0,0.95+(0.95*i),0)
674
Blad2w.C0 = cf(0,0.95+(0.95*i),0)
675
M1.Scale = Vector3.new(1,1*i,1)
676
M2.Scale = Vector3.new(1,1*i,1)
677
Blad1.Transparency = 0.9-(1*i)
678
Blad2.Transparency = 0.9-(1*i)
679
Glow1w.C0 = cf(0,0.95+(0.95*i),0)
680
Glow2w.C0 = cf(0,0.95+(0.95*i),0)
681
GM1.Scale = Vector3.new(1,1*i,1)
682
GM2.Scale = Vector3.new(1,1*i,1)
683
Glow1.Transparency = 1.05-(0.5*i)
684
Glow2.Transparency = 1.05-(0.5*i)
685
wait()
686
end
687
Sound(Sounds.Slash,1,1)
688
for i=i1,i2,is do
689
H1w.C0 = cf(0,-1.1,0) *ca(0,mr(90+(270*i)),0)
690
LW.C1 = ca(mr(-80*i),mr(40*i),0)
691
LW.C0 = cf(0.6*i,0.3*i,-1*i)
692
RW.C1 = ca(mr(40+(-120*i)),mr(20+(-60*i)),0)
693
RW.C0 = cf(-0.4+(-0.2*i),-0.1+(0.4*i),0.4+(-1.4*i))
694
wait()
695
end
696
H1w.Part0 = Torso
697
H1w.Part1 = H1
698
H1w.C0 = cf(0.4,-0.7,0.5) *ca(0,0,mr(45))
699
H1w.C1 = cf(0,0,0) *ca(0,0,0)
700
for i=i1,i2,is do
701
RW.C1 = ca(mr(40*i),mr(20*i),0)
702
RW.C0 = cf(-0.4*i,-0.1*i,0.4*i)
703
wait()
704
end
705
Anim.Act = false
706
end
707
Anims.ChangeToDual = function(i1,i2,is)
708
Anim.Act = true
709
for i=i1,i2,is*Speed do
710
H1w.C0 = cf(0,-1.1,0) *ca(mr(-80*i),mr(50*i),0)
711
wait()
712
end
713
Sound(Sounds.SaberHit,1,1)
714
Sound(Sounds.SaberLightUp,2,0.5)
715
H1w.Part0 = La
716
H1w.Part1 = H1
717
H2w.Part0 = Ra
718
H2w.Part1 = H2
719
H2w.C1 = ca(mr(-90),0,0)
720
for i=i1,i2,is*Speed do
721
H1w.C0 = cf(0,-1.1,0) *ca(0,mr(-90+(-90*i)),mr(20+(-20*i)))
722
H2w.C0 = cf(0,-1.1,0) *ca(0,mr(90+(90*i)),mr(-35+(-35*i)))
723
LW.C1 = ca(mr(-80+(20*i)),mr(40+(-70*i)),0)
724
LW.C0 = cf(0.6+(-0.6*i),0.3+(-0.3*i),-1+(0.5*i))
725
RW.C1 = ca(mr(-80+(20*i)),mr(-40+(70*i)),0)
726
RW.C0 = cf(-0.6+(0.6*i),0.3+(-0.3*i),-1+(0.5*i))
727
wait()
728
end
729
Anim.Act = false
730
end
731
Anims.ChangeToSingle = function(i1,i2,is)
732
Anim.Act = true
733
for i=i2,i1,-is*Speed do
734
H1w.C0 = cf(0,-1.1,0) *ca(0,mr(-90+(-90*i)),mr(20+(-20*i)))
735
H2w.C0 = cf(0,-1.1,0) *ca(0,mr(90+(90*i)),mr(-35+(-35*i)))
736
LW.C1 = ca(mr(-80+(20*i)),mr(40+(-70*i)),0)
737
LW.C0 = cf(0.6+(-0.6*i),0.3+(-0.3*i),-1+(0.5*i))
738
RW.C1 = ca(mr(-80+(20*i)),mr(-40+(70*i)),0)
739
RW.C0 = cf(-0.6+(0.6*i),0.3+(-0.3*i),-1+(0.5*i))
740
wait()
741
end
742
H1w.Part0 = Ra
743
H1w.Part1 = H1
744
H2w.Part0 = H1
745
H2w.Part1 = H2
746
H2w.C1 = ca(0,0,0)
747
H2w.C0 = cf(0,-0.8,0) *ca(mr(180),0,0)
748
Sound(Sounds.SaberLightUp,2,0.5)
749
Sound(Sounds.SaberHit,1,1)
750
for i=i2,i1,-is*Speed do
751
H1w.C0 = cf(0,-1.1,0) *ca(mr(-80*i),mr(50*i),0)
752
wait()
753
end
754
Anim.Act = false
755
end
756
Anims.RotorBlade = function(i1,i2,is,RaigCost)
757
local lolpos = (Torso.Position - mouse.hit.p).unit
758
local allx = (lolpos.y*80)-10
759
local ally = (((mouse.X-(mouse.ViewSizeX/2))/mouse.ViewSizeX)*1.8)*-90
760
Anim.Act = true
761
for i=i1,i2,is do
762
LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(40+(-40*i)),0)
763
LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(90*i),0)
764
RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(-40+(40*i)),0)
765
RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(((-90)+ally)*i),0)
766
Torw.C1 = ca(0,mr(-90*i),0)
767
wait()
768
end
769
DebounceSpeed = DebounceSpeed - (0.5*Speed)
770
Hum.WalkSpeed = Hum.WalkSpeed + (8*Speed)
771
Left = true
772
Right = true
773
Dash(Blad1,2/Speed,nil,2)
774
Dash(Blad2,2/Speed,nil,2)
775
H1w.C0 = cf(0,-1.1,0) *ca(0,0,0) H1w.C1 = cf(0,-0.4,0) *ca(mr(-90),0,0)
776
local soundtime = 0
777
for i=i1,i2*4,is do
778
if soundtime == 10 then soundtime = 0 Sound(Sounds.SaberSlash,2.5,0.5) else soundtime = soundtime + 1 end
779
H1w.C0 = cf(0,-1.1,0) *ca(0,mr(360*i),0)
780
wait()
781
end
782
H1w.C0 = cf(0,-1.1,0) *ca(0,0,0) H1w.C1 = cf(0,0,0) *ca(mr(-90),0,0)
783
DebounceSpeed = DebounceSpeed + (0.5*Speed)
784
Hum.WalkSpeed = Hum.WalkSpeed - (8*Speed)
785
Left = false
786
Right = false
787
for i=i2,i1,-is do
788
LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(40+(-40*i)),0)
789
LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(90*i),0)
790
RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(-40+(40*i)),0)
791
RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(((-90)+ally)*i),0)
792
Torw.C1 = ca(0,mr(-90*i),0)
793
wait()
794
end
795
Torw.C1 = ca(0,0,0)
796
Anim.Act = false
797
end
798
-------
799
Anims.Boomerang = function(i1,i2,is,RaigCost)
800
MinusRage(RaigCost)
801
local lolpos = (Head.Position - mouse.hit.p).unit
802
local allx = (lolpos.y*80)-10
803
Anim.Act = true
804
for i=i1,i2,is do
805
LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(40+(-40*i)),0)
806
LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(60*i),0)
807
RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(-40+(40*i)),0)
808
RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(-60*i),0)
809
Torw.C1 = ca(0,mr(-60*i),0)
810
H1w.C0 = cf(0,-1.1,0) *ca(mr(80*i),0,0)
811
wait()
812
end
813
DebounceSpeed = DebounceSpeed - (0.5*Speed)
814
Left = true
815
Right = true
816
Dash(Blad1,3.8/Speed,nil,2)
817
Dash(Blad2,3.8/Speed,nil,2)
818
H1w.C0 = cf(0,-1.1,0) *ca(0,0,0) H1w.C1 = cf(0,-0.4,0) *ca(mr(-90),0,0)
819
local soundtime = 0
820
for i=i1,i2,is/2 do
821
if soundtime == 10 then soundtime = 0 Sound(Sounds.SaberSlash,2.5,0.5) else soundtime = soundtime + 1 end
822
H1w.C0 = cf(10*i,-1.1+(-15*i),0) *ca(mr(90),mr(720*i),0)
823
wait()
824
end
825
for i=i1,i2,is/2 do
826
if soundtime == 10 then soundtime = 0 Sound(Sounds.SaberSlash,2.5,0.5) else soundtime = soundtime + 1 end
827
H1w.C0 = cf(10+(-20*i),-16.1,0) *ca(mr(90),mr(720*i),0)
828
wait()
829
end
830
for i=i1,i2,is/2 do
831
if soundtime == 10 then soundtime = 0 Sound(Sounds.SaberSlash,2.5,0.5) else soundtime = soundtime + 1 end
832
H1w.C0 = cf(-10+(10*i),-16.1+(15*i),0) *ca(mr(90),mr(720*i),0)
833
wait()
834
end
835
H1w.C0 = cf(0,-1.1,0) *ca(0,0,0) H1w.C1 = cf(0,0,0) *ca(mr(-90),0,0)
836
DebounceSpeed = DebounceSpeed + (0.5*Speed)
837
Left = false
838
Right = false
839
for i=i2,i1,-is do
840
LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(40+(-40*i)),0)
841
LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(60*i),0)
842
RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(-40+(40*i)),0)
843
RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(-60*i),0)
844
Torw.C1 = ca(0,mr(-60*i),0)
845
H1w.C0 = cf(0,-1.1,0) *ca(mr(80*i),0,0)
846
wait()
847
end
848
Torw.C1 = ca(0,0,0)
849
Anim.Act = false
850
end
851
Anims.BoulderForce = function(i1,i2,is,RaigCost)
852
MinusRage(RaigCost)
853
Anim.Act = true
854
for i=i1,i2,is do
855
LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(40+(-40*i)),0)
856
LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(50*i),0)
857
RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(-40+(40*i)),0)
858
RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(-50*i),0)
859
Torw.C1 = ca(0,mr(50*i),0)
860
wait()
861
end
862
local bould = p(workspace,"Block",4,4,8,true,true,0,0,"Medium stone grey") bould.Name = "Boulder" bould.Material = "Concrete"
863
local rm = RockMesh:Clone() rm.Scale = Vector3.new(3,3,4.8) rm.Parent = bould
864
bould.Elasticity = 0 bould.Friction = 2 bould.CFrame = cf(Torso.Position.x+(math.random(-14,14)),Torso.Position.y-5,Torso.Position.z+(math.random(-14,14))) *CFrame.Angles(math.random(-33,33)/10,math.random(-33,33)/10,math.random(-33,33)/10)
865
local warpdes = true
866
local bpos = bould.Position
867
Sound(Sounds.Cast,0.95,0.8)
868
coroutine.resume(coroutine.create(function() repeat Functions.BrickWarpDesign(bould,9) wait() until warpdes == false end))
869
for i=0,1,0.08 do bould.CFrame = CFrame.new(bpos.x,bpos.y,bpos.z) + Vector3.new(0,20*i,0) wait() end wait(1) bould.CFrame = CFrame.new(bpos.x,bpos.y+20,bpos.z) bould.CFrame = cf(bould.Position,mouse.hit.p)
870
bould.Anchored = false wait() bould.Velocity = bould.CFrame.lookVector *(math.random(180,350)) bould.Touched:connect(function(hit) Functions.BoulderTouch(hit,bould) end)
871
wait(0.5)
872
warpdes = false
873
game.Debris:AddItem(bould,10)
874
for i=i2,i1,-is do
875
LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(40+(-40*i)),0)
876
LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(50*i),0)
877
RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(-40+(40*i)),0)
878
RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(-50*i),0)
879
Torw.C1 = ca(0,mr(50*i),0)
880
wait()
881
end
882
Torw.C1 = ca(0,0,0)
883
Anim.Act = false
884
end
885
Anims.ForceWave = function(i1,i2,is,RaigCost)
886
local Hit, hitpos = rayCast(Torso.Position,((Torso.Position - Vector3.new(0,10000,0)) - Torso.Position),999.999,Player.Character)
887
if Hit == nil then Anim.Act = false return end
888
MinusRage(RaigCost)
889
Anim.Act = true
890
lh2,rh2 = FeetWeld(true,Lh,Rh)
891
local bp2 = Instance.new("BodyPosition",Torso)
892
bp2.maxForce = Vector3.new(0,math.huge,0)
893
Humanoid.WalkSpeed = Humanoid.WalkSpeed - (RealSpeed-4)
894
DebounceSpeed = DebounceSpeed + (1.1*Speed)
895
bp2.position = Torso.Position + Vector3.new(0,25,0)
896
Dash(Blad1,2.5/Speed)
897
Dash(Blad2,2.5/Speed)
898
local wav = p(Torm,"Block",0.1,0.1,0.1,true,false,0.3,0,BladeColor) wav.Anchored = true
899
local wavm = BlastMesh:Clone()
900
wavm.Parent = wav
901
wavm.Scale = Vector3.new(15,6,15)
902
local cff = Torso.CFrame - Vector3.new(0,0,0)
903
coroutine.resume(coroutine.create(function()
904
Dash(Blad1,4/Speed)
905
Dash(Blad2,4/Speed)
906
for i=i1,i2,is*Speed do
907
LW.C1 = ca(mr(-80+(-100*i)),mr(40-(40*i)),mr(45*i))
908
LW.C0 = cf(0.6,0.3+(1.4*i),-1+(1*i))
909
RW.C1 = ca(mr(-80+(-100*i)),mr(-40+(40*i)),mr(-45*i))
910
RW.C0 = cf(-0.6,0.3+(1.4*i),-1+(1*i))
911
lh2.C1 = ca(mr(30*i),0,mr(15*i))
912
rh2.C1 = ca(mr(30*i),0,mr(-15*i))
913
lh2.C0 = cf(-0.5+(-0.2*i),-1.9,0.35*i)
914
rh2.C0 = cf(0.5+(0.2*i),-1.9,0.35*i)
915
H1w.C0 = cf(0,-1.1+(-0.9*i),0) *ca(0,mr(360*i),0)
916
H1w.C1 = ca(mr(-90+(40*i)),0,0)
917
wait()
918
end for i=i1,i2*3,is*Speed do H1w.C1 = ca(mr(-50),mr(360*i),0) wait() end end)) Sound(Sounds.Cast,0.45,1) for i=i1,i2*5,is do Functions.BrickWarpDesign(Torso,13) wav.CFrame = cff *ca(0,mr(180*i),0) wait() end
919
for i=1,0.3,-0.14*Speed do wav.Transparency = i wait() end wav:Remove()
920
for i=i2,i1,-is*Speed do
921
LW.C1 = ca(mr(-80+(-100*i)),mr(40-(40*i)),mr(45*i))
922
LW.C0 = cf(0.6,0.3+(1.4*i),-1+(1*i))
923
RW.C1 = ca(mr(-80+(-100*i)),mr(-40+(40*i)),mr(-45*i))
924
RW.C0 = cf(-0.6,0.3+(1.4*i),-1+(1*i))
925
lh2.C1 = ca(mr(30*i),0,mr(15*i))
926
rh2.C1 = ca(mr(30*i),0,mr(-15*i))
927
lh2.C0 = cf(-0.5+(-0.2*i),-1.9,0.35*i)
928
rh2.C0 = cf(0.5+(0.2*i),-1.9,0.35*i)
929
H1w.C0 = cf(0,-1.1+(-0.9*i),0) *ca(0,mr(360*i),0)
930
H1w.C1 = ca(mr(-90+(40*i)),0,0)
931
wait()
932
end
933
bp2:Remove()
934
local bg = Instance.new("BodyGyro",Torso) bg.maxTorque = Vector3.new(math.huge,0,math.huge)
935
local bp = Instance.new("BodyPosition",Torso) bp.position = Torso.Position bp.maxForce = Vector3.new(math.huge,1000000,math.huge)
936
rpos = math.abs(hitpos.y - Torso.Position.y)
937
rpos = rpos - 1.2
938
local tpos = Torso.Position
939
Hum.WalkSpeed = 0
940
Hum.PlatformStand = true
941
Dash(Blad2,1.6/Speed,RingMesh.MeshId)
942
for i=i1,i2,is do
943
bp.position = tpos - Vector3.new(0,rpos*i,0)
944
Neck.C0 = cf(0,1-(0.5*i),-0.5*i) *ca(Neck.C1:toEulerAnglesXYZ())
945
Torw.C1 = ca(mr(20*i),0,0)
946
Torw.C0 = cf(0,-0.2*i,-0.2*i)
947
lh2.C0 = cf(-0.5,-1.9+(1*i),-1.1*i) *ca(mr(10*i),mr(90),0)
948
rh2.C0 = cf(0.5,-1.9+(1*i),0.1*i) *ca(mr(-95*i),mr(-90),0)
949
LW.C1 = ca(mr(-80+(30*i)),mr(40),0)
950
LW.C0 = cf(0.6,0.3-(0.3*i),-1+(0.3*i))
951
RW.C1 = ca(mr(-80+(30*i)),mr(-40),0)
952
RW.C0 = cf(-0.6,0.3-(0.3*i),-1+(0.3*i))
953
H1w.C0 = cf(0,-1.1,0) *ca(mr(55*i),0,0)
954
wait()
955
end
956
wait(0.25)
957
Sound(Sounds.Boom,0.5,1)
958
Sound(Sounds.EnergyBlast,0.9,1)
959
Right = true
960
ShockWave(Torso,50,BladeColor)
961
wait(1.5)
962
Right = false
963
local t2pos = Torso.Position
964
for i=i2,i1,-is do
965
bp.position = t2pos - Vector3.new(0,1.5-(1.5*i),0)
966
Neck.C0 = cf(0,1-(0.5*i),-0.5*i) *ca(Neck.C1:toEulerAnglesXYZ())
967
Torw.C1 = ca(mr(20*i),0,0)
968
Torw.C0 = cf(0,-0.2*i,-0.2*i)
969
lh2.C0 = cf(-0.5,-1.9+(1*i),-1.1*i) *ca(mr(10*i),mr(90),0)
970
rh2.C0 = cf(0.5,-1.9+(1*i),0.1*i) *ca(mr(-95*i),mr(-90),0)
971
LW.C1 = ca(mr(-80+(30*i)),mr(40),0)
972
LW.C0 = cf(0.6,0.3-(0.3*i),-1+(0.3*i))
973
RW.C1 = ca(mr(-80+(30*i)),mr(-40),0)
974
RW.C0 = cf(-0.6,0.3-(0.3*i),-1+(0.3*i))
975
H1w.C0 = cf(0,-1.1,0) *ca(mr(55*i),0,0)
976
wait()
977
end
978
DebounceSpeed = DebounceSpeed - (1.1*Speed)
979
bp:Remove()
980
bg:Remove()
981
Hum.PlatformStand = false
982
Hum.WalkSpeed = RealSpeed
983
Torw.C1 = ca(0,0,0)
984
Anim.Act = false
985
Lh,Rh = FeetWeld(false,lh2,rh2)
986
end
987
Anims.DualSpin = function(i1,i2,is,RaigCost)
988
MinusRage(RaigCost)
989
Anim.Act = true
990
for i=i1,i2,is*Speed do
991
H1w.C0 = cf(0,-1.1,0) *ca(0,mr(-180-(-90*i)),mr(0*i)) H1w.C1 = ca(mr(-90-(60*i)),0,mr(0*i))
992
H2w.C0 = cf(0,-1.1,0) *ca(0,mr(180-(270*i)),mr(0*i)) H2w.C1 = ca(mr(-90+(-30*i)),0,0)
993
LW.C1 = ca(mr(-60+(-40*i)),mr(-30+(-75*i)),mr(0*i))
994
LW.C0 = cf(0.13*i,0.5*i,-0.5+(0.5*i))
995
RW.C1 = ca(mr(-60+(-20*i)),mr(30+(45*i)),mr(0*i))
996
RW.C0 = cf(0.13*i,0.4*i,-0.5+(0.4*i))
997
wait()
998
end
999
DebounceSpeed = DebounceSpeed - (0.5*Speed) Right = true Left = true Dash(Blad1,2.6/Speed,nil,2) Dash(Blad2,2.6/Speed,nil,2) local x,y,z = Neck.C0:toEulerAnglesXYZ()
1000
local soundtime = 0
1001
for i=i1,i2*4,is*Speed do if soundtime == 10 then soundtime = 0 Sound(Sounds.SaberSlash,2.5,0.5) else soundtime = soundtime + 1 end Torw.C1 = ca(0,mr(i*360),0) Neck.C0 = cf(0,1,0) *ca(x,y,z+mr(-360*i)) wait() end Neck.C0 = cf(0,1,0) *ca(x,y,z)Torw.C1 = ca(0,0,0)
1002
DebounceSpeed = DebounceSpeed + (0.5*Speed) for i=i2,i1,-is*Speed do
1003
H1w.C0 = cf(0,-1.1,0) *ca(0,mr(-180-(-90*i)),mr(0*i)) H1w.C1 = ca(mr(-90-(60*i)),0,mr(0*i))
1004
H2w.C0 = cf(0,-1.1,0) *ca(0,mr(180-(270*i)),mr(0*i)) H2w.C1 = ca(mr(-90+(-30*i)),0,0)
1005
LW.C1 = ca(mr(-60+(-40*i)),mr(-30+(-75*i)),mr(0*i))
1006
LW.C0 = cf(0.13*i,0.5*i,-0.5+(0.5*i))
1007
RW.C1 = ca(mr(-60+(-20*i)),mr(30+(45*i)),mr(0*i))
1008
RW.C0 = cf(0.13*i,0.4*i,-0.5+(0.4*i))
1009
wait()
1010
end Right = false Left = false
1011
Anim.Act = false
1012
end
1013
1014
----------------------------
1015
----------------------------
1016
----------------------------
1017
----------------------------
1018
1019
Lh = Torso["Left Hip"]
1020
Rh = Torso["Right Hip"]
1021
1022
Functions = {}
1023
Functions.BoulderTouch = function(hit2,bould)
1024
print(bould.Name)
1025
for i,v in pairs(workspace:GetChildren()) do
1026
if v ~= Char and v ~= nil and v:findFirstChild("Torso") ~= nil and v:findFirstChild("Humanoid") ~= nil then
1027
if math.abs((v.Torso.Position-bould.Position).magnitude) < 11 and ft(RightDebounce,v.Name) == nil then
1028
Sound(Sounds.Smash,1,1)
1029
Dmgz(v.Humanoid,Damage["BoulderForce"])
1030
table.insert(RightDebounce,v.Name)
1031
print(v.Name)
1032
coroutine.resume(coroutine.create(function()wait(DebounceSpeed) local nf = ft(RightDebounce,v.Name) if nf ~= nil then table.remove(RightDebounce,nf) end end))
1033
end
1034
else
1035
if v ~= bould and v:IsA("BasePart") and v.Anchored == false and math.abs((v.Position-bould.Position).magnitude) < 11 then v:BreakJoints() v.Velocity = cf(bould.Position,v.Position).lookVector*10 + Vector3.new(0,10,0) end
1036
end
1037
end -- for
1038
end
1039
Functions.Sparkle = function(bb,scal,si)
1040
if si == nil then si = 1 end
1041
local rand = bb.Position + Vector3.new(math.random(-scal,scal),math.random(-scal,scal),math.random(-scal,scal))
1042
local np = p(Torm,"Block",0.1,0.1,0.1,false,true,0.1,0.2,BladeColor)
1043
np.CFrame = cf(rand.x,rand.y,rand.z) *ca(math.random(-33,33)/10,math.random(-33,33)/10,math.random(-33,33)/10)
1044
local dm = DiamondMesh:Clone() dm.Scale = Vector3.new(0,0,0) dm.Parent = np
1045
coroutine.resume(coroutine.create(function()
1046
for i=0,1*si,0.1*si do
1047
dm.Scale = Vector3.new(1*i,1.25*i,1*i)
1048
wait()
1049
end
1050
end))
1051
coroutine.resume(coroutine.create(function()
1052
wait(0.1)
1053
for i=0,1,0.1 do
1054
np.Transparency = i
1055
wait()
1056
end
1057
np:Remove()
1058
end))
1059
end
1060
Functions.BrickWarpDesign = function(bb,scal)
1061
local rand = bb.Position + Vector3.new(math.random(-scal,scal),math.random(-scal,scal),math.random(-scal,scal))
1062
local mag = (rand - bb.Position).magnitude
1063
local np = p(Torm,"Block",0.1,0.1,mag-3,false,true,0.1,0.2,BladeColor)
1064
np.CFrame = cf(bb.Position,rand)
1065
np.CFrame = np.CFrame + np.CFrame.lookVector*((scal/5)+(mag/2))
1066
coroutine.resume(coroutine.create(function()
1067
for i=0.1,1,0.05 do
1068
np.Transparency = i
1069
wait()
1070
end
1071
np:Remove()
1072
end))
1073
end
1074
Functions.RageRegen = function()
1075
local lostcontrol = false
1076
local hpos = Torso.Position.y + 10
1077
Anim.Move = "RageRegening"
1078
Anim.Act = true
1079
local wav = p(Torm,"Block",0.1,0.1,0.1,true,false,1,0,BladeColor) wav.Anchored = true
1080
local wavm = BlastMesh:Clone()
1081
wavm.Parent = wav
1082
local wavv = 0
1083
wavm.Scale = Vector3.new(5,3.5,5)
1084
wav.CFrame = cf((Torso.CFrame * CFrame.new(0,-2.5,0)).p) *ca(0,mr(wavv),0)
1085
local bp = Instance.new("BodyPosition",Torso)
1086
bp.maxForce = Vector3.new(0,math.huge,0)
1087
Humanoid.WalkSpeed = Humanoid.WalkSpeed - (RealSpeed-4)
1088
bp.position = Torso.Position + Vector3.new(0,10,0)
1089
local bpos = bp.position
1090
coroutine.resume(coroutine.create(function()
1091
lh2,rh2 = FeetWeld(true,Lh,Rh)
1092
if SwordType == "Single" then
1093
for i=0,1,0.1*Speed do
1094
LW.C1 = ca(mr(-80+(-30*i)),mr(40-(40*i)),0)
1095
LW.C0 = cf(0.6-(0.6*i),0.3+(0.5*i),-1+(1.7*i)) *ca(0,mr(120*i),0)
1096
RW.C1 = ca(mr(-80+(-30*i)),mr(-40+(40*i)),0)
1097
RW.C0 = cf(-0.6+(0.6*i),0.3+(0.5*i),-1+(1.7*i)) *ca(0,mr(-120*i),0)
1098
lh2.C1 = ca(mr(30*i),0,mr(15*i))
1099
rh2.C1 = ca(mr(30*i),0,mr(-15*i))
1100
lh2.C0 = cf(-0.5+(-0.2*i),-1.9,0.35*i)
1101
rh2.C0 = cf(0.5+(0.2*i),-1.9,0.35*i)
1102
wait()
1103
end
1104
else
1105
for i=0,1,0.1*Speed do
1106
LW.C1 = ca(mr(-60+(-50*i)),mr(-40-(-40*i)),0)
1107
LW.C0 = cf(-0.1,0.8*i,-0.5+(1.2*i)) *ca(0,mr(120*i),0)
1108
RW.C1 = ca(mr(-60+(-50*i)),mr(40+(-40*i)),0)
1109
RW.C0 = cf(0.1,0.8*i,-0.5+(1.2*i)) *ca(0,mr(-120*i),0)
1110
lh2.C1 = ca(mr(30*i),0,mr(15*i))
1111
rh2.C1 = ca(mr(30*i),0,mr(-15*i))
1112
lh2.C0 = cf(-0.5+(-0.2*i),-1.9,0.35*i)
1113
rh2.C0 = cf(0.5+(0.2*i),-1.9,0.35*i)
1114
wait()
1115
end
1116
end
1117
local function movezx(i1,i2,is,bp)
1118
if SwordType == "Single" then
1119
for i=i1,i2,is*Speed do
1120
LW.C1 = ca(mr(-120+(20*i)),0,0)
1121
LW.C0 = cf(0,0.8,0.7) *ca(0,mr(120+(20*i)),0)
1122
RW.C1 = ca(mr(-120+(20*i)),0,0)
1123
RW.C0 = cf(0,0.8,0.7) *ca(0,mr(-120+(-20*i)),0)
1124
lh2.C1 = ca(mr(30+(-15*i)),0,mr(15+(-8*i)))
1125
rh2.C1 = ca(mr(30+(-15*i)),0,mr(-15+(8*i)))
1126
lh2.C0 = cf(-0.7,-1.9,0.35)
1127
rh2.C0 = cf(0.7,-1.9,0.35)
1128
bp.position = Vector3.new(bpos.x,(hpos+10)+(3*i),bpos.z)
1129
wait()
1130
end
1131
else
1132
for i=i1,i2,is*Speed do
1133
LW.C1 = ca(mr(-110),mr(0),0)
1134
LW.C0 = cf(-0.1,0.8,0.7) *ca(0,mr(120+(20*i)),0)
1135
RW.C1 = ca(mr(-110),mr(0),0)
1136
RW.C0 = cf(0.1,0.8,0.7) *ca(0,mr(-120+(-20*i)),0)
1137
lh2.C1 = ca(mr(30+(-15*i)),0,mr(15+(-8*i)))
1138
rh2.C1 = ca(mr(30+(-15*i)),0,mr(-15+(8*i)))
1139
lh2.C0 = cf(-0.7,-1.9,0.35)
1140
rh2.C0 = cf(0.7,-1.9,0.35)
1141
bp.position = Vector3.new(bpos.x,(hpos+10)+(3*i),bpos.z)
1142
wait()
1143
end
1144
end
1145
end
1146
local moved = 2
1147
repeat
1148
if Rage >= MaxRage or Anim.key.z == false then break end
1149
if moved == 2 then moved = 1 movezx(0,1,0.025,bp) else moved = 2 movezx(1,0,-0.025,bp) end
1150
until Rage >= MaxRage or Anim.key.z == false or lostcontrol == true
1151
if SwordType == "Single" then
1152
for i=1,0,-0.1*Speed do
1153
LW.C1 = ca(mr(-80+(-30*i)),mr(40-(40*i)),0)
1154
LW.C0 = cf(0.6-(0.6*i),0.3+(0.5*i),-1+(1.7*i)) *ca(0,mr(120*i),0)
1155
RW.C1 = ca(mr(-80+(-30*i)),mr(-40+(40*i)),0)
1156
RW.C0 = cf(-0.6+(0.6*i),0.3+(0.5*i),-1+(1.7*i)) *ca(0,mr(-120*i),0)
1157
lh2.C1 = ca(mr(30*i),0,mr(15*i))
1158
rh2.C1 = ca(mr(30*i),0,mr(-15*i))
1159
lh2.C0 = cf(-0.5+(-0.2*i),-1.9,0.35*i)
1160
rh2.C0 = cf(0.5+(0.2*i),-1.9,0.35*i)
1161
wait()
1162
end
1163
else
1164
for i=1,0,-0.1*Speed do
1165
LW.C1 = ca(mr(-60+(-50*i)),mr(-40-(-40*i)),0)
1166
LW.C0 = cf(-0.1,0.8*i,-0.5+(1.2*i)) *ca(0,mr(120*i),0)
1167
RW.C1 = ca(mr(-60+(-50*i)),mr(40+(-40*i)),0)
1168
RW.C0 = cf(0.1,0.8*i,-0.5+(1.2*i)) *ca(0,mr(-120*i),0)
1169
lh2.C1 = ca(mr(30*i),0,mr(15*i))
1170
rh2.C1 = ca(mr(30*i),0,mr(-15*i))
1171
lh2.C0 = cf(-0.5+(-0.2*i),-1.9,0.35*i)
1172
rh2.C0 = cf(0.5+(0.2*i),-1.9,0.35*i)
1173
wait()
1174
end
1175
end
1176
Lh,Rh = FeetWeld(false,lh2,rh2)
1177
wait(0.6)
1178
Anim.Act = false
1179
Anim.Move = "None"
1180
end))
1181
for i=1,0.3,-0.14*Speed do wav.Transparency = i wait() end
1182
rpos = 0
1183
Sound(Sounds.Cast,0.8,1)
1184
repeat wait()
1185
local Hit, hitpos = rayCast(Torso.Position,((Torso.Position - Vector3.new(0,10000,0)) - Torso.Position),999.999,Player.Character)
1186
if Hit == nil then lostcontrol = true break end
1187
hpos = hitpos.y if math.random(1,6) == 4 then Functions.Sparkle(Torso,8) end
1188
if math.random(1,3) == 3 then Functions.BrickWarpDesign(Torso,10) end wavv = wavv + 10 Rage = Rage - (RageCost["RageRegening"]*RageIncome)
1189
wav.CFrame = cf(Torso.Position.x,hpos+1.4,Torso.Position.z) *ca(0,mr(wavv),0)
1190
until Rage >= MaxRage or Anim.key.z == false
1191
for i=0.3,01,0.14*Speed do wav.Transparency = i wait() end wav:Remove()
1192
bp:Remove()
1193
Humanoid.WalkSpeed = Humanoid.WalkSpeed + (RealSpeed-4)
1194
end
1195
Functions.Teleport = function(i1,i2,is,RaigCost)
1196
Anim.Act = true
1197
for i=i1,i2,is*Speed do
1198
LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(40+(-40*i)),0)
1199
LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(50*i),0)
1200
RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(-40+(40*i)),0)
1201
RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(-50*i),0)
1202
Torw.C1 = ca(0,mr(50*i),0)
1203
wait()
1204
end
1205
local tele = false
1206
local tele2 = false -- for mouse
1207
local mouseact = mouse.Button1Up:connect(function() tele2 = true end)
1208
coroutine.resume(coroutine.create(function() Sound(Sounds.Cast,1.2,1) wait(12) tele = true end))
1209
local telepos = Torso.Position
1210
local telehit = nil
1211
local wav = p(Torm,"Block",0.1,0.1,0.1,true,false,0.3,0.1,BladeColor) wav.Anchored = true
1212
local wavm = BlastMesh:Clone()
1213
wavm.Parent = wav
1214
local wavv = 0
1215
wavm.Scale = Vector3.new(3.5,2,3.5)
1216
repeat
1217
local mpos = mouse.hit.p + Vector3.new(0,2,0)
1218
telehit,telepos = rayCast(mpos,((mpos - Vector3.new(0,10000,0)) - mpos),999.999,Player.Character)
1219
wavv = wavv + 8 Functions.Sparkle(La,3) Functions.BrickWarpDesign(La,4)
1220
if telehit ~= nil then wav.Transparency = 0 wav.CFrame = cf(telepos.x,telepos.y+1,telepos.z) *ca(0,mr(wavv),0) else wav.Transparency = 1 end
1221
wait() until tele == true or tele2 == true mouseact:disconnect()
1222
if telehit == nil or math.abs((Torso.Position - telepos).magnitude) > Props.MaxTeleDistance then
1223
Sound(Sounds.Punch,1,1) for i=0.3,1,0.14 do wavm.Scale = Vector3.new(3.5+(5*i),2,3.5+(5*i)) wav.Transparency = i wait() end wav:Remove()
1224
wav:Remove()
1225
else
1226
MinusRage(RaigCost)
1227
for i=1,10 do wait() Functions.Sparkle(Torso,5,3) Functions.BrickWarpDesign(Torso,6) end
1228
ShockWave(Torso,7,BladeColor)
1229
Torso.CFrame = wav.CFrame + Vector3.new(0,2.2,0) Sound(Sounds.EnergyBlast,1.2,0.6)
1230
ShockWave(Torso,7,BladeColor)
1231
for i=1,10 do wait() Functions.Sparkle(Torso,5,3) Functions.BrickWarpDesign(Torso,6) end
1232
for i=0.3,1,0.14 do wavm.Scale = Vector3.new(3.5+(5*i),2,3.5+(5*i)) wav.Transparency = i wait() end wav:Remove()
1233
end
1234
for i=i2,i1,-is*Speed do
1235
LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(40+(-40*i)),0)
1236
LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(50*i),0)
1237
RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(-40+(40*i)),0)
1238
RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(-50*i),0)
1239
Torw.C1 = ca(0,mr(50*i),0)
1240
wait()
1241
end
1242
Anim.Act = false
1243
end
1244
1245
--------------------------------------------------------------------------------------------------------------
1246
--------------------------------------------------------------------------------------------------------------
1247
--------------------------------------------------------------------------------------------------------------
1248
--------------------------------------------------------------------------------------------------------------
1249
bin.Selected:connect(function(mm)
1250
Mouse = mouse
1251
mouse = mm
1252
Torso["Left Hip"].Part0 = Tor
1253
Torso["Right Hip"].Part0 = Tor
1254
RS.Parent = nil
1255
LS.Parent = nil
1256
RW.Parent = Torso
1257
RW.Part0 = Fra
1258
RW.Part1 = Ra
1259
LW.Parent = Torso
1260
LW.Part0 = Fla
1261
LW.Part1 = La
1262
RW.C0 = CFrame.new(0,0,0) RW.C1 = CFrame.new(0,0,0)
1263
LW.C0 = CFrame.new(0,0,0) LW.C1 = CFrame.new(0,0,0)
1264
Anims.Equip(0,1,0.07*Speed)
1265
Anim.Equipped = true
1266
mouse.KeyDown:connect(function(key)
1267
key:lower()
1268
pcall(function() Anim.key[key:lower()] = true end)
1269
keydown = true
1270
if key == "z" and Anim.Move == "None" and not Anim.Act then
1271
Functions.RageRegen()
1272
end
1273
if SwordType == "Single" then
1274
if key == "e" and Anim.Move == "None" and not Anim.Act and RageCost["RotorBlade"] <= Rage then
1275
Anim.Move = "RotorBlade"
1276
Anims.RotorBlade(0,1,0.08*Speed,RageCost["RotorBlade"])
1277
Anim.Move = "None"
1278
elseif key == "q" and Anim.Move == "None" and not Anim.Act and RageCost["Boomerang"] <= Rage then
1279
Anim.Move = "Boomerang"
1280
Anims.Boomerang(0,1,0.08*Speed,RageCost["Boomerang"])
1281
Anim.Move = "None"
1282
elseif key == "f" and Anim.Move == "None" and not Anim.Act and RageCost["BoulderForce"] <= Rage then
1283
Anim.Move = "BoulderForce"
1284
Anims.BoulderForce(0,1,0.08*Speed,RageCost["BoulderForce"])
1285
Anim.Move = "None"
1286
elseif key == "r" and Anim.Move == "None" and not Anim.Act and RageCost["ForceWave"] <= Rage then
1287
Anim.Move = "ForceWave"
1288
Anims.ForceWave(0,1,0.08*Speed,RageCost["ForceWave"])
1289
Anim.Move = "None"
1290
elseif key == "t" and Anim.Move == "None" and not Anim.Act and RageCost["Teleport"] <= Rage then
1291
Anim.Move = "Teleport"
1292
Functions.Teleport(0,1,0.08*Speed,RageCost["Teleport"])
1293
Anim.Move = "None"
1294
end
1295
elseif SwordType == "Dual" then
1296
if key == "e" and Anim.Move == "None" and not Anim.Act and RageCost["DualSpin"] <= Rage then
1297
Anim.Move = "DualSpin"
1298
Anims.DualSpin(0,1,0.08*Speed,RageCost["DualSpin"])
1299
Anim.Move = "None"
1300
end
1301
end
1302
end)
1303
mouse.KeyUp:connect(function(key)
1304
pcall(function() Anim.key[key:lower()] = false end)
1305
keydown = false
1306
end)
1307
1308
mouse.Button1Down:connect(function() Anim.Button = true
1309
if not Anim.Click and Anim.Move == "None" and not Anim.Act then
1310
Anim.Click = true
1311
if Anim.CanBerserk ~= 0 then Anim.CanBerserk = Anim.CanBerserk + 1 end
1312
if Anim.CanBerserk == 0 and RageCost["Berserk"] <= Rage then
1313
Rage = Rage - RageCost["Berserk"]
1314
Anim.ComboBreak = true
1315
Speed = Speed + 0.5
1316
Anim.CanBerserk = Anim.CanBerserk + 1
1317
--Anim.Move = "LeftPunch"
1318
--Anims.LeftPunch(0,1,0.1*Speed,0) Anim.Move = "None"
1319
elseif Anim.CanBerserk == 2 then
1320
Anim.CanBerserk = 0
1321
end
1322
coroutine.resume(coroutine.create(function() local oldcomb = Anim.CanBerserk wait(0.5) if Anim.ComboBreak == true and Anim.CanBerserk == oldcomb then Anim.ComboBreak = false Speed = Speed -0.5 Anim.CanBerserk = 0 end end))
1323
wait(0.1)
1324
Anim.Click = false
1325
end
1326
end)
1327
mouse.Button1Up:connect(function() Anim.Button = false
1328
end)
1329
end)
1330
bin.Deselected:connect(function(mouse)
1331
Anim.Equipped = false
1332
if SwordType == "Dual" then Anims.ChangeToSingle(0,1,0.25*Speed) SwordType = "Single" end
1333
Anims.UnEquip(1,0,-0.08*Speed)
1334
RW.Parent = nil
1335
LW.Parent = nil
1336
RS.Parent = Torso
1337
RS.Part0 = Torso
1338
RS.Part1 = Ra
1339
LS.Parent = Torso
1340
LS.Part0 = Torso
1341
LS.Part1 = La
1342
if Rh.Parent == nil then
1343
FeetWeld(false,Lh,Rh)
1344
end
1345
Torso["Left Hip"].Part0 = Torso
1346
Torso["Right Hip"].Part0 = Torso
1347
end)
1348
Hum.WalkSpeed = RealSpeed
1349
Rage = 100000
1350
wait(5)
1351
Workspace.USERNAME.Humanoid.MaxHealth = math.huge