DarkScriptZEditors

XDXDXD

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