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

Help me weld the other parts in the model?

local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()


Mouse.KeyDown:connect(function(key)
if key == "p" then

local RinkakuModel = game.ReplicatedStorage.WorkspaceRinkakuModel:Clone() 
game.ReplicatedStorage.WorkspaceRinkakuModel.PrimaryPart = game.ReplicatedStorage.WorkspaceRinkakuModel.Primary


local   w = Instance.new('Weld')
w.Part0 = RinkakuModel.PrimaryPart
w.Part1 = Player.Character.Torso
w.Parent = RinkakuModel.PrimaryPart
w.C0 = CFrame.new(0, 0, 0)
w.C0 = CFrame.Angles(0, 0, 0)*CFrame.new(0, 0, 0)

RinkakuModel.Parent = Player.Character
RinkakuModel:SetPrimaryPartCFrame(Player.Character.Torso.CFrame*CFrame.new(0, 0, 0))
game.ReplicatedStorage.WorkspaceRinkakuModel:MakeJoints()
RinkakuModel:MakeJoints()
RinkakuModel.Name = Player.Name

end
	end)
	

All of the model should weld onto my torso when I press p but for some reason only the PrimaryPart in the model welds to my torso even though it is said that when the PrimaryPart in a model is moved so does the rest of the model. So how do I move all of the model from the Primary Part, Is it because it isnt welded to the rest of the parts in the model?

1 comment

0

Make a weld object inside the primarypart for all the other parts in the model.

1 answer

The best way to do this would be to create welds between your primarypart, and the other parts of the model, because that is the part that ROBLOX will "move".

If you liked the answer, upvote and accept.

1 comment

0

A Copy of Zords Answer :P

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