Wweroblox12121212

Untitled

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