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

Where do I put this script?

Asked by
InteWv 0
10 years ago
print("Ragdoll Physics Loaded")
function OnEntered(Player)
    while Player.Character == nil do 
        wait()
    end
    wait(1)
    Player.Changed:connect(function(Property)
        if Property == "Character" then
            if Player.Character then
                local Mods = script:GetChildren()
                for X = 1, # Mods do
                    if Mods[X].className == "Script" or Mods[X].className == "LocalScript" then
                        local S = Mods[X]:Clone()
                        S.Disabled = false
                        S.Parent = Player.Character
                    end
                end
            end
        end
    end)
    local Mods = script:GetChildren()
    for X = 1, # Mods do
        if Mods[X].className == "Script" or Mods[X].className == "LocalScript" then
            local S = Mods[X]:Clone()
            S.Disabled = false
            S.Parent = Player.Character
        end
    end
end
game.Players.ChildAdded:connect(OnEntered)

1 answer

Log in to vote
0
Answered by 10 years ago

Workspace

Ad

Answer this question