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

Custom character doesnt load animations or scripts?

Asked by 3 years ago

How would I go about improving this script? Since right now it works but the new player doesn't load animations and doesn't have any of the scripts in starter character scripts. Any help is much appreciated!

local value = 0

game.Players.PlayerAdded:connect(function(plr)
    value = 0
end)


game.Players.PlayerAdded:connect(function(plr) 
    plr.CharacterAdded:connect(function(char) 
        if plr.Name == "azaabbie" and value == 0 then
            local model = game.ReplicatedStorage.Dummy
            local model2 = model:Clone()
            model2.Parent = game.Workspace
            model2.PrimaryPart.CFrame = plr.Character.PrimaryPart.CFrame 
            plr.Character = model2
            model2.Humanoid.HipHeight = 3.8
            value = 1
        end

    end)

end)

Answer this question