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

Help me weld the other parts in the model?

Asked by
neoG457 315 Moderation Voter
9 years ago
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?

0
Make a weld object inside the primarypart for all the other parts in the model. EzraNehemiah_TF2 3552 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

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.

0
A Copy of Zords Answer :P woodengop 1134 — 9y
Ad

Answer this question