You can write your topic however you want, but you need to answer these questions:
-
**What do you want to achieve? I want it to be set up to where if the person gets hit on the 5 hit they get ragdolled
-
What is the issue? Include screenshots / videos if possible!
I’ve been looking at a few ragdoll scripts but they always are just for is a person resets.
https://gyazo.com/0d69b07d2939ff0e64f1391057f96053 -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you! Here’s the script for the death on ragdoll. Idk how to add it to my combat script.
local humanoid = script.Parent:WaitForChild('Humanoid')
humanoid.BreakJointsOnDeath = false
for index,joint in pairs(script.Parent:GetDescendants()) do
if joint:IsA('Motor6D') then
local socket = Instance.new('BallSocketConstraint')
local a1 = Instance.new('Attachment')
local a2 = Instance.new('Attachment')
a1.Parent = joint.Part0
a2.Parent = joint.Part1
socket.Parent = joint.Parent
socket.Attachment0 = a1
socket.Attachment1 = a2
a1.CFrame = joint.c0
a2.CFrame = joint.c1
socket.LimitsEnabled = true
socket.TwistLimitsEnabled = true
joint:Destroy()
local bv = Instance.new("BodyVelocity")
bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
bv.Velocity = script.Parent.HumanoidRootPart.CFrame.lookVector * -100
bv.Parent = script.Parent.HumanoidRootPart
game.Debris:AddItem(bv, .1)
end
end
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.