Advertisement
mememasterYT

Untitled

Apr 6th, 2020
614
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --By Rufus14
  2. --owner = game.Players[script.Parent.Name]
  3. NLS([[
  4. for i,v in pairs(game.ReplicatedStorage:GetChildren()) do
  5.     if v.Name == "RufusBowRemote" then
  6.         v:destroy()
  7.     end
  8. end
  9. mouse = game:GetService("Players").LocalPlayer:GetMouse()
  10. actionremote = game.ReplicatedStorage:WaitForChild("RufusBowRemote")
  11. function loadarrow()
  12.     actionremote:FireServer("shoot", mouse.Hit.p)
  13. end
  14. function switch(key)
  15.     key = key:lower()
  16.     if key == "q" then
  17.         actionremote:FireServer("equip")
  18.     end
  19. end
  20. function lookat()
  21.     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,Vector3.new(mouse.Hit.p.x,game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.y,mouse.Hit.p.z))
  22. end
  23. game:GetService("RunService").RenderStepped:connect(lookat)
  24. mouse.KeyDown:connect(switch)
  25. mouse.Button1Down:connect(loadarrow)
  26. ]], owner.Character)
  27. wait(0.01)
  28. heartbeat = game:GetService("RunService").Heartbeat
  29. function sandbox(var,func)
  30.     local env = getfenv(func)
  31.     local newenv = setmetatable({},{
  32.         __index = function(self,k)
  33.             if k=="script" then
  34.                 return var
  35.             else
  36.                 return env[k]
  37.             end
  38.         end,
  39.     })
  40.     setfenv(func,newenv)
  41.     return func
  42. end
  43. cors = {}
  44. mas = Instance.new("Model",game:GetService("Lighting"))
  45. Model0 = Instance.new("Model")
  46. Part1 = Instance.new("Part")
  47. Part2 = Instance.new("Part")
  48. Weld3 = Instance.new("Weld")
  49. Part4 = Instance.new("Part")
  50. Weld5 = Instance.new("Weld")
  51. Part6 = Instance.new("Part")
  52. Part7 = Instance.new("Part")
  53. Part8 = Instance.new("Part")
  54. Part9 = Instance.new("Part")
  55. Part10 = Instance.new("Part")
  56. Weld11 = Instance.new("Weld")
  57. Weld12 = Instance.new("Weld")
  58. Weld13 = Instance.new("Weld")
  59. Weld14 = Instance.new("Weld")
  60. Weld15 = Instance.new("Weld")
  61. Model0.Name = "Bow"
  62. Model0.Parent = mas
  63. Model0.PrimaryPart = Part10
  64. Part1.Name = "bone1"
  65. Part1.Parent = Model0
  66. Part1.CFrame = CFrame.new(0.53203249, 3.30761766, 0.759689212, 0.707942963, 0.702655733, -0.0713564232, 0.706084967, -0.706446886, 0.0487529263, -0.0161529984, -0.0848979801, -0.996258736)
  67. Part1.Orientation = Vector3.new(-2.78999996, -175.899994, 135.009995)
  68. Part1.Position = Vector3.new(0.53203249, 3.30761766, 0.759689212)
  69. Part1.Rotation = Vector3.new(-177.199997, -4.09000015, -44.7900009)
  70. Part1.Color = Color3.new(0.627451, 0.372549, 0.207843)
  71. Part1.Size = Vector3.new(1.3499999, 0.25, 0.25)
  72. Part1.BottomSurface = Enum.SurfaceType.Smooth
  73. Part1.BrickColor = BrickColor.new("Dark orange")
  74. Part1.Material = Enum.Material.Wood
  75. Part1.TopSurface = Enum.SurfaceType.Smooth
  76. Part1.brickColor = BrickColor.new("Dark orange")
  77. Part1.Shape = Enum.PartType.Cylinder
  78. Part2.Name = "bone3"
  79. Part2.Parent = Model0
  80. Part2.CFrame = CFrame.new(-1.33914518, 1.46726966, 0.58671093, 0.689654171, 0.702655733, 0.175077468, 0.646828473, -0.706446886, 0.287307858, 0.325561464, -0.0848979801, -0.94170171)
  81. Part2.Orientation = Vector3.new(-16.7000008, 169.470001, 137.520004)
  82. Part2.Position = Vector3.new(-1.33914518, 1.46726966, 0.58671093)
  83. Part2.Rotation = Vector3.new(-163.029999, 10.0799999, -45.5400009)
  84. Part2.Color = Color3.new(0.627451, 0.372549, 0.207843)
  85. Part2.Size = Vector3.new(1.3499999, 0.25, 0.25)
  86. Part2.BottomSurface = Enum.SurfaceType.Smooth
  87. Part2.BrickColor = BrickColor.new("Dark orange")
  88. Part2.Material = Enum.Material.Wood
  89. Part2.TopSurface = Enum.SurfaceType.Smooth
  90. Part2.brickColor = BrickColor.new("Dark orange")
  91. Part2.Shape = Enum.PartType.Cylinder
  92. Weld3.Name = "lineholder2weld"
  93. Weld3.Parent = Part2
  94. Weld3.C0 = CFrame.new(-0.525000215, 0, 9.53674316e-07, 1, 0, -2.98023224e-08, 0, 1, 0, -2.98023224e-08, 0, 1)
  95. Weld3.Part0 = Part2
  96. Weld3.Part1 = Part7
  97. Weld3.part1 = Part7
  98. Part4.Name = "bone4"
  99. Part4.Parent = Model0
  100. Part4.CFrame = CFrame.new(1.41664314, 4.21582508, 0.523832917, 0.64084357, 0.702655733, -0.309183687, 0.680177391, -0.706446886, -0.195682332, -0.355919182, -0.0848979801, -0.93065244)
  101. Part4.Orientation = Vector3.new(11.2799997, -161.619995, 136.089996)
  102. Part4.Position = Vector3.new(1.41664314, 4.21582508, 0.523832917)
  103. Part4.Rotation = Vector3.new(168.130005, -18.0100002, -47.6300011)
  104. Part4.Color = Color3.new(0.627451, 0.372549, 0.207843)
  105. Part4.Size = Vector3.new(1.3499999, 0.25, 0.25)
  106. Part4.BottomSurface = Enum.SurfaceType.Smooth
  107. Part4.BrickColor = BrickColor.new("Dark orange")
  108. Part4.Material = Enum.Material.Wood
  109. Part4.TopSurface = Enum.SurfaceType.Smooth
  110. Part4.brickColor = BrickColor.new("Dark orange")
  111. Part4.Shape = Enum.PartType.Cylinder
  112. Weld5.Name = "lineholderweld"
  113. Weld5.Parent = Part4
  114. Weld5.C0 = CFrame.new(0.525000155, 0, 2.38418579e-07, 1, 0, 2.98023224e-08, 0, 1, 0, 2.98023224e-08, 0, 1)
  115. Weld5.Part0 = Part4
  116. Weld5.Part1 = Part6
  117. Weld5.part1 = Part6
  118. Part6.Name = "lineholder"
  119. Part6.Parent = Model0
  120. Part6.CFrame = CFrame.new(1.75308609, 4.57291842, 0.336975068, 0.64084357, 0.702655733, -0.309183657, 0.680177391, -0.706446886, -0.195682317, -0.355919212, -0.0848979801, -0.93065244)
  121. Part6.Orientation = Vector3.new(11.2799997, -161.619995, 136.089996)
  122. Part6.Position = Vector3.new(1.75308609, 4.57291842, 0.336975068)
  123. Part6.Rotation = Vector3.new(168.130005, -18.0100002, -47.6300011)
  124. Part6.Color = Color3.new(0.972549, 0.85098, 0.427451)
  125. Part6.Size = Vector3.new(0.100000001, 0.25999999, 0.25999999)
  126. Part6.BottomSurface = Enum.SurfaceType.Smooth
  127. Part6.BrickColor = BrickColor.new("Daisy orange")
  128. Part6.Material = Enum.Material.Fabric
  129. Part6.TopSurface = Enum.SurfaceType.Smooth
  130. Part6.brickColor = BrickColor.new("Daisy orange")
  131. Part6.Shape = Enum.PartType.Cylinder
  132. Part7.Name = "lineholder2"
  133. Part7.Parent = Model0
  134. Part7.CFrame = CFrame.new(-1.7012136, 1.12768483, 0.4157902, 0.689654171, 0.702655733, 0.175077453, 0.646828473, -0.706446886, 0.287307829, 0.325561494, -0.0848979801, -0.94170171)
  135. Part7.Orientation = Vector3.new(-16.7000008, 169.470001, 137.520004)
  136. Part7.Position = Vector3.new(-1.7012136, 1.12768483, 0.4157902)
  137. Part7.Rotation = Vector3.new(-163.029999, 10.0799999, -45.5400009)
  138. Part7.Color = Color3.new(0.972549, 0.85098, 0.427451)
  139. Part7.Size = Vector3.new(0.100000001, 0.25999999, 0.25999999)
  140. Part7.BottomSurface = Enum.SurfaceType.Smooth
  141. Part7.BrickColor = BrickColor.new("Daisy orange")
  142. Part7.Material = Enum.Material.Fabric
  143. Part7.TopSurface = Enum.SurfaceType.Smooth
  144. Part7.brickColor = BrickColor.new("Daisy orange")
  145. Part7.Shape = Enum.PartType.Cylinder
  146. Part8.Name = "bone2"
  147. Part8.Parent = Model0
  148. Part8.CFrame = CFrame.new(-0.423690557, 2.35440302, 0.78149581, 0.707942963, 0.702655733, -0.0713564232, 0.706084967, -0.706446886, 0.0487529263, -0.0161529984, -0.0848979801, -0.996258736)
  149. Part8.Orientation = Vector3.new(-2.78999996, -175.899994, 135.009995)
  150. Part8.Position = Vector3.new(-0.423690557, 2.35440302, 0.78149581)
  151. Part8.Rotation = Vector3.new(-177.199997, -4.09000015, -44.7900009)
  152. Part8.Color = Color3.new(0.627451, 0.372549, 0.207843)
  153. Part8.Size = Vector3.new(1.3499999, 0.25, 0.25)
  154. Part8.BottomSurface = Enum.SurfaceType.Smooth
  155. Part8.BrickColor = BrickColor.new("Dark orange")
  156. Part8.Material = Enum.Material.Wood
  157. Part8.TopSurface = Enum.SurfaceType.Smooth
  158. Part8.brickColor = BrickColor.new("Dark orange")
  159. Part8.Shape = Enum.PartType.Cylinder
  160. Part9.Name = "lineparent"
  161. Part9.Parent = Model0
  162. Part9.CFrame = CFrame.new(0.0256283022, 2.85051131, 0.372089386, 0.707942963, 0.702655733, -0.0713564232, 0.706084967, -0.706446886, 0.0487529263, -0.0161529984, -0.0848979801, -0.996258736)
  163. Part9.Orientation = Vector3.new(-2.78999996, -175.899994, 135.009995)
  164. Part9.Position = Vector3.new(0.0256283022, 2.85051131, 0.372089386)
  165. Part9.Rotation = Vector3.new(-177.199997, -4.09000015, -44.7900009)
  166. Part9.Color = Color3.new(0.627451, 0.372549, 0.207843)
  167. Part9.Transparency = 1
  168. Part9.Size = Vector3.new(0.100000001, 0.25, 0.25)
  169. Part9.BottomSurface = Enum.SurfaceType.Smooth
  170. Part9.BrickColor = BrickColor.new("Dark orange")
  171. Part9.CanCollide = false
  172. Part9.Material = Enum.Material.Wood
  173. Part9.TopSurface = Enum.SurfaceType.Smooth
  174. Part9.brickColor = BrickColor.new("Dark orange")
  175. Part9.Shape = Enum.PartType.Cylinder
  176. Part10.Name = "bowparent"
  177. Part10.Parent = Model0
  178. Part10.CFrame = CFrame.new(0.0541709289, 2.83101034, 0.770592511, 0.707942963, 0.702655733, -0.0713564232, 0.706084967, -0.706446886, 0.0487529263, -0.0161529984, -0.0848979801, -0.996258736)
  179. Part10.Orientation = Vector3.new(-2.78999996, -175.899994, 135.009995)
  180. Part10.Position = Vector3.new(0.0541709289, 2.83101034, 0.770592511)
  181. Part10.Rotation = Vector3.new(-177.199997, -4.09000015, -44.7900009)
  182. Part10.Color = Color3.new(0.627451, 0.372549, 0.207843)
  183. Part10.Transparency = 1
  184. Part10.Size = Vector3.new(2.69999933, 0.25, 0.25)
  185. Part10.BottomSurface = Enum.SurfaceType.Smooth
  186. Part10.BrickColor = BrickColor.new("Dark orange")
  187. Part10.Material = Enum.Material.Wood
  188. Part10.TopSurface = Enum.SurfaceType.Smooth
  189. Part10.brickColor = BrickColor.new("Dark orange")
  190. Part10.Shape = Enum.PartType.Cylinder
  191. Weld11.Name = "lineparentweld"
  192. Weld11.Parent = Part10
  193. Weld11.C0 = CFrame.new(-1.1920929e-07, 0, 0.399999619, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  194. Weld11.Part0 = Part10
  195. Weld11.Part1 = Part9
  196. Weld11.part1 = Part9
  197. Weld12.Name = "bone4weld"
  198. Weld12.Parent = Part10
  199. Weld12.C0 = CFrame.new(1.94633532, 0, 0.216129065, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736)
  200. Weld12.Part0 = Part10
  201. Weld12.Part1 = Part4
  202. Weld12.part1 = Part4
  203. Weld13.Name = "bone3weld"
  204. Weld13.Parent = Part10
  205. Weld13.C0 = CFrame.new(-1.9463346, 0, 0.216129303, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736)
  206. Weld13.Part0 = Part10
  207. Weld13.Part1 = Part2
  208. Weld13.part1 = Part2
  209. Weld14.Name = "bone2weld"
  210. Weld14.Parent = Part10
  211. Weld14.C0 = CFrame.new(-0.675000012, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  212. Weld14.Part0 = Part10
  213. Weld14.Part1 = Part8
  214. Weld14.part1 = Part8
  215. Weld15.Name = "bone1weld"
  216. Weld15.Parent = Part10
  217. Weld15.C0 = CFrame.new(0.675000072, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  218. Weld15.Part0 = Part10
  219. Weld15.Part1 = Part1
  220. Weld15.part1 = Part1
  221. for i,v in pairs(mas:GetChildren()) do
  222.     v.Parent = workspace
  223.     pcall(function() v:MakeJoints() end)
  224. end
  225. mas:Destroy()
  226. for i,v in pairs(cors) do
  227.     spawn(function()
  228.         pcall(v)
  229.     end)
  230. end
  231. Model0.Parent = owner.Character
  232. for i,v in pairs(Model0:GetChildren()) do
  233.     if v.ClassName == "Part" then
  234.         v.Locked = true    
  235.         v.CanCollide = false
  236.     end
  237. end
  238. local bowweld = Instance.new("Weld", owner.Character.Torso)
  239. bowweld.Part0 = owner.Character["Left Arm"]
  240. bowweld.Part1 = Part10
  241. bowweld.C0 = CFrame.new(-0.0301302671, -0.720442772, 0.261343002, 0.0203120001, 0.999699533, -0.0137268165, 0.0359834023, 0.0129897781, 0.999267995, 0.999145985, -0.0207910687, -0.0357087404)
  242. print("Bow script by Rufus14")
  243. local bowremote = Instance.new("RemoteEvent", game.ReplicatedStorage)
  244. bowremote.Name = "RufusBowRemote"
  245. local pull = Instance.new("Sound", Part10)
  246. pull.SoundId = "rbxassetid://609348868"
  247. pull.Name = "Pull"
  248. local draw = Instance.new("Sound", Part10)
  249. draw.SoundId = "rbxassetid://609338076"
  250. draw.Name = "Draw"
  251. local release = Instance.new("Sound", Part10)
  252. release.SoundId = "rbxassetid://609348009"
  253. release.Name = "Release"
  254. local release1 = Instance.new("Sound", Part10)
  255. release1.SoundId = "rbxassetid://173979241"
  256. release1.Name = "Release2"
  257. local arrowhitsound = Instance.new("Sound", Part10)
  258. arrowhitsound.SoundId = "rbxassetid://214755079"
  259. arrowhitsound.Name = "ArrowHit"
  260. local arrowhitflesh = Instance.new("Sound", Part10)
  261. arrowhitflesh.SoundId = "rbxassetid://2782131222"
  262. arrowhitflesh.Name = "ArrowHitFlesh"
  263. function checkifnil()
  264.     while wait(0.1) do
  265.         if not Part10:FindFirstChild("Pull") then
  266.             local pull = Instance.new("Sound", Part10)
  267.             pull.SoundId = "rbxassetid://609348868"
  268.             pull.Name = "Pull"
  269.         end
  270.         if not Part10:FindFirstChild("Draw") then
  271.             local draw = Instance.new("Sound", Part10)
  272.             draw.SoundId = "rbxassetid://609338076"
  273.             draw.Name = "Draw"
  274.         end
  275.         if not Part10:FindFirstChild("Release") then
  276.             local release = Instance.new("Sound", Part10)
  277.             release.SoundId = "rbxassetid://609348009"
  278.             release.Name = "Release"
  279.         end
  280.         if not Part10:FindFirstChild("Release2") then
  281.             local release1 = Instance.new("Sound", Part10)
  282.             release1.SoundId = "rbxassetid://173979241"
  283.             release1.Name = "Release2"
  284.         end
  285.         if not Part10:FindFirstChild("ArrowHit") then
  286.             local arrowhitsound = Instance.new("Sound", Part10)
  287.             arrowhitsound.SoundId = "rbxassetid://214755079"
  288.             arrowhitsound.Name = "ArrowHit"
  289.         end
  290.         if not Part10:FindFirstChild("ArrowHitFlesh") then
  291.             local arrowhitsound = Instance.new("Sound", Part10)
  292.             arrowhitsound.SoundId = "rbxassetid://2782131222"
  293.             arrowhitsound.Name = "ArrowHitFlesh"
  294.         end
  295.     end
  296. end
  297. function paracord()
  298.     cord1 = Instance.new("Part", Model0)
  299.     cord1.Name = "paracord"
  300.     cord1.BrickColor = BrickColor.new("Daisy orange")
  301.     cord1.Material = "Fabric"
  302.     cord1.CanCollide = false
  303.     cord1.Anchored = true
  304.     --
  305.     cord2 = Instance.new("Part", Model0)
  306.     cord2.Name = "paracord2"
  307.     cord2.BrickColor = BrickColor.new("Daisy orange")
  308.     cord2.Material = "Fabric"
  309.     cord2.CanCollide = false
  310.     cord2.Anchored = true
  311.     --
  312.     cord2.Locked = true
  313.     cord1.Locked = true
  314.     while heartbeat:wait() do
  315.         cord1.Size = Vector3.new((Part9.Position - Part7.Position).magnitude,0.05,0.05)
  316.         cord1.CFrame = CFrame.new(Part7.Position, Part9.Position) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  317.         cord1.CFrame = cord1.CFrame * CFrame.new((Part9.Position - Part7.Position).magnitude/2,0,0)
  318.         --
  319.         cord2.Size = Vector3.new((Part9.Position - Part6.Position).magnitude,0.05,0.05)
  320.         cord2.CFrame = CFrame.new(Part6.Position, Part9.Position) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  321.         cord2.CFrame = cord2.CFrame * CFrame.new((Part9.Position - Part6.Position).magnitude/2,0,0)
  322.     end
  323. end
  324. spawn(paracord)
  325. spawn(checkifnil)
  326. cando = true
  327. arrowon = false
  328. function dosomething(player, what, mousehitp)
  329.     if player == owner and cando then
  330.         cando = false
  331.         if what == "shoot" then
  332.             if arrowon then
  333.                 --Converted with ttyyuu12345's model to script plugin v4
  334.                 function sandbox(var,func)
  335.                     local env = getfenv(func)
  336.                     local newenv = setmetatable({},{
  337.                         __index = function(self,k)
  338.                             if k=="script" then
  339.                                 return var
  340.                             else
  341.                                 return env[k]
  342.                             end
  343.                         end,
  344.                     })
  345.                     setfenv(func,newenv)
  346.                     return func
  347.                 end
  348.                 cors = {}
  349.                 mas = Instance.new("Model",game:GetService("Lighting"))
  350.                 local arr0w = Instance.new("Part")
  351.                 local SpecialMesh1 = Instance.new("SpecialMesh")
  352.                 arr0w.Name = "arrow"
  353.                 arr0w.Parent = mas
  354.                 arr0w.CFrame = CFrame.new(-3.05000257, 2.549999, 0.0500027686, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  355.                 arr0w.Position = Vector3.new(-3.05000257, 2.549999, 0.0500027686)
  356.                 arr0w.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  357.                 arr0w.Size = Vector3.new(0.100000001, 4.49999857, 0.100000016)
  358.                 arr0w.BottomSurface = Enum.SurfaceType.Smooth
  359.                 arr0w.BrickColor = BrickColor.new("Really black")
  360.                 arr0w.TopSurface = Enum.SurfaceType.Smooth
  361.                 arr0w.brickColor = BrickColor.new("Really black")
  362.                 SpecialMesh1.Parent = arr0w
  363.                 SpecialMesh1.MeshId = "rbxassetid://925549018"
  364.                 SpecialMesh1.Scale = Vector3.new(6, 8, 6)
  365.                 SpecialMesh1.MeshType = Enum.MeshType.FileMesh
  366.                 for i,v in pairs(mas:GetChildren()) do
  367.                     v.Parent = workspace
  368.                     pcall(function() v:MakeJoints() end)
  369.                 end
  370.                 mas:Destroy()
  371.                 for i,v in pairs(cors) do
  372.                     spawn(function()
  373.                         pcall(v)
  374.                     end)
  375.                 end
  376.                 arr0w.CanCollide = false
  377.                 arr0w.Name = "placeholder"
  378.                 if Model0:findFirstChild("arrow") then
  379.                     arr0w.CFrame = Model0:findFirstChild("arrow").CFrame
  380.                     Model0:findFirstChild("arrow"):destroy()
  381.                     arr0w.Name = "arrow"
  382.                 end
  383.                 arr0w.CFrame = CFrame.new(arr0w.Position, mousehitp) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  384.                 local safe = Instance.new("Model", owner.Character)
  385.                 arr0w.Parent = safe
  386.                 local velocity = Instance.new("BodyVelocity", arr0w)
  387.                 velocity.Velocity = arr0w.CFrame.upVector * -500
  388.                 velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  389.                 Part10:FindFirstChild("Release"):Play()
  390.                 Part10:FindFirstChild("Release2"):Play()
  391.                 for i = 0,1 , 1 do
  392.                     Weld11.C0 = Weld11.C0:lerp(CFrame.new(-1.1920929e-07, 0, 0.399999619, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  393.                     Weld12.C0 = Weld12.C0:lerp(CFrame.new(1.94633532, 0, 0.216129065, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),i)
  394.                     Weld13.C0 = Weld13.C0:lerp(CFrame.new(-1.9463346, 0, 0.216129303, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),i)
  395.                     Weld14.C0 = Weld14.C0:lerp(CFrame.new(-0.675000012, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  396.                     Weld15.C0 = Weld15.C0:lerp(CFrame.new(0.675000072, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  397.                     heartbeat:wait()
  398.                 end
  399.                 local canhityes = true
  400.                 local function arrowhit(part)
  401.                     if part.Parent ~= owner.Character and part.Parent ~= Model0 and part.Parent.ClassName ~= "Accessory" and part.Parent.Parent.ClassName ~= "Accessory" and part.Name ~= "arrow" and canhityes then
  402.                         canhityes = false
  403.                         arr0w.Parent = part.Parent
  404.                         local arrowhitweld = Instance.new("Weld", part)
  405.                         arrowhitweld.C0 = part.CFrame:toObjectSpace(arr0w.CFrame)
  406.                         arrowhitweld.Part0 = part
  407.                         arrowhitweld.Part1 = arr0w
  408.                         arrowhitweld.Name = "arrowweld"
  409.                         velocity:destroy()
  410.                         Part10:FindFirstChild("ArrowHit"):Play()
  411.                         if part.Parent:findFirstChildOfClass("Humanoid") then
  412.                             Part10:FindFirstChild("ArrowHitFlesh"):Play()
  413.                             if part.Name == "Head" then
  414.                                 for i,v in pairs(part.Parent:GetChildren()) do
  415.                                     if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  416.                                         for q,w in pairs(v:GetChildren()) do
  417.                                             if w.ClassName == "Motor6D" or w.ClassName == "Weld" and w.Name ~= "arrowweld" then
  418.                                                 w:destroy()
  419.                                             end
  420.                                         end
  421.                                     end
  422.                                 end
  423.                                 ragdollkill(part.Parent)
  424.                             else
  425.                                 local random = math.random(60,120)
  426.                                 if part.Parent:findFirstChildOfClass("Humanoid").MaxHealth > 300 then
  427.                                     part.Parent:findFirstChildOfClass("Humanoid").MaxHealth = 300
  428.                                 end
  429.                                 if part.Parent:findFirstChildOfClass("Humanoid").Health <= random then
  430.                                     for i,v in pairs(part.Parent:GetChildren()) do
  431.                                         if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  432.                                             for q,w in pairs(v:GetChildren()) do
  433.                                                 if w.ClassName == "Motor6D" or w.ClassName == "Weld" and w.Name ~= "arrowweld" then
  434.                                                     w:destroy()
  435.                                                 end
  436.                                             end
  437.                                         end
  438.                                     end
  439.                                     ragdollkill(part.Parent)
  440.                                 else
  441.                                     part.Parent:findFirstChildOfClass("Humanoid").Health = part.Parent:findFirstChildOfClass("Humanoid").Health - random
  442.                                 end
  443.                             end
  444.                         else
  445.                             game.Debris:AddItem(arr0w, 10)
  446.                         end
  447.                     end
  448.                 end
  449.                 arr0w.Touched:connect(arrowhit)
  450.                 wait(0.01)
  451.                 for i = 0,0.7 , 0.015 do
  452.                     if owner.Character.Torso:findFirstChild("RightArmWeld") then
  453.                         owner.Character.Torso:findFirstChild("RightArmWeld").C0 = owner.Character.Torso:findFirstChild("RightArmWeld").C0:lerp(CFrame.new(1.5,0,0),i)
  454.                     end
  455.                     if owner.Character.Torso:findFirstChild("LeftArmWeld") then
  456.                         owner.Character.Torso:findFirstChild("LeftArmWeld").C0 = owner.Character.Torso:findFirstChild("LeftArmWeld").C0:lerp(CFrame.new(-1.5,0,0),i)
  457.                     end
  458.                     if owner.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld") then
  459.                         owner.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld").C0 = owner.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld").C0:lerp(CFrame.new(0,0,0),i)
  460.                     end
  461.                     if owner.Character.Torso:findFirstChild("HeadWeld") then
  462.                         owner.Character.Torso:findFirstChild("HeadWeld").C0 = owner.Character.Torso:findFirstChild("HeadWeld").C0:lerp(CFrame.new(0,1.5,0),i)
  463.                     end
  464.                     bowweld.C0 = bowweld.C0:lerp(CFrame.new(-0.0301302671, -0.720442772, 0.261343002, 0.0203120001, 0.999699533, -0.0137268165, 0.0359834023, 0.0129897781, 0.999267995, 0.999145985, -0.0207910687, -0.0357087404),i)
  465.                     heartbeat:wait()
  466.                 end
  467.                 if owner.Character.Torso:findFirstChild("RightArmWeld") then
  468.                     owner.Character.Torso:findFirstChild("RightArmWeld"):destroy()
  469.                 end
  470.                 if owner.Character.Torso:findFirstChild("LeftArmWeld") then
  471.                     owner.Character.Torso:findFirstChild("LeftArmWeld"):destroy()
  472.                 end
  473.                 if owner.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld") then
  474.                     owner.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld"):destroy()
  475.                 end
  476.                 if owner.Character.Torso:findFirstChild("HeadWeld") then
  477.                     owner.Character.Torso:findFirstChild("HeadWeld"):destroy()
  478.                 end
  479.                 arrowon = false
  480.             else
  481.                 --Converted with ttyyuu12345's model to script plugin v4
  482.                 function sandbox(var,func)
  483.                     local env = getfenv(func)
  484.                     local newenv = setmetatable({},{
  485.                         __index = function(self,k)
  486.                             if k=="script" then
  487.                                 return var
  488.                             else
  489.                                 return env[k]
  490.                             end
  491.                         end,
  492.                     })
  493.                     setfenv(func,newenv)
  494.                     return func
  495.                 end
  496.                 cors = {}
  497.                 mas = Instance.new("Model",game:GetService("Lighting"))
  498.                 local arr0w = Instance.new("Part")
  499.                 local SpecialMesh1 = Instance.new("SpecialMesh")
  500.                 arr0w.Name = "arrow"
  501.                 arr0w.Parent = mas
  502.                 arr0w.CFrame = CFrame.new(-3.05000257, 2.549999, 0.0500027686, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  503.                 arr0w.Position = Vector3.new(-3.05000257, 2.549999, 0.0500027686)
  504.                 arr0w.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  505.                 arr0w.Size = Vector3.new(0.100000001, 4.49999857, 0.100000016)
  506.                 arr0w.BottomSurface = Enum.SurfaceType.Smooth
  507.                 arr0w.BrickColor = BrickColor.new("Really black")
  508.                 arr0w.TopSurface = Enum.SurfaceType.Smooth
  509.                 arr0w.brickColor = BrickColor.new("Really black")
  510.                 SpecialMesh1.Parent = arr0w
  511.                 SpecialMesh1.MeshId = "rbxassetid://925549018"
  512.                 SpecialMesh1.Scale = Vector3.new(6, 8, 6)
  513.                 SpecialMesh1.MeshType = Enum.MeshType.FileMesh
  514.                 for i,v in pairs(mas:GetChildren()) do
  515.                     v.Parent = workspace
  516.                     pcall(function() v:MakeJoints() end)
  517.                 end
  518.                 mas:Destroy()
  519.                 for i,v in pairs(cors) do
  520.                     spawn(function()
  521.                         pcall(v)
  522.                     end)
  523.                 end
  524.                 arr0w.Parent = Model0
  525.                 arr0w.CanCollide = false
  526.                 local arrowweld = Instance.new("Weld", arr0w)
  527.                 arrowweld.Part0 = owner.Character["Right Arm"]
  528.                 arrowweld.Part1 = arr0w
  529.                 arrowweld.C0 = CFrame.new(0,-arr0w.Size.y/1.6,0)
  530.                 local rightarm = Instance.new("Weld", owner.Character.Torso)
  531.                 rightarm.Part0 = owner.Character.Torso
  532.                 rightarm.Part1 = owner.Character["Right Arm"]
  533.                 rightarm.C0 = CFrame.new(1.5,0,0)
  534.                 rightarm.Name = "RightArmWeld"
  535.                 for i = 0,0.5 , 0.014 do
  536.                     rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,1,0) * CFrame.fromEulerAnglesXYZ(0,0,math.pi),i)
  537.                     heartbeat:wait()
  538.                 end
  539.                 local leftarm = Instance.new("Weld", owner.Character.Torso)
  540.                 leftarm.Part0 = owner.Character.Torso
  541.                 leftarm.Part1 = owner.Character["Left Arm"]
  542.                 leftarm.C0 = CFrame.new(-1.5,0,0)
  543.                 leftarm.Name = "LeftArmWeld"
  544.                 local head = Instance.new("Weld", owner.Character.Torso)
  545.                 head.Part0 = owner.Character.Torso
  546.                 head.Part1 = owner.Character.Head
  547.                 head.C0 = CFrame.new(0,1.5,0)
  548.                 head.Name = "HeadWeld"
  549.                 local humanoidrootpart = Instance.new("Weld", owner.Character.HumanoidRootPart)
  550.                 humanoidrootpart.Part0 = owner.Character.HumanoidRootPart
  551.                 humanoidrootpart.Part1 = owner.Character.Torso
  552.                 humanoidrootpart.Name = "HumanoidRootPartWeld"
  553.                 for i = 0,0.6 , 0.013 do
  554.                     arrowweld.C0 = arrowweld.C0:lerp(CFrame.new(0.310311556, -3.154459, -0.25002265, 0.984807789, -0.173648179, 1.17435208e-08, 0.173648179, 0.984807789, 2.07069939e-09, -1.19247492e-08, 2.0763578e-16, 0.999994516),i)
  555.                     rightarm.C0 = rightarm.C0:lerp(CFrame.new(-0.894797444, 0.499994755, -0.884407938, -0.173648208, 0.984807789, 5.63021053e-16, -1.17435857e-08, -2.07071071e-09, -1, -0.984807789, -0.173648208, 1.19247492e-08),i)
  556.                     leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.99884319, 0.499994755, -0.0676252171, 0.173648104, 0.984807789, -2.29646726e-16, -1.17435857e-08, 2.07070983e-09, -1, -0.984807789, 0.173648104, 1.19247492e-08),i)
  557.                     humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, -2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, -2.98023259e-08),i)
  558.                     head.C0 = head.C0:lerp(CFrame.new(0,1.5,0) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0),i)
  559.                     bowweld.C0 = bowweld.C0:lerp(CFrame.new(0.293217361, -0.826516032, -0.160610914, -0.00115961628, 0.969188333, 0.246318251, -0.0485697649, -0.246082276, 0.968031287, 0.998813629, -0.0108410139, 0.047358349),i)
  560.                     heartbeat:wait()
  561.                 end
  562.                 Part10:FindFirstChild("Draw"):Play()
  563.                 Part10:FindFirstChild("Pull"):Play()
  564.                 for i = 0,0.4 , 0.013 do
  565.                     Weld11.C0 = Weld11.C0:lerp(CFrame.new(-0.246711969, -0.141335964, 3.56790638, 1, -2.38188306e-07, 1.04681806e-06, 2.38188363e-07, 1, -4.47034836e-08, -1.04681806e-06, 4.47037323e-08, 1),i)
  566.                     Weld12.C0 = Weld12.C0:lerp(CFrame.new(1.47826672, -0.0493994951, 1.07595611, 0.500695527, 0.0321566686, -0.865025997, -0.0194662362, 0.9994753, 0.025887249, 0.865404606, 0.00387716922, 0.501058817),i)
  567.                     Weld13.C0 = Weld13.C0:lerp(CFrame.new(-1.46920466, -0.0429246426, 0.955044627, 0.500589669, -0.0250340402, 0.865309954, 0.0185732804, 0.99966228, 0.0181764141, -0.865482807, 0.00697285682, 0.500890195),i)
  568.                     Weld14.C0 = Weld14.C0:lerp(CFrame.new(-0.568446875, -0.0150352716, 0.190874338, 0.939685702, -0.0250341985, 0.341089666, 0.0259120166, 0.99966234, 0.00198432803, -0.341028899, 0.00697381794, 0.940026999),i)
  569.                     Weld15.C0 = Weld15.C0:lerp(CFrame.new(0.590162039, -0.0175971985, 0.243911505, 0.906299114, 0.0321579464, -0.421385735, -0.0307954811, 0.999475241, 0.0100404918, 0.421491206, 0.00387714058, 0.906824291),i)
  570.                     arrowweld.C0 = arrowweld.C0:lerp(CFrame.new(-0.914628386, -2.71789265, -0.250019312, 0.939692616, 0.342020184, 1.12055378e-08, -0.342020184, 0.939692616, -4.07848155e-09, -1.19247501e-08, -9.31193506e-16, 0.999994516),i)
  571.                     rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.47216046, 0.499994755, -0.533246994, 0.342020154, 0.939692616, 2.60344364e-16, -1.12055991e-08, 4.07850465e-09, -1, -0.939692616, 0.342020154, 1.19247501e-08),i)
  572.                     leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.99884319, 0.499994755, -0.0676252171, 0.173648104, 0.984807789, -2.29646726e-16, -1.17435857e-08, 2.07070983e-09, -1, -0.984807789, 0.173648104, 1.19247492e-08),i)
  573.                     humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, -2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, -2.98023259e-08),i)
  574.                     head.C0 = head.C0:lerp(CFrame.new(0, 1.49238729, -0.0868240818, -4.30473257e-08, -7.59032215e-09, 1, -0.173646316, 0.984808147, 1.49160099e-15, -0.984808087, -0.173646316, -4.37113847e-08),i)
  575.                     bowweld.C0 = bowweld.C0:lerp(CFrame.new(0.293217361, -0.826516032, -0.160610914, -0.00115961628, 0.969188333, 0.246318251, -0.0485697649, -0.246082276, 0.968031287, 0.998813629, -0.0108410139, 0.047358349),i)
  576.                     heartbeat:wait()
  577.                 end
  578.                 arrowon = true
  579.             end
  580.         end
  581.         cando = true
  582.     end
  583. end
  584. function ragdollkill(character)
  585.     local victimshumanoid = character:findFirstChildOfClass("Humanoid")
  586.     if not character:findFirstChild("UpperTorso") then
  587.         character.Archivable = true
  588.         for i,v in pairs(character:GetChildren()) do
  589.             if v.ClassName == "Sound" then
  590.                 v:remove()
  591.             end
  592.             for q,w in pairs(v:GetChildren()) do
  593.                 if w.ClassName == "Sound" then
  594.                     w:remove()
  595.                 end
  596.             end
  597.         end
  598.         local ragdoll = character:Clone()
  599.         ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  600.         if ragdoll:findFirstChild("Health") then
  601.             if ragdoll:findFirstChild("Health").ClassName == "Script" then
  602.                 ragdoll:findFirstChild("Health").Disabled = true
  603.             end
  604.         end
  605.         for i,v in pairs(character:GetChildren()) do
  606.             if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
  607.                 v:destroy()
  608.             end
  609.         end
  610.         for i,v in pairs(character:GetChildren()) do
  611.             if v.ClassName == "Accessory" then
  612.                 local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  613.                 if attachment1 then
  614.                     for q,w in pairs(character:GetChildren()) do
  615.                         if w.ClassName == "Part" then
  616.                             local attachment2 = w:findFirstChild(attachment1.Name)
  617.                             if attachment2 then
  618.                                 local hinge = Instance.new("HingeConstraint", v.Handle)
  619.                                 hinge.Attachment0 = attachment1
  620.                                 hinge.Attachment1 = attachment2
  621.                                 hinge.LimitsEnabled = true
  622.                                 hinge.LowerAngle = 0
  623.                                 hinge.UpperAngle = 0
  624.                             end
  625.                         end
  626.                     end
  627.                 end
  628.             end
  629.         end
  630.         ragdoll.Parent = workspace
  631.         if ragdoll:findFirstChild("Right Arm") then
  632.             local glue = Instance.new("Glue", ragdoll.Torso)
  633.             glue.Part0 = ragdoll.Torso
  634.             glue.Part1 = ragdoll:findFirstChild("Right Arm")
  635.             glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  636.             glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  637.             local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
  638.             limbcollider.Size = Vector3.new(1.4,1,1)
  639.             limbcollider.Shape = "Cylinder"
  640.             limbcollider.Transparency = 1
  641.             limbcollider.Name = "LimbCollider"
  642.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  643.             limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
  644.             limbcolliderweld.Part1 = limbcollider
  645.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  646.         end
  647.         if ragdoll:findFirstChild("Left Arm") then
  648.             local glue = Instance.new("Glue", ragdoll.Torso)
  649.             glue.Part0 = ragdoll.Torso
  650.             glue.Part1 = ragdoll:findFirstChild("Left Arm")
  651.             glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  652.             glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  653.             local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
  654.             limbcollider.Size = Vector3.new(1.4,1,1)
  655.             limbcollider.Shape = "Cylinder"
  656.             limbcollider.Name = "LimbCollider"
  657.             limbcollider.Transparency = 1
  658.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  659.             limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
  660.             limbcolliderweld.Part1 = limbcollider
  661.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  662.         end
  663.         if ragdoll:findFirstChild("Left Leg") then
  664.             local glue = Instance.new("Glue", ragdoll.Torso)
  665.             glue.Part0 = ragdoll.Torso
  666.             glue.Part1 = ragdoll:findFirstChild("Left Leg")
  667.             glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  668.             glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  669.             local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
  670.             limbcollider.Size = Vector3.new(1.4,1,1)
  671.             limbcollider.Shape = "Cylinder"
  672.             limbcollider.Name = "LimbCollider"
  673.             limbcollider.Transparency = 1
  674.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  675.             limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
  676.             limbcolliderweld.Part1 = limbcollider
  677.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  678.         end
  679.         if ragdoll:findFirstChild("Right Leg") then
  680.             local glue = Instance.new("Glue", ragdoll.Torso)
  681.             glue.Part0 = ragdoll.Torso
  682.             glue.Part1 = ragdoll:findFirstChild("Right Leg")
  683.             glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  684.             glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  685.             local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
  686.             limbcollider.Size = Vector3.new(1.4,1,1)
  687.             limbcollider.Shape = "Cylinder"
  688.             limbcollider.Name = "LimbCollider"
  689.             limbcollider.Transparency = 1
  690.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  691.             limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
  692.             limbcolliderweld.Part1 = limbcollider
  693.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  694.         end
  695.         if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
  696.             local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
  697.             HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  698.             local connection = Instance.new('HingeConstraint', ragdoll["Head"])
  699.             connection.LimitsEnabled = true
  700.             connection.Attachment0 = ragdoll.Torso.NeckAttachment
  701.             connection.Attachment1 = HeadAttachment
  702.             connection.UpperAngle = 60
  703.             connection.LowerAngle = -60
  704.         elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
  705.             local hedweld = Instance.new("Weld", ragdoll.Torso)
  706.             hedweld.Part0 = ragdoll.Torso
  707.             hedweld.Part1 = ragdoll.Head
  708.             hedweld.C0 = CFrame.new(0,1.5,0)
  709.         end
  710.         game.Debris:AddItem(ragdoll, 30)
  711.         wait(0.7)
  712.         if ragdoll:findFirstChildOfClass("Humanoid") then
  713.             ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  714.         end
  715.         if ragdoll:findFirstChild("HumanoidRootPart") then
  716.             ragdoll:findFirstChild("HumanoidRootPart"):destroy()
  717.         end
  718.     elseif character:findFirstChild("UpperTorso") then
  719.         character.Archivable = true
  720.         for i,v in pairs(character:GetChildren()) do
  721.             if v.ClassName == "Sound" then
  722.                 v:remove()
  723.             end
  724.             for q,w in pairs(v:GetChildren()) do
  725.                 if w.ClassName == "Sound" then
  726.                     w:remove()
  727.                 end
  728.             end
  729.         end
  730.         local ragdoll = character:Clone()
  731.         ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  732.         if ragdoll:findFirstChild("Health") then
  733.             if ragdoll:findFirstChild("Health").ClassName == "Script" then
  734.                 ragdoll:findFirstChild("Health").Disabled = true
  735.             end
  736.         end
  737.         for i,v in pairs(character:GetChildren()) do
  738.             if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
  739.                 v:destroy()
  740.             end
  741.         end
  742.         for i,v in pairs(character:GetChildren()) do
  743.             if v.ClassName == "Accessory" then
  744.                 local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  745.                 if attachment1 then
  746.                     for q,w in pairs(character:GetChildren()) do
  747.                         if w.ClassName == "Part" or w.ClassName == "MeshPart" then
  748.                             local attachment2 = w:findFirstChild(attachment1.Name)
  749.                             if attachment2 then
  750.                                 local hinge = Instance.new("HingeConstraint", v.Handle)
  751.                                 hinge.Attachment0 = attachment1
  752.                                 hinge.Attachment1 = attachment2
  753.                                 hinge.LimitsEnabled = true
  754.                                 hinge.LowerAngle = 0
  755.                                 hinge.UpperAngle = 0
  756.                             end
  757.                         end
  758.                     end
  759.                 end
  760.             end
  761.         end
  762.         ragdoll.Parent = workspace
  763.         local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
  764.         Humanoid.PlatformStand = true
  765.         local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
  766.             local connection = Instance.new('BallSocketConstraint', limb)
  767.             connection.LimitsEnabled = true
  768.             connection.Attachment0 = attachementone
  769.             connection.Attachment1 = attachmenttwo
  770.             connection.TwistLimitsEnabled = true
  771.             connection.TwistLowerAngle = twistlower
  772.             connection.TwistUpperAngle = twistupper
  773.             local limbcollider = Instance.new("Part", limb)
  774.             limbcollider.Size = Vector3.new(0.1,1,1)
  775.             limbcollider.Shape = "Cylinder"
  776.             limbcollider.Transparency = 1
  777.             limbcollider:BreakJoints()
  778.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  779.             limbcolliderweld.Part0 = limb
  780.             limbcolliderweld.Part1 = limbcollider
  781.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  782.         end
  783.         local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
  784.             local connection = Instance.new('HingeConstraint', limb)
  785.             connection.LimitsEnabled = true
  786.             connection.Attachment0 = attachementone
  787.             connection.Attachment1 = attachmenttwo
  788.             connection.LimitsEnabled = true
  789.             connection.LowerAngle = lower
  790.             connection.UpperAngle = upper
  791.             local limbcollider = Instance.new("Part", limb)
  792.             limbcollider.Size = Vector3.new(0.1,1,1)
  793.             limbcollider.Shape = "Cylinder"
  794.             limbcollider.Transparency = 1
  795.             limbcollider:BreakJoints()
  796.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  797.             limbcolliderweld.Part0 = limb
  798.             limbcolliderweld.Part1 = limbcollider
  799.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  800.         end
  801.         local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
  802.         HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  803.         makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
  804.         makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
  805.         makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
  806.         makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
  807.         makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
  808.         --
  809.         makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
  810.         makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
  811.         makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
  812.         --
  813.         makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
  814.         makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
  815.         makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
  816.         --
  817.         makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
  818.         makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
  819.         makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
  820.         for i,v in pairs(Humanoid.Parent:GetChildren()) do
  821.             if v.ClassName == "Accessory" then
  822.                 local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  823.                 if attachment1 then
  824.                     for q,w in pairs(Humanoid.Parent:GetChildren()) do
  825.                         if w.ClassName == "Part" then
  826.                             local attachment2 = w:findFirstChild(attachment1.Name)
  827.                             if attachment2 then
  828.                                 local hinge = Instance.new("HingeConstraint", v.Handle)
  829.                                 hinge.Attachment0 = attachment1
  830.                                 hinge.Attachment1 = attachment2
  831.                                 hinge.LimitsEnabled = true
  832.                                 hinge.LowerAngle = 0
  833.                                 hinge.UpperAngle = 0
  834.                             end
  835.                         end
  836.                     end
  837.                 end
  838.             end
  839.         end
  840.         for i,v in pairs(ragdoll:GetChildren()) do
  841.             for q,w in pairs(v:GetChildren()) do
  842.                 if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] then
  843.                     w:destroy()
  844.                 end
  845.             end
  846.         end
  847.         if ragdoll:findFirstChild("HumanoidRootPart") then
  848.             ragdoll.HumanoidRootPart.Anchored = true
  849.             ragdoll.HumanoidRootPart.CanCollide = false
  850.         end
  851.         if ragdoll:findFirstChildOfClass("Humanoid") then
  852.             ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  853.         end
  854.         game.Debris:AddItem(ragdoll, 30)
  855.     end
  856. end
  857. bowremote.OnServerEvent:connect(dosomething)
  858. function ded()
  859.     cord2:destroy()
  860.     cord1:destroy()
  861.     owner.Character:BreakJoints()
  862.     ragdollkill(owner.Character)
  863. end
  864. owner.Character:findFirstChildOfClass("Humanoid").Died:connect(ded)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement