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

How do I fix "_____ is not a valid member of Model "____" "?

Asked by 3 years ago
local XStuds = 1
local YStuds = 0.5
local ZStuds = -170

local function Stage(Value)
    local Value = game.Workspace.Stage.Value:Clone() -- This is the line of code that breaks
    Value.Parent = game.Workspace
    Value.Position = Vector3.new(XStuds, YStuds, ZStuds)
    XStuds = XStuds + 58
    YStuds = YStuds + 58
    ZStuds = ZStuds + 58
    print(Value)
end

Stage(Part1)
Stage(Part2)
Stage(Part3)
Stage(Part4)
Stage(Part5)
Stage(Part6)

wait(3)

while wait(15) do
    Part1.Parent = game.Workspace
    Part1.Position = Vector3.new(0, 0, 0)
    studs = studs + 58
    Part2.Parent = game.Workspace
    Part2.Position = Vector3.new(0, 0, 0)
    studs = studs + 58
end 
0
what is "Stage" ? jerryisgod29 176 — 3y
0
Is "Value" a child of "Stage"? robloxtitanic584 92 — 3y
0
Stage is a model Greninja90290 4 — 3y

Answer this question