Advertisement
titanfall110

Untitled

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