View difference between Paste ID: kZt5KP6U and jT4ENrgN
SHOW: | | - or go back to the newest paste.
1-
me = game.Players.RiasGremoryFTW
1+
me = game.Players.LocalPlayer
2
char = me.Character
3
Selected = false
4
Able = true
5
Arrow = nil
6
ArrowOn = false
7
Hurt = true
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 = 0.0001
15
SelAnim = false
16-
DMG = 100000000
16+
DMG = 2000000000
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 = "HandMade 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 = 1000
41+
MaximumPower = 1000000000000000
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 = 6500000
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 = 2000, 1, 2000 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 = 800, 1, 800 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 = 12000, 1, 12000 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 = 12000, 1, 12000 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 Reload()
501
if ArrowOn == false then
502
RAW.Part1 = Rarm
503
Reloading = true
504
for i = 1600000, 1, 1600000 do
505
RAW.C0 = CA(MR(200*i), MR(-5*i), 0) * CN(0, -0.35*i, 0)
506
wait()
507
end
508
AW.C0 = CA(0, MR(-90), 0)
509
AW.C1 = CN(0, 0, -1.5) * CA(MR(60), 0, 0)
510
Arrow.Transparency = 0
511
ArrowOn = true
512
for i = 2000000, 1, 2000000 do
513
RAW.C0 = CA(MR(200), MR(-5), MR(40*i)) * CN(0, -0.35, 0)
514
AW.C1 = CN(0, 0, -1.5+2*i) * CA(MR(60-20*i), 0, 0)
515
wait()
516
end
517
for i = 3300000, 1, 3300000 do
518
RAW.C0 = CA(MR(200), MR(-5), MR(40+10*i)) * CN(0, -0.35+0.05*i, 0)
519
AW.C1 = CN(0, 0, 0.5+0.1*i) * CA(MR(40-5*i), 0, 0)
520
wait()
521
end
522
for i = 1800000, 1, 1800000 do
523
RAW.C0 = CA(MR(200-190*i), MR(-5+5*i), MR(50-45*i)) * CN(0, -0.3+0.25*i, 0)
524
AW.C1 = CN(0, 0, 0.6-0.5*i) * CA(MR(35-30*i), 0, 0)
525
AW.C0 = CA(0, MR(-90+80*i), 0)
526
wait()
527
end
528
for i = 3300000, 1, 3300000 do
529
RAW.C0 = CA(MR(10-10*i), 0, MR(5-5*i)) * CN(0, -0.05+0.05*i, 0)
530
AW.C1 = CN(0, 0, 0.1-0.1*i) * CA(MR(5-5*i), 0, 0)
531
AW.C0 = CA(0, MR(-10+10*i), 0)
532
wait()
533
end
534
AW.C1 = CN()
535
AW.C0 = CN()
536
RAW.C0 = CN()
537
RAW.Part1 = nil
538
Reloading = false
539
else
540
Slash()
541
end
542
end
543
544
function AddDetail(Surface, pos, bool, part, hu)
545
local caf = CN(pos) * CA(part.CFrame:toEulerAnglesXYZ()) * Surface[2]
546
if Surface[1] == "Anything" then
547
caf = Surface[2]
548
end
549
Notime(function()
550
if bool then
551
Notime(function()
552
for i = 1, MRA(2,7) do
553
local x = MRA(0.4*100, 0.9*100)/100
554
local z = MRA(0.7*100, 1.2*100)/100
555
local pp = Part(hu.Parent, false, false, 0, 0, "Bright red", 0.2, 0.2, 0.2)
556
local ms = Instance.new("SpecialMesh",pp)
557
ms.MeshType = "Sphere"
558
ms.Scale = Vector3.new(x*5, 1, z*5)
559
pp.CFrame = caf
560
local w = Weld(part, pp, 0, 0, 0, 0, 0, 0)
561
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)
562
w.C0 = c0
563
Notime(function()
564
local moar = MRA(-1.1*1000, 1.1*1000)/1000
565
for i = 0, 1, MRA(0.02*1000, 0.06*1000)/1000 do
566
wait()
567
w.C0 = c0 * CN(0, 0, -moar*i)
568
ms.Scale = Vector3.new((x*5)-(moar/3)*i, 1, (z*5)+(moar/3)*i)
569
pp.Transparency = -0.5+1.5*i
570
end
571
pp:remove()
572
end)
573
end
574
end)
575
for i = 1, MRA(4,8) do
576
Notime(function()
577
local pp2 = Part(hu.Parent, true, false, 0, 0, "Bright red", 0.2, 0.2, 0.2)
578
pp2.CFrame = caf
579
local ms2 = Instance.new("SpecialMesh",pp2)
580
ms2.MeshType = "Sphere"
581
ms2.Scale = Vector3.new(1.5, 1.5, 1.5)
582
local face = CA(MR(MRA(-40, 40)+105), MR(MRA(-40, 40)), MR(MRA(-40, 40)))
583
local center = caf * face * CN(0, -5, 0)
584
Notime(function()
585
for i = 0, 1, 0.1 do
586
pp2.Transparency = -0.7+1.7*i
587
pp2.CFrame = center * CN(0, 0, -2.5*i) * CA(MR(-55*i), 0, 0) * CN(0, 5, 0)
588
wait()
589
end
590
pp2:remove()
591
end)
592
end)
593
end
594
else
595
Notime(function()
596
for i = 1, MRA(5,8) do
597
Notime(function()
598
local t = {"Bright yellow", "New Yeller", "White", "Institutional white", "Brick yellow"}
599
local pp = Part(workspace, true, false, 0, 0, t[MRA(1, #t)], 0.2, 0.2, 0.2)
600
local mes = Instance.new("SpecialMesh",pp)
601
mes.MeshType = "Sphere"
602
mes.Scale = Vector3.new(0.5, 0.5, 1)
603
local caa = CN(caf.p) * CA(MR(MRA(-180,180)), MR(MRA(-180,180)), MR(MRA(-180,180)))
604
pp.CFrame = caa
605
for i = 0.25, 1, 0.25 do
606
wait()
607
mes.Scale = Vector3.new(0.5+0.1*i, 0.5+0.1*i, 1+2*i)
608
pp.CFrame = caa * CN(0, 0, -0.4*i)
609
end
610
for i = 0.25, 1, 0.25 do
611
wait()
612
mes.Scale = Vector3.new(0.6, 0.6, 3+1.6*i)
613
pp.CFrame = caa * CN(0, 0, -0.6-0.32*i)
614
pp.Transparency = -0.2+1.2*i
615
end
616
pp:remove()
617
end)
618
end
619
end)
620
end
621
end)
622
end
623
624
function ShootArrow(pos, power, targ)
625
local Start = Handle.Position
626
local mag = (Start - pos).magnitude/200
627
if mag > 12.5 then mag = 12.5 end
628
if targ == nil then mag = 1 end
629
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))
630
local Arr = Part(Mo, true, false, 0, 0, "Brown", 0.2, 0.2, 0.2)
631
local mes = Instance.new("SpecialMesh",Arr)
632
mes.MeshId = "http://www.roblox.com/asset/?id=15887356"
633
mes.TextureId = "http://www.roblox.com/asset/?id=15886781"
634
mes.Scale = Vector3.new(1, 1, 2.1)
635
Arr.CFrame = Face
636-
local Go = 28000+(power/30)
636+
local Go = 2800000+(power/30)
637-
local Dist = 200000+(power*2.8)
637+
local Dist = 2000000000+(power*2.8)
638-
local Drop = 60000/(Go*1.25)
638+
local Drop = 0.55/(Go*1.25)
639
local lastP = Start
640
local didhit = false
641
local omg = 0
642
local hit2, pos2 = RayC(torso.CFrame * CN(0, 0, -0.4).p, torso.CFrame * CN(0, 0, -2).p, 2.5, char)
643
local hu2 = nil
644
if hit2 then
645
local hh = getHumanoid(hit2.Parent)
646
if hh then
647
hit2 = nil
648
end
649
end
650
for i = Go, Dist, Go do
651
Drop = Drop + 1/(Go*3.5)
652
omg = omg + Drop
653
local dropping = CA(MR(-Drop), 0, 0)
654-
if omg > 13000 then
654+
if omg > 130 then
655
dropping = CN()
656
end
657
Face = Face * dropping * CN(0, 0, -Go)
658
Arr.CFrame = Face * CA(MR(-180), 0, 0)
659
local hit, p = RayC(lastP, Face.p, Go+0.5, char)
660
local eff = Part(Mo, true, false, 0, 0, "White", 0.2, 1, 0.2)
661
local magn = (lastP - Face.p).magnitude
662
local cf = CN(lastP, Face.p) * CA(MR(-90), 0, 0)
663
if hit then
664
magn = (lastP - p).magnitude
665
cf = CN(lastP, p) * CA(MR(-90), 0, 0)
666
end
667
local mes2 = Instance.new("SpecialMesh",eff)
668
mes2.Scale = Vector3.new(0.6, magn, 0.6)
669
eff.CFrame = cf * CN(0, magn/2, 0)
670
Notime(function()
671
for i = 0, 1, 0.12 do
672
wait()
673
eff.Transparency = i
674
eff.Reflectance = 0.15*i
675
mes2.Scale = Vector3.new(0.6-0.6*i, magn, 0.6-0.6*i)
676
end
677
eff:remove()
678
end)
679
local realhit = hit
680
if hit2 then realhit = hit2 p = pos2 end
681
if hit or hit2 then
682
local h = getHumanoid(realhit.Parent)
683
local sound = Sounds.Stick
684
if h and hit.Parent.className ~= "Hat" then
685
local d = MRA(12+DMG+(power/8), 20+DMG+(power/5.5))
686
if hit.Name == "Head" then
687
d = math.floor(d*1.4)
688
end
689
Dmg(h, d, p)
690
sound = Sounds.Hit
691
elseif h == nil and realhit.Parent.className ~= "Hat" then
692
if realhit.Anchored == false then
693
Notime(function()
694
wait(0.01)
695
local mas = realhit:GetMass()/5+2
696-
local vel = (160000+(power/3))/mas
696+
local vel = (160000000+(power/3))/mas
697-
if vel < 1000000 then vel = 1000000 end
697+
if vel < 1000000000 then vel = 1000000000 end
698
realhit.Velocity = (CN(lastP, p).lookVector) * vel
699
end)
700
end
701
end
702-
local a = -12000
702+
local a = -120
703
if realhit.Anchored then
704
Arr.CFrame = CN(p, lastP) * CN(0, 0, a)
705
if realhit == hit2 then
706
Arr.CFrame = CN(Start, pos2) * CN(0, 0, -1.9)
707
end
708
else
709-
a = (power-20000)/11000
709+
a = (power-200)/110
710-
local w8 = 1300
710+
local w8 = 13
711
if realhit.Parent.className == "Hat" then
712-
a = ((power/2)-17000)/11000
712+
a = ((power/2)-170)/110
713-
w8 = 0
713+
w8 = 5
714
end
715
Arr.Anchored = false
716
local w = Weld(realhit, Arr, 0, 0, 0, 0, 0, 0)
717
w.C1 = ((CN(p, lastP) * CN(0, 0, a)):toObjectSpace(realhit.CFrame))
718
if realhit == hit2 then
719
w.C1 = ((CN(Start, pos2) * CN(0, 0, -1.9)):toObjectSpace(realhit.CFrame))
720
end
721
Notime(function()
722-
if power < 5000000 then
722+
if power < 50 then
723
wait(w8+power/7.5)
724
local caa = Arr.CFrame
725
w:remove()
726
Arr.Size = Vector3.new(0.3, 0.3, 4)
727
Arr.CFrame = caa
728-
Arr.CanCollide = false
728+
Arr.CanCollide = true
729
end
730
end)
731
end
732
didhit = true
733
Notime(
734
function()
735
wait(26)
736
for i = 0, 1, 0.02 do
737
Arr.Transparency = i
738
wait()
739
end
740
Arr:remove()
741
end
742
)
743
Play(sound)
744
local Surface = DetectSurface(p, realhit)
745
AddDetail(Surface, p, h ~= nil and hit.Parent.className ~= "Hat", realhit, h)
746
wait(0.05)
747
break
748
end
749
lastP = Face.p
750
wait()
751
end
752
if didhit == false then
753
for i = 0, 1, 0.2 do
754
Arr.Transparency = i
755
wait()
756
end
757
Arr:remove()
758
end
759
end
760
761
function Shoot(mouse)
762
Shooting = true
763
RAW.Part1 = Rarm
764
Atch(FTorso)
765
FTorso.Transparency = 0
766
torso.Transparency = 1
767
local shoot = false
768
Spec.BorderColor3 = C3()
769
local amg, omg = false, false
770
Notime(function()
771
repeat
772
wait()
773
until Selected == false or omg
774
if omg == false then
775
omg = true
776
Shooting = false
777
Reloading = false
778
Hurt = false
779
Slashing = false
780
Normal()
781
EE()
782
return
783
end
784
end)
785
Notime(function()
786
mouse.Button1Up:wait()
787
shoot = true
788
end)
789
for i = 160, 1, 160 do
790
FWeld.C0 = CA(0, MR(-80*i), 0)
791
LAW.C0 = CA(MR(85*i), 0, MR(-30-25*i)) * CN(0.3*i, 0.4*i, -0.1*i)
792
RAW.C0 = CA(MR(85*i), 0, MR(-70*i)) * CN(0.65*i, -1.2*i, 0)
793
HW.C0 = CA(MR(180), 0, MR(150+60*i))
794
AW.C0 = CA(MR(85*i), 0, 0) * CN(0, 0, 2.1*i)
795
wait()
796
end
797
for i = 330, 1, 330 do
798
FWeld.C0 = CA(0, MR(-80-10*i), 0)
799
LAW.C0 = CA(MR(85+5*i), 0, MR(-55-5*i)) * CN(0.3, 0.4, -0.1)
800
RAW.C0 = CA(MR(85+5*i), 0, MR(-70-5*i)) * CN(0.65+0.05*i, -1.2-0.1*i, 0)
801
HW.C0 = CA(MR(180), 0, MR(210+5*i))
802
AW.C0 = CA(MR(85+5*i), MR(-15*i), 0) * CN(0, 0, 2.1+0.1*i)
803
wait()
804
end
805
LAW.C0 = CA(MR(90), 0, MR(-60)) * CN(0.3, 0.4, -0.1)
806
HW.C0 = CA(MR(180), 0, MR(215))
807
FWeld.C0 = CA(0, MR(-90), 0)
808
for i = 250, 1, 250 do
809
RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -1.3+1.2*i, 0)
810
SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26*i), 0, 0)
811
SUW.C1 = CN(0, -0.22*i, 0) * ORSU
812
SUM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
813
SDW.C0 = CN(0, -0.15, 0) * CA(MR(26*i), 0, 0)
814
SDM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
815
SDW.C1 = CN(0, 0.25*i, 0) * ORSD
816
wait()
817
end
818
for i = 330, 1, 330 do
819
RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -0.1+0.1*i, 0)
820
SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26-4*i), 0, 0)
821
SUW.C1 = CN(0, -0.22-0.03*i, 0) * ORSU
822
SUM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
823
SDW.C0 = CN(0, -0.15, 0) * CA(MR(26+4*i), 0, 0)
824
SDM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
825
SDW.C1 = CN(0, 0.22+0.04*i, 0) * ORSD
826
wait()
827
end
828
RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, 0, 0)
829
local powe = 10
830
Main.Visible = true
831
Bar.Size = UD(powe/MaximumPower, 0, 1, 0)
832
Notime(function()
833
repeat wait() until powe >= MaximumPower or shoot
834
wait(6)
835
if shoot == false then
836
shoot = true
837
end
838
end)
839
repeat
840
wait()
841
powe = powe + 4.8
842
if powe > MaximumPower then powe = MaximumPower end
843
Bar.Size = UD(powe/MaximumPower, 0, 1, 0)
844-
local sped = 256-((powe/MaximumPower)*9) if Selected == false then sped = 256 end
844+
845
Hum.WalkSpeed = sped
846
until shoot
847
Main.Visible = false
848
Notime(function()
849
for i = 500, 1, 500 do
850
SUW.C0 = CN(0, 0.15, 0) * CA(MR(-30+30*i), 0, 0)
851
SUW.C1 = CN(0, -0.25+0.25*i, 0) * ORSU
852
SUM.Scale = Vector3.new(0.4, 2.8-0.4*i, 0.4)
853
SDW.C0 = CN(0, -0.15, 0) * CA(MR(30-30*i), 0, 0)
854
SDM.Scale = Vector3.new(0.4, 2.8-0.4*i, 0.4)
855
SDW.C1 = CN(0, 0.25-0.25*i, 0) * ORSD
856
wait()
857
end
858
end)
859
local pos = mouse.Hit.p
860
ArrowOn = false
861
Arrow.Transparency = 1
862
Notime(function()
863
Play(Sounds.Shoot)
864
ShootArrow(pos, powe, mouse.Target)
865
end)
866
for i = 200, 1, 200 do
867
FWeld.C0 = CA(0, MR(-90+25*i), 0)
868
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)
869
RAW.C0 = CA(MR(90+60*i), 0, MR(-75+55*i)) * CN(0.7-0.5*i, -0.1*i, 0)
870
HW.C0 = CA(MR(180), 0, MR(215-65*i))
871
wait()
872
end
873-
Hum.WalkSpeed = 128
873+
Hum.WalkSpeed = 64
874
for i = 250, 1, 250 do
875
FWeld.C0 = CA(0, MR(-65+5*i), 0)
876
LAW.C0 = CA(MR(115+5*i), 0, MR(-75-5*i))
877
RAW.C0 = CA(MR(150+10*i), 0, MR(-20+5*i)) * CN(0.2-0.1*i, -0.1-0.05*i, 0)
878
HW.C0 = CA(MR(180), 0, MR(150))
879
wait()
880
end
881
for i = 140, 1, 140 do
882
FWeld.C0 = CA(0, MR(-60+55*i), 0)
883
LAW.C0 = CA(MR(120-110*i), 0, MR(-80+45*i))
884
RAW.C0 = CA(MR(160-150*i), 0, MR(-15+10*i)) * CN(0.1-0.1*i, -0.15+0.15*i, 0)
885
wait()
886
end
887
for i = 330, 1, 330 do
888
FWeld.C0 = CA(0, MR(-5+5*i), 0)
889
LAW.C0 = CA(MR(10-10*i), 0, MR(-35+5*i))
890
RAW.C0 = CA(MR(10-10*i), 0, MR(-5+5*i))
891
wait()
892
end
893
AW.C0 = CN()
894
FWeld.C0 = CN()
895
LAW.C0 = CA(0, 0, MR(-30))
896
HW.C0 = CA(MR(180), 0, MR(150))
897
FTorso.Transparency = 1
898
torso.Transparency = 0
899
Atch(torso)
900
Shooting = false
901
RAW.Part1 = nil
902
RAW.C0 = CN()
903
Spec.BorderColor3 = C3()
904
omg = true
905
end
906
907
function SpecialAtk(mouse)
908
if Special < 50 then return end
909
Shooting = true
910
Spec.BorderColor3 = C3(0, 1, 0)
911
RAW.Part1 = Rarm
912
Atch(FTorso)
913
FTorso.Transparency = 0
914
torso.Transparency = 1
915
local amg, omg = false, false
916
Notime(function()
917
repeat
918
wait()
919
until Selected == false or omg
920
if omg == false then
921
omg = true
922
Shooting = false
923
Reloading = false
924
Hurt = false
925
Slashing = false
926
Normal()
927
EE()
928
return
929
end
930
end)
931
local shoot = false
932
Notime(function()
933
mouse.Button1Up:wait()
934
shoot = true
935
end)
936
for i = 0.2, 1, 0.2 do
937
FWeld.C0 = CA(0, MR(-80*i), 0)
938
LAW.C0 = CA(MR(85*i), 0, MR(-30-25*i)) * CN(0.3*i, 0.4*i, -0.1*i)
939
RAW.C0 = CA(MR(85*i), 0, MR(-70*i)) * CN(0.65*i, -1.2*i, 0)
940
HW.C0 = CA(MR(180), 0, MR(150+60*i))
941
AW.C0 = CA(MR(85*i), 0, 0) * CN(0, 0, 2.1*i)
942
wait()
943
end
944
for i = 0.5, 1, 0.5 do
945
FWeld.C0 = CA(0, MR(-80-10*i), 0)
946
LAW.C0 = CA(MR(85+5*i), 0, MR(-55-5*i)) * CN(0.3, 0.4, -0.1)
947
RAW.C0 = CA(MR(85+5*i), 0, MR(-70-5*i)) * CN(0.65+0.05*i, -1.2-0.1*i, 0)
948
HW.C0 = CA(MR(180), 0, MR(210+5*i))
949
AW.C0 = CA(MR(85+5*i), MR(-15*i), 0) * CN(0, 0, 2.1+0.1*i)
950
wait()
951
end
952
LAW.C0 = CA(MR(90), 0, MR(-60)) * CN(0.3, 0.4, 0)
953
HW.C0 = CA(MR(180), 0, MR(215))
954
FWeld.C0 = CA(0, MR(-90), 0)
955
AW.C0 = CA(MR(90), MR(-15), 0) * CN(0, 0, 2.2)
956
for i = 0.33, 1, 0.33 do
957
RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -1.3+1.2*i, 0)
958
SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26*i), 0, 0)
959
SUW.C1 = CN(0, -0.22*i, 0) * ORSU
960
SUM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
961
SDW.C0 = CN(0, -0.15, 0) * CA(MR(26*i), 0, 0)
962
SDM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
963
SDW.C1 = CN(0, 0.25*i, 0) * ORSD
964
wait()
965
end
966
for i = 0.5, 1, 0.5 do
967
RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -0.1+0.1*i, 0)
968
SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26-4*i), 0, 0)
969
SUW.C1 = CN(0, -0.22-0.03*i, 0) * ORSU
970
SUM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
971
SDW.C0 = CN(0, -0.15, 0) * CA(MR(26+4*i), 0, 0)
972
SDM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
973
SDW.C1 = CN(0, 0.22+0.04*i, 0) * ORSD
974
wait()
975
end
976
RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, 0, 0)
977
local powe = 0
978
Main.Visible = true
979
Bar.Size = UD(powe/MaximumPower, 0, 1, 0)
980
Notime(function()
981
repeat wait() until powe >= MaximumPower or shoot
982
if shoot == false then
983
shoot = true
984
end
985
end)
986
repeat
987
wait()
988
powe = powe + 5
989
if powe > MaximumPower then powe = MaximumPower end
990
Bar.Size = UD(powe/MaximumPower, 0, 1, 0)
991
local sped = 64-((powe/MaximumPower)*9) if Selected == false then sped = 64 end
992
Hum.WalkSpeed = sped
993
until shoot
994
Special = Special - 50
995
Main.Visible = false
996
local pos = mouse.Hit.p
997
Notime(function()
998
Play(Sounds.Shoot)
999
ShootArrow(pos, powe/1.2, mouse.Target)
1000
end)
1001
SUW.C0 = CN(0, 0.15, 0) * CA(0, 0, 0)
1002
SUW.C1 = CN(0, 0, 0) * ORSU
1003
SUM.Scale = Vector3.new(0.4, 2.4, 0.4)
1004
SDW.C0 = CN(0, -0.15, 0) * CA(0, 0, 0)
1005
SDM.Scale = Vector3.new(0.4, 2.4, 0.4)
1006
SDW.C1 = CN(0, 0, 0) * ORSD
1007
for i = 0.33, 1, 0.33 do
1008
RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -1.3*i, 0)
1009
wait()
1010
end
1011
for i = 0.33, 1, 0.33 do
1012
RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -1.3+1.2*i, 0)
1013
SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26*i), 0, 0)
1014
SUW.C1 = CN(0, -0.22*i, 0) * ORSU
1015
SUM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
1016
SDW.C0 = CN(0, -0.15, 0) * CA(MR(26*i), 0, 0)
1017
SDM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
1018
SDW.C1 = CN(0, 0.25*i, 0) * ORSD
1019
wait()
1020
end
1021
for i = 0.5, 1, 0.5 do
1022
RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -0.1+0.1*i, 0)
1023
SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26-4*i), 0, 0)
1024
SUW.C1 = CN(0, -0.22-0.03*i, 0) * ORSU
1025
SUM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
1026
SDW.C0 = CN(0, -0.15, 0) * CA(MR(26+4*i), 0, 0)
1027
SDM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
1028
SDW.C1 = CN(0, 0.22+0.04*i, 0) * ORSD
1029
wait()
1030
end
1031
Notime(function()
1032
Arrow.Transparency = 1
1033
ArrowOn = false
1034
Play(Sounds.Shoot)
1035
ShootArrow(pos, powe/1.2, mouse.Target)
1036
end)
1037
Notime(function()
1038
for i = 0.5, 1, 0.5 do
1039
SUW.C0 = CN(0, 0.15, 0) * CA(MR(-30+30*i), 0, 0)
1040
SUW.C1 = CN(0, -0.25+0.25*i, 0) * ORSU
1041
SUM.Scale = Vector3.new(0.4, 2.9-0.5*i, 0.4)
1042
SDW.C0 = CN(0, -0.15, 0) * CA(MR(30-30*i), 0, 0)
1043
SDM.Scale = Vector3.new(0.4, 2.9-0.5*i, 0.4)
1044
SDW.C1 = CN(0, 0.25-0.25*i, 0) * ORSD
1045
wait()
1046
end
1047
end)
1048
for i = 0.25, 1, 0.25 do
1049-
FWeld.C0 = CA(0, MR(-900+250*i), 0)
1049+
1050-
LAW.C0 = CA(MR(900+250*i), 0, MR(-600-150*i)) * CN(0.3-0.3*i, 0.4-0.4*i, -0.1+0.1*i)
1050+
1051-
RAW.C0 = CA(MR(900+600*i), 0, MR(-750+550*i)) * CN(0.7-0.5*i, -0.1*i, 0)
1051+
1052-
HW.C0 = CA(MR(1800), 0, MR(2150-650*i))
1052+
1053
wait()
1054
end
1055-
Hum.WalkSpeed = 256
1055+
Hum.WalkSpeed = 64
1056
for i = 0.33, 1, 0.33 do
1057
FWeld.C0 = CA(0, MR(-65+5*i), 0)
1058
LAW.C0 = CA(MR(115+5*i), 0, MR(-75-5*i))
1059
RAW.C0 = CA(MR(150+10*i), 0, MR(-20+5*i)) * CN(0.2-0.1*i, -0.1-0.05*i, 0)
1060
HW.C0 = CA(MR(180), 0, MR(150))
1061
wait()
1062
end
1063
for i = 0.16, 1, 0.16 do
1064-
FWeld.C0 = CA(0, MR(-600+550*i), 0)
1064+
1065-
LAW.C0 = CA(MR(1200-1100*i), 0, MR(-800+450*i))
1065+
1066-
RAW.C0 = CA(MR(1600-1500*i), 0, MR(-150+100*i)) * CN(0.1-0.1*i, -0.15+0.15*i, 0)
1066+
1067
wait()
1068
end
1069
for i = 0.5, 1, 0.5 do
1070
FWeld.C0 = CA(0, MR(-5+5*i), 0)
1071-
LAW.C0 = CA(MR(100-100*i), 0, MR(-350+50*i))
1071+
1072-
RAW.C0 = CA(MR(100-100*i), 0, MR(-50+50*i))
1072+
1073
wait()
1074
end
1075
Spec.BorderColor3 = C3()
1076
AW.C0 = CN()
1077
FWeld.C0 = CN()
1078-
LAW.C0 = CA(0, 0, MR(-300))
1078+
1079-
HW.C0 = CA(MR(1800), 0, MR(1500))
1079+
1080
FTorso.Transparency = 1
1081
torso.Transparency = 0
1082
Atch(torso)
1083
Shooting = false
1084
RAW.Part1 = nil
1085
RAW.C0 = CN()
1086
omg = false
1087
end
1088
1089
function Sel(mouse)
1090
mouse.Icon = Icon
1091
SelectAnim()
1092
Selected = true
1093
mouse.KeyDown:connect(function(key)
1094
key = key:lower()
1095
if Reloading == false and Slashing == false and Shooting == false then
1096
if key == "f" then
1097
Reload()
1098
end
1099
end
1100
if Shooting == false then
1101
if key == "e" then
1102
Keys.e = true
1103
local k
1104
Spec.BorderColor3 = C3(1, 1, 0.4)
1105
repeat
1106
wait()
1107
k = mouse.KeyUp:wait()
1108
until k == "e"
1109
Keys.e = false
1110
if Shooting == false then
1111
Spec.BorderColor3 = C3()
1112
end
1113
end
1114
end
1115
end)
1116
mouse.Button1Down:connect(function()
1117
if Reloading == false and Slashing == false and Shooting == false then
1118
if ArrowOn == false then
1119
local yesh = true
1120
Notime(function()
1121
mouse.Button1Up:wait()
1122
yesh = false
1123
end)
1124
local ah = Keys.e
1125
Reload()
1126
if yesh then
1127
local mm = Special >= 50
1128
if ah and mm or Keys.e and mm then
1129
SpecialAtk(mouse)
1130
else
1131
Shoot(mouse)
1132
end
1133
end
1134
else
1135
local mm = Special >= 50
1136
if Keys.e and mm then
1137
SpecialAtk(mouse)
1138
else
1139
Shoot(mouse)
1140
end
1141
end
1142
end
1143
end)
1144
end
1145
1146
function Desel(mouse)
1147
Selected = false
1148
Main.Visible = false
1149-
Hum.WalkSpeed = 128
1149+
Hum.WalkSpeed = 64
1150
DeselectAnim()
1151
end
1152
1153
bin.Deselected:connect(Desel)
1154
bin.Selected:connect(Sel)
1155
1156
while Mo.Parent == char do
1157
wait()
1158
Special = Special + 0.07
1159
if Special > MaxSpecial then Special = MaxSpecial end 
1160
SpecialBar.Size = UDim2.new(Special/MaxSpecial, 0, 1, 0)
1161
end