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

Model SetPrimaryPart because no PrimaryPart has been set error?

Model:SetPrimaryCFrame() failed because no PrimaryPart has been set, or the PrimaryPart no longer exists. Please set Model.PrimaryPart before using this.

Gun.Parent=game.Workspace

RunS.RenderStepped:connect(function()
Gun:SetPrimaryPartCFrame(Cam.CFrame*CFrame.new(0,-1,2))
end)

I SET THE PRIMARY PART OF THE GUN ALREADY AND SET THE PRIMARY PART IN THE SCRIPT ALSO? Why do I keep getting this error???

1 comment

0

When I press play, and some seconds later my whole gun model dissapears, and then I get this error, why???

1 answer

✓ Accepted answer

Because your tool is unanchored and probably non-collidable, it falls under the map and the primary part gets removed.

2 comments

0

OH MY GOODNESS THANK YOU! Well my gun is actually model and I forgot to anchor the primary part, thank you very much!

0

You also fixed another problem of mine lol, glad you answered.

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