Advertisement
leaspect489

Untitled

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