Advertisement
AngelShiloh

epic bow

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