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

MakeJoints() not working??

Asked by 10 years ago

I'm trying to make joints on a boat when someone buys it, and when they buy it, it clones the boat into workspace. script:

    l = game.ReplicatedStorage.Digny1:Clone()
    l:MakeJoints()
    l.Parent = game.Workspace

^^^ part of the script. This still wont make it work.

1
I'm not sure if this is a solution, but parenting it before making the joints. BlueTaslem 18071 — 10y
0
Well I guess it was! Thx lol. Operation_Meme 890 — 10y

1 answer

Log in to vote
2
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
10 years ago

The problem is that you're attempting to MakeJoints on a model that is nil. You need to parent the model before using the MakeJoints method.

local l = game.ReplicatedStorage.Digny1:Clone()
l.Parent = workspace
l:MakeJoints();
Ad

Answer this question