-- Server Script (ضعه في StarterCharacterScripts أو ServerScriptService) local function ragdollCharacter(character) local humanoid = character:FindFirstChild("Humanoid") if not humanoid then return end humanoid:ChangeState(Enum.HumanoidStateType.Physics) humanoid.PlatformStand = true for _, joint in pairs(character:GetChildren()) do if joint:IsA("Motor6D") then local socket = Instance.new("BallSocketConstraint") local a0 = Instance.new("Attachment") local a1 = Instance.new("Attachment") a0.Parent = joint.Part0 a1.Parent = joint.Part1 socket.Parent = joint.Part0 socket.Attachment0 = a0 socket.Attachment1 = a1 socket.LimitsEnabled = true socket.UpperAngle = 90 joint.Enabled = false end end end -- مثال على كيفية استخدامه: game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) -- مثال: يصير ragdoll بعد 3 ثواني wait(3) ragdollCharacter(character) end) end)