JOJOJOJOJOJO1234

Untitled

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