swerve_noob_swerve1

bow

Nov 24th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6. wait()
  7. player = game.Players.LocalPlayer
  8. char = player.Character
  9. mouse = player:GetMouse()
  10.  
  11. print("WHAT UP")
  12.  
  13. armed = false
  14. canfire = false
  15. enabled = true
  16. equipped = false
  17.  
  18. mouse.Icon = "rbxassetid://311756275"
  19.  
  20. rightshoulder = char.Torso["Right Shoulder"]:Clone()
  21. leftshoulder = char.Torso["Left Shoulder"]:Clone()
  22. torso = char.HumanoidRootPart.RootJoint:Clone()
  23.  
  24. hed = Instance.new("Weld", char.Torso)
  25. hed.Part0 = char.Torso
  26. hed.Part1 = char.Head
  27. hed.C0 = CFrame.new(0, 1.55, 0) * CFrame.Angles(0, 0, 0)
  28.  
  29. -- the bow stuff
  30.  
  31. bow = Instance.new("Model")
  32. bow.Parent = game.Workspace
  33. bow.Name = "bow"
  34.  
  35. handle = Instance.new("Part")
  36. handle.CFrame = CFrame.new(Vector3.new(-48.1999893, 2.79998732, -58.2000122)) * CFrame.Angles(-3.1415927410126, 0, -0)
  37. handle.Size = Vector3.new(0.200000003, 1.20000005, 0.200000003)
  38. handle.BrickColor = BrickColor.new("Pine Cone")
  39. handle.Friction = 0.30000001192093
  40. handle.Shape = Enum.PartType.Block
  41. handle.Name = "Handle"
  42. handle.Parent = bow
  43. handle.CanCollide = false
  44.  
  45. leg2 = Instance.new("Part")
  46. leg2.CFrame = CFrame.new(Vector3.new(-48.1999931, 1.25002313, -58.2000008)) * CFrame.Angles(-3.1415927410126, 0, -0)
  47. leg2.Size = Vector3.new(0.200000003, 1.90000021, 0.200000003)
  48. leg2.BrickColor = BrickColor.new("Pine Cone")
  49. leg2.Friction = 0.30000001192093
  50. leg2.Shape = Enum.PartType.Block
  51. leg2.Name = "Leg2"
  52. leg2.Parent = bow
  53. leg2.CanCollide = false
  54.  
  55. cap2 = Instance.new("Part")
  56. cap2.CFrame = CFrame.new(Vector3.new(-48.2000046, 0.300019979, -58.2000008)) * CFrame.Angles(1.5707963705063, 0, -0)
  57. cap2.TopSurface = Enum.SurfaceType.Smooth
  58. cap2.BottomSurface = Enum.SurfaceType.Smooth
  59. cap2.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  60. cap2.BrickColor = BrickColor.new("Pine Cone")
  61. cap2.Friction = 0.30000001192093
  62. cap2.Shape = Enum.PartType.Cylinder
  63. cap2.Name = "Cap2"
  64. cap2.Parent = bow
  65. cap2.CanCollide = false
  66.  
  67. joint2 = Instance.new("Part")
  68. joint2.CFrame = CFrame.new(Vector3.new(-48.1999893, 2.19999003, -58.2000237)) * CFrame.Angles(1.5707963705063, 0, -0)
  69. joint2.TopSurface = Enum.SurfaceType.Smooth
  70. joint2.BottomSurface = Enum.SurfaceType.Smooth
  71. joint2.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  72. joint2.BrickColor = BrickColor.new("Pine Cone")
  73. joint2.Friction = 0.30000001192093
  74. joint2.Shape = Enum.PartType.Cylinder
  75. joint2.Name = "Joint2"
  76. joint2.Parent = bow
  77. joint2.CanCollide = false
  78.  
  79. joint1 = Instance.new("Part")
  80. joint1.CFrame = CFrame.new(Vector3.new(-48.2000008, 3.39998126, -58.2000275)) * CFrame.Angles(1.5707963705063, 0, -0)
  81. joint1.TopSurface = Enum.SurfaceType.Smooth
  82. joint1.BottomSurface = Enum.SurfaceType.Smooth
  83. joint1.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  84. joint1.BrickColor = BrickColor.new("Pine Cone")
  85. joint1.Friction = 0.30000001192093
  86. joint1.Shape = Enum.PartType.Cylinder
  87. joint1.Name = "Joint1"
  88. joint1.Parent = bow
  89. joint1.CanCollide = false
  90.  
  91. leg1 = Instance.new("Part")
  92. leg1.CFrame = CFrame.new(Vector3.new(-48.1999931, 4.35000753, -58.2000122)) * CFrame.Angles(-3.1415927410126, 0, -0)
  93. leg1.Size = Vector3.new(0.200000003, 1.90000021, 0.200000003)
  94. leg1.BrickColor = BrickColor.new("Pine Cone")
  95. leg1.Friction = 0.30000001192093
  96. leg1.Shape = Enum.PartType.Block
  97. leg1.Name = "Leg1"
  98. leg1.Parent = bow
  99. leg1.CanCollide = false
  100.  
  101. cap1 = Instance.new("Part")
  102. cap1.CFrame = CFrame.new(Vector3.new(-48.2000046, 5.29999113, -58.2000122)) * CFrame.Angles(1.5707963705063, 0, -0)
  103. cap1.TopSurface = Enum.SurfaceType.Smooth
  104. cap1.BottomSurface = Enum.SurfaceType.Smooth
  105. cap1.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  106. cap1.BrickColor = BrickColor.new("Pine Cone")
  107. cap1.Friction = 0.30000001192093
  108. cap1.Shape = Enum.PartType.Cylinder
  109. cap1.Name = "Cap1"
  110. cap1.Parent = bow
  111. cap1.CanCollide = false
  112.  
  113. stringpart = Instance.new("Part")
  114. stringpart.CFrame = CFrame.new(Vector3.new(-48.2000046, 5.29999113, -58.2000122)) * CFrame.Angles(1.5707963705063, 0, -0)
  115. stringpart.TopSurface = Enum.SurfaceType.Smooth
  116. stringpart.BottomSurface = Enum.SurfaceType.Smooth
  117. stringpart.Size = Vector3.new(0.1, 0.1, 0.1)
  118. stringpart.Transparency = 1
  119. stringpart.BrickColor = BrickColor.new("Mid grey")
  120. stringpart.Friction = 0.30000001192093
  121. stringpart.Shape = Enum.PartType.Cylinder
  122. stringpart.Name = "StringAttachment"
  123. stringpart.Parent = bow
  124. stringpart.CanCollide = false
  125.  
  126. arrow = Instance.new("Model")
  127. arrow.Parent = game.Workspace
  128. arrow.Name = "arrow"
  129.  
  130. feather1 = Instance.new("WedgePart")
  131. feather1.CFrame = CFrame.new(Vector3.new(-48.3000031, 2.90000844, -56.1500168)) * CFrame.Angles(-0, 0, -0)
  132. feather1.TopSurface = Enum.SurfaceType.Smooth
  133. feather1.Size = Vector3.new(0.200000003, 0.200000003, 0.299999952)
  134. feather1.BrickColor = BrickColor.new("Crimson")
  135. feather1.Friction = 0.30000001192093
  136. feather1.Name = "Feather"
  137. feather1.Parent = arrow
  138. feather1.CanCollide = false
  139. feather1.Transparency = 1
  140.  
  141. feather2 = Instance.new("WedgePart")
  142. feather2.CFrame = CFrame.new(Vector3.new(-48.3000031, 2.50003171, -56.1500168)) * CFrame.Angles(-0, 0, -3.1415927410126)
  143. feather2.TopSurface = Enum.SurfaceType.Smooth
  144. feather2.Size = Vector3.new(0.200000003, 0.200000003, 0.299999952)
  145. feather2.BrickColor = BrickColor.new("Crimson")
  146. feather2.Friction = 0.30000001192093
  147. feather2.Name = "Feather"
  148. feather2.Parent = arrow
  149. feather2.CanCollide = false
  150. feather2.Transparency = 1
  151.  
  152. arrowhead = Instance.new("WedgePart")
  153. arrowhead.CFrame = CFrame.new(Vector3.new(-48.2999992, 2.80002427, -59.4500008)) * CFrame.Angles(-0, 0, -0)
  154. arrowhead.TopSurface = Enum.SurfaceType.Smooth
  155. arrowhead.Size = Vector3.new(0.200000003, 0.200000003, 0.299999952)
  156. arrowhead.Friction = 0.30000001192093
  157. arrowhead.Name = "Arrowhead"
  158. arrowhead.Parent = arrow
  159. arrowhead.CanCollide = false
  160. arrowhead.Transparency = 1
  161.  
  162. arrowcap = Instance.new("Part")
  163. arrowcap.CFrame = CFrame.new(Vector3.new(-48.2000046, 5.29999113, -58.2000122)) * CFrame.Angles(1.5707963705063, 0, -0)
  164. arrowcap.TopSurface = Enum.SurfaceType.Smooth
  165. arrowcap.BottomSurface = Enum.SurfaceType.Smooth
  166. arrowcap.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  167. arrowcap.BrickColor = BrickColor.new("Dirt brown")
  168. arrowcap.Friction = 0.30000001192093
  169. arrowcap.Shape = Enum.PartType.Cylinder
  170. arrowcap.Name = "ArrowCap"
  171. arrowcap.Parent = arrow
  172. arrowcap.CanCollide = false
  173. arrowcap.Transparency = 1
  174.  
  175. arrowbody = Instance.new("Part")
  176. arrowbody.CFrame = CFrame.new(Vector3.new(0, 3, 0)) * CFrame.Angles(-0, 0, -0)
  177. arrowbody.Size = Vector3.new(0.200000003, 0.200000003, 3.60000014)
  178. arrowbody.BrickColor = BrickColor.new("Dirt brown")
  179. arrowbody.Friction = 0.30000001192093
  180. arrowbody.Shape = Enum.PartType.Block
  181. arrowbody.Name = "ArrowBody"
  182. arrowbody.Parent = arrow
  183. arrowbody.CanCollide = false
  184. arrowbody.Transparency = 1
  185.  
  186. feather3 = Instance.new("WedgePart")
  187. feather3.CFrame = CFrame.new(Vector3.new(-48.3000031, 2.50004983, -55.9500198)) * CFrame.Angles(-0, 0, -3.1415927410126)
  188. feather3.TopSurface = Enum.SurfaceType.Smooth
  189. feather3.Size = Vector3.new(0.200000003, 0.200000003, 0.299999952)
  190. feather3.BrickColor = BrickColor.new("Crimson")
  191. feather3.Friction = 0.30000001192093
  192. feather3.Name = "Feather"
  193. feather3.Parent = arrow
  194. feather3.CanCollide = false
  195. feather3.Transparency = 1
  196.  
  197. feather4 = Instance.new("WedgePart")
  198. feather4.CFrame = CFrame.new(Vector3.new(-48.3000031, 2.90003037, -55.9500198)) * CFrame.Angles(-0, 0, -0)
  199. feather4.TopSurface = Enum.SurfaceType.Smooth
  200. feather4.Size = Vector3.new(0.200000003, 0.200000003, 0.299999952)
  201. feather4.BrickColor = BrickColor.new("Crimson")
  202. feather4.Friction = 0.30000001192093
  203. feather4.Name = "Feather"
  204. feather4.Parent = arrow
  205. feather4.CanCollide = false
  206. feather4.Transparency = 1
  207.  
  208. -- the welds
  209.  
  210. whandle = Instance.new("Weld", char["Left Arm"])
  211. whandle.Part0 = char.Torso
  212. whandle.Part1 = handle
  213. whandle.C0 = CFrame.new(0, 0, 0.6) * CFrame.Angles(0, 0, math.rad(45))
  214.  
  215. wstringpart = Instance.new("Weld", handle)
  216. wstringpart.Part0 = handle
  217. wstringpart.Part1 = stringpart
  218. wstringpart.C0 = CFrame.new(0, -0.3, -0.3) * CFrame.new(0, 0, 0)
  219.  
  220. wjoint1 = Instance.new("Weld", handle)
  221. wjoint1.Part0 = handle
  222. wjoint1.Part1 = joint1
  223. wjoint1.C0 = CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.1, 0, 0)
  224.  
  225. wjoint2 = Instance.new("Weld", handle)
  226. wjoint2.Part0 = handle
  227. wjoint2.Part1 = joint2
  228. wjoint2.C0 = CFrame.new(0, -0.6, 0) * CFrame.Angles(0.1, 0, 0)
  229.  
  230. wleg1 = Instance.new("Weld", joint1)
  231. wleg1.Part0 = joint1
  232. wleg1.Part1 = leg1
  233. wleg1.C0 = CFrame.new(0, 0.95, 0) * CFrame.Angles(0, 0, 0)
  234.  
  235. wleg2 = Instance.new("Weld", joint2)
  236. wleg2.Part0 = joint2
  237. wleg2.Part1 = leg2
  238. wleg2.C0 = CFrame.new(0, -0.95, 0) * CFrame.Angles(0, 0, 0)
  239.  
  240. wcap1 = Instance.new("Weld", leg1)
  241. wcap1.Part0 = leg1
  242. wcap1.Part1 = cap1
  243. wcap1.C0 = CFrame.new(0, 0.95, 0) * CFrame.Angles(0, 0, 0)
  244.  
  245. wcap2 = Instance.new("Weld", leg2)
  246. wcap2.Part0 = leg2
  247. wcap2.Part1 = cap2
  248. wcap2.C0 = CFrame.new(0, -0.95, 0) * CFrame.Angles(0, 0, 0)
  249.  
  250. cap1att = Instance.new("Attachment", cap1)
  251. cap1att.Position = Vector3.new(0, 0, -0.05)
  252. cap2att = Instance.new("Attachment", cap2)
  253. cap2att.Position = Vector3.new(0, 0, -0.05)
  254. stringatt = Instance.new("Attachment", stringpart)
  255. stringp1 = Instance.new("RodConstraint", stringpart)
  256. stringp1.Color = BrickColor.new("Mid grey")
  257. stringp1.Visible = true
  258. stringp1.Attachment0 = stringatt
  259. stringp1.Attachment1 = cap1att
  260. stringp2 = Instance.new("RodConstraint", stringpart)
  261. stringp2.Color = BrickColor.new("Mid grey")
  262. stringp2.Visible = true
  263. stringp2.Attachment0 = stringatt
  264. stringp2.Attachment1 = cap2att
  265.  
  266. warrowhead1 = Instance.new("Weld", arrowbody)
  267. warrowhead1.Part0 = arrowbody
  268. warrowhead1.Part1 = arrowhead
  269. warrowhead1.C0 = CFrame.new(0, 0, -1.95)
  270.  
  271. wfeather1 = Instance.new("Weld", arrowbody)
  272. wfeather1.Part0 = arrowbody
  273. wfeather1.Part1 = feather1
  274. wfeather1.C0 = CFrame.new(0, 0.2, 1.45)
  275.  
  276. wfeather2 = Instance.new("Weld", arrowbody)
  277. wfeather2.Part0 = arrowbody
  278. wfeather2.Part1 = feather2
  279. wfeather2.C0 = CFrame.new(0, 0.2, 1.4)
  280.  
  281. wfeather3 = Instance.new("Weld", arrowbody)
  282. wfeather3.Part0 = arrowbody
  283. wfeather3.Part1 = feather3
  284. wfeather3.C0 = CFrame.new(0, -0.2, 1.45) * CFrame.Angles(0, 0, 3.15)
  285.  
  286. wfeather4 = Instance.new("Weld", arrowbody)
  287. wfeather4.Part0 = arrowbody
  288. wfeather4.Part1 = feather4
  289. wfeather4.C0 = CFrame.new(0, -0.2, 1.4) * CFrame.Angles(0, 0, 3.15)
  290.  
  291. warrow = Instance.new("Weld", char.Torso)
  292. warrow.Part0 = char.Torso
  293. warrow.Part1 = arrowbody
  294. warrow.C0 = CFrame.new(0, 0, 0.5) * CFrame.Angles(-1.575, 0, 1.575)
  295.  
  296. warrowcap = Instance.new("Weld", arrowbody)
  297. warrowcap.Part0 = arrowbody
  298. warrowcap.Part1 = arrowcap
  299. warrowcap.C0 = CFrame.new(0, 0, 1.8)
  300.  
  301. -- sounds
  302.  
  303. pullbacksound = Instance.new("Sound", handle)
  304. pullbacksound.SoundId = "rbxassetid://609348868"
  305.  
  306. firesound = Instance.new("Sound", handle)
  307. firesound.SoundId = "rbxassetid://609348009"
  308. firesound.PlaybackSpeed = 1.05
  309.  
  310. function velocity(v)
  311. print("killvel")
  312. vel = coroutine.wrap(function()
  313. wait(0.05)
  314. v:Remove()
  315. end)
  316. vel()
  317. end
  318.  
  319. function killz(playa,hitz,kneef)
  320. local heyy = hitz
  321. if hitz == "Right Arm" then
  322. local Limb = playa:FindFirstChild("Right Arm")
  323. local ters = playa:FindFirstChild('Torso')
  324. if Limb and ters then
  325. if ters:FindFirstChild('Right Shoulder') then ters["Right Shoulder"]:Destroy() end
  326. for i,v in pairs(Limb:GetChildren()) do
  327. if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
  328. v:Destroy()
  329. end
  330. end
  331. Limb.CFrame = ters.CFrame * CFrame.new(1.5, 0, 0)
  332. local Joint = Instance.new("Glue")
  333. Joint.Name = "RightShoulder"
  334. Joint.Part0 = ters
  335. Joint.Part1 = Limb
  336. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  337. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  338. Joint.Parent = ters
  339.  
  340. local B = Instance.new("Part")
  341. B.TopSurface = 0
  342. B.BottomSurface = 0
  343. B.formFactor = "Symmetric"
  344. B.Size = Vector3.new(1, 1, 1)
  345. B.Transparency = 1
  346. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  347. B.Parent = playa
  348. local W = Instance.new("Weld")
  349. W.Part0 = Limb
  350. W.Part1 = B
  351. W.C0 = CFrame.new(0, -0.5, 0)
  352. W.Parent = Limb
  353. local coru = coroutine.wrap(function()
  354. local uno = Instance.new('Part',workspace)
  355. local dos = Instance.new('Part',workspace)
  356. uno.CFrame = playa:FindFirstChild(hitz).CFrame
  357. dos.CFrame = kneef.CFrame
  358. local weld = Instance.new('Weld',kneef)
  359. weld.Part0 = playa:FindFirstChild(hitz)
  360. weld.Part1 = kneef
  361. weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame)
  362. uno:Destroy()
  363. dos:Destroy()
  364. end)
  365. coru()
  366. end
  367. elseif hitz == "Left Arm" then
  368. local Limb = playa:FindFirstChild("Left Arm")
  369. local ters = playa:FindFirstChild('Torso')
  370. if Limb and ters then
  371. if ters:FindFirstChild('Left Shoulder') then ters["Left Shoulder"]:Destroy() end
  372. for i,v in pairs(Limb:GetChildren()) do
  373. if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
  374. v:Destroy()
  375. end
  376. end
  377. Limb.CFrame = ters.CFrame * CFrame.new(-1.5, 0, 0)
  378. local Joint = Instance.new("Glue")
  379. Joint.Name = "LeftShoulder"
  380. Joint.Part0 = ters
  381. Joint.Part1 = Limb
  382. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  383. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  384. Joint.Parent = ters
  385.  
  386. local B = Instance.new("Part")
  387. B.TopSurface = 0
  388. B.BottomSurface = 0
  389. B.formFactor = "Symmetric"
  390. B.Size = Vector3.new(1, 1, 1)
  391. B.Transparency = 1
  392. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  393. B.Parent = playa
  394. local W = Instance.new("Weld")
  395. W.Part0 = ters
  396. W.Part1 = B
  397. W.C0 = CFrame.new(0, -0.5, 0)
  398. W.Parent = Limb
  399. local coru = coroutine.wrap(function()
  400. local uno = Instance.new('Part',workspace)
  401. local dos = Instance.new('Part',workspace)
  402. uno.CFrame = playa:FindFirstChild(hitz).CFrame
  403. dos.CFrame = kneef.CFrame
  404. local weld = Instance.new('Weld',kneef)
  405. weld.Part0 = playa:FindFirstChild(hitz)
  406. weld.Part1 = kneef
  407. weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame)
  408. uno:Destroy()
  409. dos:Destroy()
  410. end)
  411. coru()
  412. end
  413. elseif hitz == "Right Leg" then
  414. local Limb = playa:FindFirstChild("Right Leg")
  415. local ters = playa:FindFirstChild('Torso')
  416. if Limb and ters then
  417. if ters:FindFirstChild('Right Hip') then ters["Right Hip"]:Destroy() end
  418. for i,v in pairs(Limb:GetChildren()) do
  419. if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
  420. v:Destroy()
  421. end
  422. end
  423. Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0)
  424. local Joint = Instance.new("Glue")
  425. Joint.Name = "Right Hip"
  426. Joint.Part0 = ters
  427. Joint.Part1 = Limb
  428. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  429. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  430. Joint.Parent = ters
  431. local B = Instance.new("Part")
  432. B.TopSurface = 0
  433. B.BottomSurface = 0
  434. B.formFactor = "Symmetric"
  435. B.Size = Vector3.new(1, 1, 1)
  436. B.Transparency = 1
  437. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  438. B.Parent = playa
  439. local W = Instance.new("Weld")
  440. W.Part0 = Limb
  441. W.Part1 = B
  442. W.C0 = CFrame.new(0, -0.5, 0)
  443. W.Parent = Limb
  444. local coru = coroutine.wrap(function()
  445. local uno = Instance.new('Part',workspace)
  446. local dos = Instance.new('Part',workspace)
  447. uno.CFrame = playa:FindFirstChild(hitz).CFrame
  448. dos.CFrame = kneef.CFrame
  449. local weld = Instance.new('Weld',kneef)
  450. weld.Part0 = playa:FindFirstChild(hitz)
  451. weld.Part1 = kneef
  452. weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame)
  453. uno:Destroy()
  454. dos:Destroy()
  455. if playa:FindFirstChild('HumanoidRootPart') then
  456. if playa.HumanoidRootPart:FindFirstChild('RootJoint') then
  457. playa.HumanoidRootPart:FindFirstChild('RootJoint'):Destroy()
  458. wait()
  459. end
  460. while playa.HumanoidRootPart:FindFirstChild('RootJoint') do
  461. wait()
  462. end
  463. playa:FindFirstChild('HumanoidRootPart'):Destroy()
  464. end
  465. end)
  466. coru()
  467. end
  468. elseif hitz == "Left Leg" then
  469. local Limb = playa:FindFirstChild("Left Leg")
  470. local ters = playa:FindFirstChild('Torso')
  471. if Limb and ters then
  472. if ters:FindFirstChild('Left Hip') then ters["Left Hip"]:Destroy() end
  473. for i,v in pairs(Limb:GetChildren()) do
  474. if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
  475. v:Destroy()
  476. end
  477. end
  478. Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0)
  479. Limb.CFrame = ters.CFrame * CFrame.new(-0.5, -2, 0)
  480. local Joint = Instance.new("Glue")
  481. Joint.Name = "LeftHip"
  482. Joint.Part0 = ters
  483. Joint.Part1 = Limb
  484. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  485. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  486. Joint.Parent = ters
  487.  
  488. local B = Instance.new("Part")
  489. B.TopSurface = 0
  490. B.BottomSurface = 0
  491. B.formFactor = "Symmetric"
  492. B.Size = Vector3.new(1, 1, 1)
  493. B.Transparency = 1
  494. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  495. B.Parent = playa
  496. local W = Instance.new("Weld")
  497. W.Part0 = Limb
  498. W.Part1 = B
  499. W.C0 = CFrame.new(0, -0.5, 0)
  500. W.Parent = Limb
  501. Limb.CanCollide = false
  502. local coru = coroutine.wrap(function()
  503. local uno = Instance.new('Part',workspace)
  504. local dos = Instance.new('Part',workspace)
  505. uno.CFrame = playa:FindFirstChild(hitz).CFrame
  506. dos.CFrame = kneef.CFrame
  507. local weld = Instance.new('Weld',kneef)
  508. weld.Part0 = playa:FindFirstChild(hitz)
  509. weld.Part1 = kneef
  510. weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame)
  511. uno:Destroy()
  512. dos:Destroy()
  513. if playa:FindFirstChild('HumanoidRootPart') then
  514. if playa.HumanoidRootPart:FindFirstChild('RootJoint') then
  515. playa.HumanoidRootPart:FindFirstChild('RootJoint'):Destroy()
  516. end
  517. while playa.HumanoidRootPart:FindFirstChild('RootJoint') do
  518. wait()
  519. end
  520. playa:FindFirstChild('HumanoidRootPart'):Destroy()
  521. end
  522. end)
  523. coru()
  524. end
  525. else
  526. local playa2 = playa
  527. playa.Archivable = true
  528. local playa = playa:Clone()
  529. playa.Archivable = false
  530. playa2:Destroy()
  531. playa.Parent = workspace
  532. local Gibs = game.Workspace
  533. local Torso = playa.Torso
  534. local Head = playa:FindFirstChild("Head")
  535. local function Scan(ch)
  536. local e
  537. for e = 1,#ch do
  538. Scan(ch[e]:GetChildren())
  539. if (ch[e].ClassName == "Weld" and ch[e].Part1.Name ~= 'Projectile') or ch[e].ClassName == "Motor6D" then
  540. ch[e]:remove()
  541. end
  542. end
  543. end
  544. Scan(playa:GetChildren())
  545. if playa:FindFirstChild('HumanoidRootPart') then
  546. playa:FindFirstChild('HumanoidRootPart'):Destroy()
  547. end
  548. local hum2 = playa:FindFirstChildOfClass("Humanoid")
  549.  
  550.  
  551. if hum2 ~= nil then
  552. hum2.Name = "Humanoid2"
  553. hum2.PlatformStand = true
  554. hum2.Health = 0
  555. end
  556. local ch = playa:GetChildren()
  557. local i
  558. for i = 1,#ch do
  559. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  560. ch[i]:remove()
  561. end
  562. end
  563.  
  564. if Head then
  565. local Neck = Instance.new("Weld")
  566. Neck.Name = "Neck"
  567. Neck.Part0 = Torso
  568. Neck.Part1 = Head
  569. Neck.C0 = CFrame.new(0, 1.5, 0)
  570. Neck.C1 = CFrame.new()
  571. Neck.Parent = Torso
  572. end
  573. local Limb = playa:FindFirstChild("Right Arm")
  574. if Limb then
  575.  
  576. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  577. local Joint = Instance.new("Glue")
  578. Joint.Name = "RightShoulder"
  579. Joint.Part0 = Torso
  580. Joint.Part1 = Limb
  581. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  582. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  583. Joint.Parent = Torso
  584.  
  585. local B = Instance.new("Part")
  586. B.TopSurface = 0
  587. B.BottomSurface = 0
  588. B.formFactor = "Symmetric"
  589. B.Size = Vector3.new(1, 1, 1)
  590. B.Transparency = 1
  591. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  592. B.Parent = playa
  593. local W = Instance.new("Weld")
  594. W.Part0 = Limb
  595. W.Part1 = B
  596. W.C0 = CFrame.new(0, -0.5, 0)
  597. W.Parent = Limb
  598. end
  599. local Limb = playa:FindFirstChild("Left Arm")
  600. if Limb then
  601.  
  602. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  603. local Joint = Instance.new("Glue")
  604. Joint.Name = "LeftShoulder"
  605. Joint.Part0 = Torso
  606. Joint.Part1 = Limb
  607. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  608. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  609. Joint.Parent = Torso
  610.  
  611. local B = Instance.new("Part")
  612. B.TopSurface = 0
  613. B.BottomSurface = 0
  614. B.formFactor = "Symmetric"
  615. B.Size = Vector3.new(1, 1, 1)
  616. B.Transparency = 1
  617. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  618. B.Parent = playa
  619. local W = Instance.new("Weld")
  620. W.Part0 = Limb
  621. W.Part1 = B
  622. W.C0 = CFrame.new(0, -0.5, 0)
  623. W.Parent = Limb
  624. end
  625. local Limb = playa:FindFirstChild("Right Leg")
  626. if Limb then
  627.  
  628. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  629. local Joint = Instance.new("Glue")
  630. Joint.Name = "RightHip"
  631. Joint.Part0 = Torso
  632. Joint.Part1 = Limb
  633. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  634. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  635. Joint.Parent = Torso
  636.  
  637. local B = Instance.new("Part")
  638. B.TopSurface = 0
  639. B.BottomSurface = 0
  640. B.formFactor = "Symmetric"
  641. B.Size = Vector3.new(1, 1, 1)
  642. B.Transparency = 1
  643. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  644. B.Parent = playa
  645. local W = Instance.new("Weld")
  646. W.Part0 = Limb
  647. W.Part1 = B
  648. W.C0 = CFrame.new(0, -0.5, 0)
  649. W.Parent = Limb
  650. end
  651. local Limb = playa:FindFirstChild("Left Leg")
  652. if Limb then
  653.  
  654. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  655. local Joint = Instance.new("Glue")
  656. Joint.Name = "LeftHip"
  657. Joint.Part0 = Torso
  658. Joint.Part1 = Limb
  659. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  660. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  661. Joint.Parent = Torso
  662.  
  663. local B = Instance.new("Part")
  664. B.TopSurface = 0
  665. B.BottomSurface = 0
  666. B.formFactor = "Symmetric"
  667. B.Size = Vector3.new(1, 1, 1)
  668. B.Transparency = 1
  669. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  670. B.Parent = playa
  671. local W = Instance.new("Weld")
  672. W.Part0 = Limb
  673. W.Part1 = B
  674. W.C0 = CFrame.new(0, -0.5, 0)
  675. W.Parent = Limb
  676. end
  677. --[
  678. local Bar = Instance.new("Part")
  679. Bar.TopSurface = 0
  680. Bar.BottomSurface = 0
  681. Bar.formFactor = "Symmetric"
  682. Bar.Size = Vector3.new(1, 1, 1)
  683. Bar.Transparency = 1
  684. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  685. Bar.Parent = playa
  686. local Weld = Instance.new("Weld")
  687. Weld.Part0 = Torso
  688. Weld.Part1 = Bar
  689. Weld.C0 = CFrame.new(0, 0.5, 0)
  690. Weld.Parent = Torso
  691. --]]
  692. playa.Parent = Gibs
  693. local coru = coroutine.wrap(function()
  694. print(hitz.Name)
  695. local uno = Instance.new('Part',workspace)
  696. local dos = Instance.new('Part',workspace)
  697. uno.CFrame = playa:FindFirstChild(heyy).CFrame
  698. dos.CFrame = kneef.CFrame
  699. local weld = Instance.new('Weld',kneef)
  700. weld.Part0 = playa:FindFirstChild(heyy)
  701. weld.Part1 = kneef
  702. weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame)
  703. uno:Destroy()
  704. dos:Destroy()
  705. end)
  706. coru()
  707. game.Debris:AddItem(playa, 15)
  708. end
  709. end
  710.  
  711. function checkarms()
  712. check = coroutine.wrap(function()
  713. rshould = char.Torso:FindFirstChild("Right Shoulder")
  714. lshould = char.Torso:FindFirstChild("Left Shoulder")
  715.  
  716. if rshould == nil then
  717. rightshoulder:Clone().Parent = char.Torso
  718. end
  719. if lshould == nil then
  720. rightshoulder:Clone().Parent = char.Torso
  721. end
  722. end)
  723. check()
  724. end
  725.  
  726. mouse.KeyDown:connect(function(k)
  727. key = k:lower()
  728.  
  729. if key == "e" and enabled == true and equipped == true then
  730. if armed == false then
  731. tors = Instance.new("Weld", char.HumanoidRootPart)
  732. tors.Part0 = char.HumanoidRootPart
  733. tors.Part1 = char.Torso
  734. tors.C0 = CFrame.new(0, 0, 0) * CFrame.new(0, 0, 0)
  735.  
  736. crarm = Instance.new("Weld", char.Torso)
  737. crarm.Part0 = char.Torso
  738. crarm.Part1 = char["Right Arm"]
  739. crarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(1.5, 0, 0)
  740.  
  741. clarm = Instance.new("Weld", char.Torso)
  742. clarm.Part0 = char.Torso
  743. clarm.Part1 = char["Left Arm"]
  744. clarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-1.5, 0, 0)
  745.  
  746. enabled = false
  747. for i = 0, 1, 0.1 do
  748. crarm.C0 = crarm.C0:lerp(CFrame.new(1.5, 1.5, 0) * CFrame.Angles(3.14, 0, 0), i)
  749. wait()
  750. end
  751. for i, v in pairs(arrow:GetChildren()) do
  752. v.Transparency = 0
  753. end
  754. feather1.Transparency = 0.25
  755. feather2.Transparency = 0.25
  756. feather3.Transparency = 0.25
  757. feather4.Transparency = 0.25
  758.  
  759. warrow.Part0 = char["Right Arm"]
  760. warrow.C0 = CFrame.new(-0.5, -2.7, -0.2) * CFrame.Angles(-1.575, 0.075, -0.5)
  761.  
  762. for i = 0, 1, 0.05 do
  763. tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, -1.5, 0), i)
  764. whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, -0.05, 0), i)
  765. clarm.C0 = clarm.C0:lerp(CFrame.new(-1.6, 0.45, -0.10) * CFrame.Angles(1.2, 0, -1.575), i)
  766. crarm.C0 = crarm.C0:lerp(CFrame.new(-1.35, 0.6, -1) * CFrame.Angles(1.575, 0, -1.575), i)
  767. wjoint1.C0 = wjoint1.C0:lerp(CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.1, 0, 0), i)
  768. wjoint2.C0 = wjoint2.C0:lerp(CFrame.new(0, -0.6, 0) * CFrame.Angles(0.1, 0, 0), i)
  769. wstringpart.C0 = wstringpart.C0:lerp(CFrame.new(0, -0.5, -0.3) * CFrame.new(0, 0, 0), i)
  770. hed.C0 = hed.C0:lerp(CFrame.new(0, 1.55, 0) * CFrame.Angles(0, 1.5, 0), i)
  771. wait()
  772. end
  773. pullbacksound:Play()
  774. warrow.Part0 = stringpart
  775. warrow.C0 = CFrame.new(-0.1, 0, 1.9) * CFrame.Angles(3.15, 0.04, 0)
  776. for i = 0, 1, 0.025 do
  777. tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, -1.5, 0), i)
  778. whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, -0.05, 0), i)
  779. clarm.C0 = clarm.C0:lerp(CFrame.new(-1.95, 0.45, -0.10) * CFrame.Angles(1.2, 0, -1.575), i)
  780. crarm.C0 = crarm.C0:lerp(CFrame.new(1, 0.6, -1) * CFrame.Angles(1.575, 0, -1.575), i)
  781. wjoint1.C0 = wjoint1.C0:lerp(CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.4, 0, 0), i)
  782. wjoint2.C0 = wjoint2.C0:lerp(CFrame.new(0, -0.6, 0) * CFrame.Angles(0.4, 0, 0), i)
  783. wstringpart.C0 = wstringpart.C0:lerp(CFrame.new(0, -0.5, -3) * CFrame.new(0, 0, 0), i)
  784. hed.C0 = hed.C0:lerp(CFrame.new(0, 1.55, -0.1) * CFrame.Angles(0, 1.5, -0.25), i)
  785. wait()
  786. end
  787. armed = true
  788. enabled = true
  789. elseif armed == true and equipped == true then
  790. enabled = false
  791. for i = 0,1,0.05 do
  792. clarm.C0 = clarm.C0:lerp(CFrame.new(-1.6, 0.45, -0.10) * CFrame.Angles(1.2, 0, -1.575), i)
  793. crarm.C0 = crarm.C0:lerp(CFrame.new(-1.3, 0.4, -1) * CFrame.Angles(1.575, 0.1, -1.575), i)
  794. wjoint1.C0 = wjoint1.C0:lerp(CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.1, 0, 0), i)
  795. wjoint2.C0 = wjoint2.C0:lerp(CFrame.new(0, -0.6, 0) * CFrame.Angles(0.1, 0, 0), i)
  796. wstringpart.C0 = wstringpart.C0:lerp(CFrame.new(0, -0.5, -0.3) * CFrame.new(0, 0, 0), i)
  797. wait()
  798. end
  799. warrow.Part0 = char["Right Arm"]
  800. warrow.C0 = CFrame.new(-0.5, -2.65, -0.2) * CFrame.Angles(-1.575, 0.075, -0.4)
  801. for i = 0,1,0.05 do
  802. crarm.C0 = crarm.C0:lerp(CFrame.new(1.5, 1.5, 0) * CFrame.Angles(3.14, 0, 0), i)
  803. tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i)
  804. whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, 0, 0), i)
  805. clarm.C0 = clarm.C0:lerp(CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, 0), i)
  806. crarm.C0 = crarm.C0:lerp(CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 0, 0), i)
  807. hed.C0 = hed.C0:lerp(CFrame.new(0, 1.55, 0) * CFrame.Angles(0, 0, 0), i)
  808. wait()
  809. end
  810.  
  811. for i, v in pairs(arrow:GetChildren()) do
  812. v.Transparency = 1
  813. end
  814. warrow.Part0 = char.Torso
  815. warrow.C0 = CFrame.new(0, 0, 0.5) * CFrame.Angles(-1.575, 0, 1.575)
  816.  
  817. for i = 0, 1, 0.1 do
  818. crarm.C0 = crarm.C0:lerp(CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 0, 0), i)
  819. wait()
  820. end
  821. armed = false
  822. enabled = true
  823. clarm:Remove()
  824. crarm:Remove()
  825. tors:Remove()
  826. rightshoulder:Clone().Parent = char.Torso
  827. leftshoulder:Clone().Parent = char.Torso
  828. torso:Clone().Parent = char.HumanoidRootPart
  829. checkarms()
  830. end
  831. elseif key == "z" then
  832. if armed == true or enabled == false then return end
  833. clarm = Instance.new("Weld", char.Torso)
  834. clarm.Part0 = char.Torso
  835. clarm.Part1 = char["Left Arm"]
  836. clarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-1.5, 0, 0)
  837. if equipped == false then
  838. enabled = false
  839. for i = 0, 1, 0.075 do
  840. clarm.C0 = clarm.C0:lerp(CFrame.new(-0.5, 0, 0.25) * CFrame.Angles(math.rad(-90), 0, math.rad(75)), i)
  841. wait()
  842. end
  843. whandle.C0 = CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, 0, 0)
  844. whandle.Part0 = char["Left Arm"]
  845. for i = 0, 1, 0.075 do
  846. clarm.C0 = clarm.C0:lerp(CFrame.new(-2, 0.6, 0) * CFrame.Angles(0, 0, math.rad(-90)), i)
  847. wait()
  848. end
  849. for i = 0, 1, 0.075 do
  850. clarm.C0 = clarm.C0:lerp(CFrame.Angles(0, 0, 0) * CFrame.new(-1.5, 0, 0), i)
  851. wait()
  852. end
  853. enabled = true
  854. equipped = true
  855. elseif equipped == true then
  856. if armed == true or enabled == false then return end
  857. enabled = false
  858. for i = 0, 1, 0.075 do
  859. clarm.C0 = clarm.C0:lerp(CFrame.new(-2, 0.6, 0) * CFrame.Angles(0, 0, math.rad(-90)), i)
  860. wait()
  861. end
  862. for i = 0, 1, 0.075 do
  863. clarm.C0 = clarm.C0:lerp(CFrame.new(-0.5, 0, 0.25) * CFrame.Angles(math.rad(-90), 0, math.rad(75)), i)
  864. whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, 0, 0), i)
  865. wait()
  866. end
  867. whandle.C0 = CFrame.new(0, 0, 0.6) * CFrame.Angles(0, 0, math.rad(45))
  868. whandle.Part0 = char.Torso
  869. for i = 0, 1, 0.075 do
  870. clarm.C0 = clarm.C0:lerp(CFrame.Angles(0, 0, 0) * CFrame.new(-1.5, 0, 0), i)
  871. wait()
  872. end
  873. equipped = false
  874. enabled = true
  875. end
  876. clarm:Remove()
  877. leftshoulder:Clone().Parent = char.Torso
  878. end
  879. end)
  880.  
  881. mouse.Button1Down:connect(function()
  882. if armed == false or enabled == false or equipped == false then return end
  883. firesound:Play()
  884. enabled = false
  885. armed = false
  886. wjoint1.C0 = CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.1, 0, 0)
  887. wjoint2.C0 = CFrame.new(0, -0.6, 0) * CFrame.Angles(0.1, 0, 0)
  888. wstringpart.C0 = CFrame.new(0, -0.5, -0.3) * CFrame.new(0, 0, 0)
  889. crarm.C0 = CFrame.new(1.2, 0.6, -1) * CFrame.Angles(1.575, 0, -1.575)
  890. newarrow = arrow:Clone()
  891. newarrow.Parent = game.Workspace
  892. newarrow.Name = "flyingarrow"
  893. newarrow.ArrowBody.CFrame = CFrame.new(newarrow.ArrowBody.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,0,math.pi/1.15)
  894. char.HumanoidRootPart.CFrame = CFrame.new(char.HumanoidRootPart.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/100,0)
  895. local fly = Instance.new('BodyVelocity',newarrow.ArrowBody)
  896. fly.Velocity = (newarrow.ArrowBody.CFrame*CFrame.Angles(0,0,math.pi/2)).lookVector*200
  897. newarrow.Arrowhead.Touched:connect(function(hit)
  898. if hit.Parent and hit.Parent:FindFirstChildOfClass('Humanoid') and hit.Transparency < 1 and newarrow.Arrowhead.CanCollide == false and hit.Parent:FindFirstChildOfClass('Humanoid').Health > 0 and hit.Parent ~= char then
  899. velocity(fly)
  900. newarrow.Arrowhead.CanCollide = true
  901. game:GetService('Debris'):AddItem(newarrow.Arrowhead,15)
  902. tone = math.random(1, 3)
  903. local sound = Instance.new('Sound',newarrow.Arrowhead)
  904. if tone == 1 then sound.SoundId = "rbxassetid://220833967" end
  905. if tone == 2 then sound.SoundId = "rbxassetid://220833976" end
  906. if tone == 3 then sound.SoundId = "rbxassetid://220834000" end
  907. sound.PlaybackSpeed = 1
  908. sound:Play()
  909. newarrow.Arrowhead.Anchored = true
  910. hit.Anchored = true
  911. if hit.Parent:FindFirstChildOfClass('Humanoid') and hit.Name == "Torso" or hit.Name == "Head" then
  912. hit.Parent:FindFirstChildOfClass('Humanoid').Health = 0
  913. end
  914. wait()
  915. hit.Anchored = false
  916. newarrow.Arrowhead.Anchored = false
  917. killz(hit.Parent,hit.Name,newarrow.Arrowhead)
  918. elseif hit.Parent and hit.Parent.Parent:FindFirstChildOfClass('Humanoid') and hit.Transparency < 1 and newarrow.Arrowhead.CanCollide == false and hit.Parent.Parent:FindFirstChildOfClass('Humanoid').Health > 0 and hit.Parent.Parent ~= char and hit.Parent.Parent:FindFirstChild('Head') then
  919. velocity(fly)
  920. game:GetService('Debris'):AddItem(newarrow.Arrowhead,15)
  921. newarrow.Arrowhead.CanCollide = true
  922. tone = math.random(1, 3)
  923. local sound = Instance.new('Sound',newarrow.Arrowhead)
  924. if tone == 1 then sound.SoundId = "rbxassetid://220833967" end
  925. if tone == 2 then sound.SoundId = "rbxassetid://220833976" end
  926. if tone == 3 then sound.SoundId = "rbxassetid://220834000" end
  927. sound.PlaybackSpeed = 1
  928. sound:Play()
  929. newarrow.Arrowhead.Anchored = true
  930. hit.Anchored = true
  931. if hit.Parent.Parent:FindFirstChildOfClass('Humanoid') then
  932. hit.Parent.Parent:FindFirstChildOfClass('Humanoid').Health = 0
  933. end
  934. wait()
  935. newarrow.Arrowhead.Anchored = false
  936. hit.Anchored = false
  937. killz(hit.Parent.Parent,hit.Name,newarrow.Arrowhead)
  938. elseif hit.Parent and hit.Parent ~= char and hit.Parent.Parent ~= char and hit.Transparency < 1 and newarrow.Arrowhead.CanCollide == false then
  939. velocity(fly)
  940. game:GetService('Debris'):AddItem(newarrow.Arrowhead,15)
  941. newarrow.Arrowhead.CanCollide = true
  942. local sound = Instance.new('Sound',newarrow.Arrowhead)
  943. sound.SoundId = 'rbxassetid://267585646'
  944. sound:Play()
  945. end
  946. end)
  947.  
  948. for i, v in pairs(arrow:GetChildren()) do
  949. v.Transparency = 1
  950. end
  951. warrow.Part0 = char.Torso
  952. warrow.C0 = CFrame.new(0, 0, 0.5) * CFrame.Angles(-1.575, 0, 1.575)
  953. wait(0.5)
  954. for i = 0, 1, 0.05 do
  955. tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i)
  956. whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, 0, 0), i)
  957. clarm.C0 = clarm.C0:lerp(CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, 0), i)
  958. crarm.C0 = crarm.C0:lerp(CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 0, 0), i)
  959. hed.C0 = hed.C0:lerp(CFrame.new(0, 1.55, 0) * CFrame.Angles(0, 0, 0), i)
  960. wait()
  961. end
  962. clarm:Remove()
  963. crarm:Remove()
  964. tors:Remove()
  965. rightshoulder:Clone().Parent = char.Torso
  966. leftshoulder:Clone().Parent = char.Torso
  967. torso:Clone().Parent = char.HumanoidRootPart
  968. checkarms()
  969. enabled = true
  970. end)
Add Comment
Please, Sign In to add comment