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