Advertisement
The_God_M8

NEP GUN

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