Legendofawesomeness3

Bow

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