Advertisement
Aeyao

bows2

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