Guest User

Untitled

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