I'm having a problem with the Owner's startercharacter

  1. What do you want to achieve?

To avoid other players from having my character

  1. What is the issue?

There is a code that’s supposed to prevent others from having the character, but somehow they still load in as the character, here is the code.

Example:

  1. It’s supposed to look like this.
    Screen Shot 2022-12-10 at 3.06.09 PM
    but somehow the other player loads in as the morph, like this.
    Screen Shot 2022-12-10 at 3.06.40 PM

just pretend the vader character on the left isn’t broken, that isn’t why this post was made.

The reason is you are putting the character model in StarterPlayer, which would change it for everyone as well.

If you want to have the player load in as that character. First, you would need to clone it into workspace, then set the player’s character as it.

StarterCharacter will cause all players to use that character model as their in-game character. For this to apply to only one user, you will need to implement a system for that.

What do you think I should change “StarterPlayer” to?

(I’m pretty new to coding really, I apologize)

Does your game have CharacterAutoLoads on ? ( It can be found in the Players service )

If the player doesn’t auto load, simply make a clone of the Custom Character, then put it in Workspace and set the player’s Character to it.

I will try that, but I should thank everyone for their suggestions + possible solutions! :+1: :smile:

It will look like this ( This only works for when they join the game )

-- The Custom Character
local CustomCharacter = game:GetService("ServerStorage"):WaitForChild("Custom Character")

function GiveCustomCharacter(Player: Player)
	-- Clone it
	local Cloned = CustomCharacter:Clone()
	Cloned.Parent = workspace
	Cloned.Name = Player.Name
	-- Set Character
	Player.Character = Cloned
end

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(player)
	-- Check UserId
	if player.UserId == 2399137744 then
		GiveCustomCharacter(player)
	else
		player:LoadCharacter()
	end
end)

It Works! but now it affects the tools + animations in the game, sadly also the other players couldn’t respawn due to the characterautoload thing, but I still got to achieve my topic though!

1 Like

When it makes the new character it doesn’t have the StarterCharacterScripts inside of it. So, maybe you can clone them and put it inside of the Character?

1 Like