Advertisement
Guest User

Untitled

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