Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I need to make a primary part but my model has to be in starterplayer?

in the output It says

09:10:47.681 - Model:GetPrimaryCFrame() failed because no PrimaryPart has been set, or the PrimaryPart no longer exists. Please set Model.PrimaryPart before using this. 09:10:47.682 - A primary part should be set so that the character can be spawned correctly.

I searched how to do it on this website but there was just a script error when I changed the code from workspace.model.PrimaryPart = workspace.model.Part to

StarterPlayer.StarterCharacter.PrimaryPart = StarterPlayer.StarterCharacter.

help me out if you can it will help with my game and fix a lot of bugs.

1 comment

0

I'm confused as to what you are trying to accomplish. You cannot set StarterPlayer as a primary part because it is not a BasePart. If you are trying to set it to a part IN starter player, then you need a reference to that part.

1 answer

✓ Accepted answer

You can set the PrimaryPart before even pressing Play. Go to StarterPlayer and select the model. Open up Properties and search for PrimaryPart. Once you've found the property, click to set it's value. It will be similar to an object value, where you need to click on the model's HumanoidRootPart (or whatever PrimaryPart you want) to set it's value.

This discussion is preserved as it was. New answers, comments, and votes are closed.