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

Model SetPrimaryPart because no PrimaryPart has been set error?

Asked by 6 years ago

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???

0
When I press play, and some seconds later my whole gun model dissapears, and then I get this error, why??? Mr_MilkysButler 47 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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

0
OH MY GOODNESS THANK YOU! Well my gun is actually model and I forgot to anchor the primary part, thank you very much! Mr_MilkysButler 47 — 6y
0
You also fixed another problem of mine lol, glad you answered. Mr_MilkysButler 47 — 6y
Ad

Answer this question