Advertisement
ZeeDerp

Untitled

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