Advertisement
Samsungpwnedu

xBow Script

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