Advertisement
Guest User

bow fe

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