KrYn0MoRe

rufus bow optimised

Oct 24th, 2021 (edited)
932
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --By Rufus14
  2. --owner = game.Players:GetPlayerFromCharacter(script.Parent)
  3. character = owner.Character
  4. NLS([[--By Rufus14
  5. runservice = game:GetService("RunService")
  6. owner = game:GetService("Players").LocalPlayer
  7. character = owner.Character
  8. rootpart = character.HumanoidRootPart
  9. humanoidowner = character:findFirstChildOfClass("Humanoid")
  10.  
  11. bow = character:WaitForChild("mybow")
  12.  
  13. local bowweldlocal = Instance.new("Weld", bow)
  14. bowweldlocal.Name = "bowweldlocal"
  15. bowweldlocal.Part0 = character.Torso
  16. bowweldlocal.Part1 = bow:findFirstChild("theholder", true)
  17. bowweldlocal.C0 = CFrame.new(-0.363851786, 0.0303258896, 0.531646669, 0.347845018, -0.937389731, 0.0174473673, 0.937532127, 0.347898811, 5.02271178e-05, -0.00611700071, 0.016339995, 0.99984777)
  18. local linemiddleweld = Instance.new("Weld", bow)
  19. linemiddleweld.Name = "linemiddleweldlocal"
  20. linemiddleweld.Part0 = bow:findFirstChild("theholder", true)
  21. linemiddleweld.Part1 = bow:findFirstChild("linemiddle", true)
  22. linemiddleweld.C0 = CFrame.new(0, -0.625000954, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  23. local upperpartweld = Instance.new("Weld", bow)
  24. upperpartweld.Name = "mainupperweldlocal"
  25. upperpartweld.Part0 = bow:findFirstChild("theholder", true)
  26. upperpartweld.Part1 = bow:findFirstChild("mainupperpart", true)
  27. upperpartweld.C0 = CFrame.new(0.499999523, 0.0500001907, 4.76837158e-07, 0.999999881, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  28. local lowerpartweld = Instance.new("Weld", bow)
  29. lowerpartweld.Name = "mainlowerweldlocal"
  30. lowerpartweld.Part0 = bow:findFirstChild("theholder", true)
  31. lowerpartweld.Part1 = bow:findFirstChild("mainlowerpart", true)
  32. lowerpartweld.C0 = CFrame.new(-0.500000954, 0.0500001907, 4.76837158e-07, 0.999999642, 0, 0, 0, 0.999999642, 0, 0, 0, 1)
  33.  
  34. canuse = true
  35. drawing = false
  36. equipped = false
  37.  
  38. remote = character:WaitForChild("bowremote")
  39.  
  40. mouse = owner:GetMouse()
  41.  
  42. mouse.Button1Down:connect(function()
  43.     if canuse and equipped then
  44.         canuse = false
  45.         if not drawing then
  46.             drawing = true
  47.             remote:FireServer("draw")
  48.             remote:FireServer("makeweld", character.Torso, character["Right Arm"], "RightArmWeldbow", CFrame.new(1.5,0,0))
  49.             local rightarm = Instance.new("Weld", character.Torso)
  50.             rightarm.Part0 = character.Torso
  51.             rightarm.Part1 = character["Right Arm"]
  52.             rightarm.C0 = CFrame.new(1.5,0,0)
  53.             rightarm.Name = "RightArmWeldbowlocal"
  54.             for i = 0,0.4 , 0.015 do
  55.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.29883623, 1.05499792, 0.320428252, 0.939692616, 0.342020124, 0, 0.29619807, -0.813797653, 0.5, 0.171010077, -0.469846368, -0.866025329),i)
  56.                 runservice.RenderStepped:wait()
  57.             end
  58.             remote:FireServer("makearrow", "hand")
  59.             remote:FireServer("playsound", "drawarrow", true)
  60.             local arrow = character["Right Arm"]:WaitForChild("arrow")
  61.             local basedweld = Instance.new("Weld", character["Right Arm"])
  62.             basedweld.Part0 = character["Right Arm"]
  63.             basedweld.Part1 = arrow:findFirstChild("based")
  64.             basedweld.C0 = CFrame.new(-0.606494904, -0.714157581, -0.790890455, -0.464412391, 0.211017355, -0.860111833, 0.530729294, -0.711173058, -0.461041301, -0.70897603, -0.670600176, 0.218284503)
  65.             basedweld.Name = "based?basedonwhat?local"
  66.             remote:FireServer("makeweld", character.HumanoidRootPart, character.Torso, "HumanoidRootPartWeldbow", CFrame.new(1.5,0,0))
  67.             remote:FireServer("makeweld", character.Torso, character["Left Arm"], "LeftArmWeldbow", CFrame.new(1.5,0,0))
  68.             remote:FireServer("makeweld", character.Torso, character.Head, "HeadWeldbow", CFrame.new(1.5,0,0))
  69.             local leftarm = Instance.new("Weld", character.Torso)
  70.             leftarm.Part0 = character.Torso
  71.             leftarm.Part1 = character["Left Arm"]
  72.             leftarm.C0 = CFrame.new(-1.5,0,0)
  73.             leftarm.Name = "LeftArmWeldbowlocal"
  74.             local head = Instance.new("Weld", character.Torso)
  75.             head.Part0 = character.Torso
  76.             head.Part1 = character.Head
  77.             head.C0 = CFrame.new(0,1.5,0)
  78.             head.Name = "HeadWeldbowlocal"
  79.             local humanoidrootpart = Instance.new("Weld", character.HumanoidRootPart)
  80.             humanoidrootpart.Part0 = character.HumanoidRootPart
  81.             humanoidrootpart.Part1 = character.Torso
  82.             humanoidrootpart.Name = "HumanoidRootPartWeldbowlocal"
  83.             for i = 0,0.5 , 0.015 do
  84.                 basedweld.C0 = basedweld.C0:lerp(CFrame.new(0.296183109, -1.75894773, -0.576878786, 0.198091909, 0.0438630991, -0.979201138, -0.958058894, -0.202390447, -0.202880844, -0.207079992, 0.978322089, 0.00193150772),i)
  85.                 bowweldlocal.C0 = bowweldlocal.C0:lerp(CFrame.new(0.119829178, -1.04589534, -0.248363256, 0.00200265949, -0.945514143, -0.325574636, -0.00594672421, -0.325580806, 0.945495546, -0.999980271, 4.25971339e-05, -0.00627474068),i)
  86.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.342020094, 0, -0.939692616, 0, 1, 0, 0.939692616, 0, 0.342020094),i)
  87.                 head.C0 = head.C0:lerp(CFrame.new(0, 1.5, 0, 0.342020124, 0, 0.939692557, 0, 1, 0, -0.939692557, 0, 0.342020124),i)
  88.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5, 0.5, -0.499999881, 0.999999881, 0, 0, 0, -4.37113847e-08, -0.99999994, 0, 0.99999994, -4.37113883e-08),i)
  89.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(0.137348086, 0.5, -0.846068501, 0.342020124, 0.939692557, 0, -1.12057199e-08, 4.07854905e-09, -0.99999994, -0.939692557, 0.342020124, 1.19248806e-08),i)
  90.                 runservice.RenderStepped:wait()
  91.             end
  92.             humanoidowner.AutoRotate = false
  93.             remote:FireServer("playsound", "drawbow", true)
  94.             remote:FireServer("playsound", "bowpull", true)
  95.             for i = 0,0.3 , 0.007 do
  96.                 rootpart.CFrame = rootpart.CFrame:lerp(CFrame.new(rootpart.Position, Vector3.new(mouse.Hit.p.x, rootpart.Position.y, mouse.Hit.p.z)),0.1)
  97.                 upperpartweld.C0 = upperpartweld.C0:lerp(CFrame.new(0.457489967, -0.0856485367, 0.00258511305, 0.923882544, 0.382608891, -0.00715102768, -0.382625222, 0.923902094, -0.00107337534, 0.00619618967, 0.00372780673, 0.999973297),i)
  98.                 lowerpartweld.C0 = lowerpartweld.C0:lerp(CFrame.new(-0.407845497, -0.0875036716, 5.36441803e-07, 0.93969202, -0.342021227, -2.04751518e-06, 0.342020929, 0.939691365, -2.51270831e-06, 2.77720392e-06, 1.62422657e-06, 0.999999464),i)
  99.                 linemiddleweld.C0 = linemiddleweld.C0:lerp(CFrame.new(0.212499619, -3.0749979, -0.249999374, 0.999999523, 2.03726813e-10, 6.89510671e-09, 2.03726813e-10, 0.999997973, -3.7252903e-08, 6.89510671e-09, -3.7252903e-08, 0.999998629),i)
  100.                 basedweld.C0 = basedweld.C0:lerp(CFrame.new(-0.233748376, -1.62766695, -0.38600111, -0.545380175, 0.0406345427, -0.837202609, -0.828170896, 0.127835572, 0.545701325, 0.129198596, 0.990962446, -0.0360666364),i*1.4)
  101.                 bowweldlocal.C0 = bowweldlocal.C0:lerp(CFrame.new(0.653082132, -0.794707417, -0.349150896, -0.165008023, -0.350964189, -0.92173481, 0.0658131093, -0.936380029, 0.344759166, -0.984093785, -0.00377401663, 0.17760846),i)
  102.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, -2.68220901e-07, 0, -0.99999994, 0, 1, 0, 0.99999994, 0, -2.68220901e-07),i)
  103.                 head.C0 = head.C0:lerp(CFrame.new(1.49011612e-08, 1.49240398, -0.0868240595, 2.93495361e-08, 5.17511722e-09, 0.999999821, -0.173648179, 0.98480773, 0, -0.984807551, -0.173648134, 2.9802294e-08),i)
  104.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.84261894, 0.5, -0.127577424, 0.342020094, 0.939692378, -1.64202843e-15, 4.10752605e-08, -1.49501744e-08, -0.99999994, -0.939692378, 0.342020094, -4.37113812e-08),i)
  105.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.29259133, 0.434195995, -0.631837368, 0.497520864, 0.851965904, -0.163175851, -0.0301536974, -0.171010032, -0.984807611, -0.866927385, 0.494882762, -0.0593911484),i)
  106.                 runservice.RenderStepped:wait()
  107.             end
  108.             coroutine.wrap(function()
  109.                 while runservice.RenderStepped:wait() and drawing do
  110.                     rootpart.CFrame = rootpart.CFrame:lerp(CFrame.new(rootpart.Position, Vector3.new(mouse.Hit.p.x, rootpart.Position.y, mouse.Hit.p.z)),0.15)
  111.                 end
  112.             end)()
  113.         else
  114.             remote:FireServer("playsound", "bowrelease", true)
  115.             remote:FireServer("playsound", "bowfire", true)
  116.             if character:findFirstChild("arrow", true) then
  117.                 local arrow = character:findFirstChild("arrow", true)
  118.                 remote:FireServer("makearrow", "shoot", arrow.based.Position, mouse.Hit.p)
  119.                 arrow:destroy()
  120.             end
  121.             if character["Right Arm"]:findFirstChild("based?basedonwhat?local") then
  122.                 character["Right Arm"]:findFirstChild("based?basedonwhat?local"):destroy()
  123.             end
  124.             linemiddleweld.C0 = CFrame.new(0, -0.625000954, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  125.             upperpartweld.C0 = CFrame.new(0.499999523, 0.0500001907, 4.76837158e-07, 0.999999881, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  126.             lowerpartweld.C0 = CFrame.new(-0.500000954, 0.0500001907, 4.76837158e-07, 0.999999642, 0, 0, 0, 0.999999642, 0, 0, 0, 1)
  127.             local leftarm = character.Torso:WaitForChild("LeftArmWeldbowlocal")
  128.             local rightarm = character.Torso:WaitForChild("RightArmWeldbowlocal")
  129.             local head = character.Torso:WaitForChild("HeadWeldbowlocal")
  130.             local humanoidrootpart = character.HumanoidRootPart:WaitForChild("HumanoidRootPartWeldbowlocal")
  131.             for i = 0,1, 0.15 do
  132.                 bowweldlocal.C0 = bowweldlocal.C0:lerp(CFrame.new(-0.0604534149, -0.960613728, 0.0429928601, -0.0174479969, -0.00626701396, -0.999828219, -4.29999855e-05, -0.99998039, 0.00626871781, -0.99984777, 0.00015236919, 0.0174473859),i)
  133.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.49999994, -1.78813934e-07, -0.866025329, 0, 0.99999994, -2.08616257e-07, 0.866025388, 1.04308128e-07, 0.499999911),i)
  134.                 head.C0 = head.C0:lerp(CFrame.new(-0.0253726244, 1.49919367, -0.0127364397, 0.495843947, -0.0507452227, 0.866927505, 0.00304587232, 0.998386621, 0.0566980131, -0.868405879, -0.0254728198, 0.495198488),i)
  135.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.28677678, 0.478546381, -0.77539587, 0.928756237, 0.256961197, -0.267174333, -0.133022159, -0.441711366, -0.887240529, -0.346000433, 0.859570384, -0.376060724),i)
  136.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.99088836, 0.260585785, -0.181543112, 0.342020154, 0.88302201, 0.321393967, 4.29001403e-08, 0.342020273, -0.939692318, -0.939692318, 0.321393758, 0.116977796),i)
  137.                 runservice.RenderStepped:wait()
  138.             end
  139.             wait(0.3)
  140.             for i = 0,0.35, 0.01 do
  141.                 bowweldlocal.C0 = bowweldlocal.C0:lerp(CFrame.new(-0.0604534149, -0.960613728, 0.0429928601, -0.0174479969, -0.00626701396, -0.999828219, -4.29999855e-05, -0.99998039, 0.00626871781, -0.99984777, 0.00015236919, 0.0174473859),i)
  142.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  143.                 head.C0 = head.C0:lerp(CFrame.new(0,1.5,0),i)
  144.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0,0),i)
  145.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0,0),i)
  146.                 runservice.RenderStepped:wait()
  147.             end
  148.             rightarm:destroy()
  149.             leftarm:destroy()
  150.             head:destroy()
  151.             humanoidrootpart:destroy()
  152.             remote:FireServer("removeweld", "LeftArmWeldbow")
  153.             remote:FireServer("removeweld", "RightArmWeldbow")
  154.             remote:FireServer("removeweld", "HeadWeldbow")
  155.             remote:FireServer("removeweld", "HumanoidRootPartWeldbow")
  156.             remote:FireServer("undraw")
  157.             humanoidowner.AutoRotate = true
  158.             drawing = false
  159.         end
  160.         canuse = true
  161.     end
  162. end)
  163. mouse.KeyDown:connect(function(key)
  164.     key = key:lower()
  165.     if key == "z" and canuse and not drawing then
  166.         canuse = false
  167.         if equipped then
  168.             remote:FireServer("makeweld", character.Torso, character["Left Arm"], "LeftArmWeldbow", CFrame.new(-1.5,0,0))
  169.             local leftarm = Instance.new("Weld", character.Torso)
  170.             leftarm.Part0 = character.Torso
  171.             leftarm.Part1 = character["Left Arm"]
  172.             leftarm.C0 = CFrame.new(-1.5,0,0)
  173.             leftarm.Name = "LeftArmWeldbowlocal"
  174.             for i = 0,0.6 , 0.015 do
  175.                 bowweldlocal.C0 = bowweldlocal.C0:lerp(CFrame.new(0.203918546, -0.605503321, -0.018055439, 0.699876904, -0.285870135, -0.654561341, 0.00241733389, 0.917357147, -0.398057669, 0.714259326, 0.2770091, 0.64272815),i)
  176.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-0.990192413, 0.125246763, 0.44661361, 0.5, -0.866025329, 0, 0.556670249, 0.321393758, 0.766044438, -0.663413942, -0.383022249, 0.642787516),i)
  177.                 runservice.RenderStepped:wait()
  178.             end
  179.             remote:FireServer("unequip")
  180.             bowweldlocal.Part0 = character.Torso
  181.             bowweldlocal.C0 = CFrame.new(-0.363851786, 0.0303258896, 0.531646669, 0.347845018, -0.937389731, 0.0174473673, 0.937532127, 0.347898811, 5.02271178e-05, -0.00611700071, 0.016339995, 0.99984777)
  182.             for i = 0,0.4 , 0.015 do
  183.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0,0),i)
  184.                 runservice.RenderStepped:wait()
  185.             end
  186.             leftarm:destroy()
  187.             remote:FireServer("removeweld", "LeftArmWeldbow")
  188.             equipped = false
  189.         else
  190.             remote:FireServer("makeweld", character.Torso, character["Left Arm"], "LeftArmWeldbow", CFrame.new(-1.5,0,0))
  191.             local leftarm = Instance.new("Weld", character.Torso)
  192.             leftarm.Part0 = character.Torso
  193.             leftarm.Part1 = character["Left Arm"]
  194.             leftarm.C0 = CFrame.new(-1.5,0,0)
  195.             leftarm.Name = "LeftArmWeldbowlocal"
  196.             for i = 0,0.6 , 0.015 do
  197.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-0.990192413, 0.125246763, 0.44661361, 0.5, -0.866025329, 0, 0.556670249, 0.321393758, 0.766044438, -0.663413942, -0.383022249, 0.642787516),i)
  198.                 runservice.RenderStepped:wait()
  199.             end
  200.             remote:FireServer("equip")
  201.             bowweldlocal.Part0 = character["Left Arm"]
  202.             bowweldlocal.C0 = CFrame.new(0.203918546, -0.605503321, -0.018055439, 0.699876904, -0.285870135, -0.654561341, 0.00241733389, 0.917357147, -0.398057669, 0.714259326, 0.2770091, 0.64272815)
  203.             for i = 0,0.5 , 0.015 do
  204.                 bowweldlocal.C0 = bowweldlocal.C0:lerp(CFrame.new(-0.0604534149, -0.960613728, 0.0429928601, -0.0174479969, -0.00626701396, -0.999828219, -4.29999855e-05, -0.99998039, 0.00626871781, -0.99984777, 0.00015236919, 0.0174473859),i)
  205.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-2,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,-math.pi/2),i)
  206.                 runservice.RenderStepped:wait()
  207.             end
  208.             for i = 0,0.4 , 0.015 do
  209.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0,0),i)
  210.                 runservice.RenderStepped:wait()
  211.             end
  212.             leftarm:destroy()
  213.             remote:FireServer("removeweld", "LeftArmWeldbow")
  214.             equipped = true
  215.         end
  216.         canuse = true
  217.     elseif key == "c" then
  218.         remote:FireServer("changecolor")
  219.     elseif key == "x" and canuse and not drawing then
  220.         canuse = false
  221.         remote:FireServer("makeweld", character.Torso, character["Right Arm"], "RightArmWeldbow", CFrame.new(1.5,0,0))
  222.         local rightarm = Instance.new("Weld", character.Torso)
  223.         rightarm.Part0 = character.Torso
  224.         rightarm.Part1 = character["Right Arm"]
  225.         rightarm.C0 = CFrame.new(1.5,0,0)
  226.         rightarm.Name = "RightArmWeldbowlocal"
  227.         for i = 0,0.4 , 0.02 do
  228.             rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.29883623, 1.05499792, 0.320428252, 0.939692616, 0.342020124, 0, 0.29619807, -0.813797653, 0.5, 0.171010077, -0.469846368, -0.866025329),i)
  229.             runservice.RenderStepped:wait()
  230.         end
  231.         remote:FireServer("makearrow", "hand")
  232.         remote:FireServer("playsound", "drawarrow", true)
  233.         local arrow = character["Right Arm"]:WaitForChild("arrow")
  234.         local based = arrow.based
  235.         local basedweld = Instance.new("Weld", character["Right Arm"])
  236.         basedweld.Part0 = character["Right Arm"]
  237.         basedweld.Part1 = arrow:findFirstChild("based")
  238.         basedweld.C0 = CFrame.new(-0.606494904, -0.714157581, -0.790890455, -0.464412391, 0.211017355, -0.860111833, 0.530729294, -0.711173058, -0.461041301, -0.70897603, -0.670600176, 0.218284503)
  239.         basedweld.Name = "based?basedonwhat?local"
  240.         for i = 0,0.25 , 0.02 do
  241.             rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 0.399776459, -0.489852279, 1, 0, 0, 0, 0.200446963, -0.979704499, 0, 0.979704559, 0.200446978),i)
  242.             runservice.RenderStepped:wait()
  243.         end
  244.         remote:FireServer("makeweld", character.HumanoidRootPart, character.Torso, "HumanoidRootPartWeldbow", CFrame.new(1.5,0,0))
  245.         remote:FireServer("makeweld", character.Torso, character["Left Arm"], "LeftArmWeldbow", CFrame.new(1.5,0,0))
  246.         remote:FireServer("makeweld", character.Torso, character.Head, "HeadWeldbow", CFrame.new(1.5,0,0))
  247.         local leftarm = Instance.new("Weld", character.Torso)
  248.         leftarm.Part0 = character.Torso
  249.         leftarm.Part1 = character["Left Arm"]
  250.         leftarm.C0 = CFrame.new(-1.5,0,0)
  251.         leftarm.Name = "LeftArmWeldbowlocal"
  252.         local head = Instance.new("Weld", character.Torso)
  253.         head.Part0 = character.Torso
  254.         head.Part1 = character.Head
  255.         head.C0 = CFrame.new(0,1.5,0)
  256.         head.Name = "HeadWeldbowlocal"
  257.         local humanoidrootpart = Instance.new("Weld", character.HumanoidRootPart)
  258.         humanoidrootpart.Part0 = character.HumanoidRootPart
  259.         humanoidrootpart.Part1 = character.Torso
  260.         humanoidrootpart.Name = "HumanoidRootPartWeldbowlocal"
  261.         remote:FireServer("trailon")
  262.         for i = 0,0.45 , 0.015 do
  263.             basedweld.C0 = basedweld.C0:lerp(CFrame.new(-0.0192564726, -0.921892881, -0.239903808, -0.0780922174, -0.331900746, -0.940076053, 0.0735273063, -0.942305267, 0.326579779, -0.994230866, -0.0436179563, 0.0979904234),i)
  264.             humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.866025329, 0, -0.500000179, 0, 1, 0, 0.500000179, 0, 0.866025329),i)
  265.             head.C0 = head.C0:lerp(CFrame.new(0, 1.5, 0, 0.866025329, 0, 0.500000179, 0, 1, 0, -0.500000179, 0, 0.866025329),i)
  266.             leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.57790899, 0.101901054, -0.0868239403, 0.98480773, 0.171010077, -0.030153662, -0.173648149, 0.96984607, -0.171010017, -2.98023224e-08, 0.173648119, 0.98480773),i)
  267.             rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.6408565, 0.201163769, 0, 0.939692616, -0.342020154, 0, 0.342020094, 0.939692557, 0, 0, 1.49011612e-08, 1),i)
  268.             runservice.RenderStepped:wait()
  269.         end
  270.         remote:FireServer("playsound", "swingarrow", true)
  271.         local ignorlist = {character}
  272.         for q,w in pairs(workspace:GetDescendants()) do
  273.             if w.Name == "HumanoidRootPart" then
  274.                 table.insert(ignorlist, w)
  275.             end
  276.             if w.Parent.Name == "arrow" then
  277.                 table.insert(ignorlist, w.Parent)
  278.             end
  279.             if w.Parent.ClassName == "Accessory" or w.Parent.ClassName == "Hat" then
  280.                 table.insert(ignorlist, w)
  281.             end
  282.         end
  283.         local stabdsom1 = false
  284.         for i = 0,1 , 0.15 do
  285.             if not stabdsom1 then
  286.                 local raye = Ray.new(based.Position, based.CFrame.rightVector*2)
  287.                 local hitE, posE, surfacE = workspace:FindPartOnRayWithIgnoreList(raye, ignorlist)
  288.                 if hitE and not stabdsom1 then
  289.                     local thismanshumanoid = hitE.Parent:findFirstChildOfClass("Humanoid")
  290.                     if thismanshumanoid then
  291.                         stabdsom1 = true
  292.                         remote:FireServer("damage", thismanshumanoid, 120)
  293.                         local s = math.random(1,3)
  294.                         if s == 1 then
  295.                             remote:FireServer("playsound", "stabsound", true)
  296.                         elseif s == 2 then
  297.                             remote:FireServer("playsound", "stabsound2", true)
  298.                         elseif s == 3 then
  299.                             remote:FireServer("playsound", "stabsound3", true)
  300.                         end
  301.                     end
  302.                 end
  303.             end
  304.             basedweld.C0 = basedweld.C0:lerp(CFrame.new(0.106897116, -1.13562441, -0.594026327, 0.0491852909, -0.790509939, -0.610470891, -0.313351363, -0.59256506, 0.742076457, -0.94836241, 0.154792741, -0.276852816),i)
  305.             humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.499999911, 0, 0.866025448, 0, 1, 0, -0.866025448, 0, 0.499999911),i)
  306.             head.C0 = head.C0:lerp(CFrame.new(0, 1.5, 0, 0.499999911, 0, -0.866025448, 0, 1, 0, 0.866025448, 0, 0.499999911),i)
  307.             leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.57922792, 0.0944201946, 0, 0.98480773, 0.173648179, 0, -0.173648164, 0.98480767, 0, 0, 0, 1),i)
  308.             rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.68344319, 0.665054798, -0.0752484798, 0.556670368, -0.81021601, 0.183488727, 0.809456408, 0.47934705, -0.339126229, 0.186810672, 0.337307692, 0.922672868),i)
  309.             runservice.RenderStepped:wait()
  310.         end
  311.         remote:FireServer("trailoff")
  312.         for i = 0,0.25, 0.02 do
  313.             basedweld.C0 = basedweld.C0:lerp(CFrame.new(-0.606494904, -0.714157581, -0.790890455, -0.464412391, 0.211017355, -0.860111833, 0.530729294, -0.711173058, -0.461041301, -0.70897603, -0.670600176, 0.218284503),i)
  314.             humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  315.             head.C0 = head.C0:lerp(CFrame.new(0,1.5,0),i)
  316.             rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 0.399776459, -0.489852279, 1, 0, 0, 0, 0.200446963, -0.979704499, 0, 0.979704559, 0.200446978),i)
  317.             leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0,0),i)
  318.             runservice.RenderStepped:wait()
  319.         end
  320.         for i = 0,0.3, 0.015 do
  321.             humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  322.             head.C0 = head.C0:lerp(CFrame.new(0,1.5,0),i)
  323.             leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0,0),i)
  324.             rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.29883623, 1.05499792, 0.320428252, 0.939692616, 0.342020124, 0, 0.29619807, -0.813797653, 0.5, 0.171010077, -0.469846368, -0.866025329),i)
  325.             runservice.RenderStepped:wait()
  326.         end
  327.         basedweld:destroy()
  328.         arrow:destroy()
  329.         for i = 0,0.4, 0.015 do
  330.             humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  331.             head.C0 = head.C0:lerp(CFrame.new(0,1.5,0),i)
  332.             leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0,0),i)
  333.             rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0,0),i)
  334.             runservice.RenderStepped:wait()
  335.         end
  336.         rightarm:destroy()
  337.         leftarm:destroy()
  338.         head:destroy()
  339.         humanoidrootpart:destroy()
  340.         remote:FireServer("removeweld", "LeftArmWeldbow")
  341.         remote:FireServer("removeweld", "RightArmWeldbow")
  342.         remote:FireServer("removeweld", "HeadWeldbow")
  343.         remote:FireServer("removeweld", "HumanoidRootPartWeldbow")
  344.         canuse = true
  345.     end
  346. end)
  347.  
  348. coroutine.wrap(function()
  349.     local chartors = character.Torso
  350.     while wait() do
  351.         if chartors:findFirstChild("RightArmWeldbowlocal") then
  352.             remote:FireServer("updatec0", "RightArmWeldbow", chartors:findFirstChild("RightArmWeldbowlocal").C0)
  353.         end
  354.         if chartors:findFirstChild("LeftArmWeldbowlocal") then
  355.             remote:FireServer("updatec0", "LeftArmWeldbow", chartors:findFirstChild("LeftArmWeldbowlocal").C0)
  356.         end
  357.         if chartors:findFirstChild("RightLegWeldbowlocal") then
  358.             remote:FireServer("updatec0", "RightLegWeldbow", chartors:findFirstChild("RightLegWeldbowlocal").C0)
  359.         end
  360.         if chartors:findFirstChild("LeftLegWeldbowlocal") then
  361.             remote:FireServer("updatec0", "LeftLegWeldbow", chartors:findFirstChild("LeftLegWeldbowlocal").C0)
  362.         end
  363.         if character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldbowlocal") then
  364.             remote:FireServer("updatec0", "HumanoidRootPartWeldbow", character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldbowlocal").C0)
  365.         end
  366.         if chartors:findFirstChild("HeadWeldbowlocal") then
  367.             remote:FireServer("updatec0", "HeadWeldbow", chartors:findFirstChild("HeadWeldbowlocal").C0)
  368.         end
  369.         if character["Right Arm"]:findFirstChild("linemiddleweldlocal") then
  370.             remote:FireServer("updatec0", "linemiddleweld", character["Right Arm"]:findFirstChild("linemiddleweldlocal").C0)
  371.         end
  372.         if character["Right Arm"]:findFirstChild("based?basedonwhat?local") then
  373.             remote:FireServer("updatec0", "based?basedonwhat?", character["Right Arm"]:findFirstChild("based?basedonwhat?local").C0)
  374.         end
  375.         if bow:findFirstChild("mainupperweldlocal") then
  376.             remote:FireServer("updatec0", "upperweld", upperpartweld.C0)
  377.         end
  378.         if bow:findFirstChild("mainlowerweldlocal") then
  379.             remote:FireServer("updatec0", "lowerweld", lowerpartweld.C0)
  380.         end
  381.         if bow:findFirstChild("bowweldlocal") then
  382.             remote:FireServer("updatec0", "bowweld", bowweldlocal.C0)
  383.         end
  384.         if bow:findFirstChild("linemiddleweldlocal") then
  385.             remote:FireServer("updatec0", "linemiddleweld", linemiddleweld.C0)
  386.         end
  387.     end
  388. end)()]], character)
  389. runservice = game:GetService("RunService")
  390. --Converted with ttyyuu12345's model to script plugin v4
  391. function sandbox(var,func)
  392.     local env = getfenv(func)
  393.     local newenv = setmetatable({},{
  394.         __index = function(self,k)
  395.             if k=="script" then
  396.                 return var
  397.             else
  398.                 return env[k]
  399.             end
  400.         end,
  401.     })
  402.     setfenv(func,newenv)
  403.     return func
  404. end
  405. cors = {}
  406. mas = Instance.new("Model",game:GetService("Lighting"))
  407. Model0 = Instance.new("Model")
  408. Model1 = Instance.new("Model")
  409. Part2 = Instance.new("Part")
  410. Part3 = Instance.new("Part")
  411. Part4 = Instance.new("Part")
  412. Weld5 = Instance.new("Weld")
  413. Weld6 = Instance.new("Weld")
  414. Weld7 = Instance.new("Weld")
  415. Weld8 = Instance.new("Weld")
  416. Weld9 = Instance.new("Weld")
  417. Weld10 = Instance.new("Weld")
  418. Weld11 = Instance.new("Weld")
  419. Part12 = Instance.new("Part")
  420. SpecialMesh13 = Instance.new("SpecialMesh")
  421. Part14 = Instance.new("Part")
  422. SpecialMesh15 = Instance.new("SpecialMesh")
  423. Part16 = Instance.new("Part")
  424. Beam17 = Instance.new("Beam")
  425. Beam18 = Instance.new("Beam")
  426. Model19 = Instance.new("Model")
  427. Part20 = Instance.new("Part")
  428. Part21 = Instance.new("Part")
  429. Part22 = Instance.new("Part")
  430. Part23 = Instance.new("Part")
  431. Part24 = Instance.new("Part")
  432. SpecialMesh25 = Instance.new("SpecialMesh")
  433. Part26 = Instance.new("Part")
  434. Weld27 = Instance.new("Weld")
  435. Weld28 = Instance.new("Weld")
  436. Weld29 = Instance.new("Weld")
  437. Weld30 = Instance.new("Weld")
  438. Weld31 = Instance.new("Weld")
  439. Weld32 = Instance.new("Weld")
  440. Weld33 = Instance.new("Weld")
  441. Weld34 = Instance.new("Weld")
  442. Weld35 = Instance.new("Weld")
  443. Part36 = Instance.new("Part")
  444. Part37 = Instance.new("Part")
  445. SpecialMesh38 = Instance.new("SpecialMesh")
  446. Part39 = Instance.new("Part")
  447. Part40 = Instance.new("Part")
  448. Model41 = Instance.new("Model")
  449. Part42 = Instance.new("Part")
  450. Part43 = Instance.new("Part")
  451. Part44 = Instance.new("Part")
  452. SpecialMesh45 = Instance.new("SpecialMesh")
  453. Part46 = Instance.new("Part")
  454. SpecialMesh47 = Instance.new("SpecialMesh")
  455. Part48 = Instance.new("Part")
  456. Part49 = Instance.new("Part")
  457. Part50 = Instance.new("Part")
  458. Part51 = Instance.new("Part")
  459. Weld52 = Instance.new("Weld")
  460. Weld53 = Instance.new("Weld")
  461. Weld54 = Instance.new("Weld")
  462. Weld55 = Instance.new("Weld")
  463. Weld56 = Instance.new("Weld")
  464. Weld57 = Instance.new("Weld")
  465. Weld58 = Instance.new("Weld")
  466. Weld59 = Instance.new("Weld")
  467. Part60 = Instance.new("Part")
  468. Model0.Name = "mybow"
  469. Model0.Parent = mas
  470. Model1.Name = "middlepart"
  471. Model1.Parent = Model0
  472. Part2.Parent = Model1
  473. Part2.CFrame = CFrame.new(-8.14999676, 2.94999933, 6.55000019, 0, -0.999999523, 0, 0.999999523, 0, 0, 0, 0, 1)
  474. Part2.Orientation = Vector3.new(0, 0, 90)
  475. Part2.Position = Vector3.new(-8.14999676, 2.94999933, 6.55000019)
  476. Part2.Rotation = Vector3.new(0, 0, 90)
  477. Part2.Color = Color3.new(0.827451, 0.764706, 0.443137)
  478. Part2.Size = Vector3.new(0.0999992117, 0.100000001, 0.0999999866)
  479. Part2.BottomSurface = Enum.SurfaceType.Smooth
  480. Part2.BrickColor = BrickColor.new("Gold")
  481. Part2.Material = Enum.Material.Wood
  482. Part2.TopSurface = Enum.SurfaceType.Smooth
  483. Part2.brickColor = BrickColor.new("Gold")
  484. Part3.Parent = Model1
  485. Part3.CFrame = CFrame.new(-8.04999638, 2.70000029, 6.70000076, 0, -0.999999523, 0, 0.999999523, 0, 0, 0, 0, 1)
  486. Part3.Orientation = Vector3.new(0, 0, 90)
  487. Part3.Position = Vector3.new(-8.04999638, 2.70000029, 6.70000076)
  488. Part3.Rotation = Vector3.new(0, 0, 90)
  489. Part3.Color = Color3.new(0.827451, 0.764706, 0.443137)
  490. Part3.Size = Vector3.new(0.399999082, 0.100000001, 0.199999988)
  491. Part3.BottomSurface = Enum.SurfaceType.Smooth
  492. Part3.BrickColor = BrickColor.new("Gold")
  493. Part3.Material = Enum.Material.Wood
  494. Part3.TopSurface = Enum.SurfaceType.Smooth
  495. Part3.brickColor = BrickColor.new("Gold")
  496. Part4.Name = "theholder"
  497. Part4.Parent = Model1
  498. Part4.CFrame = CFrame.new(-8.09999657, 2.70000029, 6.70000029, 0, -0.999999523, 0, 0.999999523, 0, 0, 0, 0, 1)
  499. Part4.Orientation = Vector3.new(0, 0, 90)
  500. Part4.Position = Vector3.new(-8.09999657, 2.70000029, 6.70000029)
  501. Part4.Rotation = Vector3.new(0, 0, 90)
  502. Part4.Color = Color3.new(0.105882, 0.164706, 0.207843)
  503. Part4.Size = Vector3.new(0.199999094, 0.209999993, 0.209999993)
  504. Part4.BottomSurface = Enum.SurfaceType.Smooth
  505. Part4.BrickColor = BrickColor.new("Black")
  506. Part4.TopSurface = Enum.SurfaceType.Smooth
  507. Part4.brickColor = BrickColor.new("Black")
  508. Weld5.Parent = Part4
  509. Weld5.C0 = CFrame.new(-0.25, -0.0500001907, 4.76837158e-07, 0, 0, 1, 0, -1, 0, 1, 0, 0)
  510. Weld5.Part0 = Part4
  511. Weld5.Part1 = Part12
  512. Weld5.part1 = Part12
  513. Weld6.Parent = Part4
  514. Weld6.C0 = CFrame.new(0.249999762, -0.0500001907, 4.76837158e-07, 0, 1, 0, 0, 0, 1, 1, 0, 0)
  515. Weld6.Part0 = Part4
  516. Weld6.Part1 = Part14
  517. Weld6.part1 = Part14
  518. Weld7.Parent = Part4
  519. Weld7.C0 = CFrame.new(0, -0.625000954, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  520. Weld7.Part0 = Part4
  521. Weld7.Part1 = Part16
  522. Weld7.part1 = Part16
  523. Weld7.Name = "linemiddleweld"
  524. Weld8.Parent = Part4
  525. Weld8.C0 = CFrame.new(0, -0.0500001907, 4.76837158e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  526. Weld8.Part0 = Part4
  527. Weld8.Part1 = Part3
  528. Weld8.part1 = Part3
  529. Weld9.Parent = Part4
  530. Weld9.C0 = CFrame.new(0.249999285, 0.0500001907, -0.150000095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  531. Weld9.Part0 = Part4
  532. Weld9.Part1 = Part2
  533. Weld9.part1 = Part2
  534. Weld10.Name = "upperweld"
  535. Weld10.Parent = Part4
  536. Weld10.C0 = CFrame.new(0.499999523, 0.0500001907, 4.76837158e-07, 0.999999881, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  537. Weld10.Part0 = Part4
  538. Weld10.Part1 = Part26
  539. Weld10.part1 = Part26
  540. Weld11.Name = "lowerweld"
  541. Weld11.Parent = Part4
  542. Weld11.C0 = CFrame.new(-0.500000954, 0.0500001907, 4.76837158e-07, 0.999999642, 0, 0, 0, 0.999999642, 0, 0, 0, 1)
  543. Weld11.Part0 = Part4
  544. Weld11.Part1 = Part51
  545. Weld11.part1 = Part51
  546. Part12.Parent = Model1
  547. Part12.CFrame = CFrame.new(-8.04999638, 2.45000029, 6.70000076, 0, 0.999999523, 0, 0, 0, 0.999999523, 1, 0, 0)
  548. Part12.Orientation = Vector3.new(-89.9400024, 0, 0)
  549. Part12.Position = Vector3.new(-8.04999638, 2.45000029, 6.70000076)
  550. Part12.Rotation = Vector3.new(-90, 0, -90)
  551. Part12.Color = Color3.new(0.827451, 0.764706, 0.443137)
  552. Part12.Size = Vector3.new(0.199999094, 0.100000001, 0.0999999866)
  553. Part12.BottomSurface = Enum.SurfaceType.Smooth
  554. Part12.BrickColor = BrickColor.new("Gold")
  555. Part12.Material = Enum.Material.Wood
  556. Part12.TopSurface = Enum.SurfaceType.Smooth
  557. Part12.brickColor = BrickColor.new("Gold")
  558. SpecialMesh13.Parent = Part12
  559. SpecialMesh13.MeshType = Enum.MeshType.Wedge
  560. Part14.Parent = Model1
  561. Part14.CFrame = CFrame.new(-8.04999638, 2.94999981, 6.70000076, 0, 0, -0.999999523, 0, 0.999999523, 0, 1, 0, 0)
  562. Part14.Orientation = Vector3.new(0, -90, 0)
  563. Part14.Position = Vector3.new(-8.04999638, 2.94999981, 6.70000076)
  564. Part14.Rotation = Vector3.new(0, -89.9400024, 0)
  565. Part14.Color = Color3.new(0.827451, 0.764706, 0.443137)
  566. Part14.Size = Vector3.new(0.199999094, 0.100000001, 0.0999999866)
  567. Part14.BottomSurface = Enum.SurfaceType.Smooth
  568. Part14.BrickColor = BrickColor.new("Gold")
  569. Part14.Material = Enum.Material.Wood
  570. Part14.TopSurface = Enum.SurfaceType.Smooth
  571. Part14.brickColor = BrickColor.new("Gold")
  572. SpecialMesh15.Parent = Part14
  573. SpecialMesh15.MeshType = Enum.MeshType.Wedge
  574. Part16.Name = "linemiddle"
  575. Part16.Parent = Model1
  576. Part16.CFrame = CFrame.new(-7.47499609, 2.70000029, 6.70000029, 0, -0.999999523, 0, 0.999999523, 0, 0, 0, 0, 1)
  577. Part16.Orientation = Vector3.new(0, 0, 90)
  578. Part16.Position = Vector3.new(-7.47499609, 2.70000029, 6.70000029)
  579. Part16.Rotation = Vector3.new(0, 0, 90)
  580. Part16.Color = Color3.new(0.454902, 0.227451, 0.0431373)
  581. Part16.Transparency = 1
  582. Part16.Size = Vector3.new(0.0571425892, 0.0599999949, 0.0599999949)
  583. Part16.BottomSurface = Enum.SurfaceType.Smooth
  584. Part16.BrickColor = BrickColor.new("Burnt Sienna")
  585. Part16.Material = Enum.Material.SmoothPlastic
  586. Part16.TopSurface = Enum.SurfaceType.Smooth
  587. Part16.brickColor = BrickColor.new("Burnt Sienna")
  588. Beam17.Name = "lowerstring"
  589. Beam17.Parent = Part16
  590. Beam17.Color = ColorSequence.new(Color3.new(0.454902, 0.227451, 0.0431373),Color3.new(0.454902, 0.227451, 0.0431373))
  591. Beam17.FaceCamera = true
  592. Beam17.LightInfluence = 1
  593. Beam17.Transparency = NumberSequence.new(0,0)
  594. Beam17.Width0 = 0.050000000745058
  595. Beam17.Width1 = 0.050000000745058
  596. Beam18.Name = "upperstring"
  597. Beam18.Parent = Part16
  598. Beam18.Color = ColorSequence.new(Color3.new(0.454902, 0.227451, 0.0431373),Color3.new(0.454902, 0.227451, 0.0431373))
  599. Beam18.FaceCamera = true
  600. Beam18.LightInfluence = 1
  601. Beam18.Transparency = NumberSequence.new(0,0)
  602. Beam18.Width0 = 0.050000000745058
  603. Beam18.Width1 = 0.050000000745058
  604. Model19.Name = "upperpart"
  605. Model19.Parent = Model0
  606. Part20.Parent = Model19
  607. Part20.CFrame = CFrame.new(-7.93960524, 4.34640694, 6.69999981, 0.258818805, -0.965925157, 0, 0.965925157, 0.258818805, 0, 0, 0, 1)
  608. Part20.Orientation = Vector3.new(0, 0, 75)
  609. Part20.Position = Vector3.new(-7.93960524, 4.34640694, 6.69999981)
  610. Part20.Rotation = Vector3.new(0, 0, 75)
  611. Part20.Color = Color3.new(0.105882, 0.164706, 0.207843)
  612. Part20.Size = Vector3.new(0.100000001, 0.115000002, 0.215000004)
  613. Part20.BottomSurface = Enum.SurfaceType.Smooth
  614. Part20.BrickColor = BrickColor.new("Black")
  615. Part20.TopSurface = Enum.SurfaceType.Smooth
  616. Part20.brickColor = BrickColor.new("Black")
  617. Part21.Parent = Model19
  618. Part21.CFrame = CFrame.new(-8.19845104, 3.24999857, 6.66577339, 0, 0.965925395, 0.258817852, 0.999999285, 0, 0, 0, 0.25881803, -0.965926111)
  619. Part21.Orientation = Vector3.new(0, 165, 90)
  620. Part21.Position = Vector3.new(-8.19845104, 3.24999857, 6.66577339)
  621. Part21.Rotation = Vector3.new(-180, 15, -90)
  622. Part21.Color = Color3.new(0.156863, 0.498039, 0.278431)
  623. Part21.Size = Vector3.new(0.100000001, 0.0500000007, 0.129999995)
  624. Part21.BottomSurface = Enum.SurfaceType.Smooth
  625. Part21.BrickColor = BrickColor.new("Dark green")
  626. Part21.Material = Enum.Material.SmoothPlastic
  627. Part21.TopSurface = Enum.SurfaceType.Smooth
  628. Part21.brickColor = BrickColor.new("Dark green")
  629. Part22.Parent = Model19
  630. Part22.CFrame = CFrame.new(-8.04880333, 3.95780849, 6.70000076, 0.258818805, -0.965925157, 0, 0.965925157, 0.258818805, 0, 0, 0, 1)
  631. Part22.Orientation = Vector3.new(0, 0, 75)
  632. Part22.Position = Vector3.new(-8.04880333, 3.95780849, 6.70000076)
  633. Part22.Rotation = Vector3.new(0, 0, 75)
  634. Part22.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  635. Part22.Size = Vector3.new(0.799999237, 0.100000001, 0.199999988)
  636. Part22.BottomSurface = Enum.SurfaceType.Smooth
  637. Part22.BrickColor = BrickColor.new("Bright blue")
  638. Part22.Material = Enum.Material.Wood
  639. Part22.TopSurface = Enum.SurfaceType.Smooth
  640. Part22.brickColor = BrickColor.new("Bright blue")
  641. Part23.Parent = Model19
  642. Part23.CFrame = CFrame.new(-7.53921175, 5.0375309, 6.70000076, 0.422617644, -0.90630722, 0, 0.90630722, 0.422617644, 0, 0, 0, 1)
  643. Part23.Orientation = Vector3.new(0, 0, 65)
  644. Part23.Position = Vector3.new(-7.53921175, 5.0375309, 6.70000076)
  645. Part23.Rotation = Vector3.new(0, 0, 65)
  646. Part23.Color = Color3.new(0.827451, 0.764706, 0.443137)
  647. Part23.Size = Vector3.new(0.399999142, 0.0500000007, 0.199999988)
  648. Part23.BottomSurface = Enum.SurfaceType.Smooth
  649. Part23.BrickColor = BrickColor.new("Gold")
  650. Part23.Material = Enum.Material.Wood
  651. Part23.TopSurface = Enum.SurfaceType.Smooth
  652. Part23.brickColor = BrickColor.new("Gold")
  653. Part24.Name = "upperattachmentpart"
  654. Part24.Parent = Model19
  655. Part24.CFrame = CFrame.new(-7.47887182, 5.28523684, 6.70000029, 0, -0.90630734, -0.422617704, 0, 0.422617704, -0.90630734, 1, 0, 0)
  656. Part24.Orientation = Vector3.new(65, -90, 0)
  657. Part24.Position = Vector3.new(-7.47887182, 5.28523684, 6.70000029)
  658. Part24.Rotation = Vector3.new(90, -25, 90)
  659. Part24.Color = Color3.new(0.827451, 0.764706, 0.443137)
  660. Part24.Size = Vector3.new(0.199999139, 0.150000006, 0.0999999791)
  661. Part24.BottomSurface = Enum.SurfaceType.Smooth
  662. Part24.BrickColor = BrickColor.new("Gold")
  663. Part24.Material = Enum.Material.Wood
  664. Part24.TopSurface = Enum.SurfaceType.Smooth
  665. Part24.brickColor = BrickColor.new("Gold")
  666. SpecialMesh25.Parent = Part24
  667. SpecialMesh25.MeshType = Enum.MeshType.Wedge
  668. Part26.Name = "mainupperpart"
  669. Part26.Parent = Model19
  670. Part26.CFrame = CFrame.new(-8.14999676, 3.19999957, 6.70000076, 0, -0.999999404, 0, 0.999999404, 0, 0, 0, 0, 1)
  671. Part26.Orientation = Vector3.new(0, 0, 90)
  672. Part26.Position = Vector3.new(-8.14999676, 3.19999957, 6.70000076)
  673. Part26.Rotation = Vector3.new(0, 0, 90)
  674. Part26.Color = Color3.new(0.827451, 0.764706, 0.443137)
  675. Part26.Size = Vector3.new(0.799999237, 0.100000001, 0.199999988)
  676. Part26.BottomSurface = Enum.SurfaceType.Smooth
  677. Part26.BrickColor = BrickColor.new("Gold")
  678. Part26.Material = Enum.Material.Wood
  679. Part26.TopSurface = Enum.SurfaceType.Smooth
  680. Part26.brickColor = BrickColor.new("Gold")
  681. Weld27.Parent = Part26
  682. Weld27.C0 = CFrame.new(2.08523846, -0.671125412, -4.76837158e-07, 0, 0.422617942, -0.906307876, 0, 0.906307876, 0.422617942, 1, 0, 0)
  683. Weld27.Part0 = Part26
  684. Weld27.Part1 = Part24
  685. Weld27.part1 = Part24
  686. Weld28.Parent = Part26
  687. Weld28.C0 = CFrame.new(0.37366724, -0.00333690643, -9.53674316e-07, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661, 0, 0, 0, 1)
  688. Weld28.Part0 = Part26
  689. Weld28.Part1 = Part40
  690. Weld28.part1 = Part40
  691. Weld29.Parent = Part26
  692. Weld29.C0 = CFrame.new(1.59733391, -0.4160285, 0, 0.906307876, 0.422617942, 0, -0.422617942, 0.906307876, 0, 0, 0, 1)
  693. Weld29.Part0 = Part26
  694. Weld29.Part1 = Part39
  695. Weld29.part1 = Part39
  696. Weld30.Parent = Part26
  697. Weld30.C0 = CFrame.new(1.58829618, -0.494567871, 0, 0, -0.422615886, 0.90630877, 0, -0.90630877, -0.422615886, 1, 0, 0)
  698. Weld30.Part0 = Part26
  699. Weld30.Part1 = Part37
  700. Weld30.part1 = Part37
  701. Weld31.Parent = Part26
  702. Weld31.C0 = CFrame.new(-2.38418579e-07, 0, 0, 0.999999881, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  703. Weld31.Part0 = Part26
  704. Weld31.Part1 = Part36
  705. Weld31.part1 = Part36
  706. Weld32.Parent = Part26
  707. Weld32.C0 = CFrame.new(1.83753228, -0.610785484, 0, 0.906307757, 0.422617882, 0, -0.422617882, 0.906307757, 0, 0, 0, 1)
  708. Weld32.Part0 = Part26
  709. Weld32.Part1 = Part23
  710. Weld32.part1 = Part23
  711. Weld33.Parent = Part26
  712. Weld33.C0 = CFrame.new(0.757809401, -0.101193428, 0, 0.965925753, 0.258818954, 0, -0.258818954, 0.965925753, 0, 0, 0, 1)
  713. Weld33.Part0 = Part26
  714. Weld33.Part1 = Part22
  715. Weld33.part1 = Part22
  716. Weld34.Parent = Part26
  717. Weld34.C0 = CFrame.new(1.14640832, -0.210391521, -9.53674316e-07, 0.965925753, 0.258818954, 0, -0.258818954, 0.965925753, 0, 0, 0, 1)
  718. Weld34.Part0 = Part26
  719. Weld34.Part1 = Part20
  720. Weld34.part1 = Part20
  721. Weld35.Parent = Part26
  722. Weld35.C0 = CFrame.new(0.0499989986, 0.0484542847, -0.0342273712, 0.999999881, 0, 0, 0, -0.965925992, -0.258818001, 0, 0.25881803, -0.965926111)
  723. Weld35.Part0 = Part26
  724. Weld35.Part1 = Part21
  725. Weld35.part1 = Part21
  726. Part36.Parent = Model19
  727. Part36.CFrame = CFrame.new(-8.14999676, 3.19999933, 6.70000076, 0, -0.999999285, 0, 0.999999285, 0, 0, 0, 0, 1)
  728. Part36.Orientation = Vector3.new(0, 0, 90)
  729. Part36.Position = Vector3.new(-8.14999676, 3.19999933, 6.70000076)
  730. Part36.Rotation = Vector3.new(0, 0, 90)
  731. Part36.Color = Color3.new(0.156863, 0.498039, 0.278431)
  732. Part36.Size = Vector3.new(0.200000003, 0.109999999, 0.209999993)
  733. Part36.BottomSurface = Enum.SurfaceType.Smooth
  734. Part36.BrickColor = BrickColor.new("Dark green")
  735. Part36.Material = Enum.Material.SmoothPlastic
  736. Part36.TopSurface = Enum.SurfaceType.Smooth
  737. Part36.brickColor = BrickColor.new("Dark green")
  738. Part37.Parent = Model19
  739. Part37.CFrame = CFrame.new(-7.65542936, 4.78829479, 6.70000076, 0, 0.906308234, 0.422615647, 0, -0.422615647, 0.906308234, 1, 0, 0)
  740. Part37.Orientation = Vector3.new(-65, 90, 180)
  741. Part37.Position = Vector3.new(-7.65542936, 4.78829479, 6.70000076)
  742. Part37.Rotation = Vector3.new(-90, 25, -90)
  743. Part37.Color = Color3.new(0.827451, 0.764706, 0.443137)
  744. Part37.Size = Vector3.new(0.200000003, 0.0500000007, 0.149999991)
  745. Part37.BottomSurface = Enum.SurfaceType.Smooth
  746. Part37.BrickColor = BrickColor.new("Gold")
  747. Part37.Material = Enum.Material.Wood
  748. Part37.TopSurface = Enum.SurfaceType.Smooth
  749. Part37.brickColor = BrickColor.new("Gold")
  750. SpecialMesh38.Parent = Part37
  751. SpecialMesh38.MeshType = Enum.MeshType.Wedge
  752. Part39.Parent = Model19
  753. Part39.CFrame = CFrame.new(-7.73396873, 4.79733276, 6.70000076, 0.422617704, -0.90630734, 0, 0.90630734, 0.422617704, 0, 0, 0, 1)
  754. Part39.Orientation = Vector3.new(0, 0, 65)
  755. Part39.Position = Vector3.new(-7.73396873, 4.79733276, 6.70000076)
  756. Part39.Rotation = Vector3.new(0, 0, 65)
  757. Part39.Color = Color3.new(0.827451, 0.764706, 0.443137)
  758. Part39.Size = Vector3.new(0.999999285, 0.100000001, 0.199999988)
  759. Part39.BottomSurface = Enum.SurfaceType.Smooth
  760. Part39.BrickColor = BrickColor.new("Gold")
  761. Part39.Material = Enum.Material.Wood
  762. Part39.TopSurface = Enum.SurfaceType.Smooth
  763. Part39.brickColor = BrickColor.new("Gold")
  764. Part40.Parent = Model19
  765. Part40.CFrame = CFrame.new(-8.14665985, 3.57366657, 6.69999981, 0.0871559158, -0.996194065, 0, 0.996194065, 0.0871559158, 0, 0, 0, 1)
  766. Part40.Orientation = Vector3.new(0, 0, 85)
  767. Part40.Position = Vector3.new(-8.14665985, 3.57366657, 6.69999981)
  768. Part40.Rotation = Vector3.new(0, 0, 85)
  769. Part40.Color = Color3.new(0.105882, 0.164706, 0.207843)
  770. Part40.Size = Vector3.new(0.100000001, 0.115000002, 0.215000004)
  771. Part40.BottomSurface = Enum.SurfaceType.Smooth
  772. Part40.BrickColor = BrickColor.new("Black")
  773. Part40.TopSurface = Enum.SurfaceType.Smooth
  774. Part40.brickColor = BrickColor.new("Black")
  775. Model41.Name = "lowerpart"
  776. Model41.Parent = Model0
  777. Part42.Parent = Model41
  778. Part42.CFrame = CFrame.new(-7.93960524, 1.03242707, 6.6999898, 0.258818924, -0.965925634, 0, -0.965925634, -0.258818924, 0, 0, 0, -1)
  779. Part42.Orientation = Vector3.new(0, 180, -105)
  780. Part42.Position = Vector3.new(-7.93960524, 1.03242707, 6.6999898)
  781. Part42.Rotation = Vector3.new(-180, 0, 75)
  782. Part42.Color = Color3.new(0.105882, 0.164706, 0.207843)
  783. Part42.Size = Vector3.new(0.100000001, 0.115000002, 0.215000004)
  784. Part42.BottomSurface = Enum.SurfaceType.Smooth
  785. Part42.BrickColor = BrickColor.new("Black")
  786. Part42.TopSurface = Enum.SurfaceType.Smooth
  787. Part42.brickColor = BrickColor.new("Black")
  788. Part43.Parent = Model41
  789. Part43.CFrame = CFrame.new(-8.04880333, 1.42102551, 6.69999218, 0.258818924, -0.965925634, 0, -0.965925634, -0.258818924, 0, 0, 0, -1)
  790. Part43.Orientation = Vector3.new(0, 180, -105)
  791. Part43.Position = Vector3.new(-8.04880333, 1.42102551, 6.69999218)
  792. Part43.Rotation = Vector3.new(-180, 0, 75)
  793. Part43.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  794. Part43.Size = Vector3.new(0.799999237, 0.100000001, 0.199999988)
  795. Part43.BottomSurface = Enum.SurfaceType.Smooth
  796. Part43.BrickColor = BrickColor.new("Bright blue")
  797. Part43.Material = Enum.Material.Wood
  798. Part43.TopSurface = Enum.SurfaceType.Smooth
  799. Part43.brickColor = BrickColor.new("Bright blue")
  800. Part44.Name = "lowerattachmentpart"
  801. Part44.Parent = Model41
  802. Part44.CFrame = CFrame.new(-7.47887087, 0.0935959816, 6.69999599, 0, -0.906307757, -0.422617882, 0, -0.422617882, 0.906307757, -1, 0, 0)
  803. Part44.Orientation = Vector3.new(-65, -90, 180)
  804. Part44.Position = Vector3.new(-7.47887087, 0.0935959816, 6.69999599)
  805. Part44.Rotation = Vector3.new(-90, -25, 90)
  806. Part44.Color = Color3.new(0.827451, 0.764706, 0.443137)
  807. Part44.Size = Vector3.new(0.199999139, 0.150000006, 0.0999999791)
  808. Part44.BottomSurface = Enum.SurfaceType.Smooth
  809. Part44.BrickColor = BrickColor.new("Gold")
  810. Part44.Material = Enum.Material.Wood
  811. Part44.TopSurface = Enum.SurfaceType.Smooth
  812. Part44.brickColor = BrickColor.new("Gold")
  813. SpecialMesh45.Parent = Part44
  814. SpecialMesh45.MeshType = Enum.MeshType.Wedge
  815. Part46.Parent = Model41
  816. Part46.CFrame = CFrame.new(-7.65542889, 0.590539217, 6.69999123, 0, 0.906308651, 0.422615826, 0, 0.422615826, -0.906308651, -1, 0, 0)
  817. Part46.Orientation = Vector3.new(65, 90, 0)
  818. Part46.Position = Vector3.new(-7.65542889, 0.590539217, 6.69999123)
  819. Part46.Rotation = Vector3.new(90, 25, -90)
  820. Part46.Color = Color3.new(0.827451, 0.764706, 0.443137)
  821. Part46.Size = Vector3.new(0.200000003, 0.0500000007, 0.149999991)
  822. Part46.BottomSurface = Enum.SurfaceType.Smooth
  823. Part46.BrickColor = BrickColor.new("Gold")
  824. Part46.Material = Enum.Material.Wood
  825. Part46.TopSurface = Enum.SurfaceType.Smooth
  826. Part46.brickColor = BrickColor.new("Gold")
  827. SpecialMesh47.Parent = Part46
  828. SpecialMesh47.MeshType = Enum.MeshType.Wedge
  829. Part48.Parent = Model41
  830. Part48.CFrame = CFrame.new(-7.5392108, 0.341303229, 6.69999313, 0.422617823, -0.906307638, 0, -0.906307638, -0.422617823, 0, 0, 0, -1)
  831. Part48.Orientation = Vector3.new(0, 180, -115)
  832. Part48.Position = Vector3.new(-7.5392108, 0.341303229, 6.69999313)
  833. Part48.Rotation = Vector3.new(-180, 0, 65)
  834. Part48.Color = Color3.new(0.827451, 0.764706, 0.443137)
  835. Part48.Size = Vector3.new(0.399999142, 0.0500000007, 0.199999988)
  836. Part48.BottomSurface = Enum.SurfaceType.Smooth
  837. Part48.BrickColor = BrickColor.new("Gold")
  838. Part48.Material = Enum.Material.Wood
  839. Part48.TopSurface = Enum.SurfaceType.Smooth
  840. Part48.brickColor = BrickColor.new("Gold")
  841. Part49.Parent = Model41
  842. Part49.CFrame = CFrame.new(-7.73396778, 0.581501722, 6.69999218, 0.422617942, -0.906307876, 0, -0.906307876, -0.422617942, 0, 0, 0, -1)
  843. Part49.Orientation = Vector3.new(0, 180, -115)
  844. Part49.Position = Vector3.new(-7.73396778, 0.581501722, 6.69999218)
  845. Part49.Rotation = Vector3.new(-180, 0, 65)
  846. Part49.Color = Color3.new(0.827451, 0.764706, 0.443137)
  847. Part49.Size = Vector3.new(0.999999285, 0.100000001, 0.199999988)
  848. Part49.BottomSurface = Enum.SurfaceType.Smooth
  849. Part49.BrickColor = BrickColor.new("Gold")
  850. Part49.Material = Enum.Material.Wood
  851. Part49.TopSurface = Enum.SurfaceType.Smooth
  852. Part49.brickColor = BrickColor.new("Gold")
  853. Part50.Parent = Model41
  854. Part50.CFrame = CFrame.new(-8.14665985, 1.80516768, 6.69999123, 0.0871559605, -0.996194541, 0, -0.996194541, -0.0871559605, 0, 0, 0, -1)
  855. Part50.Orientation = Vector3.new(0, 180, -95)
  856. Part50.Position = Vector3.new(-8.14665985, 1.80516768, 6.69999123)
  857. Part50.Rotation = Vector3.new(-180, 0, 85)
  858. Part50.Color = Color3.new(0.105882, 0.164706, 0.207843)
  859. Part50.Size = Vector3.new(0.100000001, 0.115000002, 0.215000004)
  860. Part50.BottomSurface = Enum.SurfaceType.Smooth
  861. Part50.BrickColor = BrickColor.new("Black")
  862. Part50.TopSurface = Enum.SurfaceType.Smooth
  863. Part50.brickColor = BrickColor.new("Black")
  864. Part51.Name = "mainlowerpart"
  865. Part51.Parent = Model41
  866. Part51.CFrame = CFrame.new(-8.14999676, 2.19999957, 6.70000076, 0, -0.999999881, 0, 0.999999881, 0, -0, -0, 0, 1)
  867. Part51.Orientation = Vector3.new(0, 0, 90)
  868. Part51.Position = Vector3.new(-8.14999676, 2.19999957, 6.70000076)
  869. Part51.Rotation = Vector3.new(0, 0, 90)
  870. Part51.Color = Color3.new(0.827451, 0.764706, 0.443137)
  871. Part51.Size = Vector3.new(0.799999237, 0.100000001, 0.199999988)
  872. Part51.BottomSurface = Enum.SurfaceType.Smooth
  873. Part51.BrickColor = BrickColor.new("Gold")
  874. Part51.Material = Enum.Material.Wood
  875. Part51.TopSurface = Enum.SurfaceType.Smooth
  876. Part51.brickColor = BrickColor.new("Gold")
  877. Weld52.Parent = Part51
  878. Weld52.Part0 = Part51
  879. Weld52.Part1 = Part60
  880. Weld52.part1 = Part60
  881. Weld53.Parent = Part51
  882. Weld53.C0 = CFrame.new(-2.10640383, -0.671125889, -4.76837158e-06, 0, -0.422617942, 0.906307876, 0, 0.906307876, 0.422617942, -1, 0, 0)
  883. Weld53.Part0 = Part51
  884. Weld53.Part1 = Part44
  885. Weld53.part1 = Part44
  886. Weld54.Parent = Part51
  887. Weld54.C0 = CFrame.new(-0.394831896, -0.00333690643, -9.53674316e-06, -0.996194661, -0.087155968, 0, -0.087155968, 0.996194661, 0, 0, 0, -1)
  888. Weld54.Part0 = Part51
  889. Weld54.Part1 = Part50
  890. Weld54.part1 = Part50
  891. Weld55.Parent = Part51
  892. Weld55.C0 = CFrame.new(-1.61849809, -0.416028976, -8.58306885e-06, -0.906307876, -0.422617942, 0, -0.422617942, 0.906307876, 0, 0, 0, -1)
  893. Weld55.Part0 = Part51
  894. Weld55.Part1 = Part49
  895. Weld55.part1 = Part49
  896. Weld56.Parent = Part51
  897. Weld56.C0 = CFrame.new(-1.85869658, -0.610785961, -7.62939453e-06, -0.906307757, -0.422617882, 0, -0.422617882, 0.906307757, 0, 0, 0, -1)
  898. Weld56.Part0 = Part51
  899. Weld56.Part1 = Part48
  900. Weld56.part1 = Part48
  901. Weld57.Parent = Part51
  902. Weld57.C0 = CFrame.new(-1.60946059, -0.494567871, -9.53674316e-06, 0, 0.422615886, -0.90630877, 0, -0.90630877, -0.422615886, -1, 0, 0)
  903. Weld57.Part0 = Part51
  904. Weld57.Part1 = Part46
  905. Weld57.part1 = Part46
  906. Weld58.Parent = Part51
  907. Weld58.C0 = CFrame.new(-0.778974175, -0.101193428, -8.58306885e-06, -0.965925753, -0.258818954, 0, -0.258818954, 0.965925753, 0, 0, 0, -1)
  908. Weld58.Part0 = Part51
  909. Weld58.Part1 = Part43
  910. Weld58.part1 = Part43
  911. Weld59.Parent = Part51
  912. Weld59.C0 = CFrame.new(-1.16757262, -0.210391521, -1.09672546e-05, -0.965925753, -0.258818954, 0, -0.258818954, 0.965925753, 0, 0, 0, -1)
  913. Weld59.Part0 = Part51
  914. Weld59.Part1 = Part42
  915. Weld59.part1 = Part42
  916. Part60.Parent = Model41
  917. Part60.CFrame = CFrame.new(-8.14999676, 2.19999957, 6.70000076, 0, -0.999999881, 0, 0.999999881, 0, 0, 0, 0, 1)
  918. Part60.Orientation = Vector3.new(0, 0, 90)
  919. Part60.Position = Vector3.new(-8.14999676, 2.19999957, 6.70000076)
  920. Part60.Rotation = Vector3.new(0, 0, 90)
  921. Part60.Color = Color3.new(0.156863, 0.498039, 0.278431)
  922. Part60.Size = Vector3.new(0.200000003, 0.109999999, 0.209999993)
  923. Part60.BottomSurface = Enum.SurfaceType.Smooth
  924. Part60.BrickColor = BrickColor.new("Dark green")
  925. Part60.Material = Enum.Material.SmoothPlastic
  926. Part60.TopSurface = Enum.SurfaceType.Smooth
  927. Part60.brickColor = BrickColor.new("Dark green")
  928. for i,v in pairs(mas:GetChildren()) do
  929.     v.Parent = character
  930.     pcall(function() v:MakeJoints() end)
  931. end
  932. mas:Destroy()
  933. for i,v in pairs(cors) do
  934.     spawn(function()
  935.         pcall(v)
  936.     end)
  937. end
  938.  
  939. for i,v in pairs(Model0:GetDescendants()) do
  940.     if v.ClassName == "Part" then
  941.         v.CanCollide = false
  942.         v.Locked = true
  943.     end
  944. end
  945.  
  946. canuse = true
  947. drawing = false
  948. equipped = false
  949.  
  950. theholder = Part4
  951. mainlowerpart = Part51
  952. mainupperpart = Part26
  953. linemiddle = Part16
  954. upperattachmentpart = Part24
  955. lowerattachmentpart = Part44
  956.  
  957. lowerstring = Beam17
  958. upperstring = Beam18
  959.  
  960. remote = Instance.new("RemoteEvent", character)
  961. remote.Name = "bowremote"
  962.  
  963. bowweld = Instance.new("Weld", theholder)
  964. bowweld.Part0 = character.Torso
  965. bowweld.Part1 = theholder
  966. bowweld.Name = "bowweld"
  967. bowweld.C0 = CFrame.new(-0.363851786, 0.0303258896, 0.531646669, 0.347845018, -0.937389731, 0.0174473673, 0.937532127, 0.347898811, 5.02271178e-05, -0.00611700071, 0.016339995, 0.99984777)
  968. linemiddleweld = Weld7
  969.  
  970. middleattachment = Instance.new("Attachment", linemiddle)
  971. upperattachment = Instance.new("Attachment", upperattachmentpart)
  972. lowerattachment = Instance.new("Attachment", lowerattachmentpart)
  973. lowerstring.Attachment0 = middleattachment
  974. lowerstring.Attachment1 = lowerattachment
  975. upperstring.Attachment0 = middleattachment
  976. upperstring.Attachment1 = upperattachment
  977.  
  978. local bowpull = Instance.new("Sound", theholder)
  979. bowpull.SoundId = "rbxassetid://609348868"
  980. bowpull.Volume = 2
  981. bowpull.Name = "bowpull"
  982. local drawarrow = Instance.new("Sound", theholder)
  983. drawarrow.SoundId = "rbxassetid://609345084"
  984. drawarrow.Volume = 2
  985. drawarrow.Name = "drawarrow"
  986. local drawbow = Instance.new("Sound", theholder)
  987. drawbow.SoundId = "rbxassetid://609338076"
  988. drawbow.Volume = 2
  989. drawbow.Name = "drawbow"
  990. local bowfire = Instance.new("Sound", theholder)
  991. bowfire.SoundId = "rbxassetid://145203279"
  992. bowfire.Volume = 2
  993. bowfire.Name = "bowfire"
  994. local bowrelease = Instance.new("Sound", theholder)
  995. bowrelease.SoundId = "rbxassetid://609348009"
  996. bowrelease.Volume = 2
  997. bowrelease.Name = "bowrelease"
  998. local arrowhitground = Instance.new("Sound", theholder)
  999. arrowhitground.SoundId = "rbxassetid://609352672"
  1000. arrowhitground.Volume = 2
  1001. arrowhitground.Name = "arrowhitground"
  1002. local arrowhitbody = Instance.new("Sound", theholder)
  1003. arrowhitbody.SoundId = "rbxassetid://609369680"
  1004. arrowhitbody.Volume = 2
  1005. arrowhitbody.Name = "arrowhitbody"
  1006. local stabsound = Instance.new("Sound", theholder)
  1007. stabsound.SoundId = "rbxassetid://220833967"
  1008. stabsound.Volume = 0.5
  1009. stabsound.Name = "stabsound"
  1010. local stabsound2 = Instance.new("Sound", theholder)
  1011. stabsound2.SoundId = "rbxassetid://220833976"
  1012. stabsound2.Volume = 0.5
  1013. stabsound2.Name = "stabsound2"
  1014. local stabsound3 = Instance.new("Sound", theholder)
  1015. stabsound3.SoundId = "rbxassetid://220834000"
  1016. stabsound3.Volume = 0.5
  1017. stabsound3.Name = "stabsound3"
  1018. local crit = Instance.new("Sound", theholder)
  1019. crit.SoundId = "rbxassetid://2801263"
  1020. crit.Volume = 0.5
  1021. crit.Name = "critical"
  1022. local swingsound = Instance.new("Sound", theholder)
  1023. swingsound.SoundId = "rbxassetid://608537390"
  1024. swingsound.Volume = 1
  1025. swingsound.Name = "swingarrow"
  1026.  
  1027. antiremovearrowsounds = true
  1028.  
  1029. theholder.ChildRemoved:connect(function(WHAT)
  1030.     if WHAT.ClassName == "Sound" then
  1031.         if WHAT.Name == "arrowhitbody" or WHAT.Name == "arrowhitground" or WHAT.Name == "critical" then
  1032.             if not antiremovearrowsounds then return end
  1033.         end
  1034.         local clonedlol = Instance.new("Sound", theholder)
  1035.         clonedlol.SoundId = WHAT.SoundId
  1036.         clonedlol.Volume = WHAT.Volume
  1037.         clonedlol.Name = WHAT.Name
  1038.     end
  1039. end)
  1040.  
  1041. remote.OnServerEvent:connect(function(WHO, WHAT, value, value2, value3, value4, value5, value6)
  1042.     if WHO == owner then
  1043.         if WHAT == "updatec0" then
  1044.             for i,v in pairs(character:GetDescendants()) do
  1045.                 if v.Name == value then
  1046.                     v.C0 = value2
  1047.                 end
  1048.             end
  1049.         elseif WHAT == "removeweld" then
  1050.             for i,v in pairs(character:GetDescendants()) do
  1051.                 if v.Name == value then
  1052.                     v:destroy()
  1053.                 end
  1054.             end
  1055.         elseif WHAT == "makeweld" then
  1056.             local newweld = Instance.new("Weld", character.Torso)
  1057.             newweld.Part0 = value
  1058.             newweld.Part1 = value2
  1059.             newweld.C0 = value4
  1060.             newweld.Name = value3
  1061.         elseif WHAT == "equip" then
  1062.             equipped = true
  1063.             bowweld.Part0 = character["Left Arm"]
  1064.         elseif WHAT == "unequip" then
  1065.             equipped = false
  1066.             bowweld.Part0 = character.Torso
  1067.         elseif WHAT == "makearrow" then
  1068.             --Converted with ttyyuu12345's model to script plugin v4
  1069.             local function sandbox(var,func)
  1070.                 local env = getfenv(func)
  1071.                 local newenv = setmetatable({},{
  1072.                     __index = function(self,k)
  1073.                         if k=="script" then
  1074.                             return var
  1075.                         else
  1076.                             return env[k]
  1077.                         end
  1078.                     end,
  1079.                 })
  1080.                 setfenv(func,newenv)
  1081.                 return func
  1082.             end
  1083.             cors = {}
  1084.             local mas = Instance.new("Model",game:GetService("Lighting"))
  1085.             local arrowmodel = Instance.new("Model")
  1086.             local Part1 = Instance.new("Part")
  1087.             local SpecialMesh2 = Instance.new("SpecialMesh")
  1088.             local based = Instance.new("Part")
  1089.             local Weld4 = Instance.new("Weld")
  1090.             local Weld5 = Instance.new("Weld")
  1091.             local Weld6 = Instance.new("Weld")
  1092.             local Weld7 = Instance.new("Weld")
  1093.             local Weld8 = Instance.new("Weld")
  1094.             local Part9 = Instance.new("Part")
  1095.             local SpecialMesh10 = Instance.new("SpecialMesh")
  1096.             local Part11 = Instance.new("Part")
  1097.             Part12 = Instance.new("Part")
  1098.             SpecialMesh13 = Instance.new("SpecialMesh")
  1099.             Part14 = Instance.new("Part")
  1100.             arrowmodel.Name = "arrow"
  1101.             arrowmodel.Parent = mas
  1102.             Part1.Parent = arrowmodel
  1103.             Part1.CFrame = CFrame.new(-16.7368565, 17.0252571, 6.32333803, 0.999047399, 3.26326699e-09, 0.0436189622, -3.2623575e-09, -0.999999166, -1.00598641e-10, 0.0436190255, 4.17209635e-11, -0.999048233)
  1104.             Part1.Orientation = Vector3.new(0, 177.5, -180)
  1105.             Part1.Position = Vector3.new(-16.7368565, 17.0252571, 6.32333803)
  1106.             Part1.Rotation = Vector3.new(180, 2.5, 0)
  1107.             Part1.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  1108.             Part1.Size = Vector3.new(0.0500000007, 0.49393779, 0.152539358)
  1109.             Part1.BottomSurface = Enum.SurfaceType.Smooth
  1110.             Part1.BrickColor = BrickColor.new("Bright blue")
  1111.             Part1.TopSurface = Enum.SurfaceType.Smooth
  1112.             Part1.brickColor = BrickColor.new("Bright blue")
  1113.             SpecialMesh2.Parent = Part1
  1114.             SpecialMesh2.MeshType = Enum.MeshType.Wedge
  1115.             based.Name = "based"
  1116.             based.Parent = arrowmodel
  1117.             based.CFrame = CFrame.new(-16.7329483, 16.5392399, 6.24777508, -4.80133076e-06, 1.78255118e-06, -0.999999702, -0.999999702, -1.61851869e-11, 4.80366134e-06, 2.21335415e-11, 1, 1.77323795e-06)
  1118.             based.Orientation = Vector3.new(0, -90, -90)
  1119.             based.Position = Vector3.new(-16.7329483, 16.5392399, 6.24777508)
  1120.             based.Rotation = Vector3.new(-69.7399979, -89.9599991, -159.630005)
  1121.             based.Color = Color3.new(0.737255, 0.607843, 0.364706)
  1122.             based.Size = Vector3.new(1.63387752, 0.101693049, 0.101692945)
  1123.             based.BottomSurface = Enum.SurfaceType.Smooth
  1124.             based.BrickColor = BrickColor.new("Cork")
  1125.             based.Material = Enum.Material.Wood
  1126.             based.TopSurface = Enum.SurfaceType.Smooth
  1127.             based.brickColor = BrickColor.new("Cork")
  1128.             based.Shape = Enum.PartType.Cylinder
  1129.             Weld4.Parent = based
  1130.             Weld4.C0 = CFrame.new(-0.769482136, -0.000450134277, 1.90734863e-06, 0.999999404, 2.97601076e-11, -2.33012543e-09, 2.97601041e-11, 1, -9.31265731e-09, -2.33103492e-09, -9.31265731e-09, 0.999999404)
  1131.             Weld4.Part0 = based
  1132.             Weld4.Part1 = Part14
  1133.             Weld4.part1 = Part14
  1134.             Weld5.Parent = based
  1135.             Weld5.C0 = CFrame.new(-0.48601675, -0.076830864, -0.00274658203, 4.79629261e-06, 0.999999583, 2.09460964e-07, -0.0436257869, 2.2146153e-11, 0.999048054, 0.999047637, -4.804127e-06, 0.0436257534)
  1136.             Weld5.Part0 = based
  1137.             Weld5.Part1 = Part12
  1138.             Weld5.part1 = Part12
  1139.             Weld6.Parent = based
  1140.             Weld6.C0 = CFrame.new(-0.48601675, 0.0755629539, 0.0039100647, -4.7958265e-06, 0.999999464, -2.09422609e-07, 0.0436207987, 2.81071191e-11, -0.999048173, -0.999047637, -4.80459266e-06, -0.043620754)
  1141.             Weld6.Part0 = based
  1142.             Weld6.Part1 = Part1
  1143.             Weld6.part1 = Part1
  1144.             Weld7.Parent = based
  1145.             Weld7.C0 = CFrame.new(-0.358897686, -0.000450134277, 1.90734863e-06, 0.999999404, 2.97601076e-11, -2.33012543e-09, 2.97601041e-11, 1, -9.31265731e-09, -2.33103492e-09, -9.31265731e-09, 0.999999404)
  1146.             Weld7.Part0 = based
  1147.             Weld7.Part1 = Part11
  1148.             Weld7.part1 = Part11
  1149.             Weld8.Parent = based
  1150.             Weld8.C0 = CFrame.new(0.810475826, 0, 0, 0.999999762, 1.19040429e-11, -9.32232069e-10, 1.19040411e-11, 1, -3.72506292e-09, -9.32232069e-10, -3.72506292e-09, 0.999999762)
  1151.             Weld8.Part0 = based
  1152.             Weld8.Part1 = Part9
  1153.             Weld8.part1 = Part9
  1154.             Part9.Parent = arrowmodel
  1155.             Part9.CFrame = CFrame.new(-16.7329521, 15.7287645, 6.24777508, -4.80226436e-06, 1.77882612e-06, -0.99999994, -0.99999994, -4.26325641e-12, 4.80273047e-06, 1.02311579e-11, 1, 1.77696347e-06)
  1156.             Part9.Orientation = Vector3.new(0, -90, -90)
  1157.             Part9.Position = Vector3.new(-16.7329521, 15.7287645, 6.24777508)
  1158.             Part9.Rotation = Vector3.new(-69.6999969, -89.9800034, -159.669998)
  1159.             Part9.Color = Color3.new(0.737255, 0.607843, 0.364706)
  1160.             Part9.Size = Vector3.new(3.24466777, 0.101693049, 0.101692945)
  1161.             Part9.BottomSurface = Enum.SurfaceType.Smooth
  1162.             Part9.BrickColor = BrickColor.new("Cork")
  1163.             Part9.Material = Enum.Material.Wood
  1164.             Part9.TopSurface = Enum.SurfaceType.Smooth
  1165.             Part9.brickColor = BrickColor.new("Cork")
  1166.             SpecialMesh10.Parent = Part9
  1167.             SpecialMesh10.MeshType = Enum.MeshType.Sphere
  1168.             Part11.Parent = arrowmodel
  1169.             Part11.CFrame = CFrame.new(-16.7329483, 16.898138, 6.24732494, -4.798997e-06, 1.79186384e-06, -0.999999106, -0.999999106, -4.59900173e-11, 4.80598874e-06, 5.18894996e-11, 1, 1.76392427e-06)
  1170.             Part11.Orientation = Vector3.new(0, -90, -90)
  1171.             Part11.Position = Vector3.new(-16.7329483, 16.898138, 6.24732494)
  1172.             Part11.Rotation = Vector3.new(-69.8499985, -89.9199982, -159.529999)
  1173.             Part11.Color = Color3.new(0.203922, 0.556863, 0.25098)
  1174.             Part11.Size = Vector3.new(0.160166651, 0.106777705, 0.106777593)
  1175.             Part11.BottomSurface = Enum.SurfaceType.Smooth
  1176.             Part11.BrickColor = BrickColor.new("Sea green")
  1177.             Part11.Material = Enum.Material.SmoothPlastic
  1178.             Part11.TopSurface = Enum.SurfaceType.Smooth
  1179.             Part11.brickColor = BrickColor.new("Sea green")
  1180.             Part11.Shape = Enum.PartType.Cylinder
  1181.             Part12.Parent = arrowmodel
  1182.             Part12.CFrame = CFrame.new(-16.7301998, 17.0252571, 6.17094421, -0.999047399, 2.79669621e-09, -0.0436239615, 2.79624146e-09, -0.999999285, 8.62598881e-11, -0.0436240137, 3.57608249e-11, 0.999048114)
  1183.             Part12.Orientation = Vector3.new(0, -2.5, 180)
  1184.             Part12.Position = Vector3.new(-16.7301998, 17.0252571, 6.17094421)
  1185.             Part12.Rotation = Vector3.new(0, -2.5, -180)
  1186.             Part12.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  1187.             Part12.Size = Vector3.new(0.0500000007, 0.49393779, 0.152539358)
  1188.             Part12.BottomSurface = Enum.SurfaceType.Smooth
  1189.             Part12.BrickColor = BrickColor.new("Bright blue")
  1190.             Part12.TopSurface = Enum.SurfaceType.Smooth
  1191.             Part12.brickColor = BrickColor.new("Bright blue")
  1192.             SpecialMesh13.Parent = Part12
  1193.             SpecialMesh13.MeshType = Enum.MeshType.Wedge
  1194.             Part14.Parent = arrowmodel
  1195.             Part14.CFrame = CFrame.new(-16.7329464, 17.3087215, 6.24732494, -4.798997e-06, 1.79186384e-06, -0.999999106, -0.999999106, -4.59900173e-11, 4.80598874e-06, 5.18894996e-11, 1, 1.76392427e-06)
  1196.             Part14.Orientation = Vector3.new(0, -90, -90)
  1197.             Part14.Position = Vector3.new(-16.7329464, 17.3087215, 6.24732494)
  1198.             Part14.Rotation = Vector3.new(-69.8499985, -89.9199982, -159.529999)
  1199.             Part14.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  1200.             Part14.Size = Vector3.new(0.050846573, 0.106777705, 0.106777593)
  1201.             Part14.BottomSurface = Enum.SurfaceType.Smooth
  1202.             Part14.BrickColor = BrickColor.new("Burnt Sienna")
  1203.             Part14.Material = Enum.Material.SmoothPlastic
  1204.             Part14.TopSurface = Enum.SurfaceType.Smooth
  1205.             Part14.brickColor = BrickColor.new("Burnt Sienna")
  1206.             Part14.Shape = Enum.PartType.Cylinder
  1207.             for i,v in pairs(mas:GetChildren()) do
  1208.                 if value == "hand" then
  1209.                     v.Parent = character["Right Arm"]
  1210.                 elseif value == "shoot" then
  1211.                     v.Parent = workspace
  1212. for _,pa in pairs(v:GetChildren()) do
  1213. if pa:IsA("BasePart") then
  1214. pa:SetNetworkOwner(owner)
  1215. end
  1216. end
  1217.                 elseif value == "hit" then
  1218.                     v.Parent = value3
  1219.                 end
  1220.                 pcall(function() v:MakeJoints() end)
  1221.             end
  1222.             mas:Destroy()
  1223.             for i,v in pairs(cors) do
  1224.                 spawn(function()
  1225.                     pcall(v)
  1226.                 end)
  1227.             end
  1228.             for i,v in pairs(arrowmodel:GetDescendants()) do
  1229.                 if v:IsA("BasePart") then
  1230.                     v.CanCollide = false
  1231.                 end
  1232.             end
  1233.             if value == "hand" then
  1234.                 local weldarrow = Instance.new("Weld", character["Right Arm"])
  1235.                 weldarrow.Part0 = character["Right Arm"]
  1236.                 weldarrow.Part1 = based
  1237.                 weldarrow.Name = "based?basedonwhat?"
  1238.                 weldarrow.C0 = CFrame.new(-0.606494904, -0.714157581, -0.790890455, -0.464412391, 0.211017355, -0.860111833, 0.530729294, -0.711173058, -0.461041301, -0.70897603, -0.670600176, 0.218284503)
  1239.             elseif value == "shoot" then
  1240.                 if character["Right Arm"]:findFirstChild("based?basedonwhat?") then
  1241.                     character["Right Arm"]:findFirstChild("based?basedonwhat?"):destroy()
  1242.                 end
  1243.                 local woosh = Instance.new("Sound", based)
  1244.                 woosh.SoundId = "rbxassetid://609350494"
  1245.                 woosh.Volume = 0.5
  1246.                 woosh.Looped = true
  1247.                 woosh:Play()
  1248.                 woosh.Name = "woosh"
  1249.                 woosh.MaxDistance = 25
  1250.                 based.CFrame = CFrame.new(value2, Vector3.new(value3.x,value2.y,value3.z)) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  1251.                 local bodygyro = Instance.new("BodyGyro", based)
  1252.                 bodygyro.P = 120
  1253.                 bodygyro.CFrame = based.CFrame * CFrame.fromEulerAnglesXYZ(0,0,-math.pi/2)
  1254.                 based.CFrame = CFrame.new(value2, value3) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  1255.                 local velocity = Instance.new("BodyVelocity", based)
  1256.                 velocity.Velocity = based.CFrame.rightVector*200
  1257.                 velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1258.                 local collider = Instance.new("Part", based)
  1259.                 collider.Size = Vector3.new(5,0.1,0.1)
  1260.                 collider.CanCollide = false
  1261.                 collider.CFrame = based.CFrame
  1262.                 collider.Transparency = 1
  1263.                 collider:BreakJoints()
  1264.                 for q,w in pairs(arrowmodel:GetChildren()) do
  1265.                     if w:IsA("BasePart") then
  1266.                         w:SetNetworkOwner(owner)
  1267.                     end
  1268.                 end
  1269.                 local colliderweld = Instance.new("Weld", collider)
  1270.                 colliderweld.Part0 = based
  1271.                 colliderweld.Part1 = collider
  1272.                 colliderweld.C0 = CFrame.new(5,0,0)
  1273.                 local attach = Instance.new("Attachment", based)
  1274.                 attach.Position = Vector3.new(0, 0, 0.1)
  1275.                 local attach1 = Instance.new("Attachment", based)
  1276.                 attach1.Position = Vector3.new(0, 0, -0.1)
  1277.                 local trail = Instance.new("Trail", based)
  1278.                 trail.Lifetime = 0.1
  1279.                 trail.Attachment0 = attach
  1280.                 trail.Attachment1 = attach1
  1281.                 trail.FaceCamera = true
  1282.                 trail.Name = "arrowtrail"
  1283.                 based.CFrame = based.CFrame * CFrame.new(2.5,0,0)
  1284.                 local canhit = true
  1285.                 coroutine.wrap(function()
  1286.                     for i = 1,120 do
  1287.                         if canhit then
  1288.                             velocity.Velocity = velocity.Velocity - Vector3.new(0,1.5,0)
  1289.                             wait(0.1)
  1290.                         end
  1291.                     end
  1292.                 end)()
  1293.                 collider.Touched:connect(function(hit)
  1294.                     if canhit then
  1295.                         if hit.Parent == character then return end
  1296.                         if hit.Parent == arrowmodel then return end
  1297.                         if hit.Parent.ClassName == "Accessory" then return end
  1298.                         if hit.Parent.ClassName == "Hat" then return end
  1299.                         if hit.Parent.Name == "arrow" then return end
  1300.                         if not hit.CanCollide and not hit.Parent:findFirstChildOfClass("Humanoid") then return end
  1301.                         canhit = false
  1302.                         trail:destroy()
  1303.                         woosh:destroy()
  1304.                         collider:destroy()
  1305.                         bodygyro:destroy()
  1306.                         local ignorlist = {character}
  1307.                         for q,w in pairs(workspace:GetDescendants()) do
  1308.                             if w.Name == "HumanoidRootPart" then
  1309.                                 table.insert(ignorlist, w)
  1310.                             end
  1311.                             if w.Parent.Name == "arrow" then
  1312.                                 table.insert(ignorlist, w.Parent)
  1313.                             end
  1314.                             if w.Parent.ClassName == "Accessory" or w.Parent.ClassName == "Hat" then
  1315.                                 table.insert(ignorlist, w)
  1316.                             end
  1317.                         end
  1318.                         local rayecas = Ray.new(based.Position, based.CFrame.rightVector*40)
  1319.                         local hi,po,surf = workspace:FindPartOnRayWithIgnoreList(rayecas, ignorlist)
  1320.                         local humanoidTHIS = hit.Parent:findFirstChildOfClass("Humanoid")
  1321.                         if hi then
  1322.                             arrowmodel.Parent = hi
  1323.                             velocity:destroy()
  1324.                             based.CFrame = CFrame.new(po)
  1325.                             based.CFrame = CFrame.new(po, rayecas.Origin) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0)
  1326.                             based.CFrame = based.CFrame * CFrame.new(-1.5,0,0)
  1327.                             local weldhit = Instance.new("Weld", based)
  1328.                             weldhit.C0 = hi.CFrame:toObjectSpace(based.CFrame)
  1329.                             weldhit.Part0 = hi
  1330.                             weldhit.Part1 = based
  1331.                             weldhit.Name = "oucharrowAAAAAAAAAA"
  1332.                             local soundpart = Instance.new("Part", theholder)
  1333.                             soundpart.CanCollide = false
  1334.                             soundpart.Transparency = 1
  1335.                             soundpart.Anchored = true
  1336.                             soundpart.Size = Vector3.new(0.1,0.1,0.1)
  1337.                             soundpart.CFrame = CFrame.new(po)
  1338.                             antiremovearrowsounds = false
  1339.                             if hi.Name == "Head" then
  1340.                                 theholder.critical.PlaybackSpeed = 1+math.random(-20,20)/80
  1341.                                 theholder.critical.Parent = soundpart
  1342.                                 soundpart.critical:Play()
  1343.                                 coroutine.wrap(function()
  1344.                                     wait(0.5)
  1345.                                     soundpart.critical.Parent = theholder
  1346.                                 end)()
  1347.                             end
  1348.                             if humanoidTHIS then
  1349.                                 theholder.arrowhitbody.PlaybackSpeed = 1+math.random(-20,20)/80
  1350.                                 theholder.arrowhitbody.Parent = soundpart
  1351.                                 soundpart.arrowhitbody:Play()
  1352.                                 coroutine.wrap(function()
  1353.                                     wait(0.6)
  1354.                                     soundpart.arrowhitbody.Parent = theholder
  1355.                                     soundpart:destroy()
  1356.                                     antiremovearrowsounds = true
  1357.                                 end)()
  1358.                             else
  1359.                                 game.Debris:AddItem(arrowmodel, 30)
  1360.                                 theholder.arrowhitground.PlaybackSpeed = 1+math.random(-20,20)/80
  1361.                                 theholder.arrowhitground.Parent = soundpart
  1362.                                 soundpart.arrowhitground:Play()
  1363.                                 coroutine.wrap(function()
  1364.                                     wait(0.6)
  1365.                                     soundpart.arrowhitground.Parent = theholder
  1366.                                     soundpart:destroy()
  1367.                                     antiremovearrowsounds = true
  1368.                                 end)()
  1369.                             end
  1370.                             for i = 1,math.random(4,5) do
  1371.                                 local effect = Instance.new("SpawnLocation", workspace)
  1372.                                 Instance.new("SpecialMesh", effect).MeshType = "Sphere"
  1373.                                 effect.CanCollide = false
  1374.                                 effect.Size = Vector3.new(0.1,0.5,0.1)
  1375.                                 effect.Anchored = true
  1376.                                 effect.Transparency = 0
  1377.                                 effect.CFrame = CFrame.new(po) * CFrame.fromEulerAnglesXYZ(math.random(-20,20)/10,math.random(-20,20)/10,math.random(-20,20)/10)
  1378.                                 if humanoidTHIS then
  1379.                                     effect.BrickColor = BrickColor.new("Maroon")
  1380.                                 else
  1381.                                     effect.BrickColor = hi.BrickColor
  1382.                                 end
  1383.                                 coroutine.wrap(function()
  1384.                                     for i = 1,20 do
  1385.                                         effect.CFrame = effect.CFrame * CFrame.new(0,0.05,0)
  1386.                                         effect.Transparency = effect.Transparency + 0.05
  1387.                                         runservice.Stepped:wait()
  1388.                                     end
  1389.                                     effect:destroy()
  1390.                                 end)()
  1391.                             end
  1392.                             local bodyv = Instance.new("BodyVelocity", hi)
  1393.                             bodyv.MaxForce = Vector3.new(math.huge,0,math.huge)
  1394.                             bodyv.Velocity = based.CFrame.rightVector * 15
  1395.                             game.Debris:AddItem(bodyv, 0.2)
  1396.                             local canbone = true
  1397.                             local canglue = true
  1398.                             if hi.Name == "Head" then
  1399.                                 ragdollkill(hi.Parent)
  1400.                             elseif hi.Name == "Torso" or hi.Name == "LowerTorso" or hi.Name == "UpperTorso" then
  1401.                                 canglue = false
  1402.                                 canbone = false
  1403.                             end
  1404.                             for q,w in pairs(workspace:GetDescendants()) do
  1405.                                 if w.ClassName == "Motor6D" then
  1406.                                     if w.Part1 == hi then
  1407.                                         if canglue then
  1408.                                             local gluueeee = Instance.new("Glue", hi)
  1409.                                             gluueeee.C0 = w.C0
  1410.                                             gluueeee.C1 = w.C1
  1411.                                             gluueeee.Part0 = w.Part0
  1412.                                             gluueeee.Part1 = hi
  1413.                                             gluueeee.Name = "4kultrahdragdoller"
  1414.                                             if hi.Name == "Left Leg" then
  1415.                                                 gluueeee.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1416.                                                 gluueeee.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1417.                                             elseif hi.Name == "Right Leg" then
  1418.                                                 gluueeee.C0 = CFrame.new(0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1419.                                                 gluueeee.C1 = CFrame.new(0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1420.                                             elseif hi.Name == "Left Arm" then
  1421.                                                 gluueeee.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1422.                                                 gluueeee.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1423.                                             elseif hi.Name == "Right Arm" then
  1424.                                                 gluueeee.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1425.                                                 gluueeee.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1426.                                             end
  1427.                                             w:destroy()
  1428.                                         end
  1429.                                         if hi.Parent:findFirstChild("UpperTorso") then
  1430.                                             if string.gmatch(string.lower(hi.Name), "upper") then
  1431.                                                 canbone = false
  1432.                                             end
  1433.                                         end
  1434.                                         if canbone then
  1435.                                             local bone = Instance.new("Part", hi)
  1436.                                             bone.Shape = "Cylinder"
  1437.                                             bone.Size = Vector3.new(hi.Size.y/1.5,hi.Size.x,hi.Size.z)
  1438.                                             bone.Transparency = 1
  1439.                                             bone.Name = "arrowhitBONEEEEE"
  1440.                                             bone:BreakJoints()
  1441.                                             local boneweld = Instance.new("Weld", bone)
  1442.                                             boneweld.Part0 = hi
  1443.                                             boneweld.Part1 = bone
  1444.                                             boneweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-(hi.Size.y/2) + (bone.Size.x/2),0,0)
  1445.                                         end
  1446.                                     end
  1447.                                 end
  1448.                             end
  1449.                             if hit.Parent ~= nil then
  1450.                                 if humanoidTHIS then
  1451.                                     local totaldmg = math.random(20,30)
  1452.                                     if hi.Name == "Torso" or hi.Name == "UpperTorso" then
  1453.                                         totaldmg = totaldmg + math.random(20,30)
  1454.                                     end
  1455.                                     if hi.Name == "LowerTorso" then
  1456.                                         totaldmg = totaldmg + math.random(30,40)
  1457.                                     end
  1458.                                     local rightbroke = false
  1459.                                     local leftbroke = false
  1460.                                     if hi.Parent:findFirstChild("UpperTorso") then
  1461.                                         for q,w in pairs(hi.Parent:GetDescendants()) do
  1462.                                             if w.Name == "4kultrahdragdoller" then
  1463.                                                 if w.Parent.Name == "RightUpperLeg" or w.Parent.Name == "RightLowerLeg" or w.Parent.Name == "RightFoot" then
  1464.                                                     rightbroke = true
  1465.                                                 elseif w.Parent.Name == "LeftUpperLeg" or w.Parent.Name == "LeftLowerLeg" or w.Parent.Name == "LeftFoot" then
  1466.                                                     leftbroke = true
  1467.                                                 end  
  1468.                                             end
  1469.                                         end
  1470.                                         for q,w in pairs(hi.Parent:GetDescendants()) do
  1471.                                             if rightbroke then
  1472.                                                 if w.Name == "RightLowerLeg" then
  1473.                                                     local bone = Instance.new("Part", w)
  1474.                                                     bone.Shape = "Cylinder"
  1475.                                                     bone.Size = Vector3.new(w.Size.y/1.5,w.Size.x,w.Size.z)
  1476.                                                     bone.Transparency = 1
  1477.                                                     bone.Name = "arrowhitBONEEEEE"
  1478.                                                     bone:BreakJoints()
  1479.                                                     local boneweld = Instance.new("Weld", bone)
  1480.                                                     boneweld.Part0 = w
  1481.                                                     boneweld.Part1 = bone
  1482.                                                     boneweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-(w.Size.y/2) + (bone.Size.x/2),0,0)
  1483.                                                 end
  1484.                                             end
  1485.                                             if leftbroke then
  1486.                                                 if w.Name == "LeftLowerLeg" then
  1487.                                                     local bone = Instance.new("Part", w)
  1488.                                                     bone.Shape = "Cylinder"
  1489.                                                     bone.Size = Vector3.new(w.Size.y/1.5,w.Size.x,w.Size.z)
  1490.                                                     bone.Transparency = 1
  1491.                                                     bone.Name = "arrowhitBONEEEEE"
  1492.                                                     bone:BreakJoints()
  1493.                                                     local boneweld = Instance.new("Weld", bone)
  1494.                                                     boneweld.Part0 = w
  1495.                                                     boneweld.Part1 = bone
  1496.                                                     boneweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-(w.Size.y/2) + (bone.Size.x/2),0,0)
  1497.                                                 end
  1498.                                             end
  1499.                                         end
  1500.                                         if not hi.Parent:findFirstChild("RightUpperLeg") then
  1501.                                             rightbroke = true
  1502.                                         elseif not hi.Parent:findFirstChild("LeftUpperLeg") then
  1503.                                             leftbroke = true
  1504.                                         end
  1505.                                         if rightbroke and leftbroke then
  1506.                                             humanoidTHIS.PlatformStand = true
  1507.                                             humanoidTHIS.AutoRotate = false
  1508.                                         end
  1509.                                     elseif hi.Parent:findFirstChild("Torso") then
  1510.                                         for q,w in pairs(hi.Parent:GetDescendants()) do
  1511.                                             if w.Name == "4kultrahdragdoller" then
  1512.                                                 if w.Parent.Name == "Right Leg" then
  1513.                                                     rightbroke = true
  1514.                                                 elseif w.Parent.Name == "Left Leg" then
  1515.                                                     leftbroke = true
  1516.                                                 end  
  1517.                                             end
  1518.                                         end
  1519.                                         if not hi.Parent:findFirstChild("Right Leg") then
  1520.                                             rightbroke = true
  1521.                                         elseif not hi.Parent:findFirstChild("Left Leg") then
  1522.                                             leftbroke = true
  1523.                                         end
  1524.                                         if rightbroke and leftbroke then
  1525.                                             humanoidTHIS.PlatformStand = true
  1526.                                             humanoidTHIS.AutoRotate = false
  1527.                                         end
  1528.                                     end
  1529.                                     if totaldmg >= humanoidTHIS.Health then
  1530.                                         humanoidTHIS.Health = 0
  1531.                                         ragdollkill(hi.Parent)
  1532.                                     else
  1533.                                         humanoidTHIS.Health = humanoidTHIS.Health - totaldmg
  1534.                                     end
  1535.                                 end
  1536.                             end
  1537.                         end
  1538.                     end
  1539.                 end)
  1540.             end
  1541.         elseif WHAT == "draw" then
  1542.             drawing = true
  1543.         elseif WHAT == "undraw" then
  1544.             drawing = false
  1545.         elseif WHAT == "remove" then
  1546.             value:destroy()
  1547.         elseif WHAT == "playsound" then
  1548.             if value2 then
  1549.                 theholder[value].PlaybackSpeed = 1+(math.random(-20,20)/80)
  1550.             end
  1551.             theholder[value]:Play()
  1552.         elseif WHAT == "changecolor" then
  1553.             local random = BrickColor.random()
  1554.             for q,w in pairs(Model0:GetDescendants()) do
  1555.                 if w.ClassName == "Part" then
  1556.                     if w.BrickColor ~= BrickColor.new("Dark green") and w.BrickColor ~= BrickColor.new("Black") and w.BrickColor ~= BrickColor.new("Bright blue") then
  1557.                         w.BrickColor = random
  1558.                     end
  1559.                 end
  1560.             end
  1561.         elseif WHAT == "ragdollifylimb" then
  1562.             for q,w in pairs(workspace:GetDescendants()) do
  1563.                 if w.ClassName == "Motor6D" then
  1564.                     local canbone = true
  1565.                     if w.Part1 == value then
  1566.                         local gluueeee = Instance.new("Glue", value)
  1567.                         gluueeee.C0 = w.C0
  1568.                         gluueeee.C1 = w.C1
  1569.                         gluueeee.Part0 = w.Part0
  1570.                         gluueeee.Part1 = value
  1571.                         gluueeee.Name = "4kultrahdragdoller"
  1572.                         if value.Name == "Left Leg" then
  1573.                             gluueeee.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1574.                             gluueeee.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1575.                         elseif value.Name == "Right Leg" then
  1576.                             gluueeee.C0 = CFrame.new(0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1577.                             gluueeee.C1 = CFrame.new(0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1578.                         elseif value.Name == "Left Arm" then
  1579.                             gluueeee.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1580.                             gluueeee.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1581.                         elseif value.Name == "Right Arm" then
  1582.                             gluueeee.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1583.                             gluueeee.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1584.                         end
  1585.                         w:destroy()
  1586.                     end
  1587.                     if value.Parent:findFirstChild("UpperTorso") then
  1588.                         if string.gmatch(string.lower(value.Name), "upper") then
  1589.                             canbone = false
  1590.                         end
  1591.                     end
  1592.                     if canbone then
  1593.                         local bone = Instance.new("Part", value)
  1594.                         bone.Shape = "Cylinder"
  1595.                         bone.Size = Vector3.new(value.Size.y/1.5,value.Size.x,value.Size.z)
  1596.                         bone.Transparency = 1
  1597.                         bone.Name = "arrowhitBONEEEEE"
  1598.                         bone:BreakJoints()
  1599.                         local boneweld = Instance.new("Weld", bone)
  1600.                         boneweld.Part0 = value
  1601.                         boneweld.Part1 = bone
  1602.                         boneweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-(value.Size.y/2) + (bone.Size.x/2),0,0)
  1603.                     end
  1604.                 end
  1605.             end
  1606.         elseif WHAT == "damage" then
  1607.             if value.Health <= value2 then
  1608.                 value.Health = value.Health - value2
  1609.                 ragdollkill(value.Parent)
  1610.             else
  1611.                 value.Health = value.Health - value2
  1612.             end
  1613.         elseif WHAT == "trailon" then
  1614.             if character["Right Arm"]:findFirstChild("arrow") then
  1615.                 local based = character["Right Arm"]:findFirstChild("arrow").based
  1616.                 local attach = Instance.new("Attachment", based)
  1617.                 attach.Position = Vector3.new(0, 0, 0.1)
  1618.                 local attach1 = Instance.new("Attachment", based)
  1619.                 attach1.Position = Vector3.new(0, 0, -0.1)
  1620.                 local trail = Instance.new("Trail", based)
  1621.                 trail.Lifetime = 0.1
  1622.                 trail.Attachment0 = attach
  1623.                 trail.Attachment1 = attach1
  1624.                 trail.FaceCamera = true
  1625.                 trail.Name = "arrowtrail"
  1626.             end
  1627.         elseif WHAT == "trailoff" then
  1628.             if character["Right Arm"]:findFirstChild("arrow") then
  1629.                 local based = character["Right Arm"]:findFirstChild("arrow").based
  1630.                 if based:findFirstChild("arrowtrail") then
  1631.                     based.arrowtrail:destroy()
  1632.                 end
  1633.                 for i = 1,2 do
  1634.                     if based:findFirstChildOfClass("Attachment") then
  1635.                         based:findFirstChildOfClass("Attachment"):destroy()
  1636.                     end
  1637.                 end
  1638.             end
  1639.         elseif WHAT == "stopsound" then
  1640.             theholder[value]:Stop()
  1641.         end
  1642.     end
  1643. end)
  1644. function ragdollkill(character)
  1645.     if character ~= workspace then
  1646.         if character.Parent ~= nil then
  1647.             local victimshumanoid = character:findFirstChildOfClass("Humanoid")
  1648.             local checkragd = character:findFirstChild("ragded")
  1649.             if not checkragd then
  1650.                 local boolvalue = Instance.new("BoolValue", character)
  1651.                 boolvalue.Name = "ragded"
  1652.                 if not character:findFirstChild("UpperTorso") then
  1653.                     character.Archivable = true
  1654.                     for i,v in pairs(character:GetChildren()) do
  1655.                         if v.ClassName == "Sound" then
  1656.                             v:remove()
  1657.                         end
  1658.                         for q,w in pairs(v:GetChildren()) do
  1659.                             if w.ClassName == "Sound" then
  1660.                                 w:remove()
  1661.                             end
  1662.                         end
  1663.                     end
  1664.                     local ragdoll = character:Clone()
  1665.                     for i,v in pairs(ragdoll:GetDescendants()) do
  1666.                         if v.ClassName == "Motor" or v.ClassName == "Motor6D" then
  1667.                             v:destroy()
  1668.                         end
  1669.                         if v.Name == "arrowhitBONEEEEE" then
  1670.                             v:destroy()
  1671.                         end
  1672.                     end
  1673.                     ragdoll:findFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
  1674.                     ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  1675.                     if ragdoll:findFirstChild("Health") then
  1676.                         if ragdoll:findFirstChild("Health").ClassName == "Script" then
  1677.                             ragdoll:findFirstChild("Health").Disabled = true
  1678.                         end
  1679.                     end
  1680.                     for i,v in pairs(character:GetChildren()) do
  1681.                         if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
  1682.                             v:destroy()
  1683.                         end
  1684.                     end
  1685.                     for i,v in pairs(character:GetChildren()) do
  1686.                         if v.ClassName == "Accessory" then
  1687.                             local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  1688.                             if attachment1 then
  1689.                                 for q,w in pairs(character:GetChildren()) do
  1690.                                     if w.ClassName == "Part" then
  1691.                                         local attachment2 = w:findFirstChild(attachment1.Name)
  1692.                                         if attachment2 then
  1693.                                             local hinge = Instance.new("HingeConstraint", v.Handle)
  1694.                                             hinge.Attachment0 = attachment1
  1695.                                             hinge.Attachment1 = attachment2
  1696.                                             hinge.LimitsEnabled = true
  1697.                                             hinge.LowerAngle = 0
  1698.                                             hinge.UpperAngle = 0
  1699.                                         end
  1700.                                     end
  1701.                                 end
  1702.                             end
  1703.                         end
  1704.                     end
  1705.                     ragdoll.Parent = workspace
  1706.                     if ragdoll:findFirstChild("Right Arm") then
  1707.                         local glue = Instance.new("Glue", ragdoll.Torso)
  1708.                         glue.Part0 = ragdoll.Torso
  1709.                         glue.Part1 = ragdoll:findFirstChild("Right Arm")
  1710.                         glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1711.                         glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1712.                         local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
  1713.                         limbcollider.Size = Vector3.new(1.4,1,1)
  1714.                         limbcollider.Shape = "Cylinder"
  1715.                         limbcollider.Transparency = 1
  1716.                         limbcollider.Name = "LimbCollider"
  1717.                         local limbcolliderweld = Instance.new("Weld", limbcollider)
  1718.                         limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
  1719.                         limbcolliderweld.Part1 = limbcollider
  1720.                         limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  1721.                     end
  1722.                     if ragdoll:findFirstChild("Left Arm") then
  1723.                         local glue = Instance.new("Glue", ragdoll.Torso)
  1724.                         glue.Part0 = ragdoll.Torso
  1725.                         glue.Part1 = ragdoll:findFirstChild("Left Arm")
  1726.                         glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1727.                         glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1728.                         local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
  1729.                         limbcollider.Size = Vector3.new(1.4,1,1)
  1730.                         limbcollider.Shape = "Cylinder"
  1731.                         limbcollider.Name = "LimbCollider"
  1732.                         limbcollider.Transparency = 1
  1733.                         local limbcolliderweld = Instance.new("Weld", limbcollider)
  1734.                         limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
  1735.                         limbcolliderweld.Part1 = limbcollider
  1736.                         limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  1737.                     end
  1738.                     if ragdoll:findFirstChild("Left Leg") then
  1739.                         local glue = Instance.new("Glue", ragdoll.Torso)
  1740.                         glue.Part0 = ragdoll.Torso
  1741.                         glue.Part1 = ragdoll:findFirstChild("Left Leg")
  1742.                         glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1743.                         glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1744.                         local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
  1745.                         limbcollider.Size = Vector3.new(1.4,1,1)
  1746.                         limbcollider.Shape = "Cylinder"
  1747.                         limbcollider.Name = "LimbCollider"
  1748.                         limbcollider.Transparency = 1
  1749.                         local limbcolliderweld = Instance.new("Weld", limbcollider)
  1750.                         limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
  1751.                         limbcolliderweld.Part1 = limbcollider
  1752.                         limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  1753.                     end
  1754.                     if ragdoll:findFirstChild("Right Leg") then
  1755.                         local glue = Instance.new("Glue", ragdoll.Torso)
  1756.                         glue.Part0 = ragdoll.Torso
  1757.                         glue.Part1 = ragdoll:findFirstChild("Right Leg")
  1758.                         glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1759.                         glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1760.                         local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
  1761.                         limbcollider.Size = Vector3.new(1.4,1,1)
  1762.                         limbcollider.Shape = "Cylinder"
  1763.                         limbcollider.Name = "LimbCollider"
  1764.                         limbcollider.Transparency = 1
  1765.                         local limbcolliderweld = Instance.new("Weld", limbcollider)
  1766.                         limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
  1767.                         limbcolliderweld.Part1 = limbcollider
  1768.                         limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  1769.                     end
  1770.                     if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
  1771.                         local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
  1772.                         HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  1773.                         local connection = Instance.new('HingeConstraint', ragdoll["Head"])
  1774.                         connection.LimitsEnabled = true
  1775.                         connection.Attachment0 = ragdoll.Torso.NeckAttachment
  1776.                         connection.Attachment1 = HeadAttachment
  1777.                         connection.UpperAngle = 60
  1778.                         connection.LowerAngle = -60
  1779.                     elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
  1780.                         local hedweld = Instance.new("Weld", ragdoll.Torso)
  1781.                         hedweld.Part0 = ragdoll.Torso
  1782.                         hedweld.Part1 = ragdoll.Head
  1783.                         hedweld.C0 = CFrame.new(0,1.5,0)
  1784.                     end
  1785.                     game.Debris:AddItem(ragdoll, 30)
  1786.                     if ragdoll:findFirstChild("HumanoidRootPart") then
  1787.                         ragdoll:findFirstChild("HumanoidRootPart"):destroy()
  1788.                     end
  1789.                     local function aaaalol()
  1790.                         wait(0.1)
  1791.                         if ragdoll:findFirstChildOfClass("Humanoid") then
  1792.                             ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  1793.                         end
  1794.                         wait(0.1)
  1795.                         local function searchforvelocity(wot)
  1796.                             for i,v in pairs(wot:GetChildren()) do
  1797.                                 searchforvelocity(v)
  1798.                                 if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
  1799.                                     v:destroy()
  1800.                                 end
  1801.                             end
  1802.                         end
  1803.                         searchforvelocity(ragdoll)
  1804.                     end
  1805.                     spawn(aaaalol)
  1806.                 elseif character:findFirstChild("UpperTorso") then
  1807.                     character.Archivable = true
  1808.                     for i,v in pairs(character:GetChildren()) do
  1809.                         if v.ClassName == "Sound" then
  1810.                             v:remove()
  1811.                         end
  1812.                         for q,w in pairs(v:GetChildren()) do
  1813.                             if w.ClassName == "Sound" then
  1814.                                 w:remove()
  1815.                             end
  1816.                         end
  1817.                     end
  1818.                     local ragdoll = character:Clone()
  1819.                     for i,v in pairs(ragdoll:GetDescendants()) do
  1820.                         if v.ClassName == "Motor" or v.ClassName == "Motor6D" then
  1821.                             v:destroy()
  1822.                         end
  1823.                         if v.Name == "arrowhitBONEEEEE" then
  1824.                             v:destroy()
  1825.                         end
  1826.                     end
  1827.                     ragdoll:BreakJoints()
  1828.                     ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  1829.                     if ragdoll:findFirstChild("Health") then
  1830.                         if ragdoll:findFirstChild("Health").ClassName == "Script" then
  1831.                             ragdoll:findFirstChild("Health").Disabled = true
  1832.                         end
  1833.                     end
  1834.                     for i,v in pairs(character:GetChildren()) do
  1835.                         if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
  1836.                             v:destroy()
  1837.                         end
  1838.                     end
  1839.                     for i,v in pairs(character:GetChildren()) do
  1840.                         if v.ClassName == "Accessory" then
  1841.                             local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  1842.                             if attachment1 then
  1843.                                 for q,w in pairs(character:GetChildren()) do
  1844.                                     if w.ClassName == "Part" or w.ClassName == "MeshPart" then
  1845.                                         local attachment2 = w:findFirstChild(attachment1.Name)
  1846.                                         if attachment2 then
  1847.                                             local hinge = Instance.new("HingeConstraint", v.Handle)
  1848.                                             hinge.Attachment0 = attachment1
  1849.                                             hinge.Attachment1 = attachment2
  1850.                                             hinge.LimitsEnabled = true
  1851.                                             hinge.LowerAngle = 0
  1852.                                             hinge.UpperAngle = 0
  1853.                                         end
  1854.                                     end
  1855.                                 end
  1856.                             end
  1857.                         end
  1858.                     end
  1859.                     ragdoll.Parent = workspace
  1860.                     local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
  1861.                     Humanoid.PlatformStand = true
  1862.                     local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
  1863.                         local connection = Instance.new('BallSocketConstraint', limb)
  1864.                         connection.LimitsEnabled = true
  1865.                         connection.Attachment0 = attachementone
  1866.                         connection.Attachment1 = attachmenttwo
  1867.                         connection.TwistLimitsEnabled = true
  1868.                         connection.TwistLowerAngle = twistlower
  1869.                         connection.TwistUpperAngle = twistupper
  1870.                         local limbcollider = Instance.new("Part", limb)
  1871.                         limbcollider.Size = Vector3.new(0.1,1,1)
  1872.                         limbcollider.Shape = "Cylinder"
  1873.                         limbcollider.Transparency = 1
  1874.                         limbcollider:BreakJoints()
  1875.                         local limbcolliderweld = Instance.new("Weld", limbcollider)
  1876.                         limbcolliderweld.Part0 = limb
  1877.                         limbcolliderweld.Part1 = limbcollider
  1878.                         limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  1879.                     end
  1880.                     local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
  1881.                         local connection = Instance.new('HingeConstraint', limb)
  1882.                         connection.LimitsEnabled = true
  1883.                         connection.Attachment0 = attachementone
  1884.                         connection.Attachment1 = attachmenttwo
  1885.                         connection.LimitsEnabled = true
  1886.                         connection.LowerAngle = lower
  1887.                         connection.UpperAngle = upper
  1888.                         local limbcollider = Instance.new("Part", limb)
  1889.                         limbcollider.Size = Vector3.new(0.1,1,1)
  1890.                         limbcollider.Shape = "Cylinder"
  1891.                         limbcollider.Transparency = 1
  1892.                         limbcollider:BreakJoints()
  1893.                         local limbcolliderweld = Instance.new("Weld", limbcollider)
  1894.                         limbcolliderweld.Part0 = limb
  1895.                         limbcolliderweld.Part1 = limbcollider
  1896.                         limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  1897.                     end
  1898.                     local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
  1899.                     HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  1900.                     if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
  1901.                         makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
  1902.                     end
  1903.                     makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
  1904.                     makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
  1905.                     makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
  1906.                     makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
  1907.                     --
  1908.                     makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
  1909.                     makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
  1910.                     makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
  1911.                     --
  1912.                     makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
  1913.                     makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
  1914.                     makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
  1915.                     --
  1916.                     makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
  1917.                     makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
  1918.                     makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
  1919.                     for i,v in pairs(Humanoid.Parent:GetChildren()) do
  1920.                         if v.ClassName == "Accessory" then
  1921.                             local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  1922.                             if attachment1 then
  1923.                                 for q,w in pairs(Humanoid.Parent:GetChildren()) do
  1924.                                     if w.ClassName == "Part" then
  1925.                                         local attachment2 = w:findFirstChild(attachment1.Name)
  1926.                                         if attachment2 then
  1927.                                             local hinge = Instance.new("HingeConstraint", v.Handle)
  1928.                                             hinge.Attachment0 = attachment1
  1929.                                             hinge.Attachment1 = attachment2
  1930.                                             hinge.LimitsEnabled = true
  1931.                                             hinge.LowerAngle = 0
  1932.                                             hinge.UpperAngle = 0
  1933.                                         end
  1934.                                     end
  1935.                                 end
  1936.                             end
  1937.                         end
  1938.                     end
  1939.                     for i,v in pairs(ragdoll:GetChildren()) do
  1940.                         for q,w in pairs(v:GetChildren()) do
  1941.                             if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] and w.Name ~= "oucharrowAAAAAAAAAA" then
  1942.                                 w:destroy()
  1943.                             end
  1944.                         end
  1945.                     end
  1946.                     if ragdoll:findFirstChild("HumanoidRootPart") then
  1947.                         ragdoll.HumanoidRootPart:destroy()
  1948.                     end
  1949.                     if ragdoll:findFirstChildOfClass("Humanoid") then
  1950.                         ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  1951.                     end
  1952.                     local function waitfordatmoment()
  1953.                         wait(0.2)
  1954.                         local function searchforvelocity(wot)
  1955.                             for i,v in pairs(wot:GetChildren()) do
  1956.                                 searchforvelocity(v)
  1957.                                 if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
  1958.                                     v:destroy()
  1959.                                 end
  1960.                             end
  1961.                         end
  1962.                         searchforvelocity(ragdoll)
  1963.                     end
  1964.                     spawn(waitfordatmoment)
  1965.                     game.Debris:AddItem(ragdoll, 30)
  1966.                 end
  1967.             end
  1968.         end
  1969.     end
  1970. end
RAW Paste Data