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

my script runs properly when going through it the first time but the second time i get an error?

Asked by 6 years ago

16:11:26.077 - The Parent property of Model1 is locked, current parent: NULL, new parent Workspace

model1 = game.ReplicatedStorage.Model1:Clone()
model2 = game.ReplicatedStorage.Model2:Clone()

repeat
    model1.Parent = workspace
    model1:MakeJoints()
    wait ("10")
    if model1 then
        model1:destroy()
    end
    wait ("10")
    model2.Parent = workspace
    model2:MakeJoints()
    wait ("10")
    if model2 then
        model2:destroy()
    end
    wait ("10")

until false
0
bump SLENDERMANCLONE -27 — 6y
0
Try to store your model in ServerStorage OMG_Gaming404 73 — 6y
0
it does the same thing SLENDERMANCLONE -27 — 6y

1 answer

Log in to vote
0
Answered by
H4X0MSYT 536 Moderation Voter
6 years ago

I have a a feeling MakeJoints() locks the parent. Something you are doing is locking it.

Ad

Answer this question