Город МОСКОВСКИЙ
00:01:03

RAGDOLL SCRIPT | ROBLOX STUDIO 2021

Аватар
Игровые Турниры
Просмотры:
45
Дата загрузки:
30.10.2023 06:14
Длительность:
00:01:03
Категория:
Обучение

Описание

today I will show you a ragdoll script I made.
and also stop saying that my video is sus stop it

code-
function CreateJoints(Cha)
if Cha then
for i,v in pairs(Cha:GetDescendants()) do
if v and v:IsA("Motor6D") then
local Att1 = Instance.new("Attachment",v.Part0)
local Att2 = Instance.new("Attachment",v.Part1)

Att1.CFrame = v.C0
Att2.CFrame = v.C1

local BallSoket = Instance.new("BallSocketConstraint")
BallSoket.Name = "RC"
BallSoket.Attachment0 = Att1
BallSoket.Attachment1 = Att2
BallSoket.TwistLimitsEnabled = true
BallSoket.LimitsEnabled = true

BallSoket.Parent = v.Parent

v.Enabled = false
elseif v and v.Name == "HumanoidRootPart" then
v.CanCollide = false
end
end
end
end

game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(cha)
local hum = cha:FindFirstChild("Humanoid")
hum.BreakJointsOnDeath = false
hum.Died:Connect(function()
CreateJoints(cha)
end)
end)
end)

Рекомендуемые видео