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