View difference between Paste ID: xd1dwd9K and pVWhiuUW
SHOW: | | - or go back to the newest paste.
1-
me = game.Players.ericthefabulous
1+
me = game.Players.Kllerwarrior789
2
char = me.Character
3
Selected = false
4
Able = true
5
Arrow = nil
6
ArrowOn = false
7
Hurt = false
8
Deb = true
9
Reloading = false
10
Shooting = false
11
Slashing = false
12
necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) 
13
EffectOn = false
14
Accuracy = 1
15
SelAnim = false
16
DMG = 25
17
18
LapaCol = "Really black"
19
HandCol = "Really black"
20
MiddleCol = "Really black"
21
ViiniCol = "Really black"
22
23
Icon = "http://www.roblox.com/asset/?id=51902588"
24
25
Keys = {
26
e = false,
27
}
28
29
ModelName = "Epic Bow"
30
31
CA = CFrame.Angles
32
CN = CFrame.new
33
MR = math.rad
34
MP = math.pi
35
MRA = math.random
36
MH = math.huge
37
38
UD = UDim2.new
39
C3 = Color3.new
40
41
MaximumPower = 200
42
MaxSpecial = 100
43
Special = MaxSpecial
44
45
Sounds = {
46
Slash = {"rbxasset://sounds//swordslash.wav", 1.2, 1},
47
Shoot = {"http://www.roblox.com/asset/?id=16211041", 2, 1},
48
Stick = {"http://www.roblox.com/asset/?id=2767090", 15, 1},
49
Hit = {"http://www.roblox.com/asset/?id=10209590", 0.9, 1},
50
Block = {"rbxasset://sounds\\metal.ogg", 1.4, 1},
51
}
52
53
function RC(Pos, Dir, Max, Ignore)
54
return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999)), Ignore)
55
end
56
57
function RayC(Start, En, MaxDist, Ignore)
58
return RC(Start, (En - Start), MaxDist, Ignore)
59
end
60
61
function DetectSurface(pos, part)
62
local surface = nil
63
local pospos = part.CFrame
64
local pos2 = pospos:pointToObjectSpace(pos)
65
local siz = part.Size
66
local shaep = part.Shape
67
if shaep == Enum.PartType.Ball or shaep == Enum.PartType.Cylinder then
68
surface = {"Anything", CN(pospos.p, pos)*CN(0, 0, -(pospos.p - pos).magnitude)*CA(MR(-90), 0, 0)}
69
else
70
if pos2.Y > ((siz.Y/2)-0.04) then
71
surface = {"Top", CA(0, 0, 0)}
72
elseif pos2.Y < -((siz.Y/2)-0.04) then
73
surface = {"Bottom", CA(-MP, 0, 0)}
74
elseif pos2.X > ((siz.X/2)-0.04) then
75
surface = {"Right", CA(0, 0, MR(-90))}
76
elseif pos2.X < -((siz.X/2)-0.04) then
77
surface = {"Left", CA(0, 0, MR(90))}
78
elseif pos2.Z > ((siz.Z/2)-0.04) then
79
surface = {"Back", CA(MR(90), 0, 0)}
80
elseif pos2.Z < -((siz.Z/2)-0.04) then
81
surface = {"Front", CA(MR(-90), 0, 0)}
82
end
83
end
84
return surface
85
end
86
87
function Compute(pos1, pos2)
88
local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
89
return CN(pos1, pos3)
90
end
91
92
function Notime(func, tiem)
93
if tiem then wait(tiem) end
94
coroutine.resume(coroutine.create(function() func() end))
95
end
96
97
function waitChild(p, n)
98
local child = p:findFirstChild(n)
99
if child then return child end
100
while true do
101
child = p.ChildAdded:wait()
102
if child.Name == n then return child end
103
end
104
end
105
106
function getHumanoid(c)
107
for _,v in pairs(c:children()) do
108
if v:IsA("Humanoid") and c ~= char then if v.Health > 0 then return v end end
109
end
110
end
111
112
function SE(part, pos)
113
EffectOn = true
114
local lastP = (part.CFrame * pos).p
115
Notime(function()
116
while EffectOn do
117
wait()
118
local posnow = (part.CFrame * pos).p
119
local eff = Part(workspace, true, false, 0, 0, "White", 0.2, 1, 0.2)
120
local magn = (lastP - posnow).magnitude
121
local cf = CN(lastP, posnow) * CA(MR(-90), 0, 0)
122
local mes2 = Instance.new("SpecialMesh",eff)
123
mes2.Scale = Vector3.new(0.6, magn, 0.6)
124
eff.CFrame = cf * CN(0, magn/2, 0)
125
Notime(function()
126
for i = 0, 1, 0.1 do
127
wait()
128
eff.Transparency = i
129
eff.Reflectance = 0.15*i
130
mes2.Scale = Vector3.new(0.6-0.6*i, magn, 0.6-0.6*i)
131
end
132
eff:remove()
133
end)
134
lastP = posnow
135
end
136
end)
137
end
138
139
function EE()
140
EffectOn = false
141
end
142
143
torso = waitChild(char, "Torso")
144
Rarm = waitChild(char, "Right Arm")
145
Larm = waitChild(char, "Left Arm")
146
Rleg = waitChild(char, "Right Leg")
147
Lleg = waitChild(char, "Left Leg")
148
Hum = waitChild(char, "Humanoid")
149
neck = waitChild(torso, "Neck")
150
151
function EditGui(obj, parent, size, position, bgcolor, bordercolor, transparency, text, textcolor, auto)
152
obj.Size = size
153
obj.Position = position
154
obj.BackgroundColor3 = bgcolor
155
obj.BorderColor3 = bordercolor
156
obj.BackgroundTransparency = transparency
157
if obj:IsA("TextLabel") or obj:IsA("TextButton") then
158
obj.Text = text
159
obj.TextColor3 = textcolor
160
end
161
if obj:IsA("ImageButton") or obj:IsA("TextButton") then
162
obj.AutoButtonColor = auto
163
obj.MouseButton1Down:connect(function()
164
RemoveOptions()
165
end)
166
end
167
obj.Parent = parent
168
end
169
170
Gui = waitChild(me, "PlayerGui")
171
172
for _,v in pairs(Gui:children()) do
173
if v.Name == "Power" then v:remove() end
174
end
175
176
Sc = Instance.new("ScreenGui", Gui)
177
Sc.Name = "Power"
178
179
Main = Instance.new("TextLabel")
180
Main.Visible = false
181
EditGui(Main, Sc, UD(0, 200, 0, 65), UD(0.5, -100, 0, 120), C3(0.06, 0.06, 0.1), C3(), 0.5, "Power", C3(1, 1, 0))
182
Main.TextYAlignment = "Top"
183
Main.FontSize = "Size36"
184
Main.Font = "ArialBold"
185
Main.TextTransparency = 0.5
186
187
BarBack = Instance.new("Frame")
188
EditGui(BarBack, Main, UD(1, -10, 0, 25), UD(0, 5, 1, -30), C3(0, 0, 0), C3(), 0.5)
189
190
Bar = Instance.new("ImageLabel")
191
EditGui(Bar, BarBack, UD(0, 0, 1, 0), UD(0, 0, 0, 0), C3(1, 0.7, 0), C3(), 0.5)
192
Bar.Image = "http://www.roblox.com/asset/?id=48965808"
193
194
Spec = Instance.new("Frame")
195
EditGui(Spec, Sc, UD(0, 250, 0, 22), UD(0.04, 0, 0, 5), C3(1, 0.75, 0.1), C3(), 0)
196
197
SpecialBack = Instance.new("Frame")
198
EditGui(SpecialBack, Spec, UD(1, -10, 1, -6), UD(0, 5, 0, 3), C3(0.35, 0.1, 0.15), C3(), 0)
199
200
SpecialBar = Instance.new("ImageLabel")
201
EditGui(SpecialBar, SpecialBack, UD(Special/MaxSpecial, 0, 1, 0), UD(0, 0, 0, 0), C3(0.1, 0.65, 0.2), C3(), 0)
202
SpecialBar.Image = "http://www.roblox.com/asset/?id=48965808"
203
204
for i = 1, 3, 1 do
205
local p = Instance.new("Frame")
206
EditGui(p, SpecialBack, UD(0, 1, 1, 0), UD(i/4, 0, 0, 0), C3(0.1, 0.2, 1), C3(), 0)
207
p.BorderSizePixel = 0
208
end
209
210
SpecialText = Instance.new("TextLabel")
211
EditGui(SpecialText, SpecialBack, UD(1, 0, 1, 0), UD(0, 0, 0, 0), C3(), C3(), 1, "S P E C I A L", C3(1,1,1))
212
SpecialText.Font = "ArialBold"
213
SpecialText.FontSize = "Size14"
214
215
function Play(Sound)
216
local s = Instance.new("Sound")
217
s.SoundId = Sound[1]
218
s.Pitch = Sound[2]
219
s.Volume = Sound[3]
220
s.Parent = torso
221
s.PlayOnRemove = true
222
game.Debris:AddItem(s, 0.0001)
223
end
224
225
RSH = waitChild(torso, "Right Shoulder")
226
LSH = waitChild(torso, "Left Shoulder")
227
RH = waitChild(torso, "Right Hip")
228
LH = waitChild(torso, "Left Hip")
229
230
for i,v in pairs(char:children()) do if v.Name == ModelName then v:remove() end end
231
232
function Part(P, Anch, Coll, Tran, Ref, Col, X, Y, Z)
233
local p = Instance.new("Part")
234
p.TopSurface = 0
235
p.BottomSurface = 0
236
p.Transparency = Tran
237
p.Reflectance = Ref
238
p.CanCollide = Coll
239
p.Anchored = Anch
240
p.BrickColor = BrickColor.new(Col)
241
p.formFactor = "Custom"
242
p.Size = Vector3.new(X,Y,Z)
243
p.Parent = P
244
p.Locked = true
245
p:BreakJoints()
246
return p
247
end
248
249
function Weld(P0, P1, X, Y, Z, A, B, C)
250
local w = Instance.new("Weld")
251
w.Part0 = P0
252
w.Part1 = P1
253
w.C1 = CN(X, Y, Z) * CA(A, B, C)
254
w.Parent = P0
255
return w
256
end
257
258
Mo = Instance.new("Model")
259
Mo.Name = ModelName
260
261
FTorso = Part(Mo, false, false, 1, 0, torso.BrickColor.Name, torso.Size.X, torso.Size.Y, torso.Size.Z)
262
FWeld = Weld(torso, FTorso, 0, 0, 0, 0, 0, 0)
263
264
RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1)
265
LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1)
266
RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1)
267
LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1)
268
269
RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
270
LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
271
RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
272
LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
273
274
function Atch(p)
275
RABW.Part0 = p
276
LABW.Part0 = p
277
RLBW.Part0 = p
278
LLBW.Part0 = p
279
RSH.Part0 = p
280
LSH.Part0 = p
281
RH.Part0 = p
282
LH.Part0 = p
283
end
284
285
RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
286
LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
287
RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
288
LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
289
290
HB = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1)
291
HBW = Weld(Larm, HB, 0, 1, 0, 0, 0, 0)
292
HW = Weld(HB, nil, 0, 0, 0, MR(90), 0, 0)
293
294
AB = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1)
295
ABW = Weld(Rarm, AB, 0, 1, 0, 0, 0, 0)
296
AW = Weld(AB, nil, 0, 0, 0, 0, 0, 0)
297
298
TW = Weld(torso, nil, -0.7, 0, 0.5, 0, MP, 0)
299
300
Handle = Part(Mo, false, false, 0, 0, HandCol, 0.6, 1.2, 0.6)
301
Instance.new("SpecialMesh",Handle)
302
TW.Part1 = Handle
303
304
for i = -0.6, 0.61, 1.2 do
305
local p = Part(Mo, false, false, 0, 0, MiddleCol, 0.7, 0.2, 1.1)
306
Weld(Handle, p, 0, i, 0.15, 0, 0, 0)
307
Instance.new("BlockMesh", p)
308
end
309
310
local UpPoint, DownPoint
311
312
for i = -10, 95, 15 do
313
local p = Part(Mo, false, false, 0, 0, LapaCol, 0.69, 0.4, 0.2)
314
local w = Weld(Handle, p, 0, 0, 1.4, 0, 0, 0)
315
w.C0 = CN(0, 1.1, 0.75) * CA(MR(i), 0, 0)
316
Instance.new("BlockMesh", p)
317
UpPoint = p
318
end
319
320
for i = 10, -95, -15 do
321
local p = Part(Mo, false, false, 0, 0, LapaCol, 0.69, 0.4, 0.2)
322
local w = Weld(Handle, p, 0, 0, 1.4, 0, 0, 0)
323
w.C0 = CN(0, -1.1, 0.75) * CA(MR(i), 0, 0)
324
Instance.new("BlockMesh", p)
325
DownPoint = p
326
end
327
328
StringUp = Part(Mo, false, false, 0, 0, "White", 0.2, 1, 0.2)
329
StringDown = Part(Mo, false, false, 0, 0, "White", 0.2, 1, 0.2)
330
331
SUM = Instance.new("SpecialMesh", StringUp)
332
SDM = Instance.new("SpecialMesh", StringDown)
333
SUM.Scale = Vector3.new(0.4, 2.4, 0.4)
334
SDM.Scale = Vector3.new(0.4, 2.4, 0.4)
335
336
ORSU = CN(0, -1.3, 0) * CA(MR(-85), 0, 0)
337
ORSD = CN(0, 1.3, 0) * CA(MR(85), 0, 0)
338
339
SUW = Weld(UpPoint, StringUp, 0, -1.3, 0, MR(-85), 0, 0)
340
SDW = Weld(DownPoint, StringDown, 0, 1.3, 0, MR(85), 0, 0)
341
SUW.C0 = CN(0, 0.15, 0)
342
SDW.C0 = CN(0, -0.15, 0)
343
SUW.C1 = ORSU
344
SDW.C1 = ORSD
345
346
Arrow = Part(Mo, false, false, 1, 0, "Brown", 0.4, 0.4, 4.4)
347
local mesh = Instance.new("SpecialMesh",Arrow)
348
mesh.MeshId = "http://www.roblox.com/asset/?id=15887356"
349
mesh.TextureId = "http://www.roblox.com/asset/?id=15886781"
350
mesh.Scale = Vector3.new(1, 1, 2.1)
351
AW.Part1 = Arrow
352
353
354
Ring = Part(Mo, false, false, 0, 0, ViiniCol, 0.2, 0.2, 0.2)
355
RingM = Instance.new("SpecialMesh", Ring)
356
RingM.MeshId = "http://www.roblox.com/asset/?id=3270017"
357
RingM.Scale = Vector3.new(0.6, 1, 21)
358
local www = Weld(FTorso, Ring, -0.9, -0.2, -0.8, MR(90), MR(90), MR(30))
359
www.C0 = CA(MR(-10), 0, 0)
360
361
Sp = Part(Mo, false, false, 0, 0, "Black", 1, 0.2, 1)
362
local S = Instance.new("SpecialMesh",Sp)
363
S.MeshType = "Sphere"
364
S.Scale = Vector3.new(0.65, 1, 1.05)
365
Weld(Ring, Sp, 0, 1.7, 0, MR(-90), 0, 0)
366
367
function makeArrow(pos, ang)
368
local arrow = Part(Mo, false, false, 0, 0, "Brown", 0.2, 1, 0.2)
369
local mesh = Instance.new("SpecialMesh",arrow)
370
mesh.MeshId = "http://www.roblox.com/asset/?id=15887356"
371
mesh.TextureId = "http://www.roblox.com/asset/?id=15886781"
372
mesh.Scale = Vector3.new(1, 1, 2.1)
373
Weld(Ring, arrow, pos.x, pos.y, pos.z, MP, 0, ang)
374
end
375
376
makeArrow(Vector3.new(0.15, 0.1, 0.55), 0.8)
377
makeArrow(Vector3.new(-0.2, -0.1, 0.65), -0.4)
378
makeArrow(Vector3.new(-0.1, 0.1, 0.6), 1.8)
379
makeArrow(Vector3.new(-0.1, -0.15, 0.7), 1.2)
380
makeArrow(Vector3.new(0, 0.3, 0.6), 0.28)
381
makeArrow(Vector3.new(0, 0, 0.65), 0.34)
382
makeArrow(Vector3.new(0.3, 0.1, 0.55), 1.9)
383
makeArrow(Vector3.new(-0.35, 0.1, 0.67), 1.9)
384
385
Mo.Parent = char
386
387
function Normal()
388
FTorso.Transparency = 1
389
FWeld.C0 = CN()
390
torso.Transparency = 0
391
LAW.C0 = CA(0, 0, MR(30))
392
RAW.Part1 = nil
393
RAW.C0 = CN()
394
RAW.C1 = CN(0, 0.5, 0)
395
LAW.C1 = CN(0, 0.5, 0)
396
LAW.Part1 = Larm
397
RABW.Part0 = torso
398
LABW.Part0 = torso
399
RLBW.Part0 = torso
400
LLBW.Part0 = torso
401
RSH.Part0 = torso
402
LSH.Part0 = torso
403
RH.Part0 = torso
404
LH.Part0 = torso
405
AW.C0 = CN()
406
HW.C0 = CA(MR(180), 0, MR(150))
407
SUW.C0 = CN(0, 0.15, 0)
408
SDW.C0 = CN(0, -0.15, 0)
409
SUW.C1 = ORSU
410
SDW.C1 = ORSD
411
SUM.Scale = Vector3.new(0.4, 2.4, 0.4)
412
SDM.Scale = Vector3.new(0.4, 2.4, 0.4)
413
end
414
415
if script.Parent.className ~= "HopperBin" then
416
h = Instance.new("HopperBin", me.Backpack)
417
h.Name = "xBow"
418
script.Parent = h
419
end
420
421
bin = script.Parent
422
423
function ShowDmg(pos, dmg)
424
local col = "Bright red"
425
if dmg < 1 then
426
col = "Bright blue"
427
end
428
local m = Instance.new("Model")
429
m.Name = dmg
430
local p = Part(m, false, false, 0, 0, col, 0.8, 0.3, 0.8)
431
p.Name = "Head"
432
p.CFrame = CFrame.new(pos)
433
local bp = Instance.new("BodyPosition", p)
434
bp.position = pos + Vector3.new(0, 2.5, 0)
435
bp.P = 6500
436
bp.maxForce = Vector3.new(MH, MH, MH)
437
local h = Instance.new("Humanoid",m)
438
h.MaxHealth = 0
439
h.Health = 0
440
h.Name = "fffsaf"
441
m.Parent = workspace
442
game.Debris:AddItem(m, 1.5)
443
end
444
445
function Dmg(hum, dmg, pos)
446
if hum.Health > 0 then
447
hum.Health = hum.Health - dmg
448
ShowDmg(pos, dmg)
449
end
450
end
451
452
function ArrowT(hit)
453
local h = getHumanoid(hit.Parent)
454
if h and Deb and Hurt then
455
Deb = false
456
Dmg(h, MRA(3,15), Arrow.CFrame * CN(0, 0, 2.2).p)
457
end
458
end
459
460
Arrow.Touched:connect(ArrowT)
461
462
function SelectAnim()
463
LAW.Part1 = Larm
464
SelAnim = true
465
for i = 0.2, 1, 0.2 do
466
LAW.C0 = CA(MR(-25*i), 0, MR(25*i)) * CN(0, 0.2*i, 0)
467
wait()
468
end
469
HW.C0 = CN(0.4, 0.3, 0) * CA(MR(110), MR(-100), MR(180))
470
HW.Part1 = Handle
471
TW.Part1 = nil
472
for i = 0.08, 1, 0.08 do
473
LAW.C0 = CA(MR(-25+25*i), 0, MR(25-55*i)) * CN(0, 0.2-0.2*i, 0)
474
HW.C0 = CN(0.4-0.4*i, 0.3-0.3*i, 0) * CA(MR(110+70*i), MR(-20+20*i), MR(180-30*i))
475
wait()
476
end
477
SelAnim = false
478
HW.C0 = CA(MR(180), 0, MR(150))
479
end
480
481
function DeselectAnim()
482
for i = 0.12, 1, 0.12 do
483
LAW.C0 = CA(MR(-25*i), 0, MR(-30+55*i)) * CN(0, 0.2*i, 0)
484
HW.C0 = CN(0.4*i, 0.3*i, 0) * CA(MR(180-70*i), MR(-20*i), MR(150+30*i))
485
if SelAnim or Selected then return end
486
wait()
487
end
488
HW.Part1 = nil
489
TW.Part1 = Handle
490
for i = 0.12, 1, 0.12 do
491
LAW.C0 = CA(MR(-25+25*i), 0, MR(-30+55-25*i)) * CN(0, 0.2-0.2*i, 0)
492
if SelAnim or Selected then return end
493
wait()
494
end
495
if Selected == false and SelAnim == false then
496
LAW.Part1 = nil
497
end
498
end
499
500
function Slash()
501
RAW.Part1 = Rarm
502
Slashing = true
503
Play(Sounds.Slash)
504
for i = 0.15, 1, 0.15 do
505
RAW.C0 = CA(MR(180*i), MR(-20*i), MR(35*i))
506
AW.C0 = CA(MR(35*i), 0, 0) * CN(0, 0, 0.7*i)
507
wait()
508
end
509
for i = 0.33, 1, 0.33 do
510
RAW.C0 = CA(MR(180+10*i), MR(-20), MR(35+2*i))
511
AW.C0 = CA(MR(35+5*i), 0, 0) * CN(0, 0, 0.7+0.2*i)
512
wait()
513
end
514
local blockk = false
515
local hit, pos = RayC(torso.Position, torso.CFrame * CN(0, 0, -5).p, 3.2, char)
516
if hit ~= nil then
517
if getHumanoid(hit.Parent) == nil and hit.CanCollide == true then
518
blockk = true
519
end
520
end
521
SE(Arrow, CN(0, 0, 2.2))
522
if blockk == false then
523
Hurt = true
524
Deb = true
525
for i = 0.2, 1, 0.2 do
526
RAW.C0 = CA(MR(190-140*i), MR(-20-5*i), MR(37-87*i)) * CN(0, -1*i, 0)
527
AW.C0 = CA(MR(40-25*i), MR(-20*i), 0) * CN(0, 0, 0.9+0.3*i)
528
wait()
529
end
530
EE()
531
Hurt = false
532
for i = 0.33, 1, 0.33 do
533
RAW.C0 = CA(MR(50-10*i), MR(-25), MR(-50-5*i)) * CN(0, -1, 0)
534
AW.C0 = CA(MR(15-20*i), MR(-20-1*i), 0) * CN(0, 0, 1.2*i)
535
wait()
536
end
537
for i = 0.25, 1, 0.25 do
538
RAW.C0 = CA(MR(40-10*i), MR(-25+25*i), MR(-55+35*i)) * CN(0, -1+1*i, 0)
539
AW.C0 = CA(MR(-5+55*i), MR(-21+21*i), 0) * CN(0, 0, 1.2-1.2*i)
540
wait()
541
end
542
for i = 0.25, 1, 0.25 do
543
RAW.C0 = CA(MR(30-30*i), 0, MR(-20+20*i))
544
AW.C0 = CA(MR(50-50*i), 0, 0)
545
wait()
546
end
547
else
548
for i = 0.5, 1, 0.5 do
549
RAW.C0 = CA(MR(190-50*i), MR(-20-5*i), MR(37-27*i)) * CN(0, -0.2*i, 0)
550
AW.C0 = CA(MR(40-5*i), MR(-5*i), 0) * CN(0, 0, 0.9+0.1*i)
551
wait()
552
end
553
Play(Sounds.Block)
554
for i = 0.25, 1, 0.25 do
555
RAW.C0 = CA(MR(140+60*i), MR(-25+25*i), MR(10+20*i)) * CN(0, -0.2-0.3*i, 0)
556
AW.C0 = CA(MR(35+45*i), MR(-5+5*i), 0) * CN(0, 0, 1)
557
wait()
558
end
559
EE()
560
for i = 0.33, 1, 0.33 do
561
RAW.C0 = CA(MR(200+10*i), MR(5*i), MR(30+5*i)) * CN(0, -0.5, 0)
562
AW.C0 = CA(MR(80+5*i), 0, 0) * CN(0, 0, 1)
563
wait()
564
end
565
for i = 0.18, 1, 0.18 do
566
RAW.C0 = CA(MR(210-200*i), MR(5-5*i), MR(35-30*i)) * CN(0, -0.5+0.4*i, 0)
567
AW.C0 = CA(MR(85-75*i), 0, 0) * CN(0, 0, 1-0.8*i)
568
wait()
569
end
570
for i = 0.33, 1, 0.33 do
571
RAW.C0 = CA(MR(10-10*i), 0, MR(5-5*i)) * CN(0, -0.1+0.1*i, 0)
572
AW.C0 = CA(MR(10-10*i), 0, 0) * CN(0, 0, 0.2-0.2*i)
573
wait()
574
end
575
AW.C0 = CN()
576
end
577
Slashing = false
578
RAW.Part1 = nil
579
end
580
581
function Reload()
582
if ArrowOn == false then
583
RAW.Part1 = Rarm
584
Reloading = true
585
for i = 0.16, 1, 0.16 do
586
RAW.C0 = CA(MR(200*i), MR(-5*i), 0) * CN(0, -0.35*i, 0)
587
wait()
588
end
589
AW.C0 = CA(0, MR(-90), 0)
590
AW.C1 = CN(0, 0, -1.5) * CA(MR(60), 0, 0)
591
Arrow.Transparency = 0
592
ArrowOn = true
593
for i = 0.2, 1, 0.2 do
594
RAW.C0 = CA(MR(200), MR(-5), MR(40*i)) * CN(0, -0.35, 0)
595
AW.C1 = CN(0, 0, -1.5+2*i) * CA(MR(60-20*i), 0, 0)
596
wait()
597
end
598
for i = 0.33, 1, 0.33 do
599
RAW.C0 = CA(MR(200), MR(-5), MR(40+10*i)) * CN(0, -0.35+0.05*i, 0)
600
AW.C1 = CN(0, 0, 0.5+0.1*i) * CA(MR(40-5*i), 0, 0)
601
wait()
602
end
603
for i = 0.18, 1, 0.18 do
604
RAW.C0 = CA(MR(200-190*i), MR(-5+5*i), MR(50-45*i)) * CN(0, -0.3+0.25*i, 0)
605
AW.C1 = CN(0, 0, 0.6-0.5*i) * CA(MR(35-30*i), 0, 0)
606
AW.C0 = CA(0, MR(-90+80*i), 0)
607
wait()
608
end
609
for i = 0.33, 1, 0.33 do
610
RAW.C0 = CA(MR(10-10*i), 0, MR(5-5*i)) * CN(0, -0.05+0.05*i, 0)
611
AW.C1 = CN(0, 0, 0.1-0.1*i) * CA(MR(5-5*i), 0, 0)
612
AW.C0 = CA(0, MR(-10+10*i), 0)
613
wait()
614
end
615
AW.C1 = CN()
616
AW.C0 = CN()
617
RAW.C0 = CN()
618
RAW.Part1 = nil
619
Reloading = false
620
else
621
Slash()
622
end
623
end
624
625
function AddDetail(Surface, pos, bool, part, hu)
626
local caf = CN(pos) * CA(part.CFrame:toEulerAnglesXYZ()) * Surface[2]
627
if Surface[1] == "Anything" then
628
caf = Surface[2]
629
end
630
Notime(function()
631
if bool then
632
Notime(function()
633
for i = 1, MRA(2,7) do
634
local x = MRA(0.4*100, 0.9*100)/100
635
local z = MRA(0.7*100, 1.2*100)/100
636
local pp = Part(hu.Parent, false, false, 0, 0, "Bright red", 0.2, 0.2, 0.2)
637
local ms = Instance.new("SpecialMesh",pp)
638
ms.MeshType = "Sphere"
639
ms.Scale = Vector3.new(x*5, 1, z*5)
640
pp.CFrame = caf
641
local w = Weld(part, pp, 0, 0, 0, 0, 0, 0)
642
local c0 = part.CFrame:toObjectSpace(caf) * CN(MRA(-0.3*100, 0.3*100)/100, 0, MRA(-0.3*100, 0.3*100)/100) * CA(0, MR(MRA(-180,180)), 0)
643
w.C0 = c0
644
Notime(function()
645
local moar = MRA(-1.1*1000, 1.1*1000)/1000
646
for i = 0, 1, MRA(0.02*1000, 0.06*1000)/1000 do
647
wait()
648
w.C0 = c0 * CN(0, 0, -moar*i)
649
ms.Scale = Vector3.new((x*5)-(moar/3)*i, 1, (z*5)+(moar/3)*i)
650
pp.Transparency = -0.5+1.5*i
651
end
652
pp:remove()
653
end)
654
end
655
end)
656
for i = 1, MRA(4,8) do
657
Notime(function()
658
local pp2 = Part(hu.Parent, true, false, 0, 0, "Bright red", 0.2, 0.2, 0.2)
659
pp2.CFrame = caf
660
local ms2 = Instance.new("SpecialMesh",pp2)
661
ms2.MeshType = "Sphere"
662
ms2.Scale = Vector3.new(1.5, 1.5, 1.5)
663
local face = CA(MR(MRA(-40, 40)+105), MR(MRA(-40, 40)), MR(MRA(-40, 40)))
664
local center = caf * face * CN(0, -5, 0)
665
Notime(function()
666
for i = 0, 1, 0.1 do
667
pp2.Transparency = -0.7+1.7*i
668
pp2.CFrame = center * CN(0, 0, -2.5*i) * CA(MR(-55*i), 0, 0) * CN(0, 5, 0)
669
wait()
670
end
671
pp2:remove()
672
end)
673
end)
674
end
675
else
676
Notime(function()
677
for i = 1, MRA(5,8) do
678
Notime(function()
679
local t = {"Bright yellow", "New Yeller", "White", "Institutional white", "Brick yellow"}
680
local pp = Part(workspace, true, false, 0, 0, t[MRA(1, #t)], 0.2, 0.2, 0.2)
681
local mes = Instance.new("SpecialMesh",pp)
682
mes.MeshType = "Sphere"
683
mes.Scale = Vector3.new(0.5, 0.5, 1)
684
local caa = CN(caf.p) * CA(MR(MRA(-180,180)), MR(MRA(-180,180)), MR(MRA(-180,180)))
685
pp.CFrame = caa
686
for i = 0.25, 1, 0.25 do
687
wait()
688
mes.Scale = Vector3.new(0.5+0.1*i, 0.5+0.1*i, 1+2*i)
689
pp.CFrame = caa * CN(0, 0, -0.4*i)
690
end
691
for i = 0.25, 1, 0.25 do
692
wait()
693
mes.Scale = Vector3.new(0.6, 0.6, 3+1.6*i)
694
pp.CFrame = caa * CN(0, 0, -0.6-0.32*i)
695
pp.Transparency = -0.2+1.2*i
696
end
697
pp:remove()
698
end)
699
end
700
end)
701
end
702
end)
703
end
704
705
function ShootArrow(pos, power, targ)
706
local Start = Handle.Position
707
local mag = (Start - pos).magnitude/200
708
if mag > 12.5 then mag = 12.5 end
709
if targ == nil then mag = 1 end
710
local Face = CN(Start, pos) * CA(MR(MRA(-Accuracy*10000, Accuracy*10000)/10000+mag), MR(MRA(-Accuracy*10000, Accuracy*10000)/10000), MR(MRA(-Accuracy*10000, Accuracy*10000)/10000))
711
local Arr = Part(Mo, true, false, 0, 0, "Brown", 0.2, 0.2, 0.2)
712
local mes = Instance.new("SpecialMesh",Arr)
713
mes.MeshId = "http://www.roblox.com/asset/?id=15887356"
714
mes.TextureId = "http://www.roblox.com/asset/?id=15886781"
715
mes.Scale = Vector3.new(1, 1, 2.1)
716
Arr.CFrame = Face
717
local Go = 2.8+(power/30)
718
local Dist = 200+(power*2.8)
719
local Drop = 0.55/(Go*1.25)
720
local lastP = Start
721
local didhit = false
722
local omg = 0
723
local hit2, pos2 = RayC(torso.CFrame * CN(0, 0, -0.4).p, torso.CFrame * CN(0, 0, -2).p, 2.5, char)
724
local hu2 = nil
725
if hit2 then
726
local hh = getHumanoid(hit2.Parent)
727
if hh then
728
hit2 = nil
729
end
730
end
731
for i = Go, Dist, Go do
732
Drop = Drop + 1/(Go*3.5)
733
omg = omg + Drop
734
local dropping = CA(MR(-Drop), 0, 0)
735
if omg > 130 then
736
dropping = CN()
737
end
738
Face = Face * dropping * CN(0, 0, -Go)
739
Arr.CFrame = Face * CA(MR(-180), 0, 0)
740
local hit, p = RayC(lastP, Face.p, Go+0.5, char)
741
local eff = Part(Mo, true, false, 0, 0, "White", 0.2, 1, 0.2)
742
local magn = (lastP - Face.p).magnitude
743
local cf = CN(lastP, Face.p) * CA(MR(-90), 0, 0)
744
if hit then
745
magn = (lastP - p).magnitude
746
cf = CN(lastP, p) * CA(MR(-90), 0, 0)
747
end
748
local mes2 = Instance.new("SpecialMesh",eff)
749
mes2.Scale = Vector3.new(0.6, magn, 0.6)
750
eff.CFrame = cf * CN(0, magn/2, 0)
751
Notime(function()
752
for i = 0, 1, 0.12 do
753
wait()
754
eff.Transparency = i
755
eff.Reflectance = 0.15*i
756
mes2.Scale = Vector3.new(0.6-0.6*i, magn, 0.6-0.6*i)
757
end
758
eff:remove()
759
end)
760
local realhit = hit
761
if hit2 then realhit = hit2 p = pos2 end
762
if hit or hit2 then
763
local h = getHumanoid(realhit.Parent)
764
local sound = Sounds.Stick
765
if h and hit.Parent.className ~= "Hat" then
766
local d = MRA(12+DMG+(power/8), 20+DMG+(power/5.5))
767
if hit.Name == "Head" then
768
d = math.floor(d*1.4)
769
end
770
Dmg(h, d, p)
771
sound = Sounds.Hit
772
elseif h == nil and realhit.Parent.className ~= "Hat" then
773
if realhit.Anchored == false then
774
Notime(function()
775
wait(0.08)
776
local mas = realhit:GetMass()/5+2
777
local vel = (16+(power/3))/mas
778
if vel < 0 then vel = 0 end
779
realhit.Velocity = (CN(lastP, p).lookVector) * vel
780
end)
781
end
782
end
783
local a = -1.2
784
if realhit.Anchored then
785
Arr.CFrame = CN(p, lastP) * CN(0, 0, a)
786
if realhit == hit2 then
787
Arr.CFrame = CN(Start, pos2) * CN(0, 0, -1.9)
788
end
789
else
790
a = (power-200)/110
791
local w8 = 13
792
if realhit.Parent.className == "Hat" then
793
a = ((power/2)-170)/110
794
w8 = 5
795
end
796
Arr.Anchored = false
797
local w = Weld(realhit, Arr, 0, 0, 0, 0, 0, 0)
798
w.C1 = ((CN(p, lastP) * CN(0, 0, a)):toObjectSpace(realhit.CFrame))
799
if realhit == hit2 then
800
w.C1 = ((CN(Start, pos2) * CN(0, 0, -1.9)):toObjectSpace(realhit.CFrame))
801
end
802
Notime(function()
803
if power < 50 then
804
wait(w8+power/7.5)
805
local caa = Arr.CFrame
806
w:remove()
807
Arr.Size = Vector3.new(0.3, 0.3, 4)
808
Arr.CFrame = caa
809
Arr.CanCollide = true
810
end
811
end)
812
end
813
didhit = true
814
Notime(
815
function()
816
wait(26)
817
for i = 0, 1, 0.02 do
818
Arr.Transparency = i
819
wait()
820
end
821
Arr:remove()
822
end
823
)
824
Play(sound)
825
local Surface = DetectSurface(p, realhit)
826
AddDetail(Surface, p, h ~= nil and hit.Parent.className ~= "Hat", realhit, h)
827
wait(0.05)
828
break
829
end
830
lastP = Face.p
831
wait()
832
end
833
if didhit == false then
834
for i = 0, 1, 0.2 do
835
Arr.Transparency = i
836
wait()
837
end
838
Arr:remove()
839
end
840
end
841
842
function Shoot(mouse)
843
Shooting = true
844
RAW.Part1 = Rarm
845
Atch(FTorso)
846
FTorso.Transparency = 0
847
torso.Transparency = 1
848
local shoot = false
849
Spec.BorderColor3 = C3()
850
local amg, omg = false, false
851
Notime(function()
852
repeat
853
wait()
854
until Selected == false or omg
855
if omg == false then
856
omg = true
857
Shooting = false
858
Reloading = false
859
Hurt = false
860
Slashing = false
861
Normal()
862
EE()
863
return
864
end
865
end)
866
Notime(function()
867
mouse.Button1Up:wait()
868
shoot = true
869
end)
870
for i = 0.16, 1, 0.16 do
871
FWeld.C0 = CA(0, MR(-80*i), 0)
872
LAW.C0 = CA(MR(85*i), 0, MR(-30-25*i)) * CN(0.3*i, 0.4*i, -0.1*i)
873
RAW.C0 = CA(MR(85*i), 0, MR(-70*i)) * CN(0.65*i, -1.2*i, 0)
874
HW.C0 = CA(MR(180), 0, MR(150+60*i))
875
AW.C0 = CA(MR(85*i), 0, 0) * CN(0, 0, 2.1*i)
876
wait()
877
end
878
for i = 0.33, 1, 0.33 do
879
FWeld.C0 = CA(0, MR(-80-10*i), 0)
880
LAW.C0 = CA(MR(85+5*i), 0, MR(-55-5*i)) * CN(0.3, 0.4, -0.1)
881
RAW.C0 = CA(MR(85+5*i), 0, MR(-70-5*i)) * CN(0.65+0.05*i, -1.2-0.1*i, 0)
882
HW.C0 = CA(MR(180), 0, MR(210+5*i))
883
AW.C0 = CA(MR(85+5*i), MR(-15*i), 0) * CN(0, 0, 2.1+0.1*i)
884
wait()
885
end
886
LAW.C0 = CA(MR(90), 0, MR(-60)) * CN(0.3, 0.4, -0.1)
887
HW.C0 = CA(MR(180), 0, MR(215))
888
FWeld.C0 = CA(0, MR(-90), 0)
889
for i = 0.25, 1, 0.25 do
890
RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -1.3+1.2*i, 0)
891
SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26*i), 0, 0)
892
SUW.C1 = CN(0, -0.22*i, 0) * ORSU
893
SUM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
894
SDW.C0 = CN(0, -0.15, 0) * CA(MR(26*i), 0, 0)
895
SDM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
896
SDW.C1 = CN(0, 0.25*i, 0) * ORSD
897
wait()
898
end
899
for i = 0.33, 1, 0.33 do
900
RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -0.1+0.1*i, 0)
901
SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26-4*i), 0, 0)
902
SUW.C1 = CN(0, -0.22-0.03*i, 0) * ORSU
903
SUM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
904
SDW.C0 = CN(0, -0.15, 0) * CA(MR(26+4*i), 0, 0)
905
SDM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
906
SDW.C1 = CN(0, 0.22+0.04*i, 0) * ORSD
907
wait()
908
end
909
RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, 0, 0)
910
local powe = 10
911
Main.Visible = true
912
Bar.Size = UD(powe/MaximumPower, 0, 1, 0)
913
Notime(function()
914
repeat wait() until powe >= MaximumPower or shoot
915
wait(6)
916
if shoot == false then
917
shoot = true
918
end
919
end)
920
repeat
921
wait()
922
powe = powe + 4.8
923
if powe > MaximumPower then powe = MaximumPower end
924
Bar.Size = UD(powe/MaximumPower, 0, 1, 0)
925
local sped = 16-((powe/MaximumPower)*9) if Selected == false then sped = 16 end
926
Hum.WalkSpeed = sped
927
until shoot
928
Main.Visible = false
929
Notime(function()
930
for i = 0.5, 1, 0.5 do
931
SUW.C0 = CN(0, 0.15, 0) * CA(MR(-30+30*i), 0, 0)
932
SUW.C1 = CN(0, -0.25+0.25*i, 0) * ORSU
933
SUM.Scale = Vector3.new(0.4, 2.8-0.4*i, 0.4)
934
SDW.C0 = CN(0, -0.15, 0) * CA(MR(30-30*i), 0, 0)
935
SDM.Scale = Vector3.new(0.4, 2.8-0.4*i, 0.4)
936
SDW.C1 = CN(0, 0.25-0.25*i, 0) * ORSD
937
wait()
938
end
939
end)
940
local pos = mouse.Hit.p
941
ArrowOn = false
942
Arrow.Transparency = 1
943
Notime(function()
944
Play(Sounds.Shoot)
945
ShootArrow(pos, powe, mouse.Target)
946
end)
947
for i = 0.2, 1, 0.2 do
948
FWeld.C0 = CA(0, MR(-90+25*i), 0)
949
LAW.C0 = CA(MR(90+25*i), 0, MR(-60-15*i)) * CN(0.3-0.3*i, 0.4-0.4*i, -0.1+0.1*i)
950
RAW.C0 = CA(MR(90+60*i), 0, MR(-75+55*i)) * CN(0.7-0.5*i, -0.1*i, 0)
951
HW.C0 = CA(MR(180), 0, MR(215-65*i))
952
wait()
953
end
954
Hum.WalkSpeed = 16
955
for i = 0.25, 1, 0.25 do
956
FWeld.C0 = CA(0, MR(-65+5*i), 0)
957
LAW.C0 = CA(MR(115+5*i), 0, MR(-75-5*i))
958
RAW.C0 = CA(MR(150+10*i), 0, MR(-20+5*i)) * CN(0.2-0.1*i, -0.1-0.05*i, 0)
959
HW.C0 = CA(MR(180), 0, MR(150))
960
wait()
961
end
962
for i = 0.14, 1, 0.14 do
963
FWeld.C0 = CA(0, MR(-60+55*i), 0)
964
LAW.C0 = CA(MR(120-110*i), 0, MR(-80+45*i))
965
RAW.C0 = CA(MR(160-150*i), 0, MR(-15+10*i)) * CN(0.1-0.1*i, -0.15+0.15*i, 0)
966
wait()
967
end
968
for i = 0.33, 1, 0.33 do
969
FWeld.C0 = CA(0, MR(-5+5*i), 0)
970
LAW.C0 = CA(MR(10-10*i), 0, MR(-35+5*i))
971
RAW.C0 = CA(MR(10-10*i), 0, MR(-5+5*i))
972
wait()
973
end
974
AW.C0 = CN()
975
FWeld.C0 = CN()
976
LAW.C0 = CA(0, 0, MR(-30))
977
HW.C0 = CA(MR(180), 0, MR(150))
978
FTorso.Transparency = 1
979
torso.Transparency = 0
980
Atch(torso)
981
Shooting = false
982
RAW.Part1 = nil
983
RAW.C0 = CN()
984
Spec.BorderColor3 = C3()
985
omg = true
986
end
987
988
function SpecialAtk(mouse)
989
if Special < 50 then return end
990
Shooting = true
991
Spec.BorderColor3 = C3(0, 1, 0)
992
RAW.Part1 = Rarm
993
Atch(FTorso)
994
FTorso.Transparency = 0
995
torso.Transparency = 1
996
local amg, omg = false, false
997
Notime(function()
998
repeat
999
wait()
1000
until Selected == false or omg
1001
if omg == false then
1002
omg = true
1003
Shooting = false
1004
Reloading = false
1005
Hurt = false
1006
Slashing = false
1007
Normal()
1008
EE()
1009
return
1010
end
1011
end)
1012
local shoot = false
1013
Notime(function()
1014
mouse.Button1Up:wait()
1015
shoot = true
1016
end)
1017
for i = 0.2, 1, 0.2 do
1018
FWeld.C0 = CA(0, MR(-80*i), 0)
1019
LAW.C0 = CA(MR(85*i), 0, MR(-30-25*i)) * CN(0.3*i, 0.4*i, -0.1*i)
1020
RAW.C0 = CA(MR(85*i), 0, MR(-70*i)) * CN(0.65*i, -1.2*i, 0)
1021
HW.C0 = CA(MR(180), 0, MR(150+60*i))
1022
AW.C0 = CA(MR(85*i), 0, 0) * CN(0, 0, 2.1*i)
1023
wait()
1024
end
1025
for i = 0.5, 1, 0.5 do
1026
FWeld.C0 = CA(0, MR(-80-10*i), 0)
1027
LAW.C0 = CA(MR(85+5*i), 0, MR(-55-5*i)) * CN(0.3, 0.4, -0.1)
1028
RAW.C0 = CA(MR(85+5*i), 0, MR(-70-5*i)) * CN(0.65+0.05*i, -1.2-0.1*i, 0)
1029
HW.C0 = CA(MR(180), 0, MR(210+5*i))
1030
AW.C0 = CA(MR(85+5*i), MR(-15*i), 0) * CN(0, 0, 2.1+0.1*i)
1031
wait()
1032
end
1033
LAW.C0 = CA(MR(90), 0, MR(-60)) * CN(0.3, 0.4, 0)
1034
HW.C0 = CA(MR(180), 0, MR(215))
1035
FWeld.C0 = CA(0, MR(-90), 0)
1036
AW.C0 = CA(MR(90), MR(-15), 0) * CN(0, 0, 2.2)
1037
for i = 0.33, 1, 0.33 do
1038
RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -1.3+1.2*i, 0)
1039
SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26*i), 0, 0)
1040
SUW.C1 = CN(0, -0.22*i, 0) * ORSU
1041
SUM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
1042
SDW.C0 = CN(0, -0.15, 0) * CA(MR(26*i), 0, 0)
1043
SDM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
1044
SDW.C1 = CN(0, 0.25*i, 0) * ORSD
1045
wait()
1046
end
1047
for i = 0.5, 1, 0.5 do
1048
RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -0.1+0.1*i, 0)
1049
SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26-4*i), 0, 0)
1050
SUW.C1 = CN(0, -0.22-0.03*i, 0) * ORSU
1051
SUM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
1052
SDW.C0 = CN(0, -0.15, 0) * CA(MR(26+4*i), 0, 0)
1053
SDM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
1054
SDW.C1 = CN(0, 0.22+0.04*i, 0) * ORSD
1055
wait()
1056
end
1057
RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, 0, 0)
1058
local powe = 0
1059
Main.Visible = true
1060
Bar.Size = UD(powe/MaximumPower, 0, 1, 0)
1061
Notime(function()
1062
repeat wait() until powe >= MaximumPower or shoot
1063
if shoot == false then
1064
shoot = true
1065
end
1066
end)
1067
repeat
1068
wait()
1069
powe = powe + 5
1070
if powe > MaximumPower then powe = MaximumPower end
1071
Bar.Size = UD(powe/MaximumPower, 0, 1, 0)
1072
local sped = 16-((powe/MaximumPower)*9) if Selected == false then sped = 16 end
1073
Hum.WalkSpeed = sped
1074
until shoot
1075
Special = Special - 50
1076
Main.Visible = false
1077
local pos = mouse.Hit.p
1078
Notime(function()
1079
Play(Sounds.Shoot)
1080
ShootArrow(pos, powe/1.2, mouse.Target)
1081
end)
1082
SUW.C0 = CN(0, 0.15, 0) * CA(0, 0, 0)
1083
SUW.C1 = CN(0, 0, 0) * ORSU
1084
SUM.Scale = Vector3.new(0.4, 2.4, 0.4)
1085
SDW.C0 = CN(0, -0.15, 0) * CA(0, 0, 0)
1086
SDM.Scale = Vector3.new(0.4, 2.4, 0.4)
1087
SDW.C1 = CN(0, 0, 0) * ORSD
1088
for i = 0.33, 1, 0.33 do
1089
RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -1.3*i, 0)
1090
wait()
1091
end
1092
for i = 0.33, 1, 0.33 do
1093
RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -1.3+1.2*i, 0)
1094
SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26*i), 0, 0)
1095
SUW.C1 = CN(0, -0.22*i, 0) * ORSU
1096
SUM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
1097
SDW.C0 = CN(0, -0.15, 0) * CA(MR(26*i), 0, 0)
1098
SDM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
1099
SDW.C1 = CN(0, 0.25*i, 0) * ORSD
1100
wait()
1101
end
1102
for i = 0.5, 1, 0.5 do
1103
RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -0.1+0.1*i, 0)
1104
SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26-4*i), 0, 0)
1105
SUW.C1 = CN(0, -0.22-0.03*i, 0) * ORSU
1106
SUM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
1107
SDW.C0 = CN(0, -0.15, 0) * CA(MR(26+4*i), 0, 0)
1108
SDM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
1109
SDW.C1 = CN(0, 0.22+0.04*i, 0) * ORSD
1110
wait()
1111
end
1112
Notime(function()
1113
Arrow.Transparency = 1
1114
ArrowOn = false
1115
Play(Sounds.Shoot)
1116
ShootArrow(pos, powe/1.2, mouse.Target)
1117
end)
1118
Notime(function()
1119
for i = 0.5, 1, 0.5 do
1120
SUW.C0 = CN(0, 0.15, 0) * CA(MR(-30+30*i), 0, 0)
1121
SUW.C1 = CN(0, -0.25+0.25*i, 0) * ORSU
1122
SUM.Scale = Vector3.new(0.4, 2.9-0.5*i, 0.4)
1123
SDW.C0 = CN(0, -0.15, 0) * CA(MR(30-30*i), 0, 0)
1124
SDM.Scale = Vector3.new(0.4, 2.9-0.5*i, 0.4)
1125
SDW.C1 = CN(0, 0.25-0.25*i, 0) * ORSD
1126
wait()
1127
end
1128
end)
1129
for i = 0.25, 1, 0.25 do
1130
FWeld.C0 = CA(0, MR(-90+25*i), 0)
1131
LAW.C0 = CA(MR(90+25*i), 0, MR(-60-15*i)) * CN(0.3-0.3*i, 0.4-0.4*i, -0.1+0.1*i)
1132
RAW.C0 = CA(MR(90+60*i), 0, MR(-75+55*i)) * CN(0.7-0.5*i, -0.1*i, 0)
1133
HW.C0 = CA(MR(180), 0, MR(215-65*i))
1134
wait()
1135
end
1136
Hum.WalkSpeed = 16
1137
for i = 0.33, 1, 0.33 do
1138
FWeld.C0 = CA(0, MR(-65+5*i), 0)
1139
LAW.C0 = CA(MR(115+5*i), 0, MR(-75-5*i))
1140
RAW.C0 = CA(MR(150+10*i), 0, MR(-20+5*i)) * CN(0.2-0.1*i, -0.1-0.05*i, 0)
1141
HW.C0 = CA(MR(180), 0, MR(150))
1142
wait()
1143
end
1144
for i = 0.16, 1, 0.16 do
1145
FWeld.C0 = CA(0, MR(-60+55*i), 0)
1146
LAW.C0 = CA(MR(120-110*i), 0, MR(-80+45*i))
1147
RAW.C0 = CA(MR(160-150*i), 0, MR(-15+10*i)) * CN(0.1-0.1*i, -0.15+0.15*i, 0)
1148
wait()
1149
end
1150
for i = 0.5, 1, 0.5 do
1151
FWeld.C0 = CA(0, MR(-5+5*i), 0)
1152
LAW.C0 = CA(MR(10-10*i), 0, MR(-35+5*i))
1153
RAW.C0 = CA(MR(10-10*i), 0, MR(-5+5*i))
1154
wait()
1155
end
1156
Spec.BorderColor3 = C3()
1157
AW.C0 = CN()
1158
FWeld.C0 = CN()
1159
LAW.C0 = CA(0, 0, MR(-30))
1160
HW.C0 = CA(MR(180), 0, MR(150))
1161
FTorso.Transparency = 1
1162
torso.Transparency = 0
1163
Atch(torso)
1164
Shooting = false
1165
RAW.Part1 = nil
1166
RAW.C0 = CN()
1167
omg = false
1168
end
1169
1170
function Sel(mouse)
1171
mouse.Icon = Icon
1172
SelectAnim()
1173
Selected = true
1174
mouse.KeyDown:connect(function(key)
1175
key = key:lower()
1176
if Reloading == false and Slashing == false and Shooting == false then
1177
if key == "f" then
1178
Reload()
1179
end
1180
end
1181
if Shooting == false then
1182
if key == "e" then
1183
Keys.e = true
1184
local k
1185
Spec.BorderColor3 = C3(1, 1, 0.4)
1186
repeat
1187
wait()
1188
k = mouse.KeyUp:wait()
1189
until k == "e"
1190
Keys.e = false
1191
if Shooting == false then
1192
Spec.BorderColor3 = C3()
1193
end
1194
end
1195
end
1196
end)
1197
mouse.Button1Down:connect(function()
1198
if Reloading == false and Slashing == false and Shooting == false then
1199
if ArrowOn == false then
1200
local yesh = true
1201
Notime(function()
1202
mouse.Button1Up:wait()
1203
yesh = false
1204
end)
1205
local ah = Keys.e
1206
Reload()
1207
if yesh then
1208
local mm = Special >= 50
1209
if ah and mm or Keys.e and mm then
1210
SpecialAtk(mouse)
1211
else
1212
Shoot(mouse)
1213
end
1214
end
1215
else
1216
local mm = Special >= 50
1217
if Keys.e and mm then
1218
SpecialAtk(mouse)
1219
else
1220
Shoot(mouse)
1221
end
1222
end
1223
end
1224
end)
1225
end
1226
1227
function Desel(mouse)
1228
Selected = false
1229
Main.Visible = false
1230
Hum.WalkSpeed = 16
1231
DeselectAnim()
1232
end
1233
1234
bin.Deselected:connect(Desel)
1235
bin.Selected:connect(Sel)
1236
1237
while Mo.Parent == char do
1238
wait()
1239
Special = Special + 0.07
1240
if Special > MaxSpecial then Special = MaxSpecial end 
1241
SpecialBar.Size = UDim2.new(Special/MaxSpecial, 0, 1, 0)
1242
end