Advertisement
Chxp

Untitled

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