Welds not working

Here are the lines of code responsible for cloning the rocket

local rocket_clone = ReplicatedStorage.Rocket:Clone()
rocket_clone.Parent = game.Workspace
rocket_clone.TrailPart.Position = script.Parent.Parent.DoomRocket.FiringPart.Position

The rock model itself is properly welded and no part inside of it is anchored.

However, every time I clone it, the welds seem to “break” and the TrailPart (basepart) floats in midair.

Screen Shot 2022-03-14 at 5.35.42 PM

Screen Shot 2022-03-14 at 5.35.55 PM

Any help would be greatly appreciated! :smiley:

2 Likes

Solved by using a PrimaryPart

rocket_clone.PrimaryPart = rocket_clone.TrailPart
rocket_clone:SetPrimaryPartCFrame(CFrame.new(script.Parent.Parent.DoomRocket.FiringPart.Position))

https://developer.roblox.com/en-us/api-reference/property/Model/PrimaryPart

1 Like