Rufus14

cool bow

Sep 5th, 2020 (edited)
886
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 90.88 KB | None | 0 0
  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.                 elseif value == "hit" then
  1213.                     v.Parent = value3
  1214.                 end
  1215.                 pcall(function() v:MakeJoints() end)
  1216.             end
  1217.             mas:Destroy()
  1218.             for i,v in pairs(cors) do
  1219.                 spawn(function()
  1220.                     pcall(v)
  1221.                 end)
  1222.             end
  1223.             for i,v in pairs(arrowmodel:GetDescendants()) do
  1224.                 if v.ClassName == "Part" then
  1225.                     v.CanCollide = false
  1226.                 end
  1227.             end
  1228.             if value == "hand" then
  1229.                 local weldarrow = Instance.new("Weld", character["Right Arm"])
  1230.                 weldarrow.Part0 = character["Right Arm"]
  1231.                 weldarrow.Part1 = based
  1232.                 weldarrow.Name = "based?basedonwhat?"
  1233.                 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)
  1234.             elseif value == "shoot" then
  1235.                 if character["Right Arm"]:findFirstChild("based?basedonwhat?") then
  1236.                     character["Right Arm"]:findFirstChild("based?basedonwhat?"):destroy()
  1237.                 end
  1238.                 local woosh = Instance.new("Sound", based)
  1239.                 woosh.SoundId = "rbxassetid://609350494"
  1240.                 woosh.Volume = 0.5
  1241.                 woosh.Looped = true
  1242.                 woosh:Play()
  1243.                 woosh.Name = "woosh"
  1244.                 woosh.MaxDistance = 25
  1245.                 based.CFrame = CFrame.new(value2, Vector3.new(value3.x,value2.y,value3.z)) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  1246.                 local bodygyro = Instance.new("BodyGyro", based)
  1247.                 bodygyro.P = 120
  1248.                 bodygyro.CFrame = based.CFrame * CFrame.fromEulerAnglesXYZ(0,0,-math.pi/2)
  1249.                 based.CFrame = CFrame.new(value2, value3) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  1250.                 local velocity = Instance.new("BodyVelocity", based)
  1251.                 velocity.Velocity = based.CFrame.rightVector*200
  1252.                 velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1253.                 local collider = Instance.new("Part", based)
  1254.                 collider.Size = Vector3.new(5,0.1,0.1)
  1255.                 collider.CanCollide = false
  1256.                 collider.CFrame = based.CFrame
  1257.                 collider.Transparency = 1
  1258.                 collider:BreakJoints()
  1259.                 for q,w in pairs(arrowmodel:GetChildren()) do
  1260.                     if w.ClassName == "Part" then
  1261.                         w:SetNetworkOwner(owner)
  1262.                     end
  1263.                 end
  1264.                 local colliderweld = Instance.new("Weld", collider)
  1265.                 colliderweld.Part0 = based
  1266.                 colliderweld.Part1 = collider
  1267.                 colliderweld.C0 = CFrame.new(5,0,0)
  1268.                 local attach = Instance.new("Attachment", based)
  1269.                 attach.Position = Vector3.new(0, 0, 0.1)
  1270.                 local attach1 = Instance.new("Attachment", based)
  1271.                 attach1.Position = Vector3.new(0, 0, -0.1)
  1272.                 local trail = Instance.new("Trail", based)
  1273.                 trail.Lifetime = 0.1
  1274.                 trail.Attachment0 = attach
  1275.                 trail.Attachment1 = attach1
  1276.                 trail.FaceCamera = true
  1277.                 trail.Name = "arrowtrail"
  1278.                 based.CFrame = based.CFrame * CFrame.new(2.5,0,0)
  1279.                 local canhit = true
  1280.                 coroutine.wrap(function()
  1281.                     for i = 1,120 do
  1282.                         if canhit then
  1283.                             velocity.Velocity = velocity.Velocity - Vector3.new(0,1.5,0)
  1284.                             wait(0.1)
  1285.                         end
  1286.                     end
  1287.                 end)()
  1288.                 collider.Touched:connect(function(hit)
  1289.                     if canhit then
  1290.                         if hit.Parent == character then return end
  1291.                         if hit.Parent == arrowmodel then return end
  1292.                         if hit.Parent.ClassName == "Accessory" then return end
  1293.                         if hit.Parent.ClassName == "Hat" then return end
  1294.                         if hit.Parent.Name == "arrow" then return end
  1295.                         if not hit.CanCollide and not hit.Parent:findFirstChildOfClass("Humanoid") then return end
  1296.                         canhit = false
  1297.                         trail:destroy()
  1298.                         woosh:destroy()
  1299.                         collider:destroy()
  1300.                         bodygyro:destroy()
  1301.                         local ignorlist = {character}
  1302.                         for q,w in pairs(workspace:GetDescendants()) do
  1303.                             if w.Name == "HumanoidRootPart" then
  1304.                                 table.insert(ignorlist, w)
  1305.                             end
  1306.                             if w.Parent.Name == "arrow" then
  1307.                                 table.insert(ignorlist, w.Parent)
  1308.                             end
  1309.                             if w.Parent.ClassName == "Accessory" or w.Parent.ClassName == "Hat" then
  1310.                                 table.insert(ignorlist, w)
  1311.                             end
  1312.                         end
  1313.                         local rayecas = Ray.new(based.Position, based.CFrame.rightVector*40)
  1314.                         local hi,po,surf = workspace:FindPartOnRayWithIgnoreList(rayecas, ignorlist)
  1315.                         local humanoidTHIS = hit.Parent:findFirstChildOfClass("Humanoid")
  1316.                         if hi then
  1317.                             arrowmodel.Parent = hi
  1318.                             velocity:destroy()
  1319.                             based.CFrame = CFrame.new(po)
  1320.                             based.CFrame = CFrame.new(po, rayecas.Origin) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0)
  1321.                             based.CFrame = based.CFrame * CFrame.new(-1.5,0,0)
  1322.                             local weldhit = Instance.new("Weld", based)
  1323.                             weldhit.C0 = hi.CFrame:toObjectSpace(based.CFrame)
  1324.                             weldhit.Part0 = hi
  1325.                             weldhit.Part1 = based
  1326.                             weldhit.Name = "oucharrowAAAAAAAAAA"
  1327.                             local soundpart = Instance.new("Part", theholder)
  1328.                             soundpart.CanCollide = false
  1329.                             soundpart.Transparency = 1
  1330.                             soundpart.Anchored = true
  1331.                             soundpart.Size = Vector3.new(0.1,0.1,0.1)
  1332.                             soundpart.CFrame = CFrame.new(po)
  1333.                             antiremovearrowsounds = false
  1334.                             if hi.Name == "Head" then
  1335.                                 theholder.critical.PlaybackSpeed = 1+math.random(-20,20)/80
  1336.                                 theholder.critical.Parent = soundpart
  1337.                                 soundpart.critical:Play()
  1338.                                 coroutine.wrap(function()
  1339.                                     wait(0.5)
  1340.                                     soundpart.critical.Parent = theholder
  1341.                                 end)()
  1342.                             end
  1343.                             if humanoidTHIS then
  1344.                                 theholder.arrowhitbody.PlaybackSpeed = 1+math.random(-20,20)/80
  1345.                                 theholder.arrowhitbody.Parent = soundpart
  1346.                                 soundpart.arrowhitbody:Play()
  1347.                                 coroutine.wrap(function()
  1348.                                     wait(0.6)
  1349.                                     soundpart.arrowhitbody.Parent = theholder
  1350.                                     soundpart:destroy()
  1351.                                     antiremovearrowsounds = true
  1352.                                 end)()
  1353.                             else
  1354.                                 game.Debris:AddItem(arrowmodel, 30)
  1355.                                 theholder.arrowhitground.PlaybackSpeed = 1+math.random(-20,20)/80
  1356.                                 theholder.arrowhitground.Parent = soundpart
  1357.                                 soundpart.arrowhitground:Play()
  1358.                                 coroutine.wrap(function()
  1359.                                     wait(0.6)
  1360.                                     soundpart.arrowhitground.Parent = theholder
  1361.                                     soundpart:destroy()
  1362.                                     antiremovearrowsounds = true
  1363.                                 end)()
  1364.                             end
  1365.                             for i = 1,math.random(4,5) do
  1366.                                 local effect = Instance.new("SpawnLocation", workspace)
  1367.                                 Instance.new("SpecialMesh", effect).MeshType = "Sphere"
  1368.                                 effect.CanCollide = false
  1369.                                 effect.Size = Vector3.new(0.1,0.5,0.1)
  1370.                                 effect.Anchored = true
  1371.                                 effect.Transparency = 0
  1372.                                 effect.CFrame = CFrame.new(po) * CFrame.fromEulerAnglesXYZ(math.random(-20,20)/10,math.random(-20,20)/10,math.random(-20,20)/10)
  1373.                                 if humanoidTHIS then
  1374.                                     effect.BrickColor = BrickColor.new("Maroon")
  1375.                                 else
  1376.                                     effect.BrickColor = hi.BrickColor
  1377.                                 end
  1378.                                 coroutine.wrap(function()
  1379.                                     for i = 1,20 do
  1380.                                         effect.CFrame = effect.CFrame * CFrame.new(0,0.05,0)
  1381.                                         effect.Transparency = effect.Transparency + 0.05
  1382.                                         runservice.Stepped:wait()
  1383.                                     end
  1384.                                     effect:destroy()
  1385.                                 end)()
  1386.                             end
  1387.                             local bodyv = Instance.new("BodyVelocity", hi)
  1388.                             bodyv.MaxForce = Vector3.new(math.huge,0,math.huge)
  1389.                             bodyv.Velocity = based.CFrame.rightVector * 15
  1390.                             game.Debris:AddItem(bodyv, 0.2)
  1391.                             local canbone = true
  1392.                             local canglue = true
  1393.                             if hi.Name == "Head" then
  1394.                                 ragdollkill(hi.Parent)
  1395.                             elseif hi.Name == "Torso" or hi.Name == "LowerTorso" or hi.Name == "UpperTorso" then
  1396.                                 canglue = false
  1397.                                 canbone = false
  1398.                             end
  1399.                             for q,w in pairs(workspace:GetDescendants()) do
  1400.                                 if w.ClassName == "Motor6D" then
  1401.                                     if w.Part1 == hi then
  1402.                                         if canglue then
  1403.                                             local gluueeee = Instance.new("Glue", hi)
  1404.                                             gluueeee.C0 = w.C0
  1405.                                             gluueeee.C1 = w.C1
  1406.                                             gluueeee.Part0 = w.Part0
  1407.                                             gluueeee.Part1 = hi
  1408.                                             gluueeee.Name = "4kultrahdragdoller"
  1409.                                             if hi.Name == "Left Leg" then
  1410.                                                 gluueeee.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1411.                                                 gluueeee.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1412.                                             elseif hi.Name == "Right Leg" then
  1413.                                                 gluueeee.C0 = CFrame.new(0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1414.                                                 gluueeee.C1 = CFrame.new(0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1415.                                             elseif hi.Name == "Left Arm" then
  1416.                                                 gluueeee.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1417.                                                 gluueeee.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1418.                                             elseif hi.Name == "Right Arm" then
  1419.                                                 gluueeee.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1420.                                                 gluueeee.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1421.                                             end
  1422.                                             w:destroy()
  1423.                                         end
  1424.                                         if hi.Parent:findFirstChild("UpperTorso") then
  1425.                                             if string.gmatch(string.lower(hi.Name), "upper") then
  1426.                                                 canbone = false
  1427.                                             end
  1428.                                         end
  1429.                                         if canbone then
  1430.                                             local bone = Instance.new("Part", hi)
  1431.                                             bone.Shape = "Cylinder"
  1432.                                             bone.Size = Vector3.new(hi.Size.y/1.5,hi.Size.x,hi.Size.z)
  1433.                                             bone.Transparency = 1
  1434.                                             bone.Name = "arrowhitBONEEEEE"
  1435.                                             bone:BreakJoints()
  1436.                                             local boneweld = Instance.new("Weld", bone)
  1437.                                             boneweld.Part0 = hi
  1438.                                             boneweld.Part1 = bone
  1439.                                             boneweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-(hi.Size.y/2) + (bone.Size.x/2),0,0)
  1440.                                         end
  1441.                                     end
  1442.                                 end
  1443.                             end
  1444.                             if hit.Parent ~= nil then
  1445.                                 if humanoidTHIS then
  1446.                                     local totaldmg = math.random(20,30)
  1447.                                     if hi.Name == "Torso" or hi.Name == "UpperTorso" then
  1448.                                         totaldmg = totaldmg + math.random(20,30)
  1449.                                     end
  1450.                                     if hi.Name == "LowerTorso" then
  1451.                                         totaldmg = totaldmg + math.random(30,40)
  1452.                                     end
  1453.                                     local rightbroke = false
  1454.                                     local leftbroke = false
  1455.                                     if hi.Parent:findFirstChild("UpperTorso") then
  1456.                                         for q,w in pairs(hi.Parent:GetDescendants()) do
  1457.                                             if w.Name == "4kultrahdragdoller" then
  1458.                                                 if w.Parent.Name == "RightUpperLeg" or w.Parent.Name == "RightLowerLeg" or w.Parent.Name == "RightFoot" then
  1459.                                                     rightbroke = true
  1460.                                                 elseif w.Parent.Name == "LeftUpperLeg" or w.Parent.Name == "LeftLowerLeg" or w.Parent.Name == "LeftFoot" then
  1461.                                                     leftbroke = true
  1462.                                                 end  
  1463.                                             end
  1464.                                         end
  1465.                                         for q,w in pairs(hi.Parent:GetDescendants()) do
  1466.                                             if rightbroke then
  1467.                                                 if w.Name == "RightLowerLeg" then
  1468.                                                     local bone = Instance.new("Part", w)
  1469.                                                     bone.Shape = "Cylinder"
  1470.                                                     bone.Size = Vector3.new(w.Size.y/1.5,w.Size.x,w.Size.z)
  1471.                                                     bone.Transparency = 1
  1472.                                                     bone.Name = "arrowhitBONEEEEE"
  1473.                                                     bone:BreakJoints()
  1474.                                                     local boneweld = Instance.new("Weld", bone)
  1475.                                                     boneweld.Part0 = w
  1476.                                                     boneweld.Part1 = bone
  1477.                                                     boneweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-(w.Size.y/2) + (bone.Size.x/2),0,0)
  1478.                                                 end
  1479.                                             end
  1480.                                             if leftbroke then
  1481.                                                 if w.Name == "LeftLowerLeg" then
  1482.                                                     local bone = Instance.new("Part", w)
  1483.                                                     bone.Shape = "Cylinder"
  1484.                                                     bone.Size = Vector3.new(w.Size.y/1.5,w.Size.x,w.Size.z)
  1485.                                                     bone.Transparency = 1
  1486.                                                     bone.Name = "arrowhitBONEEEEE"
  1487.                                                     bone:BreakJoints()
  1488.                                                     local boneweld = Instance.new("Weld", bone)
  1489.                                                     boneweld.Part0 = w
  1490.                                                     boneweld.Part1 = bone
  1491.                                                     boneweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-(w.Size.y/2) + (bone.Size.x/2),0,0)
  1492.                                                 end
  1493.                                             end
  1494.                                         end
  1495.                                         if not hi.Parent:findFirstChild("RightUpperLeg") then
  1496.                                             rightbroke = true
  1497.                                         elseif not hi.Parent:findFirstChild("LeftUpperLeg") then
  1498.                                             leftbroke = true
  1499.                                         end
  1500.                                         if rightbroke and leftbroke then
  1501.                                             humanoidTHIS.PlatformStand = true
  1502.                                             humanoidTHIS.AutoRotate = false
  1503.                                         end
  1504.                                     elseif hi.Parent:findFirstChild("Torso") then
  1505.                                         for q,w in pairs(hi.Parent:GetDescendants()) do
  1506.                                             if w.Name == "4kultrahdragdoller" then
  1507.                                                 if w.Parent.Name == "Right Leg" then
  1508.                                                     rightbroke = true
  1509.                                                 elseif w.Parent.Name == "Left Leg" then
  1510.                                                     leftbroke = true
  1511.                                                 end  
  1512.                                             end
  1513.                                         end
  1514.                                         if not hi.Parent:findFirstChild("Right Leg") then
  1515.                                             rightbroke = true
  1516.                                         elseif not hi.Parent:findFirstChild("Left Leg") then
  1517.                                             leftbroke = true
  1518.                                         end
  1519.                                         if rightbroke and leftbroke then
  1520.                                             humanoidTHIS.PlatformStand = true
  1521.                                             humanoidTHIS.AutoRotate = false
  1522.                                         end
  1523.                                     end
  1524.                                     if totaldmg >= humanoidTHIS.Health then
  1525.                                         humanoidTHIS.Health = 0
  1526.                                         ragdollkill(hi.Parent)
  1527.                                     else
  1528.                                         humanoidTHIS.Health = humanoidTHIS.Health - totaldmg
  1529.                                     end
  1530.                                 end
  1531.                             end
  1532.                         end
  1533.                     end
  1534.                 end)
  1535.             end
  1536.         elseif WHAT == "draw" then
  1537.             drawing = true
  1538.         elseif WHAT == "undraw" then
  1539.             drawing = false
  1540.         elseif WHAT == "remove" then
  1541.             value:destroy()
  1542.         elseif WHAT == "playsound" then
  1543.             if value2 then
  1544.                 theholder[value].PlaybackSpeed = 1+(math.random(-20,20)/80)
  1545.             end
  1546.             theholder[value]:Play()
  1547.         elseif WHAT == "changecolor" then
  1548.             local random = BrickColor.random()
  1549.             for q,w in pairs(Model0:GetDescendants()) do
  1550.                 if w.ClassName == "Part" then
  1551.                     if w.BrickColor ~= BrickColor.new("Dark green") and w.BrickColor ~= BrickColor.new("Black") and w.BrickColor ~= BrickColor.new("Bright blue") then
  1552.                         w.BrickColor = random
  1553.                     end
  1554.                 end
  1555.             end
  1556.         elseif WHAT == "ragdollifylimb" then
  1557.             for q,w in pairs(workspace:GetDescendants()) do
  1558.                 if w.ClassName == "Motor6D" then
  1559.                     local canbone = true
  1560.                     if w.Part1 == value then
  1561.                         local gluueeee = Instance.new("Glue", value)
  1562.                         gluueeee.C0 = w.C0
  1563.                         gluueeee.C1 = w.C1
  1564.                         gluueeee.Part0 = w.Part0
  1565.                         gluueeee.Part1 = value
  1566.                         gluueeee.Name = "4kultrahdragdoller"
  1567.                         if value.Name == "Left Leg" then
  1568.                             gluueeee.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1569.                             gluueeee.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1570.                         elseif value.Name == "Right Leg" then
  1571.                             gluueeee.C0 = CFrame.new(0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1572.                             gluueeee.C1 = CFrame.new(0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1573.                         elseif value.Name == "Left Arm" then
  1574.                             gluueeee.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1575.                             gluueeee.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1576.                         elseif value.Name == "Right Arm" then
  1577.                             gluueeee.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1578.                             gluueeee.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1579.                         end
  1580.                         w:destroy()
  1581.                     end
  1582.                     if value.Parent:findFirstChild("UpperTorso") then
  1583.                         if string.gmatch(string.lower(value.Name), "upper") then
  1584.                             canbone = false
  1585.                         end
  1586.                     end
  1587.                     if canbone then
  1588.                         local bone = Instance.new("Part", value)
  1589.                         bone.Shape = "Cylinder"
  1590.                         bone.Size = Vector3.new(value.Size.y/1.5,value.Size.x,value.Size.z)
  1591.                         bone.Transparency = 1
  1592.                         bone.Name = "arrowhitBONEEEEE"
  1593.                         bone:BreakJoints()
  1594.                         local boneweld = Instance.new("Weld", bone)
  1595.                         boneweld.Part0 = value
  1596.                         boneweld.Part1 = bone
  1597.                         boneweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-(value.Size.y/2) + (bone.Size.x/2),0,0)
  1598.                     end
  1599.                 end
  1600.             end
  1601.         elseif WHAT == "damage" then
  1602.             if value.Health <= value2 then
  1603.                 value.Health = value.Health - value2
  1604.                 ragdollkill(value.Parent)
  1605.             else
  1606.                 value.Health = value.Health - value2
  1607.             end
  1608.         elseif WHAT == "trailon" then
  1609.             if character["Right Arm"]:findFirstChild("arrow") then
  1610.                 local based = character["Right Arm"]:findFirstChild("arrow").based
  1611.                 local attach = Instance.new("Attachment", based)
  1612.                 attach.Position = Vector3.new(0, 0, 0.1)
  1613.                 local attach1 = Instance.new("Attachment", based)
  1614.                 attach1.Position = Vector3.new(0, 0, -0.1)
  1615.                 local trail = Instance.new("Trail", based)
  1616.                 trail.Lifetime = 0.1
  1617.                 trail.Attachment0 = attach
  1618.                 trail.Attachment1 = attach1
  1619.                 trail.FaceCamera = true
  1620.                 trail.Name = "arrowtrail"
  1621.             end
  1622.         elseif WHAT == "trailoff" then
  1623.             if character["Right Arm"]:findFirstChild("arrow") then
  1624.                 local based = character["Right Arm"]:findFirstChild("arrow").based
  1625.                 if based:findFirstChild("arrowtrail") then
  1626.                     based.arrowtrail:destroy()
  1627.                 end
  1628.                 for i = 1,2 do
  1629.                     if based:findFirstChildOfClass("Attachment") then
  1630.                         based:findFirstChildOfClass("Attachment"):destroy()
  1631.                     end
  1632.                 end
  1633.             end
  1634.         elseif WHAT == "stopsound" then
  1635.             theholder[value]:Stop()
  1636.         end
  1637.     end
  1638. end)
  1639. function ragdollkill(character)
  1640.     if character ~= workspace then
  1641.         if character.Parent ~= nil then
  1642.             local victimshumanoid = character:findFirstChildOfClass("Humanoid")
  1643.             local checkragd = character:findFirstChild("ragded")
  1644.             if not checkragd then
  1645.                 local boolvalue = Instance.new("BoolValue", character)
  1646.                 boolvalue.Name = "ragded"
  1647.                 if not character:findFirstChild("UpperTorso") then
  1648.                     character.Archivable = true
  1649.                     for i,v in pairs(character:GetChildren()) do
  1650.                         if v.ClassName == "Sound" then
  1651.                             v:remove()
  1652.                         end
  1653.                         for q,w in pairs(v:GetChildren()) do
  1654.                             if w.ClassName == "Sound" then
  1655.                                 w:remove()
  1656.                             end
  1657.                         end
  1658.                     end
  1659.                     local ragdoll = character:Clone()
  1660.                     for i,v in pairs(ragdoll:GetDescendants()) do
  1661.                         if v.ClassName == "Motor" or v.ClassName == "Motor6D" then
  1662.                             v:destroy()
  1663.                         end
  1664.                         if v.Name == "arrowhitBONEEEEE" then
  1665.                             v:destroy()
  1666.                         end
  1667.                     end
  1668.                     ragdoll:findFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
  1669.                     ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  1670.                     if ragdoll:findFirstChild("Health") then
  1671.                         if ragdoll:findFirstChild("Health").ClassName == "Script" then
  1672.                             ragdoll:findFirstChild("Health").Disabled = true
  1673.                         end
  1674.                     end
  1675.                     for i,v in pairs(character:GetChildren()) do
  1676.                         if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
  1677.                             v:destroy()
  1678.                         end
  1679.                     end
  1680.                     for i,v in pairs(character:GetChildren()) do
  1681.                         if v.ClassName == "Accessory" then
  1682.                             local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  1683.                             if attachment1 then
  1684.                                 for q,w in pairs(character:GetChildren()) do
  1685.                                     if w.ClassName == "Part" then
  1686.                                         local attachment2 = w:findFirstChild(attachment1.Name)
  1687.                                         if attachment2 then
  1688.                                             local hinge = Instance.new("HingeConstraint", v.Handle)
  1689.                                             hinge.Attachment0 = attachment1
  1690.                                             hinge.Attachment1 = attachment2
  1691.                                             hinge.LimitsEnabled = true
  1692.                                             hinge.LowerAngle = 0
  1693.                                             hinge.UpperAngle = 0
  1694.                                         end
  1695.                                     end
  1696.                                 end
  1697.                             end
  1698.                         end
  1699.                     end
  1700.                     ragdoll.Parent = workspace
  1701.                     if ragdoll:findFirstChild("Right Arm") then
  1702.                         local glue = Instance.new("Glue", ragdoll.Torso)
  1703.                         glue.Part0 = ragdoll.Torso
  1704.                         glue.Part1 = ragdoll:findFirstChild("Right Arm")
  1705.                         glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1706.                         glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1707.                         local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
  1708.                         limbcollider.Size = Vector3.new(1.4,1,1)
  1709.                         limbcollider.Shape = "Cylinder"
  1710.                         limbcollider.Transparency = 1
  1711.                         limbcollider.Name = "LimbCollider"
  1712.                         local limbcolliderweld = Instance.new("Weld", limbcollider)
  1713.                         limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
  1714.                         limbcolliderweld.Part1 = limbcollider
  1715.                         limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  1716.                     end
  1717.                     if ragdoll:findFirstChild("Left Arm") then
  1718.                         local glue = Instance.new("Glue", ragdoll.Torso)
  1719.                         glue.Part0 = ragdoll.Torso
  1720.                         glue.Part1 = ragdoll:findFirstChild("Left Arm")
  1721.                         glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1722.                         glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1723.                         local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
  1724.                         limbcollider.Size = Vector3.new(1.4,1,1)
  1725.                         limbcollider.Shape = "Cylinder"
  1726.                         limbcollider.Name = "LimbCollider"
  1727.                         limbcollider.Transparency = 1
  1728.                         local limbcolliderweld = Instance.new("Weld", limbcollider)
  1729.                         limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
  1730.                         limbcolliderweld.Part1 = limbcollider
  1731.                         limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  1732.                     end
  1733.                     if ragdoll:findFirstChild("Left Leg") then
  1734.                         local glue = Instance.new("Glue", ragdoll.Torso)
  1735.                         glue.Part0 = ragdoll.Torso
  1736.                         glue.Part1 = ragdoll:findFirstChild("Left Leg")
  1737.                         glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1738.                         glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1739.                         local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
  1740.                         limbcollider.Size = Vector3.new(1.4,1,1)
  1741.                         limbcollider.Shape = "Cylinder"
  1742.                         limbcollider.Name = "LimbCollider"
  1743.                         limbcollider.Transparency = 1
  1744.                         local limbcolliderweld = Instance.new("Weld", limbcollider)
  1745.                         limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
  1746.                         limbcolliderweld.Part1 = limbcollider
  1747.                         limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  1748.                     end
  1749.                     if ragdoll:findFirstChild("Right Leg") then
  1750.                         local glue = Instance.new("Glue", ragdoll.Torso)
  1751.                         glue.Part0 = ragdoll.Torso
  1752.                         glue.Part1 = ragdoll:findFirstChild("Right Leg")
  1753.                         glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1754.                         glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1755.                         local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
  1756.                         limbcollider.Size = Vector3.new(1.4,1,1)
  1757.                         limbcollider.Shape = "Cylinder"
  1758.                         limbcollider.Name = "LimbCollider"
  1759.                         limbcollider.Transparency = 1
  1760.                         local limbcolliderweld = Instance.new("Weld", limbcollider)
  1761.                         limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
  1762.                         limbcolliderweld.Part1 = limbcollider
  1763.                         limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  1764.                     end
  1765.                     if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
  1766.                         local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
  1767.                         HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  1768.                         local connection = Instance.new('HingeConstraint', ragdoll["Head"])
  1769.                         connection.LimitsEnabled = true
  1770.                         connection.Attachment0 = ragdoll.Torso.NeckAttachment
  1771.                         connection.Attachment1 = HeadAttachment
  1772.                         connection.UpperAngle = 60
  1773.                         connection.LowerAngle = -60
  1774.                     elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
  1775.                         local hedweld = Instance.new("Weld", ragdoll.Torso)
  1776.                         hedweld.Part0 = ragdoll.Torso
  1777.                         hedweld.Part1 = ragdoll.Head
  1778.                         hedweld.C0 = CFrame.new(0,1.5,0)
  1779.                     end
  1780.                     game.Debris:AddItem(ragdoll, 30)
  1781.                     if ragdoll:findFirstChild("HumanoidRootPart") then
  1782.                         ragdoll:findFirstChild("HumanoidRootPart"):destroy()
  1783.                     end
  1784.                     local function aaaalol()
  1785.                         wait(0.1)
  1786.                         if ragdoll:findFirstChildOfClass("Humanoid") then
  1787.                             ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  1788.                         end
  1789.                         wait(0.1)
  1790.                         local function searchforvelocity(wot)
  1791.                             for i,v in pairs(wot:GetChildren()) do
  1792.                                 searchforvelocity(v)
  1793.                                 if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
  1794.                                     v:destroy()
  1795.                                 end
  1796.                             end
  1797.                         end
  1798.                         searchforvelocity(ragdoll)
  1799.                     end
  1800.                     spawn(aaaalol)
  1801.                 elseif character:findFirstChild("UpperTorso") then
  1802.                     character.Archivable = true
  1803.                     for i,v in pairs(character:GetChildren()) do
  1804.                         if v.ClassName == "Sound" then
  1805.                             v:remove()
  1806.                         end
  1807.                         for q,w in pairs(v:GetChildren()) do
  1808.                             if w.ClassName == "Sound" then
  1809.                                 w:remove()
  1810.                             end
  1811.                         end
  1812.                     end
  1813.                     local ragdoll = character:Clone()
  1814.                     for i,v in pairs(ragdoll:GetDescendants()) do
  1815.                         if v.ClassName == "Motor" or v.ClassName == "Motor6D" then
  1816.                             v:destroy()
  1817.                         end
  1818.                         if v.Name == "arrowhitBONEEEEE" then
  1819.                             v:destroy()
  1820.                         end
  1821.                     end
  1822.                     ragdoll:BreakJoints()
  1823.                     ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  1824.                     if ragdoll:findFirstChild("Health") then
  1825.                         if ragdoll:findFirstChild("Health").ClassName == "Script" then
  1826.                             ragdoll:findFirstChild("Health").Disabled = true
  1827.                         end
  1828.                     end
  1829.                     for i,v in pairs(character:GetChildren()) do
  1830.                         if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
  1831.                             v:destroy()
  1832.                         end
  1833.                     end
  1834.                     for i,v in pairs(character:GetChildren()) do
  1835.                         if v.ClassName == "Accessory" then
  1836.                             local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  1837.                             if attachment1 then
  1838.                                 for q,w in pairs(character:GetChildren()) do
  1839.                                     if w.ClassName == "Part" or w.ClassName == "MeshPart" then
  1840.                                         local attachment2 = w:findFirstChild(attachment1.Name)
  1841.                                         if attachment2 then
  1842.                                             local hinge = Instance.new("HingeConstraint", v.Handle)
  1843.                                             hinge.Attachment0 = attachment1
  1844.                                             hinge.Attachment1 = attachment2
  1845.                                             hinge.LimitsEnabled = true
  1846.                                             hinge.LowerAngle = 0
  1847.                                             hinge.UpperAngle = 0
  1848.                                         end
  1849.                                     end
  1850.                                 end
  1851.                             end
  1852.                         end
  1853.                     end
  1854.                     ragdoll.Parent = workspace
  1855.                     local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
  1856.                     Humanoid.PlatformStand = true
  1857.                     local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
  1858.                         local connection = Instance.new('BallSocketConstraint', limb)
  1859.                         connection.LimitsEnabled = true
  1860.                         connection.Attachment0 = attachementone
  1861.                         connection.Attachment1 = attachmenttwo
  1862.                         connection.TwistLimitsEnabled = true
  1863.                         connection.TwistLowerAngle = twistlower
  1864.                         connection.TwistUpperAngle = twistupper
  1865.                         local limbcollider = Instance.new("Part", limb)
  1866.                         limbcollider.Size = Vector3.new(0.1,1,1)
  1867.                         limbcollider.Shape = "Cylinder"
  1868.                         limbcollider.Transparency = 1
  1869.                         limbcollider:BreakJoints()
  1870.                         local limbcolliderweld = Instance.new("Weld", limbcollider)
  1871.                         limbcolliderweld.Part0 = limb
  1872.                         limbcolliderweld.Part1 = limbcollider
  1873.                         limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  1874.                     end
  1875.                     local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
  1876.                         local connection = Instance.new('HingeConstraint', limb)
  1877.                         connection.LimitsEnabled = true
  1878.                         connection.Attachment0 = attachementone
  1879.                         connection.Attachment1 = attachmenttwo
  1880.                         connection.LimitsEnabled = true
  1881.                         connection.LowerAngle = lower
  1882.                         connection.UpperAngle = upper
  1883.                         local limbcollider = Instance.new("Part", limb)
  1884.                         limbcollider.Size = Vector3.new(0.1,1,1)
  1885.                         limbcollider.Shape = "Cylinder"
  1886.                         limbcollider.Transparency = 1
  1887.                         limbcollider:BreakJoints()
  1888.                         local limbcolliderweld = Instance.new("Weld", limbcollider)
  1889.                         limbcolliderweld.Part0 = limb
  1890.                         limbcolliderweld.Part1 = limbcollider
  1891.                         limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  1892.                     end
  1893.                     local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
  1894.                     HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  1895.                     if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
  1896.                         makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
  1897.                     end
  1898.                     makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
  1899.                     makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
  1900.                     makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
  1901.                     makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
  1902.                     --
  1903.                     makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
  1904.                     makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
  1905.                     makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
  1906.                     --
  1907.                     makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
  1908.                     makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
  1909.                     makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
  1910.                     --
  1911.                     makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
  1912.                     makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
  1913.                     makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
  1914.                     for i,v in pairs(Humanoid.Parent:GetChildren()) do
  1915.                         if v.ClassName == "Accessory" then
  1916.                             local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  1917.                             if attachment1 then
  1918.                                 for q,w in pairs(Humanoid.Parent:GetChildren()) do
  1919.                                     if w.ClassName == "Part" then
  1920.                                         local attachment2 = w:findFirstChild(attachment1.Name)
  1921.                                         if attachment2 then
  1922.                                             local hinge = Instance.new("HingeConstraint", v.Handle)
  1923.                                             hinge.Attachment0 = attachment1
  1924.                                             hinge.Attachment1 = attachment2
  1925.                                             hinge.LimitsEnabled = true
  1926.                                             hinge.LowerAngle = 0
  1927.                                             hinge.UpperAngle = 0
  1928.                                         end
  1929.                                     end
  1930.                                 end
  1931.                             end
  1932.                         end
  1933.                     end
  1934.                     for i,v in pairs(ragdoll:GetChildren()) do
  1935.                         for q,w in pairs(v:GetChildren()) do
  1936.                             if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] and w.Name ~= "oucharrowAAAAAAAAAA" then
  1937.                                 w:destroy()
  1938.                             end
  1939.                         end
  1940.                     end
  1941.                     if ragdoll:findFirstChild("HumanoidRootPart") then
  1942.                         ragdoll.HumanoidRootPart:destroy()
  1943.                     end
  1944.                     if ragdoll:findFirstChildOfClass("Humanoid") then
  1945.                         ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  1946.                     end
  1947.                     local function waitfordatmoment()
  1948.                         wait(0.2)
  1949.                         local function searchforvelocity(wot)
  1950.                             for i,v in pairs(wot:GetChildren()) do
  1951.                                 searchforvelocity(v)
  1952.                                 if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
  1953.                                     v:destroy()
  1954.                                 end
  1955.                             end
  1956.                         end
  1957.                         searchforvelocity(ragdoll)
  1958.                     end
  1959.                     spawn(waitfordatmoment)
  1960.                     game.Debris:AddItem(ragdoll, 30)
  1961.                 end
  1962.             end
  1963.         end
  1964.     end
  1965. end
Add Comment
Please, Sign In to add comment