Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Trying to make a controllable ragdoll character but have problem with the script, any idea?

Asked by 5 years ago

I was trying to make a controllable Ragdoll character for a game I am making. Since I only know the basic of scripting and don't know how to make these stuff, I got a Rogdoll Death Script and modify it.

It look like: Rogdoll Picture

Obviously the code was intended to make your character a Rogdoll Character when you died, so I modify it to run the script when the player spawn.

When I test it out, I got no error, so I assume it might work, but the character stay the same and was just like a normal character like the script wasn't there.

Any Ideas?


Modified Script:

R15Ragdoll (Script)

--Put in ServerScriptService

local Players = game:GetService("Players")

  game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character)
        script.RagdollClient:Clone().Parent = character

        Players.PlayerAdded:Connect(function()
            character.UpperTorso:SetNetworkOwner(player)
        end)
    end)
end)

RagdollClient (Local Script)

PastePin Link

I used a pastebin for the code because it was long and the code format is kind of hard to use.

Can anyone help?

0
Do you disable the script by itself and enable the script once its cloned into the Character? Mr_Unlucky 1085 — 5y
0
I did not RainbowBeastYT 85 — 4y

Answer this question