Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --By Rufus14
- --owner = game.Players[script.Parent.Name]
- NLS([[
- for i,v in pairs(game.ReplicatedStorage:GetChildren()) do
- if v.Name == "RufusBowRemote" then
- v:destroy()
- end
- end
- mouse = game:GetService("Players").LocalPlayer:GetMouse()
- actionremote = game.ReplicatedStorage:WaitForChild("RufusBowRemote")
- function loadarrow()
- actionremote:FireServer("shoot", mouse.Hit.p)
- end
- function switch(key)
- key = key:lower()
- if key == "q" then
- actionremote:FireServer("equip")
- end
- end
- function lookat()
- 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))
- end
- game:GetService("RunService").RenderStepped:connect(lookat)
- mouse.KeyDown:connect(switch)
- mouse.Button1Down:connect(loadarrow)
- ]], owner.Character)
- wait(0.6)
- heartbeat = game:GetService("RunService").Heartbeat
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- Weld3 = Instance.new("Weld")
- Part4 = Instance.new("Part")
- Weld5 = Instance.new("Weld")
- Part6 = Instance.new("Part")
- Part7 = Instance.new("Part")
- Part8 = Instance.new("Part")
- Part9 = Instance.new("Part")
- Part10 = Instance.new("Part")
- Weld11 = Instance.new("Weld")
- Weld12 = Instance.new("Weld")
- Weld13 = Instance.new("Weld")
- Weld14 = Instance.new("Weld")
- Weld15 = Instance.new("Weld")
- Model0.Name = "Bow"
- Model0.Parent = mas
- Model0.PrimaryPart = Part10
- Part1.Name = "bone1"
- Part1.Parent = Model0
- 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)
- Part1.Orientation = Vector3.new(-2.78999996, -175.899994, 135.009995)
- Part1.Position = Vector3.new(0.53203249, 3.30761766, 0.759689212)
- Part1.Rotation = Vector3.new(-177.199997, -4.09000015, -44.7900009)
- Part1.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part1.Size = Vector3.new(1.3499999, 0.25, 0.25)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Dark orange")
- Part1.Material = Enum.Material.Wood
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Dark orange")
- Part1.Shape = Enum.PartType.Cylinder
- Part2.Name = "bone3"
- Part2.Parent = Model0
- 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)
- Part2.Orientation = Vector3.new(-16.7000008, 169.470001, 137.520004)
- Part2.Position = Vector3.new(-1.33914518, 1.46726966, 0.58671093)
- Part2.Rotation = Vector3.new(-163.029999, 10.0799999, -45.5400009)
- Part2.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part2.Size = Vector3.new(1.3499999, 0.25, 0.25)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Dark orange")
- Part2.Material = Enum.Material.Wood
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Dark orange")
- Part2.Shape = Enum.PartType.Cylinder
- Weld3.Name = "lineholder2weld"
- Weld3.Parent = Part2
- Weld3.C0 = CFrame.new(-0.525000215, 0, 9.53674316e-07, 1, 0, -2.98023224e-08, 0, 1, 0, -2.98023224e-08, 0, 1)
- Weld3.Part0 = Part2
- Weld3.Part1 = Part7
- Weld3.part1 = Part7
- Part4.Name = "bone4"
- Part4.Parent = Model0
- 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)
- Part4.Orientation = Vector3.new(11.2799997, -161.619995, 136.089996)
- Part4.Position = Vector3.new(1.41664314, 4.21582508, 0.523832917)
- Part4.Rotation = Vector3.new(168.130005, -18.0100002, -47.6300011)
- Part4.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part4.Size = Vector3.new(1.3499999, 0.25, 0.25)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.BrickColor = BrickColor.new("Dark orange")
- Part4.Material = Enum.Material.Wood
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.brickColor = BrickColor.new("Dark orange")
- Part4.Shape = Enum.PartType.Cylinder
- Weld5.Name = "lineholderweld"
- Weld5.Parent = Part4
- Weld5.C0 = CFrame.new(0.525000155, 0, 2.38418579e-07, 1, 0, 2.98023224e-08, 0, 1, 0, 2.98023224e-08, 0, 1)
- Weld5.Part0 = Part4
- Weld5.Part1 = Part6
- Weld5.part1 = Part6
- Part6.Name = "lineholder"
- Part6.Parent = Model0
- 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)
- Part6.Orientation = Vector3.new(11.2799997, -161.619995, 136.089996)
- Part6.Position = Vector3.new(1.75308609, 4.57291842, 0.336975068)
- Part6.Rotation = Vector3.new(168.130005, -18.0100002, -47.6300011)
- Part6.Color = Color3.new(0.972549, 0.85098, 0.427451)
- Part6.Size = Vector3.new(0.100000001, 0.25999999, 0.25999999)
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.BrickColor = BrickColor.new("Daisy orange")
- Part6.Material = Enum.Material.Fabric
- Part6.TopSurface = Enum.SurfaceType.Smooth
- Part6.brickColor = BrickColor.new("Daisy orange")
- Part6.Shape = Enum.PartType.Cylinder
- Part7.Name = "lineholder2"
- Part7.Parent = Model0
- 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)
- Part7.Orientation = Vector3.new(-16.7000008, 169.470001, 137.520004)
- Part7.Position = Vector3.new(-1.7012136, 1.12768483, 0.4157902)
- Part7.Rotation = Vector3.new(-163.029999, 10.0799999, -45.5400009)
- Part7.Color = Color3.new(0.972549, 0.85098, 0.427451)
- Part7.Size = Vector3.new(0.100000001, 0.25999999, 0.25999999)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.BrickColor = BrickColor.new("Daisy orange")
- Part7.Material = Enum.Material.Fabric
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.brickColor = BrickColor.new("Daisy orange")
- Part7.Shape = Enum.PartType.Cylinder
- Part8.Name = "bone2"
- Part8.Parent = Model0
- 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)
- Part8.Orientation = Vector3.new(-2.78999996, -175.899994, 135.009995)
- Part8.Position = Vector3.new(-0.423690557, 2.35440302, 0.78149581)
- Part8.Rotation = Vector3.new(-177.199997, -4.09000015, -44.7900009)
- Part8.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part8.Size = Vector3.new(1.3499999, 0.25, 0.25)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.BrickColor = BrickColor.new("Dark orange")
- Part8.Material = Enum.Material.Wood
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.brickColor = BrickColor.new("Dark orange")
- Part8.Shape = Enum.PartType.Cylinder
- Part9.Name = "lineparent"
- Part9.Parent = Model0
- 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)
- Part9.Orientation = Vector3.new(-2.78999996, -175.899994, 135.009995)
- Part9.Position = Vector3.new(0.0256283022, 2.85051131, 0.372089386)
- Part9.Rotation = Vector3.new(-177.199997, -4.09000015, -44.7900009)
- Part9.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part9.Transparency = 1
- Part9.Size = Vector3.new(0.100000001, 0.25, 0.25)
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.BrickColor = BrickColor.new("Dark orange")
- Part9.CanCollide = false
- Part9.Material = Enum.Material.Wood
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.brickColor = BrickColor.new("Dark orange")
- Part9.Shape = Enum.PartType.Cylinder
- Part10.Name = "bowparent"
- Part10.Parent = Model0
- 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)
- Part10.Orientation = Vector3.new(-2.78999996, -175.899994, 135.009995)
- Part10.Position = Vector3.new(0.0541709289, 2.83101034, 0.770592511)
- Part10.Rotation = Vector3.new(-177.199997, -4.09000015, -44.7900009)
- Part10.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part10.Transparency = 1
- Part10.Size = Vector3.new(2.69999933, 0.25, 0.25)
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.BrickColor = BrickColor.new("Dark orange")
- Part10.Material = Enum.Material.Wood
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.brickColor = BrickColor.new("Dark orange")
- Part10.Shape = Enum.PartType.Cylinder
- Weld11.Name = "lineparentweld"
- Weld11.Parent = Part10
- Weld11.C0 = CFrame.new(-1.1920929e-07, 0, 0.399999619, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld11.Part0 = Part10
- Weld11.Part1 = Part9
- Weld11.part1 = Part9
- Weld12.Name = "bone4weld"
- Weld12.Parent = Part10
- Weld12.C0 = CFrame.new(1.94633532, 0, 0.216129065, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736)
- Weld12.Part0 = Part10
- Weld12.Part1 = Part4
- Weld12.part1 = Part4
- Weld13.Name = "bone3weld"
- Weld13.Parent = Part10
- Weld13.C0 = CFrame.new(-1.9463346, 0, 0.216129303, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736)
- Weld13.Part0 = Part10
- Weld13.Part1 = Part2
- Weld13.part1 = Part2
- Weld14.Name = "bone2weld"
- Weld14.Parent = Part10
- Weld14.C0 = CFrame.new(-0.675000012, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld14.Part0 = Part10
- Weld14.Part1 = Part8
- Weld14.part1 = Part8
- Weld15.Name = "bone1weld"
- Weld15.Parent = Part10
- Weld15.C0 = CFrame.new(0.675000072, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld15.Part0 = Part10
- Weld15.Part1 = Part1
- Weld15.part1 = Part1
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- Model0.Parent = owner.Character
- for i,v in pairs(Model0:GetChildren()) do
- if v.ClassName == "Part" then
- v.Locked = true
- v.CanCollide = false
- end
- end
- local bowweld = Instance.new("Weld", owner.Character.Torso)
- bowweld.Part0 = owner.Character["Left Arm"]
- bowweld.Part1 = Part10
- 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)
- print("Bow script by Rufus14")
- local bowremote = Instance.new("RemoteEvent", game.ReplicatedStorage)
- bowremote.Name = "RufusBowRemote"
- local pull = Instance.new("Sound", Part10)
- pull.SoundId = "rbxassetid://609348868"
- pull.Name = "Pull"
- local draw = Instance.new("Sound", Part10)
- draw.SoundId = "rbxassetid://609338076"
- draw.Name = "Draw"
- local release = Instance.new("Sound", Part10)
- release.SoundId = "rbxassetid://609348009"
- release.Name = "Release"
- local release1 = Instance.new("Sound", Part10)
- release1.SoundId = "rbxassetid://173979241"
- release1.Name = "Release2"
- local arrowhitsound = Instance.new("Sound", Part10)
- arrowhitsound.SoundId = "rbxassetid://214755079"
- arrowhitsound.Name = "ArrowHit"
- local arrowhitflesh = Instance.new("Sound", Part10)
- arrowhitflesh.SoundId = "rbxassetid://2782131222"
- arrowhitflesh.Name = "ArrowHitFlesh"
- function checkifnil()
- while wait(0.1) do
- if not Part10:FindFirstChild("Pull") then
- local pull = Instance.new("Sound", Part10)
- pull.SoundId = "rbxassetid://609348868"
- pull.Name = "Pull"
- end
- if not Part10:FindFirstChild("Draw") then
- local draw = Instance.new("Sound", Part10)
- draw.SoundId = "rbxassetid://609338076"
- draw.Name = "Draw"
- end
- if not Part10:FindFirstChild("Release") then
- local release = Instance.new("Sound", Part10)
- release.SoundId = "rbxassetid://609348009"
- release.Name = "Release"
- end
- if not Part10:FindFirstChild("Release2") then
- local release1 = Instance.new("Sound", Part10)
- release1.SoundId = "rbxassetid://173979241"
- release1.Name = "Release2"
- end
- if not Part10:FindFirstChild("ArrowHit") then
- local arrowhitsound = Instance.new("Sound", Part10)
- arrowhitsound.SoundId = "rbxassetid://214755079"
- arrowhitsound.Name = "ArrowHit"
- end
- if not Part10:FindFirstChild("ArrowHitFlesh") then
- local arrowhitsound = Instance.new("Sound", Part10)
- arrowhitsound.SoundId = "rbxassetid://2782131222"
- arrowhitsound.Name = "ArrowHitFlesh"
- end
- end
- end
- function paracord()
- cord1 = Instance.new("Part", Model0)
- cord1.Name = "paracord"
- cord1.BrickColor = BrickColor.new("Daisy orange")
- cord1.Material = "Fabric"
- cord1.CanCollide = false
- cord1.Anchored = true
- --
- cord2 = Instance.new("Part", Model0)
- cord2.Name = "paracord2"
- cord2.BrickColor = BrickColor.new("Daisy orange")
- cord2.Material = "Fabric"
- cord2.CanCollide = false
- cord2.Anchored = true
- --
- cord2.Locked = true
- cord1.Locked = true
- while heartbeat:wait() do
- cord1.Size = Vector3.new((Part9.Position - Part7.Position).magnitude,0.05,0.05)
- cord1.CFrame = CFrame.new(Part7.Position, Part9.Position) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
- cord1.CFrame = cord1.CFrame * CFrame.new((Part9.Position - Part7.Position).magnitude/2,0,0)
- --
- cord2.Size = Vector3.new((Part9.Position - Part6.Position).magnitude,0.05,0.05)
- cord2.CFrame = CFrame.new(Part6.Position, Part9.Position) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
- cord2.CFrame = cord2.CFrame * CFrame.new((Part9.Position - Part6.Position).magnitude/2,0,0)
- end
- end
- spawn(paracord)
- spawn(checkifnil)
- cando = true
- arrowon = false
- function dosomething(player, what, mousehitp)
- if player == owner and cando then
- cando = false
- if what == "shoot" then
- if arrowon then
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- local arr0w = Instance.new("Part")
- local SpecialMesh1 = Instance.new("SpecialMesh")
- arr0w.Name = "arrow"
- arr0w.Parent = mas
- arr0w.CFrame = CFrame.new(-3.05000257, 2.549999, 0.0500027686, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- arr0w.Position = Vector3.new(-3.05000257, 2.549999, 0.0500027686)
- arr0w.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- arr0w.Size = Vector3.new(0.100000001, 4.49999857, 0.100000016)
- arr0w.BottomSurface = Enum.SurfaceType.Smooth
- arr0w.BrickColor = BrickColor.new("Really black")
- arr0w.TopSurface = Enum.SurfaceType.Smooth
- arr0w.brickColor = BrickColor.new("Really black")
- SpecialMesh1.Parent = arr0w
- SpecialMesh1.MeshId = "rbxassetid://925549018"
- SpecialMesh1.Scale = Vector3.new(6, 8, 6)
- SpecialMesh1.MeshType = Enum.MeshType.FileMesh
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- arr0w.CanCollide = false
- arr0w.Name = "placeholder"
- if Model0:findFirstChild("arrow") then
- arr0w.CFrame = Model0:findFirstChild("arrow").CFrame
- Model0:findFirstChild("arrow"):destroy()
- arr0w.Name = "arrow"
- end
- arr0w.CFrame = CFrame.new(arr0w.Position, mousehitp) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
- local safe = Instance.new("Model", owner.Character)
- arr0w.Parent = safe
- local velocity = Instance.new("BodyVelocity", arr0w)
- velocity.Velocity = arr0w.CFrame.upVector * -250
- velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- Part10:FindFirstChild("Release"):Play()
- Part10:FindFirstChild("Release2"):Play()
- for i = 0,1 , 1 do
- Weld11.C0 = Weld11.C0:lerp(CFrame.new(-1.1920929e-07, 0, 0.399999619, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
- 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)
- 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)
- Weld14.C0 = Weld14.C0:lerp(CFrame.new(-0.675000012, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
- Weld15.C0 = Weld15.C0:lerp(CFrame.new(0.675000072, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
- heartbeat:wait()
- end
- local canhityes = true
- local function arrowhit(part)
- 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
- canhityes = false
- arr0w.Parent = part.Parent
- local arrowhitweld = Instance.new("Weld", part)
- arrowhitweld.C0 = part.CFrame:toObjectSpace(arr0w.CFrame)
- arrowhitweld.Part0 = part
- arrowhitweld.Part1 = arr0w
- arrowhitweld.Name = "arrowweld"
- velocity:destroy()
- Part10:FindFirstChild("ArrowHit"):Play()
- if part.Parent:findFirstChildOfClass("Humanoid") then
- Part10:FindFirstChild("ArrowHitFlesh"):Play()
- if part.Name == "Head" then
- for i,v in pairs(part.Parent:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "MeshPart" then
- for q,w in pairs(v:GetChildren()) do
- if w.ClassName == "Motor6D" or w.ClassName == "Weld" and w.Name ~= "arrowweld" then
- w:destroy()
- end
- end
- end
- end
- ragdollkill(part.Parent)
- else
- local random = math.random(60,120)
- if part.Parent:findFirstChildOfClass("Humanoid").MaxHealth > 300 then
- part.Parent:findFirstChildOfClass("Humanoid").MaxHealth = 300
- end
- if part.Parent:findFirstChildOfClass("Humanoid").Health <= random then
- for i,v in pairs(part.Parent:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "MeshPart" then
- for q,w in pairs(v:GetChildren()) do
- if w.ClassName == "Motor6D" or w.ClassName == "Weld" and w.Name ~= "arrowweld" then
- w:destroy()
- end
- end
- end
- end
- ragdollkill(part.Parent)
- else
- part.Parent:findFirstChildOfClass("Humanoid").Health = part.Parent:findFirstChildOfClass("Humanoid").Health - random
- end
- end
- else
- game.Debris:AddItem(arr0w, 10)
- end
- end
- end
- arr0w.Touched:connect(arrowhit)
- wait(0.5)
- for i = 0,0.7 , 0.015 do
- if owner.Character.Torso:findFirstChild("RightArmWeld") then
- owner.Character.Torso:findFirstChild("RightArmWeld").C0 = owner.Character.Torso:findFirstChild("RightArmWeld").C0:lerp(CFrame.new(1.5,0,0),i)
- end
- if owner.Character.Torso:findFirstChild("LeftArmWeld") then
- owner.Character.Torso:findFirstChild("LeftArmWeld").C0 = owner.Character.Torso:findFirstChild("LeftArmWeld").C0:lerp(CFrame.new(-1.5,0,0),i)
- end
- if owner.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld") then
- owner.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld").C0 = owner.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld").C0:lerp(CFrame.new(0,0,0),i)
- end
- if owner.Character.Torso:findFirstChild("HeadWeld") then
- owner.Character.Torso:findFirstChild("HeadWeld").C0 = owner.Character.Torso:findFirstChild("HeadWeld").C0:lerp(CFrame.new(0,1.5,0),i)
- end
- 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)
- heartbeat:wait()
- end
- if owner.Character.Torso:findFirstChild("RightArmWeld") then
- owner.Character.Torso:findFirstChild("RightArmWeld"):destroy()
- end
- if owner.Character.Torso:findFirstChild("LeftArmWeld") then
- owner.Character.Torso:findFirstChild("LeftArmWeld"):destroy()
- end
- if owner.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld") then
- owner.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld"):destroy()
- end
- if owner.Character.Torso:findFirstChild("HeadWeld") then
- owner.Character.Torso:findFirstChild("HeadWeld"):destroy()
- end
- arrowon = false
- else
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- local arr0w = Instance.new("Part")
- local SpecialMesh1 = Instance.new("SpecialMesh")
- arr0w.Name = "arrow"
- arr0w.Parent = mas
- arr0w.CFrame = CFrame.new(-3.05000257, 2.549999, 0.0500027686, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- arr0w.Position = Vector3.new(-3.05000257, 2.549999, 0.0500027686)
- arr0w.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- arr0w.Size = Vector3.new(0.100000001, 4.49999857, 0.100000016)
- arr0w.BottomSurface = Enum.SurfaceType.Smooth
- arr0w.BrickColor = BrickColor.new("Really black")
- arr0w.TopSurface = Enum.SurfaceType.Smooth
- arr0w.brickColor = BrickColor.new("Really black")
- SpecialMesh1.Parent = arr0w
- SpecialMesh1.MeshId = "rbxassetid://925549018"
- SpecialMesh1.Scale = Vector3.new(6, 8, 6)
- SpecialMesh1.MeshType = Enum.MeshType.FileMesh
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- arr0w.Parent = Model0
- arr0w.CanCollide = false
- local arrowweld = Instance.new("Weld", arr0w)
- arrowweld.Part0 = owner.Character["Right Arm"]
- arrowweld.Part1 = arr0w
- arrowweld.C0 = CFrame.new(0,-arr0w.Size.y/1.6,0)
- local rightarm = Instance.new("Weld", owner.Character.Torso)
- rightarm.Part0 = owner.Character.Torso
- rightarm.Part1 = owner.Character["Right Arm"]
- rightarm.C0 = CFrame.new(1.5,0,0)
- rightarm.Name = "RightArmWeld"
- for i = 0,0.5 , 0.014 do
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,1,0) * CFrame.fromEulerAnglesXYZ(0,0,math.pi),i)
- heartbeat:wait()
- end
- local leftarm = Instance.new("Weld", owner.Character.Torso)
- leftarm.Part0 = owner.Character.Torso
- leftarm.Part1 = owner.Character["Left Arm"]
- leftarm.C0 = CFrame.new(-1.5,0,0)
- leftarm.Name = "LeftArmWeld"
- local head = Instance.new("Weld", owner.Character.Torso)
- head.Part0 = owner.Character.Torso
- head.Part1 = owner.Character.Head
- head.C0 = CFrame.new(0,1.5,0)
- head.Name = "HeadWeld"
- local humanoidrootpart = Instance.new("Weld", owner.Character.HumanoidRootPart)
- humanoidrootpart.Part0 = owner.Character.HumanoidRootPart
- humanoidrootpart.Part1 = owner.Character.Torso
- humanoidrootpart.Name = "HumanoidRootPartWeld"
- for i = 0,0.6 , 0.013 do
- 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)
- 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)
- 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)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, -2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, -2.98023259e-08),i)
- head.C0 = head.C0:lerp(CFrame.new(0,1.5,0) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0),i)
- 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)
- heartbeat:wait()
- end
- Part10:FindFirstChild("Draw"):Play()
- Part10:FindFirstChild("Pull"):Play()
- for i = 0,0.4 , 0.013 do
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, -2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, -2.98023259e-08),i)
- 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)
- 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)
- heartbeat:wait()
- end
- arrowon = true
- end
- end
- cando = true
- end
- end
- function ragdollkill(character)
- local victimshumanoid = character:findFirstChildOfClass("Humanoid")
- if not character:findFirstChild("UpperTorso") then
- character.Archivable = true
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Sound" then
- v:remove()
- end
- for q,w in pairs(v:GetChildren()) do
- if w.ClassName == "Sound" then
- w:remove()
- end
- end
- end
- local ragdoll = character:Clone()
- ragdoll:findFirstChildOfClass("Humanoid").Health = 0
- if ragdoll:findFirstChild("Health") then
- if ragdoll:findFirstChild("Health").ClassName == "Script" then
- ragdoll:findFirstChild("Health").Disabled = true
- end
- end
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
- v:destroy()
- end
- end
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Accessory" then
- local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
- if attachment1 then
- for q,w in pairs(character:GetChildren()) do
- if w.ClassName == "Part" then
- local attachment2 = w:findFirstChild(attachment1.Name)
- if attachment2 then
- local hinge = Instance.new("HingeConstraint", v.Handle)
- hinge.Attachment0 = attachment1
- hinge.Attachment1 = attachment2
- hinge.LimitsEnabled = true
- hinge.LowerAngle = 0
- hinge.UpperAngle = 0
- end
- end
- end
- end
- end
- end
- ragdoll.Parent = workspace
- if ragdoll:findFirstChild("Right Arm") then
- local glue = Instance.new("Glue", ragdoll.Torso)
- glue.Part0 = ragdoll.Torso
- glue.Part1 = ragdoll:findFirstChild("Right Arm")
- glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
- limbcollider.Size = Vector3.new(1.4,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Transparency = 1
- limbcollider.Name = "LimbCollider"
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- end
- if ragdoll:findFirstChild("Left Arm") then
- local glue = Instance.new("Glue", ragdoll.Torso)
- glue.Part0 = ragdoll.Torso
- glue.Part1 = ragdoll:findFirstChild("Left Arm")
- glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
- limbcollider.Size = Vector3.new(1.4,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Name = "LimbCollider"
- limbcollider.Transparency = 1
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- end
- if ragdoll:findFirstChild("Left Leg") then
- local glue = Instance.new("Glue", ragdoll.Torso)
- glue.Part0 = ragdoll.Torso
- glue.Part1 = ragdoll:findFirstChild("Left Leg")
- glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
- limbcollider.Size = Vector3.new(1.4,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Name = "LimbCollider"
- limbcollider.Transparency = 1
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- end
- if ragdoll:findFirstChild("Right Leg") then
- local glue = Instance.new("Glue", ragdoll.Torso)
- glue.Part0 = ragdoll.Torso
- glue.Part1 = ragdoll:findFirstChild("Right Leg")
- glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
- limbcollider.Size = Vector3.new(1.4,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Name = "LimbCollider"
- limbcollider.Transparency = 1
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- end
- if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
- local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
- HeadAttachment.Position = Vector3.new(0, -0.5, 0)
- local connection = Instance.new('HingeConstraint', ragdoll["Head"])
- connection.LimitsEnabled = true
- connection.Attachment0 = ragdoll.Torso.NeckAttachment
- connection.Attachment1 = HeadAttachment
- connection.UpperAngle = 60
- connection.LowerAngle = -60
- elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
- local hedweld = Instance.new("Weld", ragdoll.Torso)
- hedweld.Part0 = ragdoll.Torso
- hedweld.Part1 = ragdoll.Head
- hedweld.C0 = CFrame.new(0,1.5,0)
- end
- game.Debris:AddItem(ragdoll, 30)
- wait(0.7)
- if ragdoll:findFirstChildOfClass("Humanoid") then
- ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
- end
- if ragdoll:findFirstChild("HumanoidRootPart") then
- ragdoll:findFirstChild("HumanoidRootPart"):destroy()
- end
- elseif character:findFirstChild("UpperTorso") then
- character.Archivable = true
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Sound" then
- v:remove()
- end
- for q,w in pairs(v:GetChildren()) do
- if w.ClassName == "Sound" then
- w:remove()
- end
- end
- end
- local ragdoll = character:Clone()
- ragdoll:findFirstChildOfClass("Humanoid").Health = 0
- if ragdoll:findFirstChild("Health") then
- if ragdoll:findFirstChild("Health").ClassName == "Script" then
- ragdoll:findFirstChild("Health").Disabled = true
- end
- end
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
- v:destroy()
- end
- end
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Accessory" then
- local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
- if attachment1 then
- for q,w in pairs(character:GetChildren()) do
- if w.ClassName == "Part" or w.ClassName == "MeshPart" then
- local attachment2 = w:findFirstChild(attachment1.Name)
- if attachment2 then
- local hinge = Instance.new("HingeConstraint", v.Handle)
- hinge.Attachment0 = attachment1
- hinge.Attachment1 = attachment2
- hinge.LimitsEnabled = true
- hinge.LowerAngle = 0
- hinge.UpperAngle = 0
- end
- end
- end
- end
- end
- end
- ragdoll.Parent = workspace
- local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
- Humanoid.PlatformStand = true
- local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
- local connection = Instance.new('BallSocketConstraint', limb)
- connection.LimitsEnabled = true
- connection.Attachment0 = attachementone
- connection.Attachment1 = attachmenttwo
- connection.TwistLimitsEnabled = true
- connection.TwistLowerAngle = twistlower
- connection.TwistUpperAngle = twistupper
- local limbcollider = Instance.new("Part", limb)
- limbcollider.Size = Vector3.new(0.1,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Transparency = 1
- limbcollider:BreakJoints()
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = limb
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
- end
- local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
- local connection = Instance.new('HingeConstraint', limb)
- connection.LimitsEnabled = true
- connection.Attachment0 = attachementone
- connection.Attachment1 = attachmenttwo
- connection.LimitsEnabled = true
- connection.LowerAngle = lower
- connection.UpperAngle = upper
- local limbcollider = Instance.new("Part", limb)
- limbcollider.Size = Vector3.new(0.1,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Transparency = 1
- limbcollider:BreakJoints()
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = limb
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
- end
- local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
- HeadAttachment.Position = Vector3.new(0, -0.5, 0)
- makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
- makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
- makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
- makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
- makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
- --
- makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
- makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
- makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
- --
- makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
- makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
- makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
- --
- makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
- makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
- makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
- for i,v in pairs(Humanoid.Parent:GetChildren()) do
- if v.ClassName == "Accessory" then
- local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
- if attachment1 then
- for q,w in pairs(Humanoid.Parent:GetChildren()) do
- if w.ClassName == "Part" then
- local attachment2 = w:findFirstChild(attachment1.Name)
- if attachment2 then
- local hinge = Instance.new("HingeConstraint", v.Handle)
- hinge.Attachment0 = attachment1
- hinge.Attachment1 = attachment2
- hinge.LimitsEnabled = true
- hinge.LowerAngle = 0
- hinge.UpperAngle = 0
- end
- end
- end
- end
- end
- end
- for i,v in pairs(ragdoll:GetChildren()) do
- for q,w in pairs(v:GetChildren()) do
- if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] then
- w:destroy()
- end
- end
- end
- if ragdoll:findFirstChild("HumanoidRootPart") then
- ragdoll.HumanoidRootPart.Anchored = true
- ragdoll.HumanoidRootPart.CanCollide = false
- end
- if ragdoll:findFirstChildOfClass("Humanoid") then
- ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
- end
- game.Debris:AddItem(ragdoll, 30)
- end
- end
- bowremote.OnServerEvent:connect(dosomething)
- function ded()
- cord2:destroy()
- cord1:destroy()
- owner.Character:BreakJoints()
- ragdollkill(owner.Character)
- end
- owner.Character:findFirstChildOfClass("Humanoid").Died:connect(ded)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement