BRO THANK YOU SO MUCH FOR MAKING THIS SO EASY AND SIMPLE! I following cuz i really value teachers like you. please don't ever stop making this awesome content man!
May i ask if we could make affects for every single weapon a way for a roblox ava dies? If you could make a tut it would help alot you really helped me since im a begginer ^^!
Script: game.Players.PlayerAdded:Connect(function(Player) Player.CharacterAdded:Connect(function(Character) local Humanoid = Character:WaitForChild("Humanoid") Humanoid.BreakJointsOnDeath = false Humanoid.Died:Connect(function() for i, part in pairs(Character:GetDescendants()) do if part:IsA("Motor6D") then local Socket = Instance.new("BallSocketConstraint") local a1 = Instance.new("Attachment") local a2 = Instance.new("Attachment") a1.Parent = part.Part0 a2.Parent = part.Part1 Socket.Parent = part.Parent Socket.Attachment0 = a1 Socket.Attachment1 = a2 a1.CFrame = part.C0 a2.CFrame = part.C1 Socket.LimitsEnabled = true Socket.TwistLimitsEnabled = true part:Destroy() end end end) end) end)
those who really don't feeling like to code game.Players.PlayerAdded:Connect(function(Player) Player.CharacterAdded:Connect(function(Character) local Humanoid = Character:WaitForChild("Humanoid") Humanoid.BreakJointsOnDeath = false Humanoid.Died:Connect(function() for i, part in pairs(Character:GetDescendants()) do if part:IsA("Motor6D") then local Attachment0 =Instance.new("Attachment") local Attachment1 =Instance.new("Attachment") Attachment0.Parent = part.Part0 Attachment1.Parent = part.Part1 Attachment0.CFrame = part.C0 Attachment1.CFrame = part.C1
local Constraint = Instance.new("BallSocketConstraint") Constraint.Attachment0 = Attachment0 Constraint.Attachment1 = Attachment1 part.Parent = part.Parent if part.Parent.Name == "Head" then Constraint.LimitsEnabled = true Constraint.TwistLimitsEnabled = true Constraint.UpperAngle = 45 Constraint.TwistLowerAngle = -75 Constraint.TwistUpperAngle = 4 end part.Parent.CanCollide = true part:Destroy()
Hey DevMelon, There Is A Problem With The Script That I Solved The Script Correctly But If I Reset My Character, It Just Doesn't Falls Apart And It Turns Into A Unanchored Mannequin. Here Are The Problems: 1.RunService:UnbindFromRenderStep removed different functions with same reference name utility-focus-state-inspect- 2 times. 2. Cframe is not a valid member of Attachment "Workspace..LeftLowerArm.Attachment" - Server - RagdollOnDeath:13 3. Cframe is not a valid member of Attachment "Workspace..LeftLowerArm.Attachment" - Server - RagdollOnDeath:13 4. Cframe is not a valid member of Attachment "Workspace.>MyUsername?LeftLowerArm.Attachment" - Server - RagdollOnDeath:13 Please Solve These Problems.
BRO THANK YOU SO MUCH FOR MAKING THIS SO EASY AND SIMPLE! I following cuz i really value teachers like you. please don't ever stop making this awesome content man!
It’s me mightybroyoung thank you for making this video! Now my game can be more realistic
I have a problem, my character parts (arms and legs) cant collide even tough i make them collide through a script
May i ask if we could make affects for every single weapon a way for a roblox ava dies?
If you could make a tut it would help alot you really helped me since im a begginer ^^!
Wdym?
@@devmelonroblox so like I mean maybe in mm2 or kat if they die by a kind of effect they freeze/turn into a duck LOL
@idolicdahvslemon ohhhh ok
2nd!!!!!!!
Yeeeeee
Script:
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
local Humanoid = Character:WaitForChild("Humanoid")
Humanoid.BreakJointsOnDeath = false
Humanoid.Died:Connect(function()
for i, part in pairs(Character:GetDescendants()) do
if part:IsA("Motor6D") then
local Socket = Instance.new("BallSocketConstraint")
local a1 = Instance.new("Attachment")
local a2 = Instance.new("Attachment")
a1.Parent = part.Part0
a2.Parent = part.Part1
Socket.Parent = part.Parent
Socket.Attachment0 = a1
Socket.Attachment1 = a2
a1.CFrame = part.C0
a2.CFrame = part.C1
Socket.LimitsEnabled = true
Socket.TwistLimitsEnabled = true
part:Destroy()
end
end
end)
end)
end)
Thank you
ty very much :)
Firist , no one can stop me 😎
Fr
D:
@@Achamo IAYYY
Does it work on R6?
Yes it does!
@@devmelonrobloxeven better
@@devmelonroblox then why isn't it working :(
@@devmelonroblox IT ISN'T working on the arms only and on the head too
@@ste4k2333make sure there’s no errors that may be why!
The head still somehow spins all over the place.. How can i fix this?
im the 100th like!
@@RogueStudiosRoblox let’s gooo 👏
Whenever i reset it just makes my whole body stiff how can I fix this?
also is there a way to make it work on npcs as well, Thanks!
im abusing this new power...
those who really don't feeling like to code
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
local Humanoid = Character:WaitForChild("Humanoid")
Humanoid.BreakJointsOnDeath = false
Humanoid.Died:Connect(function()
for i, part in pairs(Character:GetDescendants()) do
if part:IsA("Motor6D") then
local Attachment0 =Instance.new("Attachment")
local Attachment1 =Instance.new("Attachment")
Attachment0.Parent = part.Part0
Attachment1.Parent = part.Part1
Attachment0.CFrame = part.C0
Attachment1.CFrame = part.C1
local Constraint = Instance.new("BallSocketConstraint")
Constraint.Attachment0 = Attachment0
Constraint.Attachment1 = Attachment1
part.Parent = part.Parent
if part.Parent.Name == "Head" then
Constraint.LimitsEnabled = true
Constraint.TwistLimitsEnabled = true
Constraint.UpperAngle = 45
Constraint.TwistLowerAngle = -75
Constraint.TwistUpperAngle = 4
end
part.Parent.CanCollide = true
part:Destroy()
end
end
end)
end)
end)
ty!
thanks bro
your a life saver!!
thanks
Nice
NOO EVIL DEV MELONNN!
it doesnt work my character stays straight up and dont ragdoll
That happens when you reset while standing sometimes
@@devmelonroblox but it always happen
you have to turn off platformstand in the humanoid so it doesn't stand up
does it work with r6
Yes
3rd :)
It doesnt work on R6
it doesn't work, my character gets dismantled bruh
I agree it doesn’t work
Do u get any errors?
Check the output
"NOOOOOOOOOOOOO"
down below
Hey DevMelon, There Is A Problem With The Script That I Solved The Script Correctly But If I Reset My Character, It Just Doesn't Falls Apart And It Turns Into A Unanchored Mannequin.
Here Are The Problems:
1.RunService:UnbindFromRenderStep removed different functions with same reference name utility-focus-state-inspect- 2 times.
2. Cframe is not a valid member of Attachment "Workspace..LeftLowerArm.Attachment" - Server - RagdollOnDeath:13
3. Cframe is not a valid member of Attachment "Workspace..LeftLowerArm.Attachment" - Server - RagdollOnDeath:13
4. Cframe is not a valid member of Attachment "Workspace.>MyUsername?LeftLowerArm.Attachment" - Server - RagdollOnDeath:13
Please Solve These Problems.
on the second problem change the Cframe in the script to CFrame