#some bug
33 messages · Page 1 of 1 (latest)
and it doesnt do that?
you can also put the starterCharacter inside of starterPlayer
and call it StarterCharacter
and roblox will automatically make that the starterCharacter
oh I get your now, you want a new rig but let players keep there accessories
what is going wrong is you set all the accessories to the rig in the starterPlayer, but that rig is for every player
so you create a starterCharacter with all the accessories of the first player and paste that into the starterPlayer
then every other player will also use that
yeah and I just explained why that happens
yeah
there is a function for this
you will need to go through all the parts of the chracter and replace them with this function
do you know basic scripting
yeah ok
let me see If I can create something
game.Players.PlayerAdded:Connect(function (player)
player.CharacterAdded:Connect(function (character)
local starterCharacter = game.ServerStorage.StarterCharacter:Clone()
for i,v in pairs(starterCharacter:GetChildren()) do
character.Humanoid:ReplaceBodyPartR15(v.Name, v)
end
end)
end)
I just created this in a code editor
so dont know if it works
make sure that the starterCharacter only exists out of bodyparts
and nothing else
no humanoid
just put the script in serverscriptservice
ok thanks
game.Players.PlayerAdded:Connect(function (player)
player.CharacterAdded:Connect(function (character)
local starterCharacter = game.ServerStorage.StarterCharacter:Clone()
for i,v in pairs(starterCharacter:GetChildren()) do
character.Humanoid:ReplaceBodyPartR15(Enum.BodyPartR15[v.Name], v)
end
end)
end)
changed it
yeah remove the humanoidrootpart from the startercharacter
that doesnt need to be replaced
is the character r6 or r15
game.Players.PlayerAdded:Connect(function (player)
player.CharacterAppearanceLoaded:Connect(function (character)
local starterCharacter = game.ServerStorage.StarterCharacter:Clone()
local humanoid = character:WaitForChild("Humanoid")
for i,v in pairs(starterCharacter:GetChildren()) do
humanoid:ReplaceBodyPartR15(Enum.BodyPartR15[v.Name], v)
end
end)
end)
this should work
nice