Void_scripter0

bow

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