Advertisement
TacoLuver123

Roblox Bow & Arrow Script ^_^ (also my first script)

Aug 17th, 2016
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 66.39 KB | None | 0 0
  1. --Instructions Change "YOURNAME" To your name on ROBLOX,
  2. -- To change color: Change all to the colors to any color(s) of your choice
  3. -- Heres a list of Colors on Roblox (Ignore the Numbers) http://wiki.roblox.com/index.php/BrickColor_Codes
  4.  
  5. -- This script gives you a bow and arrow that is amazingly effective and customizeable
  6. --This script is not local
  7.  
  8. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
  9. me = game.Players.MlgNoscoperStabber
  10. char = me.Character
  11. Selected = false
  12. Able = true
  13. Arrow = nil
  14. ArrowOn = false
  15. Hurt = false
  16. Deb = true
  17. Reloading = false
  18. Shooting = false
  19. Slashing = false
  20. necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  21. EffectOn = false
  22. Accuracy = 1
  23. SelAnim = false
  24. DMG = 123452323
  25.  
  26. LapaCol = "Lime green"
  27. HandCol = "New Yeller"
  28. MiddleCol = "Lime green"
  29. ViiniCol = "New Yeller"
  30.  
  31. Icon = "http://www.roblox.com/asset/?id=51902588"
  32.  
  33. Keys = {
  34. e = false,
  35. }
  36.  
  37. ModelName = "Epic Bow"
  38.  
  39. CA = CFrame.Angles
  40. CN = CFrame.new
  41. MR = math.rad
  42. MP = math.pi
  43. MRA = math.random
  44. MH = math.huge
  45.  
  46. UD = UDim2.new
  47. C3 = Color3.new
  48.  
  49. MaximumPower = 1000000000
  50. MaxSpecial = 100000
  51. Special = MaxSpecial
  52.  
  53. Sounds = {
  54. Slash = {"rbxasset://sounds//swordslash.wav", 1.2, 1},
  55. Shoot = {"http://www.roblox.com/asset/?id=16211041", 2, 1},
  56. Stick = {"http://www.roblox.com/asset/?id=2767090", 15, 1},
  57. Hit = {"http://www.roblox.com/asset/?id=10209590", 0.9, 1},
  58. Block = {"rbxasset://sounds\\metal.ogg", 1.4, 1},
  59. }
  60.  
  61. function RC(Pos, Dir, Max, Ignore)
  62. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999)), Ignore)
  63. end
  64.  
  65. function RayC(Start, En, MaxDist, Ignore)
  66. return RC(Start, (En - Start), MaxDist, Ignore)
  67. end
  68.  
  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.  
  95. function Compute(pos1, pos2)
  96. local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
  97. return CN(pos1, pos3)
  98. end
  99.  
  100. function Notime(func, tiem)
  101. if tiem then wait(tiem) end
  102. coroutine.resume(coroutine.create(function() func() end))
  103. end
  104.  
  105. function waitChild(p, n)
  106. local child = p:findFirstChild(n)
  107. if child then return child end
  108. while true do
  109. child = p.ChildAdded:wait()
  110. if child.Name == n then return child end
  111. end
  112. end
  113.  
  114. function getHumanoid(c)
  115. for _,v in pairs(c:children()) do
  116. if v:IsA("Humanoid") and c ~= char then if v.Health > 0 then return v end end
  117. end
  118. end
  119.  
  120. function SE(part, pos)
  121. EffectOn = true
  122. local lastP = (part.CFrame * pos).p
  123. Notime(function()
  124. while EffectOn do
  125. wait()
  126. local posnow = (part.CFrame * pos).p
  127. local eff = Part(workspace, true, false, 0, 0, "Really black", 0.2, 1, 0.2)
  128. local magn = (lastP - posnow).magnitude
  129. local cf = CN(lastP, posnow) * CA(MR(-90), 0, 0)
  130. local mes2 = Instance.new("SpecialMesh",eff)
  131. mes2.Scale = Vector3.new(0.6, magn, 0.6)
  132. eff.CFrame = cf * CN(0, magn/2, 0)
  133. Notime(function()
  134. for i = 0, 1, 0.1 do
  135. wait()
  136. eff.Transparency = i
  137. eff.Reflectance = 0.15*i
  138. mes2.Scale = Vector3.new(0.6-0.6*i, magn, 0.6-0.6*i)
  139. end
  140. eff:remove()
  141. end)
  142. lastP = posnow
  143. end
  144. end)
  145. end
  146.  
  147. function EE()
  148. EffectOn = false
  149. end
  150.  
  151. torso = waitChild(char, "Torso")
  152. Rarm = waitChild(char, "Right Arm")
  153. Larm = waitChild(char, "Left Arm")
  154. Rleg = waitChild(char, "Right Leg")
  155. Lleg = waitChild(char, "Left Leg")
  156. Hum = waitChild(char, "Humanoid")
  157. neck = waitChild(torso, "Neck")
  158.  
  159. function EditGui(obj, parent, size, position, bgcolor, bordercolor, transparency, text, textcolor, auto)
  160. obj.Size = size
  161. obj.Position = position
  162. obj.BackgroundColor3 = bgcolor
  163. obj.BorderColor3 = bordercolor
  164. obj.BackgroundTransparency = transparency
  165. if obj:IsA("TextLabel") or obj:IsA("TextButton") then
  166. obj.Text = text
  167. obj.TextColor3 = textcolor
  168. end
  169. if obj:IsA("ImageButton") or obj:IsA("TextButton") then
  170. obj.AutoButtonColor = auto
  171. obj.MouseButton1Down:connect(function()
  172. RemoveOptions()
  173. end)
  174. end
  175. obj.Parent = parent
  176. end
  177.  
  178. Gui = waitChild(me, "PlayerGui")
  179.  
  180. for _,v in pairs(Gui:children()) do
  181. if v.Name == "Power" then v:remove() end
  182. end
  183.  
  184. Sc = Instance.new("ScreenGui", Gui)
  185. Sc.Name = "Power"
  186.  
  187. Main = Instance.new("TextLabel")
  188. Main.Visible = false
  189. 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))
  190. Main.TextYAlignment = "Top"
  191. Main.FontSize = "Size36"
  192. Main.Font = "ArialBold"
  193. Main.TextTransparency = 0.5
  194.  
  195. BarBack = Instance.new("Frame")
  196. EditGui(BarBack, Main, UD(1, -10, 0, 25), UD(0, 5, 1, -30), C3(0, 0, 0), C3(), 0.5)
  197.  
  198. Bar = Instance.new("ImageLabel")
  199. EditGui(Bar, BarBack, UD(0, 0, 1, 0), UD(0, 0, 0, 0), C3(1, 0.7, 0), C3(), 0.5)
  200. Bar.Image = "http://www.roblox.com/asset/?id=48965808"
  201.  
  202. Spec = Instance.new("Frame")
  203. EditGui(Spec, Sc, UD(0, 250, 0, 22), UD(0.04, 0, 0, 5), C3(1, 0.75, 0.1), C3(), 0)
  204.  
  205. SpecialBack = Instance.new("Frame")
  206. EditGui(SpecialBack, Spec, UD(1, -10, 1, -6), UD(0, 5, 0, 3), C3(0.35, 0.1, 0.15), C3(), 0)
  207.  
  208. SpecialBar = Instance.new("ImageLabel")
  209. EditGui(SpecialBar, SpecialBack, UD(Special/MaxSpecial, 0, 1, 0), UD(0, 0, 0, 0), C3(0.1, 0.65, 0.2), C3(), 0)
  210. SpecialBar.Image = "http://www.roblox.com/asset/?id=48965808"
  211.  
  212. for i = 1, 3, 1 do
  213. local p = Instance.new("Frame")
  214. EditGui(p, SpecialBack, UD(0, 1, 1, 0), UD(i/4, 0, 0, 0), C3(0.1, 0.2, 1), C3(), 0)
  215. p.BorderSizePixel = 0
  216. end
  217.  
  218. SpecialText = Instance.new("TextLabel")
  219. 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))
  220. SpecialText.Font = "ArialBold"
  221. SpecialText.FontSize = "Size14"
  222.  
  223. function Play(Sound)
  224. local s = Instance.new("Sound")
  225. s.SoundId = Sound[1]
  226. s.Pitch = Sound[2]
  227. s.Volume = Sound[3]
  228. s.Parent = torso
  229. s.PlayOnRemove = true
  230. game.Debris:AddItem(s, 0.0001)
  231. end
  232.  
  233. RSH = waitChild(torso, "Right Shoulder")
  234. LSH = waitChild(torso, "Left Shoulder")
  235. RH = waitChild(torso, "Right Hip")
  236. LH = waitChild(torso, "Left Hip")
  237.  
  238. for i,v in pairs(char:children()) do if v.Name == ModelName then v:remove() end end
  239.  
  240. function Part(P, Anch, Coll, Tran, Ref, Col, X, Y, Z)
  241. local p = Instance.new("Part")
  242. p.TopSurface = 0
  243. p.BottomSurface = 0
  244. p.Transparency = Tran
  245. p.Reflectance = Ref
  246. p.CanCollide = Coll
  247. p.Anchored = Anch
  248. p.BrickColor = BrickColor.new(Col)
  249. p.formFactor = "Custom"
  250. p.Size = Vector3.new(X,Y,Z)
  251. p.Parent = P
  252. p.Locked = true
  253. p:BreakJoints()
  254. return p
  255. end
  256.  
  257. function Weld(P0, P1, X, Y, Z, A, B, C)
  258. local w = Instance.new("Weld")
  259. w.Part0 = P0
  260. w.Part1 = P1
  261. w.C1 = CN(X, Y, Z) * CA(A, B, C)
  262. w.Parent = P0
  263. return w
  264. end
  265.  
  266. Mo = Instance.new("Model")
  267. Mo.Name = ModelName
  268.  
  269. FTorso = Part(Mo, false, false, 1, 0, torso.BrickColor.Name, torso.Size.X, torso.Size.Y, torso.Size.Z)
  270. FWeld = Weld(torso, FTorso, 0, 0, 0, 0, 0, 0)
  271.  
  272. RABrick = Part(Mo, false, false, 1, 0, "Really black", 0.1, 0.1, 0.1)
  273. LABrick = Part(Mo, false, false, 1, 0, "Really black", 0.1, 0.1, 0.1)
  274. RLBrick = Part(Mo, false, false, 1, 0, "Really black", 0.1, 0.1, 0.1)
  275. LLBrick = Part(Mo, false, false, 1, 0, "Really black", 0.1, 0.1, 0.1)
  276.  
  277. RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
  278. LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
  279. RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
  280. LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
  281.  
  282. function Atch(p)
  283. RABW.Part0 = p
  284. LABW.Part0 = p
  285. RLBW.Part0 = p
  286. LLBW.Part0 = p
  287. RSH.Part0 = p
  288. LSH.Part0 = p
  289. RH.Part0 = p
  290. LH.Part0 = p
  291. end
  292.  
  293. RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
  294. LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
  295. RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  296. LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  297.  
  298. HB = Part(Mo, false, false, 1, 0, "Really black", 0.1, 0.1, 0.1)
  299. HBW = Weld(Larm, HB, 0, 1, 0, 0, 0, 0)
  300. HW = Weld(HB, nil, 0, 0, 0, MR(90), 0, 0)
  301.  
  302. AB = Part(Mo, false, false, 1, 0, "Really black", 0.1, 0.1, 0.1)
  303. ABW = Weld(Rarm, AB, 0, 1, 0, 0, 0, 0)
  304. AW = Weld(AB, nil, 0, 0, 0, 0, 0, 0)
  305.  
  306. TW = Weld(torso, nil, -0.7, 0, 0.5, 0, MP, 0)
  307.  
  308. Handle = Part(Mo, false, false, 0, 0, HandCol, 0.6, 1.2, 0.6)
  309. Instance.new("SpecialMesh",Handle)
  310. TW.Part1 = Handle
  311.  
  312. for i = -0.6, 0.61, 1.2 do
  313. local p = Part(Mo, false, false, 0, 0, MiddleCol, 0.7, 0.2, 1.1)
  314. Weld(Handle, p, 0, i, 0.15, 0, 0, 0)
  315. Instance.new("BlockMesh", p)
  316. end
  317.  
  318. local UpPoint, DownPoint
  319.  
  320. for i = -10, 95, 15 do
  321. local p = Part(Mo, false, false, 0, 0, LapaCol, 0.69, 0.4, 0.2)
  322. local w = Weld(Handle, p, 0, 0, 1.4, 0, 0, 0)
  323. w.C0 = CN(0, 1.1, 0.75) * CA(MR(i), 0, 0)
  324. Instance.new("BlockMesh", p)
  325. UpPoint = p
  326. end
  327.  
  328. for i = 10, -95, -15 do
  329. local p = Part(Mo, false, false, 0, 0, LapaCol, 0.69, 0.4, 0.2)
  330. local w = Weld(Handle, p, 0, 0, 1.4, 0, 0, 0)
  331. w.C0 = CN(0, -1.1, 0.75) * CA(MR(i), 0, 0)
  332. Instance.new("BlockMesh", p)
  333. DownPoint = p
  334. end
  335.  
  336. StringUp = Part(Mo, false, false, 0, 0, "Really black", 0.2, 1, 0.2)
  337. StringDown = Part(Mo, false, false, 0, 0, "Really black", 0.2, 1, 0.2)
  338.  
  339. SUM = Instance.new("SpecialMesh", StringUp)
  340. SDM = Instance.new("SpecialMesh", StringDown)
  341. SUM.Scale = Vector3.new(0.4, 2.4, 0.4)
  342. SDM.Scale = Vector3.new(0.4, 2.4, 0.4)
  343.  
  344. ORSU = CN(0, -1.3, 0) * CA(MR(-85), 0, 0)
  345. ORSD = CN(0, 1.3, 0) * CA(MR(85), 0, 0)
  346.  
  347. SUW = Weld(UpPoint, StringUp, 0, -1.3, 0, MR(-85), 0, 0)
  348. SDW = Weld(DownPoint, StringDown, 0, 1.3, 0, MR(85), 0, 0)
  349. SUW.C0 = CN(0, 0.15, 0)
  350. SDW.C0 = CN(0, -0.15, 0)
  351. SUW.C1 = ORSU
  352. SDW.C1 = ORSD
  353.  
  354. Arrow = Part(Mo, false, false, 1, 0, "Really black", 0.4, 0.4, 4.4)
  355. local mesh = Instance.new("SpecialMesh",Arrow)
  356. mesh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  357. mesh.TextureId = "http://www.roblox.com/asset/?id=15886781"
  358. mesh.Scale = Vector3.new(1, 1, 2.1)
  359. AW.Part1 = Arrow
  360.  
  361.  
  362. Ring = Part(Mo, false, false, 0, 0, ViiniCol, 0.2, 0.2, 0.2)
  363. RingM = Instance.new("SpecialMesh", Ring)
  364. RingM.MeshId = "http://www.roblox.com/asset/?id=3270017"
  365. RingM.Scale = Vector3.new(0.6, 1, 21)
  366. local www = Weld(FTorso, Ring, -0.9, -0.2, -0.8, MR(90), MR(90), MR(30))
  367. www.C0 = CA(MR(-10), 0, 0)
  368.  
  369. Sp = Part(Mo, false, false, 0, 0, "Really black", 1, 0.2, 1)
  370. local S = Instance.new("SpecialMesh",Sp)
  371. S.MeshType = "Sphere"
  372. S.Scale = Vector3.new(0.65, 1, 1.05)
  373. Weld(Ring, Sp, 0, 1.7, 0, MR(-90), 0, 0)
  374.  
  375. function makeArrow(pos, ang)
  376. local arrow = Part(Mo, false, false, 0, 0, "Really black", 0.2, 1, 0.2)
  377. local mesh = Instance.new("SpecialMesh",arrow)
  378. mesh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  379. mesh.TextureId = "http://www.roblox.com/asset/?id=15886781"
  380. mesh.Scale = Vector3.new(1, 1, 2.1)
  381. Weld(Ring, arrow, pos.x, pos.y, pos.z, MP, 0, ang)
  382. end
  383.  
  384. makeArrow(Vector3.new(0.15, 0.1, 0.55), 0.8)
  385. makeArrow(Vector3.new(-0.2, -0.1, 0.65), -0.4)
  386. makeArrow(Vector3.new(-0.1, 0.1, 0.6), 1.8)
  387. makeArrow(Vector3.new(-0.1, -0.15, 0.7), 1.2)
  388. makeArrow(Vector3.new(0, 0.3, 0.6), 0.28)
  389. makeArrow(Vector3.new(0, 0, 0.65), 0.34)
  390. makeArrow(Vector3.new(0.3, 0.1, 0.55), 1.9)
  391. makeArrow(Vector3.new(-0.35, 0.1, 0.67), 1.9)
  392.  
  393. Mo.Parent = char
  394.  
  395. function Normal()
  396. FTorso.Transparency = 1
  397. FWeld.C0 = CN()
  398. torso.Transparency = 0
  399. LAW.C0 = CA(0, 0, MR(30))
  400. RAW.Part1 = nil
  401. RAW.C0 = CN()
  402. RAW.C1 = CN(0, 0.5, 0)
  403. LAW.C1 = CN(0, 0.5, 0)
  404. LAW.Part1 = Larm
  405. RABW.Part0 = torso
  406. LABW.Part0 = torso
  407. RLBW.Part0 = torso
  408. LLBW.Part0 = torso
  409. RSH.Part0 = torso
  410. LSH.Part0 = torso
  411. RH.Part0 = torso
  412. LH.Part0 = torso
  413. AW.C0 = CN()
  414. HW.C0 = CA(MR(180), 0, MR(150))
  415. SUW.C0 = CN(0, 0.15, 0)
  416. SDW.C0 = CN(0, -0.15, 0)
  417. SUW.C1 = ORSU
  418. SDW.C1 = ORSD
  419. SUM.Scale = Vector3.new(0.4, 2.4, 0.4)
  420. SDM.Scale = Vector3.new(0.4, 2.4, 0.4)
  421. end
  422.  
  423. if script.Parent.className ~= "HopperBin" then
  424. h = Instance.new("HopperBin", me.Backpack)
  425. h.Name = "xBow"
  426. script.Parent = h
  427. end
  428.  
  429. bin = script.Parent
  430.  
  431. function ShowDmg(pos, dmg)
  432. local col = "Bright red"
  433. if dmg < 1 then
  434. col = "Bright blue"
  435. end
  436. local m = Instance.new("Model")
  437. m.Name = "Damage Dealt: "..dmg*1758384
  438. local p = Part(m, false, false, 0, 0, col, 0.8, 0.3, 0.8)
  439. p.Name = "Head"
  440. p.CFrame = CFrame.new(pos)
  441. local bp = Instance.new("BodyPosition", p)
  442. bp.position = pos + Vector3.new(0, 2.5, 0)
  443. bp.P = 6500
  444. bp.maxForce = Vector3.new(MH, MH, MH)
  445. local h = Instance.new("Humanoid",m)
  446. h.MaxHealth = 0
  447. h.Health = 0
  448. h.Name = "fffsaf"
  449. m.Parent = workspace
  450. game.Debris:AddItem(m, 1.5)
  451. end
  452.  
  453. function Dmg(hum, dmg, pos)
  454. if hum.Health > 0 then
  455. hum.Health = hum.Health - dmg*1758384
  456. ShowDmg(pos, dmg)
  457. end
  458. end
  459.  
  460. function ArrowT(hit)
  461. local h = getHumanoid(hit.Parent)
  462. if h and Deb and Hurt then
  463. Deb = false
  464. Dmg(h, MRA(3,15), Arrow.CFrame * CN(0, 0, 2.2).p)
  465. end
  466. end
  467.  
  468. Arrow.Touched:connect(ArrowT)
  469.  
  470. function SelectAnim()
  471. LAW.Part1 = Larm
  472. SelAnim = true
  473. for i = 0.2, 1, 0.2 do
  474. LAW.C0 = CA(MR(-25*i), 0, MR(25*i)) * CN(0, 0.2*i, 0)
  475. wait()
  476. end
  477. HW.C0 = CN(0.4, 0.3, 0) * CA(MR(110), MR(-100), MR(180))
  478. HW.Part1 = Handle
  479. TW.Part1 = nil
  480. for i = 0.08, 1, 0.08 do
  481. LAW.C0 = CA(MR(-25+25*i), 0, MR(25-55*i)) * CN(0, 0.2-0.2*i, 0)
  482. 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))
  483. wait()
  484. end
  485. SelAnim = false
  486. HW.C0 = CA(MR(180), 0, MR(150))
  487. end
  488.  
  489. function DeselectAnim()
  490. for i = 0.12, 1, 0.12 do
  491. LAW.C0 = CA(MR(-25*i), 0, MR(-30+55*i)) * CN(0, 0.2*i, 0)
  492. HW.C0 = CN(0.4*i, 0.3*i, 0) * CA(MR(180-70*i), MR(-20*i), MR(150+30*i))
  493. if SelAnim or Selected then return end
  494. wait()
  495. end
  496. HW.Part1 = nil
  497. TW.Part1 = Handle
  498. for i = 0.12, 1, 0.12 do
  499. LAW.C0 = CA(MR(-25+25*i), 0, MR(-30+55-25*i)) * CN(0, 0.2-0.2*i, 0)
  500. if SelAnim or Selected then return end
  501. wait()
  502. end
  503. if Selected == false and SelAnim == false then
  504. LAW.Part1 = nil
  505. end
  506. end
  507.  
  508. function Slash()
  509. RAW.Part1 = Rarm
  510. Slashing = true
  511. Play(Sounds.Slash)
  512. for i = 0.15, 1, 0.15 do
  513. RAW.C0 = CA(MR(180*i), MR(-20*i), MR(35*i))
  514. AW.C0 = CA(MR(35*i), 0, 0) * CN(0, 0, 0.7*i)
  515. wait()
  516. end
  517. for i = 0.33, 1, 0.33 do
  518. RAW.C0 = CA(MR(180+10*i), MR(-20), MR(35+2*i))
  519. AW.C0 = CA(MR(35+5*i), 0, 0) * CN(0, 0, 0.7+0.2*i)
  520. wait()
  521. end
  522. local blockk = false
  523. local hit, pos = RayC(torso.Position, torso.CFrame * CN(0, 0, -5).p, 3.2, char)
  524. if hit ~= nil then
  525. if getHumanoid(hit.Parent) == nil and hit.CanCollide == true then
  526. blockk = true
  527. end
  528. end
  529. SE(Arrow, CN(0, 0, 2.2))
  530. if blockk == false then
  531. Hurt = true
  532. Deb = true
  533. for i = 0.2, 1, 0.2 do
  534. RAW.C0 = CA(MR(190-140*i), MR(-20-5*i), MR(37-87*i)) * CN(0, -1*i, 0)
  535. AW.C0 = CA(MR(40-25*i), MR(-20*i), 0) * CN(0, 0, 0.9+0.3*i)
  536. wait()
  537. end
  538. EE()
  539. Hurt = false
  540. for i = 0.33, 1, 0.33 do
  541. RAW.C0 = CA(MR(50-10*i), MR(-25), MR(-50-5*i)) * CN(0, -1, 0)
  542. AW.C0 = CA(MR(15-20*i), MR(-20-1*i), 0) * CN(0, 0, 1.2*i)
  543. wait()
  544. end
  545. for i = 0.25, 1, 0.25 do
  546. RAW.C0 = CA(MR(40-10*i), MR(-25+25*i), MR(-55+35*i)) * CN(0, -1+1*i, 0)
  547. AW.C0 = CA(MR(-5+55*i), MR(-21+21*i), 0) * CN(0, 0, 1.2-1.2*i)
  548. wait()
  549. end
  550. for i = 0.25, 1, 0.25 do
  551. RAW.C0 = CA(MR(30-30*i), 0, MR(-20+20*i))
  552. AW.C0 = CA(MR(50-50*i), 0, 0)
  553. wait()
  554. end
  555. else
  556. for i = 0.5, 1, 0.5 do
  557. RAW.C0 = CA(MR(190-50*i), MR(-20-5*i), MR(37-27*i)) * CN(0, -0.2*i, 0)
  558. AW.C0 = CA(MR(40-5*i), MR(-5*i), 0) * CN(0, 0, 0.9+0.1*i)
  559. wait()
  560. end
  561. Play(Sounds.Block)
  562. for i = 0.25, 1, 0.25 do
  563. RAW.C0 = CA(MR(140+60*i), MR(-25+25*i), MR(10+20*i)) * CN(0, -0.2-0.3*i, 0)
  564. AW.C0 = CA(MR(35+45*i), MR(-5+5*i), 0) * CN(0, 0, 1)
  565. wait()
  566. end
  567. EE()
  568. for i = 0.33, 1, 0.33 do
  569. RAW.C0 = CA(MR(200+10*i), MR(5*i), MR(30+5*i)) * CN(0, -0.5, 0)
  570. AW.C0 = CA(MR(80+5*i), 0, 0) * CN(0, 0, 1)
  571. wait()
  572. end
  573. for i = 0.18, 1, 0.18 do
  574. RAW.C0 = CA(MR(210-200*i), MR(5-5*i), MR(35-30*i)) * CN(0, -0.5+0.4*i, 0)
  575. AW.C0 = CA(MR(85-75*i), 0, 0) * CN(0, 0, 1-0.8*i)
  576. wait()
  577. end
  578. for i = 0.33, 1, 0.33 do
  579. RAW.C0 = CA(MR(10-10*i), 0, MR(5-5*i)) * CN(0, -0.1+0.1*i, 0)
  580. AW.C0 = CA(MR(10-10*i), 0, 0) * CN(0, 0, 0.2-0.2*i)
  581. wait()
  582. end
  583. AW.C0 = CN()
  584. end
  585. Slashing = false
  586. RAW.Part1 = nil
  587. end
  588.  
  589. function Reload()
  590. if ArrowOn == false then
  591. RAW.Part1 = Rarm
  592. Reloading = true
  593. for i = 0.16, 1, 0.16 do
  594. RAW.C0 = CA(MR(200*i), MR(-5*i), 0) * CN(0, -0.35*i, 0)
  595. wait()
  596. end
  597. AW.C0 = CA(0, MR(-90), 0)
  598. AW.C1 = CN(0, 0, -1.5) * CA(MR(60), 0, 0)
  599. Arrow.Transparency = 0
  600. ArrowOn = true
  601. for i = 0.2, 1, 0.2 do
  602. RAW.C0 = CA(MR(200), MR(-5), MR(40*i)) * CN(0, -0.35, 0)
  603. AW.C1 = CN(0, 0, -1.5+2*i) * CA(MR(60-20*i), 0, 0)
  604. wait()
  605. end
  606. for i = 0.33, 1, 0.33 do
  607. RAW.C0 = CA(MR(200), MR(-5), MR(40+10*i)) * CN(0, -0.35+0.05*i, 0)
  608. AW.C1 = CN(0, 0, 0.5+0.1*i) * CA(MR(40-5*i), 0, 0)
  609. wait()
  610. end
  611. for i = 0.18, 1, 0.18 do
  612. RAW.C0 = CA(MR(200-190*i), MR(-5+5*i), MR(50-45*i)) * CN(0, -0.3+0.25*i, 0)
  613. AW.C1 = CN(0, 0, 0.6-0.5*i) * CA(MR(35-30*i), 0, 0)
  614. AW.C0 = CA(0, MR(-90+80*i), 0)
  615. wait()
  616. end
  617. for i = 0.33, 1, 0.33 do
  618. RAW.C0 = CA(MR(10-10*i), 0, MR(5-5*i)) * CN(0, -0.05+0.05*i, 0)
  619. AW.C1 = CN(0, 0, 0.1-0.1*i) * CA(MR(5-5*i), 0, 0)
  620. AW.C0 = CA(0, MR(-10+10*i), 0)
  621. wait()
  622. end
  623. AW.C1 = CN()
  624. AW.C0 = CN()
  625. RAW.C0 = CN()
  626. RAW.Part1 = nil
  627. Reloading = false
  628. else
  629. Slash()
  630. end
  631. end
  632.  
  633. function AddDetail(Surface, pos, bool, part, hu)
  634. local caf = CN(pos) * CA(part.CFrame:toEulerAnglesXYZ()) * Surface[2]
  635. if Surface[1] == "Anything" then
  636. caf = Surface[2]
  637. end
  638. Notime(function()
  639. if bool then
  640. Notime(function()
  641. for i = 1, MRA(2,7) do
  642. local x = MRA(0.4*100, 0.9*100)/100
  643. local z = MRA(0.7*100, 1.2*100)/100
  644. local pp = Part(hu.Parent, false, false, 0, 0, "Bright red", 0.2, 0.2, 0.2)
  645. local ms = Instance.new("SpecialMesh",pp)
  646. ms.MeshType = "Sphere"
  647. ms.Scale = Vector3.new(x*5, 1, z*5)
  648. pp.CFrame = caf
  649. local w = Weld(part, pp, 0, 0, 0, 0, 0, 0)
  650. 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)
  651. w.C0 = c0
  652. Notime(function()
  653. local moar = MRA(-1.1*1000, 1.1*1000)/1000
  654. for i = 0, 1, MRA(0.02*1000, 0.06*1000)/1000 do
  655. wait()
  656. w.C0 = c0 * CN(0, 0, -moar*i)
  657. ms.Scale = Vector3.new((x*5)-(moar/3)*i, 1, (z*5)+(moar/3)*i)
  658. pp.Transparency = -0.5+1.5*i
  659. end
  660. pp:remove()
  661. end)
  662. end
  663. end)
  664. for i = 1, MRA(4,8) do
  665. Notime(function()
  666. local pp2 = Part(hu.Parent, true, false, 0, 0, "Bright red", 0.2, 0.2, 0.2)
  667. pp2.CFrame = caf
  668. local ms2 = Instance.new("SpecialMesh",pp2)
  669. ms2.MeshType = "Sphere"
  670. ms2.Scale = Vector3.new(1.5, 1.5, 1.5)
  671. local face = CA(MR(MRA(-40, 40)+105), MR(MRA(-40, 40)), MR(MRA(-40, 40)))
  672. local center = caf * face * CN(0, -5, 0)
  673. Notime(function()
  674. for i = 0, 1, 0.1 do
  675. pp2.Transparency = -0.7+1.7*i
  676. pp2.CFrame = center * CN(0, 0, -2.5*i) * CA(MR(-55*i), 0, 0) * CN(0, 5, 0)
  677. wait()
  678. end
  679. pp2:remove()
  680. end)
  681. end)
  682. end
  683. else
  684. Notime(function()
  685. for i = 1, MRA(5,8) do
  686. Notime(function()
  687. local t = {"Bright yellow", "New Yeller", "Really black", "Institutional Really black", "Brick yellow"}
  688. local pp = Part(workspace, true, false, 0, 0, t[MRA(1, #t)], 0.2, 0.2, 0.2)
  689. local mes = Instance.new("SpecialMesh",pp)
  690. mes.MeshType = "Sphere"
  691. mes.Scale = Vector3.new(0.5, 0.5, 1)
  692. local caa = CN(caf.p) * CA(MR(MRA(-180,180)), MR(MRA(-180,180)), MR(MRA(-180,180)))
  693. pp.CFrame = caa
  694. for i = 0.25, 1, 0.25 do
  695. wait()
  696. mes.Scale = Vector3.new(0.5+0.1*i, 0.5+0.1*i, 1+2*i)
  697. pp.CFrame = caa * CN(0, 0, -0.4*i)
  698. end
  699. for i = 0.25, 1, 0.25 do
  700. wait()
  701. mes.Scale = Vector3.new(0.6, 0.6, 3+1.6*i)
  702. pp.CFrame = caa * CN(0, 0, -0.6-0.32*i)
  703. pp.Transparency = -0.2+1.2*i
  704. end
  705. pp:remove()
  706. end)
  707. end
  708. end)
  709. end
  710. end)
  711. end
  712.  
  713. function ShootArrow(pos, power, targ)
  714. local Start = Handle.Position
  715. local mag = (Start - pos).magnitude/200
  716. if mag > 12.5 then mag = 12.5 end
  717. if targ == nil then mag = 1 end
  718. 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))
  719. local Arr = Part(Mo, true, false, 0, 0, "Really black", 0.2, 0.2, 0.2)
  720. local mes = Instance.new("SpecialMesh",Arr)
  721. mes.MeshId = "http://www.roblox.com/asset/?id=15887356"
  722. mes.TextureId = "http://www.roblox.com/asset/?id=15886781"
  723. mes.Scale = Vector3.new(1, 1, 2.1)
  724. Arr.CFrame = Face
  725. local Go = 2.8+(power/30)
  726. local Dist = 200+(power*2.8)
  727. local Drop = 0.55/(Go*1.25)
  728. local lastP = Start
  729. local didhit = false
  730. local omg = 0
  731. local hit2, pos2 = RayC(torso.CFrame * CN(0, 0, -0.4).p, torso.CFrame * CN(0, 0, -2).p, 2.5, char)
  732. local hu2 = nil
  733. if hit2 then
  734. local hh = getHumanoid(hit2.Parent)
  735. if hh then
  736. hit2 = nil
  737. end
  738. end
  739. for i = Go, Dist, Go do
  740. Drop = Drop + 1/(Go*3.5)
  741. omg = omg + Drop
  742. local dropping = CA(MR(-Drop), 0, 0)
  743. if omg > 130 then
  744. dropping = CN()
  745. end
  746. Face = Face * dropping * CN(0, 0, -Go)
  747. Arr.CFrame = Face * CA(MR(-180), 0, 0)
  748. local hit, p = RayC(lastP, Face.p, Go+0.5, char)
  749. local eff = Part(Mo, true, false, 0, 0, "Really black", 0.2, 1, 0.2)
  750. local magn = (lastP - Face.p).magnitude
  751. local cf = CN(lastP, Face.p) * CA(MR(-90), 0, 0)
  752. if hit then
  753. magn = (lastP - p).magnitude
  754. cf = CN(lastP, p) * CA(MR(-90), 0, 0)
  755. end
  756. local mes2 = Instance.new("SpecialMesh",eff)
  757. mes2.Scale = Vector3.new(0.6, magn, 0.6)
  758. eff.CFrame = cf * CN(0, magn/2, 0)
  759. Notime(function()
  760. for i = 0, 1, 0.12 do
  761. wait()
  762. eff.Transparency = i
  763. eff.Reflectance = 0.15*i
  764. mes2.Scale = Vector3.new(0.6-0.6*i, magn, 0.6-0.6*i)
  765. end
  766. eff:remove()
  767. end)
  768. local realhit = hit
  769. if hit2 then realhit = hit2 p = pos2 end
  770. if hit or hit2 then
  771. local h = getHumanoid(realhit.Parent)
  772. local sound = Sounds.Stick
  773. if h and hit.Parent.className ~= "Hat" then
  774. local d = MRA(12+DMG+(power/8), 20+DMG+(power/5.5))
  775. hit:remove()
  776. if hit.Name == "Head" then
  777. d = math.floor(d*1.4)
  778. hit:remove()
  779. end
  780. Dmg(h, d, p)
  781. sound = Sounds.Hit
  782. elseif h == nil and realhit.Parent.className ~= "Hat" then
  783. if realhit.Anchored == false then
  784. Notime(function()
  785. wait(0.08)
  786. local mas = realhit:GetMass()/5+2
  787. local vel = (16+(power/3))/mas
  788. if vel < 0 then vel = 0 end
  789. realhit.Velocity = (CN(lastP, p).lookVector) * vel
  790. end)
  791. end
  792. end
  793. local a = -1.2
  794. if realhit.Anchored then
  795. Arr.CFrame = CN(p, lastP) * CN(0, 0, a)
  796. if realhit == hit2 then
  797. Arr.CFrame = CN(Start, pos2) * CN(0, 0, -1.9)
  798. end
  799. else
  800. a = (power-200)/110
  801. local w8 = 13
  802. if realhit.Parent.className == "Hat" then
  803. a = ((power/2)-170)/110
  804. w8 = 5
  805. end
  806. Arr.Anchored = false
  807. local w = Weld(realhit, Arr, 0, 0, 0, 0, 0, 0)
  808. w.C1 = ((CN(p, lastP) * CN(0, 0, a)):toObjectSpace(realhit.CFrame))
  809. if realhit == hit2 then
  810. w.C1 = ((CN(Start, pos2) * CN(0, 0, -1.9)):toObjectSpace(realhit.CFrame))
  811. end
  812. Notime(function()
  813. if power < 50 then
  814. wait(w8+power/7.5)
  815. local caa = Arr.CFrame
  816. w:remove()
  817. Arr.Size = Vector3.new(0.3, 0.3, 4)
  818. Arr.CFrame = caa
  819. Arr.CanCollide = true
  820. end
  821. end)
  822. end
  823. didhit = true
  824. Notime(
  825. function()
  826. wait(26)
  827. for i = 0, 1, 0.02 do
  828. Arr.Transparency = i
  829. wait()
  830. end
  831. Arr:remove()
  832. end
  833. )
  834. Play(sound)
  835. local Surface = DetectSurface(p, realhit)
  836. AddDetail(Surface, p, h ~= nil and hit.Parent.className ~= "Hat", realhit, h)
  837. wait(0.05)
  838. break
  839. end
  840. lastP = Face.p
  841. wait()
  842. end
  843. if didhit == false then
  844. for i = 0, 1, 0.2 do
  845. Arr.Transparency = i
  846. wait()
  847. end
  848. Arr:remove()
  849. end
  850. end
  851.  
  852. function Shoot(mouse)
  853. Shooting = true
  854. RAW.Part1 = Rarm
  855. Atch(FTorso)
  856. FTorso.Transparency = 0
  857. torso.Transparency = 1
  858. local shoot = false
  859. Spec.BorderColor3 = C3()
  860. local amg, omg = false, false
  861. Notime(function()
  862. repeat
  863. wait()
  864. until Selected == false or omg
  865. if omg == false then
  866. omg = true
  867. Shooting = false
  868. Reloading = false
  869. Hurt = false
  870. Slashing = false
  871. Normal()
  872. EE()
  873. return
  874. end
  875. end)
  876. Notime(function()
  877. mouse.Button1Up:wait()
  878. shoot = true
  879. end)
  880. for i = 0.16, 1, 0.16 do
  881. FWeld.C0 = CA(0, MR(-80*i), 0)
  882. LAW.C0 = CA(MR(85*i), 0, MR(-30-25*i)) * CN(0.3*i, 0.4*i, -0.1*i)
  883. RAW.C0 = CA(MR(85*i), 0, MR(-70*i)) * CN(0.65*i, -1.2*i, 0)
  884. HW.C0 = CA(MR(180), 0, MR(150+60*i))
  885. AW.C0 = CA(MR(85*i), 0, 0) * CN(0, 0, 2.1*i)
  886. wait()
  887. end
  888. for i = 0.33, 1, 0.33 do
  889. FWeld.C0 = CA(0, MR(-80-10*i), 0)
  890. LAW.C0 = CA(MR(85+5*i), 0, MR(-55-5*i)) * CN(0.3, 0.4, -0.1)
  891. RAW.C0 = CA(MR(85+5*i), 0, MR(-70-5*i)) * CN(0.65+0.05*i, -1.2-0.1*i, 0)
  892. HW.C0 = CA(MR(180), 0, MR(210+5*i))
  893. AW.C0 = CA(MR(85+5*i), MR(-15*i), 0) * CN(0, 0, 2.1+0.1*i)
  894. wait()
  895. end
  896. LAW.C0 = CA(MR(90), 0, MR(-60)) * CN(0.3, 0.4, -0.1)
  897. HW.C0 = CA(MR(180), 0, MR(215))
  898. FWeld.C0 = CA(0, MR(-90), 0)
  899. for i = 0.25, 1, 0.25 do
  900. RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -1.3+1.2*i, 0)
  901. SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26*i), 0, 0)
  902. SUW.C1 = CN(0, -0.22*i, 0) * ORSU
  903. SUM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
  904. SDW.C0 = CN(0, -0.15, 0) * CA(MR(26*i), 0, 0)
  905. SDM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
  906. SDW.C1 = CN(0, 0.25*i, 0) * ORSD
  907. wait()
  908. end
  909. for i = 0.33, 1, 0.33 do
  910. RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -0.1+0.1*i, 0)
  911. SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26-4*i), 0, 0)
  912. SUW.C1 = CN(0, -0.22-0.03*i, 0) * ORSU
  913. SUM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
  914. SDW.C0 = CN(0, -0.15, 0) * CA(MR(26+4*i), 0, 0)
  915. SDM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
  916. SDW.C1 = CN(0, 0.22+0.04*i, 0) * ORSD
  917. wait()
  918. end
  919. RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, 0, 0)
  920. local powe = 10
  921. Main.Visible = true
  922. Bar.Size = UD(powe/MaximumPower, 0, 1, 0)
  923. Notime(function()
  924. repeat wait() until powe >= MaximumPower or shoot
  925. wait(6)
  926. if shoot == false then
  927. shoot = true
  928. end
  929. end)
  930. repeat
  931. wait()
  932. powe = powe + 4.8
  933. if powe > MaximumPower then powe = MaximumPower end
  934. Bar.Size = UD(powe/MaximumPower, 0, 1, 0)
  935. local sped = 16-((powe/MaximumPower)*9) if Selected == false then sped = 16 end
  936. Hum.WalkSpeed = sped
  937. until shoot
  938. Main.Visible = false
  939. Notime(function()
  940. for i = 0.5, 1, 0.5 do
  941. SUW.C0 = CN(0, 0.15, 0) * CA(MR(-30+30*i), 0, 0)
  942. SUW.C1 = CN(0, -0.25+0.25*i, 0) * ORSU
  943. SUM.Scale = Vector3.new(0.4, 2.8-0.4*i, 0.4)
  944. SDW.C0 = CN(0, -0.15, 0) * CA(MR(30-30*i), 0, 0)
  945. SDM.Scale = Vector3.new(0.4, 2.8-0.4*i, 0.4)
  946. SDW.C1 = CN(0, 0.25-0.25*i, 0) * ORSD
  947. wait()
  948. end
  949. end)
  950. local pos = mouse.Hit.p
  951. ArrowOn = false
  952. Arrow.Transparency = 1
  953. Notime(function()
  954. Play(Sounds.Shoot)
  955. ShootArrow(pos, powe, mouse.Target)
  956. end)
  957. for i = 0.2, 1, 0.2 do
  958. FWeld.C0 = CA(0, MR(-90+25*i), 0)
  959. 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)
  960. RAW.C0 = CA(MR(90+60*i), 0, MR(-75+55*i)) * CN(0.7-0.5*i, -0.1*i, 0)
  961. HW.C0 = CA(MR(180), 0, MR(215-65*i))
  962. wait()
  963. end
  964. Hum.WalkSpeed = 16
  965. for i = 0.25, 1, 0.25 do
  966. FWeld.C0 = CA(0, MR(-65+5*i), 0)
  967. LAW.C0 = CA(MR(115+5*i), 0, MR(-75-5*i))
  968. RAW.C0 = CA(MR(150+10*i), 0, MR(-20+5*i)) * CN(0.2-0.1*i, -0.1-0.05*i, 0)
  969. HW.C0 = CA(MR(180), 0, MR(150))
  970. wait()
  971. end
  972. for i = 0.14, 1, 0.14 do
  973. FWeld.C0 = CA(0, MR(-60+55*i), 0)
  974. LAW.C0 = CA(MR(120-110*i), 0, MR(-80+45*i))
  975. RAW.C0 = CA(MR(160-150*i), 0, MR(-15+10*i)) * CN(0.1-0.1*i, -0.15+0.15*i, 0)
  976. wait()
  977. end
  978. for i = 0.33, 1, 0.33 do
  979. FWeld.C0 = CA(0, MR(-5+5*i), 0)
  980. LAW.C0 = CA(MR(10-10*i), 0, MR(-35+5*i))
  981. RAW.C0 = CA(MR(10-10*i), 0, MR(-5+5*i))
  982. wait()
  983. end
  984. AW.C0 = CN()
  985. FWeld.C0 = CN()
  986. LAW.C0 = CA(0, 0, MR(-30))
  987. HW.C0 = CA(MR(180), 0, MR(150))
  988. FTorso.Transparency = 1
  989. torso.Transparency = 0
  990. Atch(torso)
  991. Shooting = false
  992. RAW.Part1 = nil
  993. RAW.C0 = CN()
  994. Spec.BorderColor3 = C3()
  995. omg = true
  996. end
  997.  
  998. function SpecialAtk(mouse)
  999. if Special < 50 then return end
  1000. Shooting = true
  1001. Spec.BorderColor3 = C3(0, 1, 0)
  1002. RAW.Part1 = Rarm
  1003. Atch(FTorso)
  1004. FTorso.Transparency = 0
  1005. torso.Transparency = 1
  1006. local amg, omg = false, false
  1007. Notime(function()
  1008. repeat
  1009. wait()
  1010. until Selected == false or omg
  1011. if omg == false then
  1012. omg = true
  1013. Shooting = false
  1014. Reloading = false
  1015. Hurt = false
  1016. Slashing = false
  1017. Normal()
  1018. EE()
  1019. return
  1020. end
  1021. end)
  1022. local shoot = false
  1023. Notime(function()
  1024. mouse.Button1Up:wait()
  1025. shoot = true
  1026. end)
  1027. for i = 0.2, 1, 0.2 do
  1028. FWeld.C0 = CA(0, MR(-80*i), 0)
  1029. LAW.C0 = CA(MR(85*i), 0, MR(-30-25*i)) * CN(0.3*i, 0.4*i, -0.1*i)
  1030. RAW.C0 = CA(MR(85*i), 0, MR(-70*i)) * CN(0.65*i, -1.2*i, 0)
  1031. HW.C0 = CA(MR(180), 0, MR(150+60*i))
  1032. AW.C0 = CA(MR(85*i), 0, 0) * CN(0, 0, 2.1*i)
  1033. wait()
  1034. end
  1035. for i = 0.5, 1, 0.5 do
  1036. FWeld.C0 = CA(0, MR(-80-10*i), 0)
  1037. LAW.C0 = CA(MR(85+5*i), 0, MR(-55-5*i)) * CN(0.3, 0.4, -0.1)
  1038. RAW.C0 = CA(MR(85+5*i), 0, MR(-70-5*i)) * CN(0.65+0.05*i, -1.2-0.1*i, 0)
  1039. HW.C0 = CA(MR(180), 0, MR(210+5*i))
  1040. AW.C0 = CA(MR(85+5*i), MR(-15*i), 0) * CN(0, 0, 2.1+0.1*i)
  1041. wait()
  1042. end
  1043. LAW.C0 = CA(MR(90), 0, MR(-60)) * CN(0.3, 0.4, 0)
  1044. HW.C0 = CA(MR(180), 0, MR(215))
  1045. FWeld.C0 = CA(0, MR(-90), 0)
  1046. AW.C0 = CA(MR(90), MR(-15), 0) * CN(0, 0, 2.2)
  1047. for i = 0.33, 1, 0.33 do
  1048. RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -1.3+1.2*i, 0)
  1049. SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26*i), 0, 0)
  1050. SUW.C1 = CN(0, -0.22*i, 0) * ORSU
  1051. SUM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
  1052. SDW.C0 = CN(0, -0.15, 0) * CA(MR(26*i), 0, 0)
  1053. SDM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
  1054. SDW.C1 = CN(0, 0.25*i, 0) * ORSD
  1055. wait()
  1056. end
  1057. for i = 0.5, 1, 0.5 do
  1058. RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -0.1+0.1*i, 0)
  1059. SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26-4*i), 0, 0)
  1060. SUW.C1 = CN(0, -0.22-0.03*i, 0) * ORSU
  1061. SUM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
  1062. SDW.C0 = CN(0, -0.15, 0) * CA(MR(26+4*i), 0, 0)
  1063. SDM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
  1064. SDW.C1 = CN(0, 0.22+0.04*i, 0) * ORSD
  1065. wait()
  1066. end
  1067. RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, 0, 0)
  1068. local powe = 0
  1069. Main.Visible = true
  1070. Bar.Size = UD(powe/MaximumPower, 0, 1, 0)
  1071. Notime(function()
  1072. repeat wait() until powe >= MaximumPower or shoot
  1073. if shoot == false then
  1074. shoot = true
  1075. end
  1076. end)
  1077. repeat
  1078. wait()
  1079. powe = powe + 5
  1080. if powe > MaximumPower then powe = MaximumPower end
  1081. Bar.Size = UD(powe/MaximumPower, 0, 1, 0)
  1082. local sped = 16-((powe/MaximumPower)*9) if Selected == false then sped = 16 end
  1083. Hum.WalkSpeed = sped
  1084. until shoot
  1085. Special = Special - 50
  1086. Main.Visible = false
  1087. local pos = mouse.Hit.p
  1088. Notime(function()
  1089. Play(Sounds.Shoot)
  1090. ShootArrow(pos, powe/1.2, mouse.Target)
  1091. end)
  1092. SUW.C0 = CN(0, 0.15, 0) * CA(0, 0, 0)
  1093. SUW.C1 = CN(0, 0, 0) * ORSU
  1094. SUM.Scale = Vector3.new(0.4, 2.4, 0.4)
  1095. SDW.C0 = CN(0, -0.15, 0) * CA(0, 0, 0)
  1096. SDM.Scale = Vector3.new(0.4, 2.4, 0.4)
  1097. SDW.C1 = CN(0, 0, 0) * ORSD
  1098. for i = 0.33, 1, 0.33 do
  1099. RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -1.3*i, 0)
  1100. wait()
  1101. end
  1102. for i = 0.33, 1, 0.33 do
  1103. RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -1.3+1.2*i, 0)
  1104. SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26*i), 0, 0)
  1105. SUW.C1 = CN(0, -0.22*i, 0) * ORSU
  1106. SUM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
  1107. SDW.C0 = CN(0, -0.15, 0) * CA(MR(26*i), 0, 0)
  1108. SDM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
  1109. SDW.C1 = CN(0, 0.25*i, 0) * ORSD
  1110. wait()
  1111. end
  1112. for i = 0.5, 1, 0.5 do
  1113. RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -0.1+0.1*i, 0)
  1114. SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26-4*i), 0, 0)
  1115. SUW.C1 = CN(0, -0.22-0.03*i, 0) * ORSU
  1116. SUM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
  1117. SDW.C0 = CN(0, -0.15, 0) * CA(MR(26+4*i), 0, 0)
  1118. SDM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
  1119. SDW.C1 = CN(0, 0.22+0.04*i, 0) * ORSD
  1120. wait()
  1121. end
  1122. Notime(function()
  1123. Arrow.Transparency = 1
  1124. ArrowOn = false
  1125. Play(Sounds.Shoot)
  1126. ShootArrow(pos, powe/1.2, mouse.Target)
  1127. end)
  1128. Notime(function()
  1129. for i = 0.5, 1, 0.5 do
  1130. SUW.C0 = CN(0, 0.15, 0) * CA(MR(-30+30*i), 0, 0)
  1131. SUW.C1 = CN(0, -0.25+0.25*i, 0) * ORSU
  1132. SUM.Scale = Vector3.new(0.4, 2.9-0.5*i, 0.4)
  1133. SDW.C0 = CN(0, -0.15, 0) * CA(MR(30-30*i), 0, 0)
  1134. SDM.Scale = Vector3.new(0.4, 2.9-0.5*i, 0.4)
  1135. SDW.C1 = CN(0, 0.25-0.25*i, 0) * ORSD
  1136. wait()
  1137. end
  1138. end)
  1139. for i = 0.25, 1, 0.25 do
  1140. FWeld.C0 = CA(0, MR(-90+25*i), 0)
  1141. 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)
  1142. RAW.C0 = CA(MR(90+60*i), 0, MR(-75+55*i)) * CN(0.7-0.5*i, -0.1*i, 0)
  1143. HW.C0 = CA(MR(180), 0, MR(215-65*i))
  1144. wait()
  1145. end
  1146. Hum.WalkSpeed = 16
  1147. for i = 0.33, 1, 0.33 do
  1148. FWeld.C0 = CA(0, MR(-65+5*i), 0)
  1149. LAW.C0 = CA(MR(115+5*i), 0, MR(-75-5*i))
  1150. RAW.C0 = CA(MR(150+10*i), 0, MR(-20+5*i)) * CN(0.2-0.1*i, -0.1-0.05*i, 0)
  1151. HW.C0 = CA(MR(180), 0, MR(150))
  1152. wait()
  1153. end
  1154. for i = 0.16, 1, 0.16 do
  1155. FWeld.C0 = CA(0, MR(-60+55*i), 0)
  1156. LAW.C0 = CA(MR(120-110*i), 0, MR(-80+45*i))
  1157. RAW.C0 = CA(MR(160-150*i), 0, MR(-15+10*i)) * CN(0.1-0.1*i, -0.15+0.15*i, 0)
  1158. wait()
  1159. end
  1160. for i = 0.5, 1, 0.5 do
  1161. FWeld.C0 = CA(0, MR(-5+5*i), 0)
  1162. LAW.C0 = CA(MR(10-10*i), 0, MR(-35+5*i))
  1163. RAW.C0 = CA(MR(10-10*i), 0, MR(-5+5*i))
  1164. wait()
  1165. end
  1166. Spec.BorderColor3 = C3()
  1167. AW.C0 = CN()
  1168. FWeld.C0 = CN()
  1169. LAW.C0 = CA(0, 0, MR(-30))
  1170. HW.C0 = CA(MR(180), 0, MR(150))
  1171. FTorso.Transparency = 1
  1172. torso.Transparency = 0
  1173. Atch(torso)
  1174. Shooting = false
  1175. RAW.Part1 = nil
  1176. RAW.C0 = CN()
  1177. omg = false
  1178. end
  1179.  
  1180. function Sel(mouse)
  1181. mouse.Icon = Icon
  1182. SelectAnim()
  1183. Selected = true
  1184. mouse.KeyDown:connect(function(key)
  1185. key = key:lower()
  1186. if Reloading == false and Slashing == false and Shooting == false then
  1187. if key == "f" then
  1188. Reload()
  1189. end
  1190. end
  1191. if Shooting == false then
  1192. if key == "e" then
  1193. Keys.e = true
  1194. local k
  1195. Spec.BorderColor3 = C3(1, 1, 0.4)
  1196. repeat
  1197. wait()
  1198. k = mouse.KeyUp:wait()
  1199. until k == "e"
  1200. Keys.e = false
  1201. if Shooting == false then
  1202. Spec.BorderColor3 = C3()
  1203. end
  1204. end
  1205. end
  1206. end)
  1207. mouse.Button1Down:connect(function()
  1208. if Reloading == false and Slashing == false and Shooting == false then
  1209. if ArrowOn == false then
  1210. local yesh = true
  1211. Notime(function()
  1212. mouse.Button1Up:wait()
  1213. yesh = false
  1214. end)
  1215. local ah = Keys.e
  1216. Reload()
  1217. if yesh then
  1218. local mm = Special >= 50
  1219. if ah and mm or Keys.e and mm then
  1220. SpecialAtk(mouse)
  1221. else
  1222. Shoot(mouse)
  1223. end
  1224. end
  1225. else
  1226. local mm = Special >= 50
  1227. if Keys.e and mm then
  1228. SpecialAtk(mouse)
  1229. else
  1230. Shoot(mouse)
  1231. end
  1232. end
  1233. end
  1234. end)
  1235. end
  1236.  
  1237. function Desel(mouse)
  1238. Selected = false
  1239. Main.Visible = false
  1240. Hum.WalkSpeed = 16
  1241. DeselectAnim()
  1242. end
  1243.  
  1244. bin.Deselected:connect(Desel)
  1245. bin.Selected:connect(Sel)
  1246.  
  1247. while Mo.Parent == char do
  1248. wait()
  1249. Special = Special + 0.07
  1250. if Special > MaxSpecial then Special = MaxSpecial end
  1251. SpecialBar.Size = UDim2.new(Special/MaxSpecial, 0, 1, 0)
  1252. end--Instructions Change "YOURNAME" To your name on ROBLOX,
  1253. -- To change color: Change all to the colors to any color(s) of your choice
  1254. -- Heres a list of Colors on Roblox (Ignore the Numbers) http://wiki.roblox.com/index.php/BrickColor_Codes
  1255.  
  1256. -- This script gives you a bow and arrow that is amazingly effective and customizeable
  1257. --This script is not local
  1258.  
  1259. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
  1260. me = game.Players.Wolfwv
  1261. char = me.Character
  1262. Selected = false
  1263. Able = true
  1264. Arrow = nil
  1265. ArrowOn = false
  1266. Hurt = false
  1267. Deb = true
  1268. Reloading = false
  1269. Shooting = false
  1270. Slashing = false
  1271. necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1272. EffectOn = false
  1273. Accuracy = 1
  1274. SelAnim = false
  1275. DMG = 123452323
  1276.  
  1277. LapaCol = "Lime green"
  1278. HandCol = "New Yeller"
  1279. MiddleCol = "Lime green"
  1280. ViiniCol = "New Yeller"
  1281.  
  1282. Icon = "http://www.roblox.com/asset/?id=51902588"
  1283.  
  1284. Keys = {
  1285. e = false,
  1286. }
  1287.  
  1288. ModelName = "Epic Bow"
  1289.  
  1290. CA = CFrame.Angles
  1291. CN = CFrame.new
  1292. MR = math.rad
  1293. MP = math.pi
  1294. MRA = math.random
  1295. MH = math.huge
  1296.  
  1297. UD = UDim2.new
  1298. C3 = Color3.new
  1299.  
  1300. MaximumPower = 1000000000
  1301. MaxSpecial = 100000
  1302. Special = MaxSpecial
  1303.  
  1304. Sounds = {
  1305. Slash = {"rbxasset://sounds//swordslash.wav", 1.2, 1},
  1306. Shoot = {"http://www.roblox.com/asset/?id=16211041", 2, 1},
  1307. Stick = {"http://www.roblox.com/asset/?id=2767090", 15, 1},
  1308. Hit = {"http://www.roblox.com/asset/?id=10209590", 0.9, 1},
  1309. Block = {"rbxasset://sounds\\metal.ogg", 1.4, 1},
  1310. }
  1311.  
  1312. function RC(Pos, Dir, Max, Ignore)
  1313. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999)), Ignore)
  1314. end
  1315.  
  1316. function RayC(Start, En, MaxDist, Ignore)
  1317. return RC(Start, (En - Start), MaxDist, Ignore)
  1318. end
  1319.  
  1320. function DetectSurface(pos, part)
  1321. local surface = nil
  1322. local pospos = part.CFrame
  1323. local pos2 = pospos:pointToObjectSpace(pos)
  1324. local siz = part.Size
  1325. local shaep = part.Shape
  1326. if shaep == Enum.PartType.Ball or shaep == Enum.PartType.Cylinder then
  1327. surface = {"Anything", CN(pospos.p, pos)*CN(0, 0, -(pospos.p - pos).magnitude)*CA(MR(-90), 0, 0)}
  1328. else
  1329. if pos2.Y > ((siz.Y/2)-0.04) then
  1330. surface = {"Top", CA(0, 0, 0)}
  1331. elseif pos2.Y < -((siz.Y/2)-0.04) then
  1332. surface = {"Bottom", CA(-MP, 0, 0)}
  1333. elseif pos2.X > ((siz.X/2)-0.04) then
  1334. surface = {"Right", CA(0, 0, MR(-90))}
  1335. elseif pos2.X < -((siz.X/2)-0.04) then
  1336. surface = {"Left", CA(0, 0, MR(90))}
  1337. elseif pos2.Z > ((siz.Z/2)-0.04) then
  1338. surface = {"Back", CA(MR(90), 0, 0)}
  1339. elseif pos2.Z < -((siz.Z/2)-0.04) then
  1340. surface = {"Front", CA(MR(-90), 0, 0)}
  1341. end
  1342. end
  1343. return surface
  1344. end
  1345.  
  1346. function Compute(pos1, pos2)
  1347. local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
  1348. return CN(pos1, pos3)
  1349. end
  1350.  
  1351. function Notime(func, tiem)
  1352. if tiem then wait(tiem) end
  1353. coroutine.resume(coroutine.create(function() func() end))
  1354. end
  1355.  
  1356. function waitChild(p, n)
  1357. local child = p:findFirstChild(n)
  1358. if child then return child end
  1359. while true do
  1360. child = p.ChildAdded:wait()
  1361. if child.Name == n then return child end
  1362. end
  1363. end
  1364.  
  1365. function getHumanoid(c)
  1366. for _,v in pairs(c:children()) do
  1367. if v:IsA("Humanoid") and c ~= char then if v.Health > 0 then return v end end
  1368. end
  1369. end
  1370.  
  1371. function SE(part, pos)
  1372. EffectOn = true
  1373. local lastP = (part.CFrame * pos).p
  1374. Notime(function()
  1375. while EffectOn do
  1376. wait()
  1377. local posnow = (part.CFrame * pos).p
  1378. local eff = Part(workspace, true, false, 0, 0, "Really black", 0.2, 1, 0.2)
  1379. local magn = (lastP - posnow).magnitude
  1380. local cf = CN(lastP, posnow) * CA(MR(-90), 0, 0)
  1381. local mes2 = Instance.new("SpecialMesh",eff)
  1382. mes2.Scale = Vector3.new(0.6, magn, 0.6)
  1383. eff.CFrame = cf * CN(0, magn/2, 0)
  1384. Notime(function()
  1385. for i = 0, 1, 0.1 do
  1386. wait()
  1387. eff.Transparency = i
  1388. eff.Reflectance = 0.15*i
  1389. mes2.Scale = Vector3.new(0.6-0.6*i, magn, 0.6-0.6*i)
  1390. end
  1391. eff:remove()
  1392. end)
  1393. lastP = posnow
  1394. end
  1395. end)
  1396. end
  1397.  
  1398. function EE()
  1399. EffectOn = false
  1400. end
  1401.  
  1402. torso = waitChild(char, "Torso")
  1403. Rarm = waitChild(char, "Right Arm")
  1404. Larm = waitChild(char, "Left Arm")
  1405. Rleg = waitChild(char, "Right Leg")
  1406. Lleg = waitChild(char, "Left Leg")
  1407. Hum = waitChild(char, "Humanoid")
  1408. neck = waitChild(torso, "Neck")
  1409.  
  1410. function EditGui(obj, parent, size, position, bgcolor, bordercolor, transparency, text, textcolor, auto)
  1411. obj.Size = size
  1412. obj.Position = position
  1413. obj.BackgroundColor3 = bgcolor
  1414. obj.BorderColor3 = bordercolor
  1415. obj.BackgroundTransparency = transparency
  1416. if obj:IsA("TextLabel") or obj:IsA("TextButton") then
  1417. obj.Text = text
  1418. obj.TextColor3 = textcolor
  1419. end
  1420. if obj:IsA("ImageButton") or obj:IsA("TextButton") then
  1421. obj.AutoButtonColor = auto
  1422. obj.MouseButton1Down:connect(function()
  1423. RemoveOptions()
  1424. end)
  1425. end
  1426. obj.Parent = parent
  1427. end
  1428.  
  1429. Gui = waitChild(me, "PlayerGui")
  1430.  
  1431. for _,v in pairs(Gui:children()) do
  1432. if v.Name == "Power" then v:remove() end
  1433. end
  1434.  
  1435. Sc = Instance.new("ScreenGui", Gui)
  1436. Sc.Name = "Power"
  1437.  
  1438. Main = Instance.new("TextLabel")
  1439. Main.Visible = false
  1440. 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))
  1441. Main.TextYAlignment = "Top"
  1442. Main.FontSize = "Size36"
  1443. Main.Font = "ArialBold"
  1444. Main.TextTransparency = 0.5
  1445.  
  1446. BarBack = Instance.new("Frame")
  1447. EditGui(BarBack, Main, UD(1, -10, 0, 25), UD(0, 5, 1, -30), C3(0, 0, 0), C3(), 0.5)
  1448.  
  1449. Bar = Instance.new("ImageLabel")
  1450. EditGui(Bar, BarBack, UD(0, 0, 1, 0), UD(0, 0, 0, 0), C3(1, 0.7, 0), C3(), 0.5)
  1451. Bar.Image = "http://www.roblox.com/asset/?id=48965808"
  1452.  
  1453. Spec = Instance.new("Frame")
  1454. EditGui(Spec, Sc, UD(0, 250, 0, 22), UD(0.04, 0, 0, 5), C3(1, 0.75, 0.1), C3(), 0)
  1455.  
  1456. SpecialBack = Instance.new("Frame")
  1457. EditGui(SpecialBack, Spec, UD(1, -10, 1, -6), UD(0, 5, 0, 3), C3(0.35, 0.1, 0.15), C3(), 0)
  1458.  
  1459. SpecialBar = Instance.new("ImageLabel")
  1460. EditGui(SpecialBar, SpecialBack, UD(Special/MaxSpecial, 0, 1, 0), UD(0, 0, 0, 0), C3(0.1, 0.65, 0.2), C3(), 0)
  1461. SpecialBar.Image = "http://www.roblox.com/asset/?id=48965808"
  1462.  
  1463. for i = 1, 3, 1 do
  1464. local p = Instance.new("Frame")
  1465. EditGui(p, SpecialBack, UD(0, 1, 1, 0), UD(i/4, 0, 0, 0), C3(0.1, 0.2, 1), C3(), 0)
  1466. p.BorderSizePixel = 0
  1467. end
  1468.  
  1469. SpecialText = Instance.new("TextLabel")
  1470. 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))
  1471. SpecialText.Font = "ArialBold"
  1472. SpecialText.FontSize = "Size14"
  1473.  
  1474. function Play(Sound)
  1475. local s = Instance.new("Sound")
  1476. s.SoundId = Sound[1]
  1477. s.Pitch = Sound[2]
  1478. s.Volume = Sound[3]
  1479. s.Parent = torso
  1480. s.PlayOnRemove = true
  1481. game.Debris:AddItem(s, 0.0001)
  1482. end
  1483.  
  1484. RSH = waitChild(torso, "Right Shoulder")
  1485. LSH = waitChild(torso, "Left Shoulder")
  1486. RH = waitChild(torso, "Right Hip")
  1487. LH = waitChild(torso, "Left Hip")
  1488.  
  1489. for i,v in pairs(char:children()) do if v.Name == ModelName then v:remove() end end
  1490.  
  1491. function Part(P, Anch, Coll, Tran, Ref, Col, X, Y, Z)
  1492. local p = Instance.new("Part")
  1493. p.TopSurface = 0
  1494. p.BottomSurface = 0
  1495. p.Transparency = Tran
  1496. p.Reflectance = Ref
  1497. p.CanCollide = Coll
  1498. p.Anchored = Anch
  1499. p.BrickColor = BrickColor.new(Col)
  1500. p.formFactor = "Custom"
  1501. p.Size = Vector3.new(X,Y,Z)
  1502. p.Parent = P
  1503. p.Locked = true
  1504. p:BreakJoints()
  1505. return p
  1506. end
  1507.  
  1508. function Weld(P0, P1, X, Y, Z, A, B, C)
  1509. local w = Instance.new("Weld")
  1510. w.Part0 = P0
  1511. w.Part1 = P1
  1512. w.C1 = CN(X, Y, Z) * CA(A, B, C)
  1513. w.Parent = P0
  1514. return w
  1515. end
  1516.  
  1517. Mo = Instance.new("Model")
  1518. Mo.Name = ModelName
  1519.  
  1520. FTorso = Part(Mo, false, false, 1, 0, torso.BrickColor.Name, torso.Size.X, torso.Size.Y, torso.Size.Z)
  1521. FWeld = Weld(torso, FTorso, 0, 0, 0, 0, 0, 0)
  1522.  
  1523. RABrick = Part(Mo, false, false, 1, 0, "Really black", 0.1, 0.1, 0.1)
  1524. LABrick = Part(Mo, false, false, 1, 0, "Really black", 0.1, 0.1, 0.1)
  1525. RLBrick = Part(Mo, false, false, 1, 0, "Really black", 0.1, 0.1, 0.1)
  1526. LLBrick = Part(Mo, false, false, 1, 0, "Really black", 0.1, 0.1, 0.1)
  1527.  
  1528. RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
  1529. LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
  1530. RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
  1531. LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
  1532.  
  1533. function Atch(p)
  1534. RABW.Part0 = p
  1535. LABW.Part0 = p
  1536. RLBW.Part0 = p
  1537. LLBW.Part0 = p
  1538. RSH.Part0 = p
  1539. LSH.Part0 = p
  1540. RH.Part0 = p
  1541. LH.Part0 = p
  1542. end
  1543.  
  1544. RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
  1545. LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
  1546. RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  1547. LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  1548.  
  1549. HB = Part(Mo, false, false, 1, 0, "Really black", 0.1, 0.1, 0.1)
  1550. HBW = Weld(Larm, HB, 0, 1, 0, 0, 0, 0)
  1551. HW = Weld(HB, nil, 0, 0, 0, MR(90), 0, 0)
  1552.  
  1553. AB = Part(Mo, false, false, 1, 0, "Really black", 0.1, 0.1, 0.1)
  1554. ABW = Weld(Rarm, AB, 0, 1, 0, 0, 0, 0)
  1555. AW = Weld(AB, nil, 0, 0, 0, 0, 0, 0)
  1556.  
  1557. TW = Weld(torso, nil, -0.7, 0, 0.5, 0, MP, 0)
  1558.  
  1559. Handle = Part(Mo, false, false, 0, 0, HandCol, 0.6, 1.2, 0.6)
  1560. Instance.new("SpecialMesh",Handle)
  1561. TW.Part1 = Handle
  1562.  
  1563. for i = -0.6, 0.61, 1.2 do
  1564. local p = Part(Mo, false, false, 0, 0, MiddleCol, 0.7, 0.2, 1.1)
  1565. Weld(Handle, p, 0, i, 0.15, 0, 0, 0)
  1566. Instance.new("BlockMesh", p)
  1567. end
  1568.  
  1569. local UpPoint, DownPoint
  1570.  
  1571. for i = -10, 95, 15 do
  1572. local p = Part(Mo, false, false, 0, 0, LapaCol, 0.69, 0.4, 0.2)
  1573. local w = Weld(Handle, p, 0, 0, 1.4, 0, 0, 0)
  1574. w.C0 = CN(0, 1.1, 0.75) * CA(MR(i), 0, 0)
  1575. Instance.new("BlockMesh", p)
  1576. UpPoint = p
  1577. end
  1578.  
  1579. for i = 10, -95, -15 do
  1580. local p = Part(Mo, false, false, 0, 0, LapaCol, 0.69, 0.4, 0.2)
  1581. local w = Weld(Handle, p, 0, 0, 1.4, 0, 0, 0)
  1582. w.C0 = CN(0, -1.1, 0.75) * CA(MR(i), 0, 0)
  1583. Instance.new("BlockMesh", p)
  1584. DownPoint = p
  1585. end
  1586.  
  1587. StringUp = Part(Mo, false, false, 0, 0, "Really black", 0.2, 1, 0.2)
  1588. StringDown = Part(Mo, false, false, 0, 0, "Really black", 0.2, 1, 0.2)
  1589.  
  1590. SUM = Instance.new("SpecialMesh", StringUp)
  1591. SDM = Instance.new("SpecialMesh", StringDown)
  1592. SUM.Scale = Vector3.new(0.4, 2.4, 0.4)
  1593. SDM.Scale = Vector3.new(0.4, 2.4, 0.4)
  1594.  
  1595. ORSU = CN(0, -1.3, 0) * CA(MR(-85), 0, 0)
  1596. ORSD = CN(0, 1.3, 0) * CA(MR(85), 0, 0)
  1597.  
  1598. SUW = Weld(UpPoint, StringUp, 0, -1.3, 0, MR(-85), 0, 0)
  1599. SDW = Weld(DownPoint, StringDown, 0, 1.3, 0, MR(85), 0, 0)
  1600. SUW.C0 = CN(0, 0.15, 0)
  1601. SDW.C0 = CN(0, -0.15, 0)
  1602. SUW.C1 = ORSU
  1603. SDW.C1 = ORSD
  1604.  
  1605. Arrow = Part(Mo, false, false, 1, 0, "Really black", 0.4, 0.4, 4.4)
  1606. local mesh = Instance.new("SpecialMesh",Arrow)
  1607. mesh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  1608. mesh.TextureId = "http://www.roblox.com/asset/?id=15886781"
  1609. mesh.Scale = Vector3.new(1, 1, 2.1)
  1610. AW.Part1 = Arrow
  1611.  
  1612.  
  1613. Ring = Part(Mo, false, false, 0, 0, ViiniCol, 0.2, 0.2, 0.2)
  1614. RingM = Instance.new("SpecialMesh", Ring)
  1615. RingM.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1616. RingM.Scale = Vector3.new(0.6, 1, 21)
  1617. local www = Weld(FTorso, Ring, -0.9, -0.2, -0.8, MR(90), MR(90), MR(30))
  1618. www.C0 = CA(MR(-10), 0, 0)
  1619.  
  1620. Sp = Part(Mo, false, false, 0, 0, "Really black", 1, 0.2, 1)
  1621. local S = Instance.new("SpecialMesh",Sp)
  1622. S.MeshType = "Sphere"
  1623. S.Scale = Vector3.new(0.65, 1, 1.05)
  1624. Weld(Ring, Sp, 0, 1.7, 0, MR(-90), 0, 0)
  1625.  
  1626. function makeArrow(pos, ang)
  1627. local arrow = Part(Mo, false, false, 0, 0, "Really black", 0.2, 1, 0.2)
  1628. local mesh = Instance.new("SpecialMesh",arrow)
  1629. mesh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  1630. mesh.TextureId = "http://www.roblox.com/asset/?id=15886781"
  1631. mesh.Scale = Vector3.new(1, 1, 2.1)
  1632. Weld(Ring, arrow, pos.x, pos.y, pos.z, MP, 0, ang)
  1633. end
  1634.  
  1635. makeArrow(Vector3.new(0.15, 0.1, 0.55), 0.8)
  1636. makeArrow(Vector3.new(-0.2, -0.1, 0.65), -0.4)
  1637. makeArrow(Vector3.new(-0.1, 0.1, 0.6), 1.8)
  1638. makeArrow(Vector3.new(-0.1, -0.15, 0.7), 1.2)
  1639. makeArrow(Vector3.new(0, 0.3, 0.6), 0.28)
  1640. makeArrow(Vector3.new(0, 0, 0.65), 0.34)
  1641. makeArrow(Vector3.new(0.3, 0.1, 0.55), 1.9)
  1642. makeArrow(Vector3.new(-0.35, 0.1, 0.67), 1.9)
  1643.  
  1644. Mo.Parent = char
  1645.  
  1646. function Normal()
  1647. FTorso.Transparency = 1
  1648. FWeld.C0 = CN()
  1649. torso.Transparency = 0
  1650. LAW.C0 = CA(0, 0, MR(30))
  1651. RAW.Part1 = nil
  1652. RAW.C0 = CN()
  1653. RAW.C1 = CN(0, 0.5, 0)
  1654. LAW.C1 = CN(0, 0.5, 0)
  1655. LAW.Part1 = Larm
  1656. RABW.Part0 = torso
  1657. LABW.Part0 = torso
  1658. RLBW.Part0 = torso
  1659. LLBW.Part0 = torso
  1660. RSH.Part0 = torso
  1661. LSH.Part0 = torso
  1662. RH.Part0 = torso
  1663. LH.Part0 = torso
  1664. AW.C0 = CN()
  1665. HW.C0 = CA(MR(180), 0, MR(150))
  1666. SUW.C0 = CN(0, 0.15, 0)
  1667. SDW.C0 = CN(0, -0.15, 0)
  1668. SUW.C1 = ORSU
  1669. SDW.C1 = ORSD
  1670. SUM.Scale = Vector3.new(0.4, 2.4, 0.4)
  1671. SDM.Scale = Vector3.new(0.4, 2.4, 0.4)
  1672. end
  1673.  
  1674. if script.Parent.className ~= "HopperBin" then
  1675. h = Instance.new("HopperBin", me.Backpack)
  1676. h.Name = "xBow"
  1677. script.Parent = h
  1678. end
  1679.  
  1680. bin = script.Parent
  1681.  
  1682. function ShowDmg(pos, dmg)
  1683. local col = "Bright red"
  1684. if dmg < 1 then
  1685. col = "Bright blue"
  1686. end
  1687. local m = Instance.new("Model")
  1688. m.Name = "Damage Dealt: "..dmg*1758384
  1689. local p = Part(m, false, false, 0, 0, col, 0.8, 0.3, 0.8)
  1690. p.Name = "Head"
  1691. p.CFrame = CFrame.new(pos)
  1692. local bp = Instance.new("BodyPosition", p)
  1693. bp.position = pos + Vector3.new(0, 2.5, 0)
  1694. bp.P = 6500
  1695. bp.maxForce = Vector3.new(MH, MH, MH)
  1696. local h = Instance.new("Humanoid",m)
  1697. h.MaxHealth = 0
  1698. h.Health = 0
  1699. h.Name = "fffsaf"
  1700. m.Parent = workspace
  1701. game.Debris:AddItem(m, 1.5)
  1702. end
  1703.  
  1704. function Dmg(hum, dmg, pos)
  1705. if hum.Health > 0 then
  1706. hum.Health = hum.Health - dmg*1758384
  1707. ShowDmg(pos, dmg)
  1708. end
  1709. end
  1710.  
  1711. function ArrowT(hit)
  1712. local h = getHumanoid(hit.Parent)
  1713. if h and Deb and Hurt then
  1714. Deb = false
  1715. Dmg(h, MRA(3,15), Arrow.CFrame * CN(0, 0, 2.2).p)
  1716. end
  1717. end
  1718.  
  1719. Arrow.Touched:connect(ArrowT)
  1720.  
  1721. function SelectAnim()
  1722. LAW.Part1 = Larm
  1723. SelAnim = true
  1724. for i = 0.2, 1, 0.2 do
  1725. LAW.C0 = CA(MR(-25*i), 0, MR(25*i)) * CN(0, 0.2*i, 0)
  1726. wait()
  1727. end
  1728. HW.C0 = CN(0.4, 0.3, 0) * CA(MR(110), MR(-100), MR(180))
  1729. HW.Part1 = Handle
  1730. TW.Part1 = nil
  1731. for i = 0.08, 1, 0.08 do
  1732. LAW.C0 = CA(MR(-25+25*i), 0, MR(25-55*i)) * CN(0, 0.2-0.2*i, 0)
  1733. 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))
  1734. wait()
  1735. end
  1736. SelAnim = false
  1737. HW.C0 = CA(MR(180), 0, MR(150))
  1738. end
  1739.  
  1740. function DeselectAnim()
  1741. for i = 0.12, 1, 0.12 do
  1742. LAW.C0 = CA(MR(-25*i), 0, MR(-30+55*i)) * CN(0, 0.2*i, 0)
  1743. HW.C0 = CN(0.4*i, 0.3*i, 0) * CA(MR(180-70*i), MR(-20*i), MR(150+30*i))
  1744. if SelAnim or Selected then return end
  1745. wait()
  1746. end
  1747. HW.Part1 = nil
  1748. TW.Part1 = Handle
  1749. for i = 0.12, 1, 0.12 do
  1750. LAW.C0 = CA(MR(-25+25*i), 0, MR(-30+55-25*i)) * CN(0, 0.2-0.2*i, 0)
  1751. if SelAnim or Selected then return end
  1752. wait()
  1753. end
  1754. if Selected == false and SelAnim == false then
  1755. LAW.Part1 = nil
  1756. end
  1757. end
  1758.  
  1759. function Slash()
  1760. RAW.Part1 = Rarm
  1761. Slashing = true
  1762. Play(Sounds.Slash)
  1763. for i = 0.15, 1, 0.15 do
  1764. RAW.C0 = CA(MR(180*i), MR(-20*i), MR(35*i))
  1765. AW.C0 = CA(MR(35*i), 0, 0) * CN(0, 0, 0.7*i)
  1766. wait()
  1767. end
  1768. for i = 0.33, 1, 0.33 do
  1769. RAW.C0 = CA(MR(180+10*i), MR(-20), MR(35+2*i))
  1770. AW.C0 = CA(MR(35+5*i), 0, 0) * CN(0, 0, 0.7+0.2*i)
  1771. wait()
  1772. end
  1773. local blockk = false
  1774. local hit, pos = RayC(torso.Position, torso.CFrame * CN(0, 0, -5).p, 3.2, char)
  1775. if hit ~= nil then
  1776. if getHumanoid(hit.Parent) == nil and hit.CanCollide == true then
  1777. blockk = true
  1778. end
  1779. end
  1780. SE(Arrow, CN(0, 0, 2.2))
  1781. if blockk == false then
  1782. Hurt = true
  1783. Deb = true
  1784. for i = 0.2, 1, 0.2 do
  1785. RAW.C0 = CA(MR(190-140*i), MR(-20-5*i), MR(37-87*i)) * CN(0, -1*i, 0)
  1786. AW.C0 = CA(MR(40-25*i), MR(-20*i), 0) * CN(0, 0, 0.9+0.3*i)
  1787. wait()
  1788. end
  1789. EE()
  1790. Hurt = false
  1791. for i = 0.33, 1, 0.33 do
  1792. RAW.C0 = CA(MR(50-10*i), MR(-25), MR(-50-5*i)) * CN(0, -1, 0)
  1793. AW.C0 = CA(MR(15-20*i), MR(-20-1*i), 0) * CN(0, 0, 1.2*i)
  1794. wait()
  1795. end
  1796. for i = 0.25, 1, 0.25 do
  1797. RAW.C0 = CA(MR(40-10*i), MR(-25+25*i), MR(-55+35*i)) * CN(0, -1+1*i, 0)
  1798. AW.C0 = CA(MR(-5+55*i), MR(-21+21*i), 0) * CN(0, 0, 1.2-1.2*i)
  1799. wait()
  1800. end
  1801. for i = 0.25, 1, 0.25 do
  1802. RAW.C0 = CA(MR(30-30*i), 0, MR(-20+20*i))
  1803. AW.C0 = CA(MR(50-50*i), 0, 0)
  1804. wait()
  1805. end
  1806. else
  1807. for i = 0.5, 1, 0.5 do
  1808. RAW.C0 = CA(MR(190-50*i), MR(-20-5*i), MR(37-27*i)) * CN(0, -0.2*i, 0)
  1809. AW.C0 = CA(MR(40-5*i), MR(-5*i), 0) * CN(0, 0, 0.9+0.1*i)
  1810. wait()
  1811. end
  1812. Play(Sounds.Block)
  1813. for i = 0.25, 1, 0.25 do
  1814. RAW.C0 = CA(MR(140+60*i), MR(-25+25*i), MR(10+20*i)) * CN(0, -0.2-0.3*i, 0)
  1815. AW.C0 = CA(MR(35+45*i), MR(-5+5*i), 0) * CN(0, 0, 1)
  1816. wait()
  1817. end
  1818. EE()
  1819. for i = 0.33, 1, 0.33 do
  1820. RAW.C0 = CA(MR(200+10*i), MR(5*i), MR(30+5*i)) * CN(0, -0.5, 0)
  1821. AW.C0 = CA(MR(80+5*i), 0, 0) * CN(0, 0, 1)
  1822. wait()
  1823. end
  1824. for i = 0.18, 1, 0.18 do
  1825. RAW.C0 = CA(MR(210-200*i), MR(5-5*i), MR(35-30*i)) * CN(0, -0.5+0.4*i, 0)
  1826. AW.C0 = CA(MR(85-75*i), 0, 0) * CN(0, 0, 1-0.8*i)
  1827. wait()
  1828. end
  1829. for i = 0.33, 1, 0.33 do
  1830. RAW.C0 = CA(MR(10-10*i), 0, MR(5-5*i)) * CN(0, -0.1+0.1*i, 0)
  1831. AW.C0 = CA(MR(10-10*i), 0, 0) * CN(0, 0, 0.2-0.2*i)
  1832. wait()
  1833. end
  1834. AW.C0 = CN()
  1835. end
  1836. Slashing = false
  1837. RAW.Part1 = nil
  1838. end
  1839.  
  1840. function Reload()
  1841. if ArrowOn == false then
  1842. RAW.Part1 = Rarm
  1843. Reloading = true
  1844. for i = 0.16, 1, 0.16 do
  1845. RAW.C0 = CA(MR(200*i), MR(-5*i), 0) * CN(0, -0.35*i, 0)
  1846. wait()
  1847. end
  1848. AW.C0 = CA(0, MR(-90), 0)
  1849. AW.C1 = CN(0, 0, -1.5) * CA(MR(60), 0, 0)
  1850. Arrow.Transparency = 0
  1851. ArrowOn = true
  1852. for i = 0.2, 1, 0.2 do
  1853. RAW.C0 = CA(MR(200), MR(-5), MR(40*i)) * CN(0, -0.35, 0)
  1854. AW.C1 = CN(0, 0, -1.5+2*i) * CA(MR(60-20*i), 0, 0)
  1855. wait()
  1856. end
  1857. for i = 0.33, 1, 0.33 do
  1858. RAW.C0 = CA(MR(200), MR(-5), MR(40+10*i)) * CN(0, -0.35+0.05*i, 0)
  1859. AW.C1 = CN(0, 0, 0.5+0.1*i) * CA(MR(40-5*i), 0, 0)
  1860. wait()
  1861. end
  1862. for i = 0.18, 1, 0.18 do
  1863. RAW.C0 = CA(MR(200-190*i), MR(-5+5*i), MR(50-45*i)) * CN(0, -0.3+0.25*i, 0)
  1864. AW.C1 = CN(0, 0, 0.6-0.5*i) * CA(MR(35-30*i), 0, 0)
  1865. AW.C0 = CA(0, MR(-90+80*i), 0)
  1866. wait()
  1867. end
  1868. for i = 0.33, 1, 0.33 do
  1869. RAW.C0 = CA(MR(10-10*i), 0, MR(5-5*i)) * CN(0, -0.05+0.05*i, 0)
  1870. AW.C1 = CN(0, 0, 0.1-0.1*i) * CA(MR(5-5*i), 0, 0)
  1871. AW.C0 = CA(0, MR(-10+10*i), 0)
  1872. wait()
  1873. end
  1874. AW.C1 = CN()
  1875. AW.C0 = CN()
  1876. RAW.C0 = CN()
  1877. RAW.Part1 = nil
  1878. Reloading = false
  1879. else
  1880. Slash()
  1881. end
  1882. end
  1883.  
  1884. function AddDetail(Surface, pos, bool, part, hu)
  1885. local caf = CN(pos) * CA(part.CFrame:toEulerAnglesXYZ()) * Surface[2]
  1886. if Surface[1] == "Anything" then
  1887. caf = Surface[2]
  1888. end
  1889. Notime(function()
  1890. if bool then
  1891. Notime(function()
  1892. for i = 1, MRA(2,7) do
  1893. local x = MRA(0.4*100, 0.9*100)/100
  1894. local z = MRA(0.7*100, 1.2*100)/100
  1895. local pp = Part(hu.Parent, false, false, 0, 0, "Bright red", 0.2, 0.2, 0.2)
  1896. local ms = Instance.new("SpecialMesh",pp)
  1897. ms.MeshType = "Sphere"
  1898. ms.Scale = Vector3.new(x*5, 1, z*5)
  1899. pp.CFrame = caf
  1900. local w = Weld(part, pp, 0, 0, 0, 0, 0, 0)
  1901. 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)
  1902. w.C0 = c0
  1903. Notime(function()
  1904. local moar = MRA(-1.1*1000, 1.1*1000)/1000
  1905. for i = 0, 1, MRA(0.02*1000, 0.06*1000)/1000 do
  1906. wait()
  1907. w.C0 = c0 * CN(0, 0, -moar*i)
  1908. ms.Scale = Vector3.new((x*5)-(moar/3)*i, 1, (z*5)+(moar/3)*i)
  1909. pp.Transparency = -0.5+1.5*i
  1910. end
  1911. pp:remove()
  1912. end)
  1913. end
  1914. end)
  1915. for i = 1, MRA(4,8) do
  1916. Notime(function()
  1917. local pp2 = Part(hu.Parent, true, false, 0, 0, "Bright red", 0.2, 0.2, 0.2)
  1918. pp2.CFrame = caf
  1919. local ms2 = Instance.new("SpecialMesh",pp2)
  1920. ms2.MeshType = "Sphere"
  1921. ms2.Scale = Vector3.new(1.5, 1.5, 1.5)
  1922. local face = CA(MR(MRA(-40, 40)+105), MR(MRA(-40, 40)), MR(MRA(-40, 40)))
  1923. local center = caf * face * CN(0, -5, 0)
  1924. Notime(function()
  1925. for i = 0, 1, 0.1 do
  1926. pp2.Transparency = -0.7+1.7*i
  1927. pp2.CFrame = center * CN(0, 0, -2.5*i) * CA(MR(-55*i), 0, 0) * CN(0, 5, 0)
  1928. wait()
  1929. end
  1930. pp2:remove()
  1931. end)
  1932. end)
  1933. end
  1934. else
  1935. Notime(function()
  1936. for i = 1, MRA(5,8) do
  1937. Notime(function()
  1938. local t = {"Bright yellow", "New Yeller", "Really black", "Institutional Really black", "Brick yellow"}
  1939. local pp = Part(workspace, true, false, 0, 0, t[MRA(1, #t)], 0.2, 0.2, 0.2)
  1940. local mes = Instance.new("SpecialMesh",pp)
  1941. mes.MeshType = "Sphere"
  1942. mes.Scale = Vector3.new(0.5, 0.5, 1)
  1943. local caa = CN(caf.p) * CA(MR(MRA(-180,180)), MR(MRA(-180,180)), MR(MRA(-180,180)))
  1944. pp.CFrame = caa
  1945. for i = 0.25, 1, 0.25 do
  1946. wait()
  1947. mes.Scale = Vector3.new(0.5+0.1*i, 0.5+0.1*i, 1+2*i)
  1948. pp.CFrame = caa * CN(0, 0, -0.4*i)
  1949. end
  1950. for i = 0.25, 1, 0.25 do
  1951. wait()
  1952. mes.Scale = Vector3.new(0.6, 0.6, 3+1.6*i)
  1953. pp.CFrame = caa * CN(0, 0, -0.6-0.32*i)
  1954. pp.Transparency = -0.2+1.2*i
  1955. end
  1956. pp:remove()
  1957. end)
  1958. end
  1959. end)
  1960. end
  1961. end)
  1962. end
  1963.  
  1964. function ShootArrow(pos, power, targ)
  1965. local Start = Handle.Position
  1966. local mag = (Start - pos).magnitude/200
  1967. if mag > 12.5 then mag = 12.5 end
  1968. if targ == nil then mag = 1 end
  1969. 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))
  1970. local Arr = Part(Mo, true, false, 0, 0, "Really black", 0.2, 0.2, 0.2)
  1971. local mes = Instance.new("SpecialMesh",Arr)
  1972. mes.MeshId = "http://www.roblox.com/asset/?id=15887356"
  1973. mes.TextureId = "http://www.roblox.com/asset/?id=15886781"
  1974. mes.Scale = Vector3.new(1, 1, 2.1)
  1975. Arr.CFrame = Face
  1976. local Go = 2.8+(power/30)
  1977. local Dist = 200+(power*2.8)
  1978. local Drop = 0.55/(Go*1.25)
  1979. local lastP = Start
  1980. local didhit = false
  1981. local omg = 0
  1982. local hit2, pos2 = RayC(torso.CFrame * CN(0, 0, -0.4).p, torso.CFrame * CN(0, 0, -2).p, 2.5, char)
  1983. local hu2 = nil
  1984. if hit2 then
  1985. local hh = getHumanoid(hit2.Parent)
  1986. if hh then
  1987. hit2 = nil
  1988. end
  1989. end
  1990. for i = Go, Dist, Go do
  1991. Drop = Drop + 1/(Go*3.5)
  1992. omg = omg + Drop
  1993. local dropping = CA(MR(-Drop), 0, 0)
  1994. if omg > 130 then
  1995. dropping = CN()
  1996. end
  1997. Face = Face * dropping * CN(0, 0, -Go)
  1998. Arr.CFrame = Face * CA(MR(-180), 0, 0)
  1999. local hit, p = RayC(lastP, Face.p, Go+0.5, char)
  2000. local eff = Part(Mo, true, false, 0, 0, "Really black", 0.2, 1, 0.2)
  2001. local magn = (lastP - Face.p).magnitude
  2002. local cf = CN(lastP, Face.p) * CA(MR(-90), 0, 0)
  2003. if hit then
  2004. magn = (lastP - p).magnitude
  2005. cf = CN(lastP, p) * CA(MR(-90), 0, 0)
  2006. end
  2007. local mes2 = Instance.new("SpecialMesh",eff)
  2008. mes2.Scale = Vector3.new(0.6, magn, 0.6)
  2009. eff.CFrame = cf * CN(0, magn/2, 0)
  2010. Notime(function()
  2011. for i = 0, 1, 0.12 do
  2012. wait()
  2013. eff.Transparency = i
  2014. eff.Reflectance = 0.15*i
  2015. mes2.Scale = Vector3.new(0.6-0.6*i, magn, 0.6-0.6*i)
  2016. end
  2017. eff:remove()
  2018. end)
  2019. local realhit = hit
  2020. if hit2 then realhit = hit2 p = pos2 end
  2021. if hit or hit2 then
  2022. local h = getHumanoid(realhit.Parent)
  2023. local sound = Sounds.Stick
  2024. if h and hit.Parent.className ~= "Hat" then
  2025. local d = MRA(12+DMG+(power/8), 20+DMG+(power/5.5))
  2026. hit:remove()
  2027. if hit.Name == "Head" then
  2028. d = math.floor(d*1.4)
  2029. hit:remove()
  2030. end
  2031. Dmg(h, d, p)
  2032. sound = Sounds.Hit
  2033. elseif h == nil and realhit.Parent.className ~= "Hat" then
  2034. if realhit.Anchored == false then
  2035. Notime(function()
  2036. wait(0.08)
  2037. local mas = realhit:GetMass()/5+2
  2038. local vel = (16+(power/3))/mas
  2039. if vel < 0 then vel = 0 end
  2040. realhit.Velocity = (CN(lastP, p).lookVector) * vel
  2041. end)
  2042. end
  2043. end
  2044. local a = -1.2
  2045. if realhit.Anchored then
  2046. Arr.CFrame = CN(p, lastP) * CN(0, 0, a)
  2047. if realhit == hit2 then
  2048. Arr.CFrame = CN(Start, pos2) * CN(0, 0, -1.9)
  2049. end
  2050. else
  2051. a = (power-200)/110
  2052. local w8 = 13
  2053. if realhit.Parent.className == "Hat" then
  2054. a = ((power/2)-170)/110
  2055. w8 = 5
  2056. end
  2057. Arr.Anchored = false
  2058. local w = Weld(realhit, Arr, 0, 0, 0, 0, 0, 0)
  2059. w.C1 = ((CN(p, lastP) * CN(0, 0, a)):toObjectSpace(realhit.CFrame))
  2060. if realhit == hit2 then
  2061. w.C1 = ((CN(Start, pos2) * CN(0, 0, -1.9)):toObjectSpace(realhit.CFrame))
  2062. end
  2063. Notime(function()
  2064. if power < 50 then
  2065. wait(w8+power/7.5)
  2066. local caa = Arr.CFrame
  2067. w:remove()
  2068. Arr.Size = Vector3.new(0.3, 0.3, 4)
  2069. Arr.CFrame = caa
  2070. Arr.CanCollide = true
  2071. end
  2072. end)
  2073. end
  2074. didhit = true
  2075. Notime(
  2076. function()
  2077. wait(26)
  2078. for i = 0, 1, 0.02 do
  2079. Arr.Transparency = i
  2080. wait()
  2081. end
  2082. Arr:remove()
  2083. end
  2084. )
  2085. Play(sound)
  2086. local Surface = DetectSurface(p, realhit)
  2087. AddDetail(Surface, p, h ~= nil and hit.Parent.className ~= "Hat", realhit, h)
  2088. wait(0.05)
  2089. break
  2090. end
  2091. lastP = Face.p
  2092. wait()
  2093. end
  2094. if didhit == false then
  2095. for i = 0, 1, 0.2 do
  2096. Arr.Transparency = i
  2097. wait()
  2098. end
  2099. Arr:remove()
  2100. end
  2101. end
  2102.  
  2103. function Shoot(mouse)
  2104. Shooting = true
  2105. RAW.Part1 = Rarm
  2106. Atch(FTorso)
  2107. FTorso.Transparency = 0
  2108. torso.Transparency = 1
  2109. local shoot = false
  2110. Spec.BorderColor3 = C3()
  2111. local amg, omg = false, false
  2112. Notime(function()
  2113. repeat
  2114. wait()
  2115. until Selected == false or omg
  2116. if omg == false then
  2117. omg = true
  2118. Shooting = false
  2119. Reloading = false
  2120. Hurt = false
  2121. Slashing = false
  2122. Normal()
  2123. EE()
  2124. return
  2125. end
  2126. end)
  2127. Notime(function()
  2128. mouse.Button1Up:wait()
  2129. shoot = true
  2130. end)
  2131. for i = 0.16, 1, 0.16 do
  2132. FWeld.C0 = CA(0, MR(-80*i), 0)
  2133. LAW.C0 = CA(MR(85*i), 0, MR(-30-25*i)) * CN(0.3*i, 0.4*i, -0.1*i)
  2134. RAW.C0 = CA(MR(85*i), 0, MR(-70*i)) * CN(0.65*i, -1.2*i, 0)
  2135. HW.C0 = CA(MR(180), 0, MR(150+60*i))
  2136. AW.C0 = CA(MR(85*i), 0, 0) * CN(0, 0, 2.1*i)
  2137. wait()
  2138. end
  2139. for i = 0.33, 1, 0.33 do
  2140. FWeld.C0 = CA(0, MR(-80-10*i), 0)
  2141. LAW.C0 = CA(MR(85+5*i), 0, MR(-55-5*i)) * CN(0.3, 0.4, -0.1)
  2142. RAW.C0 = CA(MR(85+5*i), 0, MR(-70-5*i)) * CN(0.65+0.05*i, -1.2-0.1*i, 0)
  2143. HW.C0 = CA(MR(180), 0, MR(210+5*i))
  2144. AW.C0 = CA(MR(85+5*i), MR(-15*i), 0) * CN(0, 0, 2.1+0.1*i)
  2145. wait()
  2146. end
  2147. LAW.C0 = CA(MR(90), 0, MR(-60)) * CN(0.3, 0.4, -0.1)
  2148. HW.C0 = CA(MR(180), 0, MR(215))
  2149. FWeld.C0 = CA(0, MR(-90), 0)
  2150. for i = 0.25, 1, 0.25 do
  2151. RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -1.3+1.2*i, 0)
  2152. SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26*i), 0, 0)
  2153. SUW.C1 = CN(0, -0.22*i, 0) * ORSU
  2154. SUM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
  2155. SDW.C0 = CN(0, -0.15, 0) * CA(MR(26*i), 0, 0)
  2156. SDM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
  2157. SDW.C1 = CN(0, 0.25*i, 0) * ORSD
  2158. wait()
  2159. end
  2160. for i = 0.33, 1, 0.33 do
  2161. RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -0.1+0.1*i, 0)
  2162. SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26-4*i), 0, 0)
  2163. SUW.C1 = CN(0, -0.22-0.03*i, 0) * ORSU
  2164. SUM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
  2165. SDW.C0 = CN(0, -0.15, 0) * CA(MR(26+4*i), 0, 0)
  2166. SDM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
  2167. SDW.C1 = CN(0, 0.22+0.04*i, 0) * ORSD
  2168. wait()
  2169. end
  2170. RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, 0, 0)
  2171. local powe = 10
  2172. Main.Visible = true
  2173. Bar.Size = UD(powe/MaximumPower, 0, 1, 0)
  2174. Notime(function()
  2175. repeat wait() until powe >= MaximumPower or shoot
  2176. wait(6)
  2177. if shoot == false then
  2178. shoot = true
  2179. end
  2180. end)
  2181. repeat
  2182. wait()
  2183. powe = powe + 4.8
  2184. if powe > MaximumPower then powe = MaximumPower end
  2185. Bar.Size = UD(powe/MaximumPower, 0, 1, 0)
  2186. local sped = 16-((powe/MaximumPower)*9) if Selected == false then sped = 16 end
  2187. Hum.WalkSpeed = sped
  2188. until shoot
  2189. Main.Visible = false
  2190. Notime(function()
  2191. for i = 0.5, 1, 0.5 do
  2192. SUW.C0 = CN(0, 0.15, 0) * CA(MR(-30+30*i), 0, 0)
  2193. SUW.C1 = CN(0, -0.25+0.25*i, 0) * ORSU
  2194. SUM.Scale = Vector3.new(0.4, 2.8-0.4*i, 0.4)
  2195. SDW.C0 = CN(0, -0.15, 0) * CA(MR(30-30*i), 0, 0)
  2196. SDM.Scale = Vector3.new(0.4, 2.8-0.4*i, 0.4)
  2197. SDW.C1 = CN(0, 0.25-0.25*i, 0) * ORSD
  2198. wait()
  2199. end
  2200. end)
  2201. local pos = mouse.Hit.p
  2202. ArrowOn = false
  2203. Arrow.Transparency = 1
  2204. Notime(function()
  2205. Play(Sounds.Shoot)
  2206. ShootArrow(pos, powe, mouse.Target)
  2207. end)
  2208. for i = 0.2, 1, 0.2 do
  2209. FWeld.C0 = CA(0, MR(-90+25*i), 0)
  2210. 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)
  2211. RAW.C0 = CA(MR(90+60*i), 0, MR(-75+55*i)) * CN(0.7-0.5*i, -0.1*i, 0)
  2212. HW.C0 = CA(MR(180), 0, MR(215-65*i))
  2213. wait()
  2214. end
  2215. Hum.WalkSpeed = 16
  2216. for i = 0.25, 1, 0.25 do
  2217. FWeld.C0 = CA(0, MR(-65+5*i), 0)
  2218. LAW.C0 = CA(MR(115+5*i), 0, MR(-75-5*i))
  2219. RAW.C0 = CA(MR(150+10*i), 0, MR(-20+5*i)) * CN(0.2-0.1*i, -0.1-0.05*i, 0)
  2220. HW.C0 = CA(MR(180), 0, MR(150))
  2221. wait()
  2222. end
  2223. for i = 0.14, 1, 0.14 do
  2224. FWeld.C0 = CA(0, MR(-60+55*i), 0)
  2225. LAW.C0 = CA(MR(120-110*i), 0, MR(-80+45*i))
  2226. RAW.C0 = CA(MR(160-150*i), 0, MR(-15+10*i)) * CN(0.1-0.1*i, -0.15+0.15*i, 0)
  2227. wait()
  2228. end
  2229. for i = 0.33, 1, 0.33 do
  2230. FWeld.C0 = CA(0, MR(-5+5*i), 0)
  2231. LAW.C0 = CA(MR(10-10*i), 0, MR(-35+5*i))
  2232. RAW.C0 = CA(MR(10-10*i), 0, MR(-5+5*i))
  2233. wait()
  2234. end
  2235. AW.C0 = CN()
  2236. FWeld.C0 = CN()
  2237. LAW.C0 = CA(0, 0, MR(-30))
  2238. HW.C0 = CA(MR(180), 0, MR(150))
  2239. FTorso.Transparency = 1
  2240. torso.Transparency = 0
  2241. Atch(torso)
  2242. Shooting = false
  2243. RAW.Part1 = nil
  2244. RAW.C0 = CN()
  2245. Spec.BorderColor3 = C3()
  2246. omg = true
  2247. end
  2248.  
  2249. function SpecialAtk(mouse)
  2250. if Special < 50 then return end
  2251. Shooting = true
  2252. Spec.BorderColor3 = C3(0, 1, 0)
  2253. RAW.Part1 = Rarm
  2254. Atch(FTorso)
  2255. FTorso.Transparency = 0
  2256. torso.Transparency = 1
  2257. local amg, omg = false, false
  2258. Notime(function()
  2259. repeat
  2260. wait()
  2261. until Selected == false or omg
  2262. if omg == false then
  2263. omg = true
  2264. Shooting = false
  2265. Reloading = false
  2266. Hurt = false
  2267. Slashing = false
  2268. Normal()
  2269. EE()
  2270. return
  2271. end
  2272. end)
  2273. local shoot = false
  2274. Notime(function()
  2275. mouse.Button1Up:wait()
  2276. shoot = true
  2277. end)
  2278. for i = 0.2, 1, 0.2 do
  2279. FWeld.C0 = CA(0, MR(-80*i), 0)
  2280. LAW.C0 = CA(MR(85*i), 0, MR(-30-25*i)) * CN(0.3*i, 0.4*i, -0.1*i)
  2281. RAW.C0 = CA(MR(85*i), 0, MR(-70*i)) * CN(0.65*i, -1.2*i, 0)
  2282. HW.C0 = CA(MR(180), 0, MR(150+60*i))
  2283. AW.C0 = CA(MR(85*i), 0, 0) * CN(0, 0, 2.1*i)
  2284. wait()
  2285. end
  2286. for i = 0.5, 1, 0.5 do
  2287. FWeld.C0 = CA(0, MR(-80-10*i), 0)
  2288. LAW.C0 = CA(MR(85+5*i), 0, MR(-55-5*i)) * CN(0.3, 0.4, -0.1)
  2289. RAW.C0 = CA(MR(85+5*i), 0, MR(-70-5*i)) * CN(0.65+0.05*i, -1.2-0.1*i, 0)
  2290. HW.C0 = CA(MR(180), 0, MR(210+5*i))
  2291. AW.C0 = CA(MR(85+5*i), MR(-15*i), 0) * CN(0, 0, 2.1+0.1*i)
  2292. wait()
  2293. end
  2294. LAW.C0 = CA(MR(90), 0, MR(-60)) * CN(0.3, 0.4, 0)
  2295. HW.C0 = CA(MR(180), 0, MR(215))
  2296. FWeld.C0 = CA(0, MR(-90), 0)
  2297. AW.C0 = CA(MR(90), MR(-15), 0) * CN(0, 0, 2.2)
  2298. for i = 0.33, 1, 0.33 do
  2299. RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -1.3+1.2*i, 0)
  2300. SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26*i), 0, 0)
  2301. SUW.C1 = CN(0, -0.22*i, 0) * ORSU
  2302. SUM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
  2303. SDW.C0 = CN(0, -0.15, 0) * CA(MR(26*i), 0, 0)
  2304. SDM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
  2305. SDW.C1 = CN(0, 0.25*i, 0) * ORSD
  2306. wait()
  2307. end
  2308. for i = 0.5, 1, 0.5 do
  2309. RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -0.1+0.1*i, 0)
  2310. SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26-4*i), 0, 0)
  2311. SUW.C1 = CN(0, -0.22-0.03*i, 0) * ORSU
  2312. SUM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
  2313. SDW.C0 = CN(0, -0.15, 0) * CA(MR(26+4*i), 0, 0)
  2314. SDM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
  2315. SDW.C1 = CN(0, 0.22+0.04*i, 0) * ORSD
  2316. wait()
  2317. end
  2318. RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, 0, 0)
  2319. local powe = 0
  2320. Main.Visible = true
  2321. Bar.Size = UD(powe/MaximumPower, 0, 1, 0)
  2322. Notime(function()
  2323. repeat wait() until powe >= MaximumPower or shoot
  2324. if shoot == false then
  2325. shoot = true
  2326. end
  2327. end)
  2328. repeat
  2329. wait()
  2330. powe = powe + 5
  2331. if powe > MaximumPower then powe = MaximumPower end
  2332. Bar.Size = UD(powe/MaximumPower, 0, 1, 0)
  2333. local sped = 16-((powe/MaximumPower)*9) if Selected == false then sped = 16 end
  2334. Hum.WalkSpeed = sped
  2335. until shoot
  2336. Special = Special - 50
  2337. Main.Visible = false
  2338. local pos = mouse.Hit.p
  2339. Notime(function()
  2340. Play(Sounds.Shoot)
  2341. ShootArrow(pos, powe/1.2, mouse.Target)
  2342. end)
  2343. SUW.C0 = CN(0, 0.15, 0) * CA(0, 0, 0)
  2344. SUW.C1 = CN(0, 0, 0) * ORSU
  2345. SUM.Scale = Vector3.new(0.4, 2.4, 0.4)
  2346. SDW.C0 = CN(0, -0.15, 0) * CA(0, 0, 0)
  2347. SDM.Scale = Vector3.new(0.4, 2.4, 0.4)
  2348. SDW.C1 = CN(0, 0, 0) * ORSD
  2349. for i = 0.33, 1, 0.33 do
  2350. RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -1.3*i, 0)
  2351. wait()
  2352. end
  2353. for i = 0.33, 1, 0.33 do
  2354. RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -1.3+1.2*i, 0)
  2355. SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26*i), 0, 0)
  2356. SUW.C1 = CN(0, -0.22*i, 0) * ORSU
  2357. SUM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
  2358. SDW.C0 = CN(0, -0.15, 0) * CA(MR(26*i), 0, 0)
  2359. SDM.Scale = Vector3.new(0.4, 2.4+0.3*i, 0.4)
  2360. SDW.C1 = CN(0, 0.25*i, 0) * ORSD
  2361. wait()
  2362. end
  2363. for i = 0.5, 1, 0.5 do
  2364. RAW.C0 = CA(MR(90), 0, MR(-75)) * CN(0.7, -0.1+0.1*i, 0)
  2365. SUW.C0 = CN(0, 0.15, 0) * CA(MR(-26-4*i), 0, 0)
  2366. SUW.C1 = CN(0, -0.22-0.03*i, 0) * ORSU
  2367. SUM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
  2368. SDW.C0 = CN(0, -0.15, 0) * CA(MR(26+4*i), 0, 0)
  2369. SDM.Scale = Vector3.new(0.4, 2.7+0.1*i, 0.4)
  2370. SDW.C1 = CN(0, 0.22+0.04*i, 0) * ORSD
  2371. wait()
  2372. end
  2373. Notime(function()
  2374. Arrow.Transparency = 1
  2375. ArrowOn = false
  2376. Play(Sounds.Shoot)
  2377. ShootArrow(pos, powe/1.2, mouse.Target)
  2378. end)
  2379. Notime(function()
  2380. for i = 0.5, 1, 0.5 do
  2381. SUW.C0 = CN(0, 0.15, 0) * CA(MR(-30+30*i), 0, 0)
  2382. SUW.C1 = CN(0, -0.25+0.25*i, 0) * ORSU
  2383. SUM.Scale = Vector3.new(0.4, 2.9-0.5*i, 0.4)
  2384. SDW.C0 = CN(0, -0.15, 0) * CA(MR(30-30*i), 0, 0)
  2385. SDM.Scale = Vector3.new(0.4, 2.9-0.5*i, 0.4)
  2386. SDW.C1 = CN(0, 0.25-0.25*i, 0) * ORSD
  2387. wait()
  2388. end
  2389. end)
  2390. for i = 0.25, 1, 0.25 do
  2391. FWeld.C0 = CA(0, MR(-90+25*i), 0)
  2392. 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)
  2393. RAW.C0 = CA(MR(90+60*i), 0, MR(-75+55*i)) * CN(0.7-0.5*i, -0.1*i, 0)
  2394. HW.C0 = CA(MR(180), 0, MR(215-65*i))
  2395. wait()
  2396. end
  2397. Hum.WalkSpeed = 16
  2398. for i = 0.33, 1, 0.33 do
  2399. FWeld.C0 = CA(0, MR(-65+5*i), 0)
  2400. LAW.C0 = CA(MR(115+5*i), 0, MR(-75-5*i))
  2401. RAW.C0 = CA(MR(150+10*i), 0, MR(-20+5*i)) * CN(0.2-0.1*i, -0.1-0.05*i, 0)
  2402. HW.C0 = CA(MR(180), 0, MR(150))
  2403. wait()
  2404. end
  2405. for i = 0.16, 1, 0.16 do
  2406. FWeld.C0 = CA(0, MR(-60+55*i), 0)
  2407. LAW.C0 = CA(MR(120-110*i), 0, MR(-80+45*i))
  2408. RAW.C0 = CA(MR(160-150*i), 0, MR(-15+10*i)) * CN(0.1-0.1*i, -0.15+0.15*i, 0)
  2409. wait()
  2410. end
  2411. for i = 0.5, 1, 0.5 do
  2412. FWeld.C0 = CA(0, MR(-5+5*i), 0)
  2413. LAW.C0 = CA(MR(10-10*i), 0, MR(-35+5*i))
  2414. RAW.C0 = CA(MR(10-10*i), 0, MR(-5+5*i))
  2415. wait()
  2416. end
  2417. Spec.BorderColor3 = C3()
  2418. AW.C0 = CN()
  2419. FWeld.C0 = CN()
  2420. LAW.C0 = CA(0, 0, MR(-30))
  2421. HW.C0 = CA(MR(180), 0, MR(150))
  2422. FTorso.Transparency = 1
  2423. torso.Transparency = 0
  2424. Atch(torso)
  2425. Shooting = false
  2426. RAW.Part1 = nil
  2427. RAW.C0 = CN()
  2428. omg = false
  2429. end
  2430.  
  2431. function Sel(mouse)
  2432. mouse.Icon = Icon
  2433. SelectAnim()
  2434. Selected = true
  2435. mouse.KeyDown:connect(function(key)
  2436. key = key:lower()
  2437. if Reloading == false and Slashing == false and Shooting == false then
  2438. if key == "f" then
  2439. Reload()
  2440. end
  2441. end
  2442. if Shooting == false then
  2443. if key == "e" then
  2444. Keys.e = true
  2445. local k
  2446. Spec.BorderColor3 = C3(1, 1, 0.4)
  2447. repeat
  2448. wait()
  2449. k = mouse.KeyUp:wait()
  2450. until k == "e"
  2451. Keys.e = false
  2452. if Shooting == false then
  2453. Spec.BorderColor3 = C3()
  2454. end
  2455. end
  2456. end
  2457. end)
  2458. mouse.Button1Down:connect(function()
  2459. if Reloading == false and Slashing == false and Shooting == false then
  2460. if ArrowOn == false then
  2461. local yesh = true
  2462. Notime(function()
  2463. mouse.Button1Up:wait()
  2464. yesh = false
  2465. end)
  2466. local ah = Keys.e
  2467. Reload()
  2468. if yesh then
  2469. local mm = Special >= 50
  2470. if ah and mm or Keys.e and mm then
  2471. SpecialAtk(mouse)
  2472. else
  2473. Shoot(mouse)
  2474. end
  2475. end
  2476. else
  2477. local mm = Special >= 50
  2478. if Keys.e and mm then
  2479. SpecialAtk(mouse)
  2480. else
  2481. Shoot(mouse)
  2482. end
  2483. end
  2484. end
  2485. end)
  2486. end
  2487.  
  2488. function Desel(mouse)
  2489. Selected = false
  2490. Main.Visible = false
  2491. Hum.WalkSpeed = 16
  2492. DeselectAnim()
  2493. end
  2494.  
  2495. bin.Deselected:connect(Desel)
  2496. bin.Selected:connect(Sel)
  2497.  
  2498. while Mo.Parent == char do
  2499. wait()
  2500. Special = Special + 0.07
  2501. if Special > MaxSpecial then Special = MaxSpecial end
  2502. SpecialBar.Size = UDim2.new(Special/MaxSpecial, 0, 1, 0)
  2503. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement