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

Why isn't this working?

Asked by 9 years ago

Why does this say that "Position is not a valid member of model"?

            local Spawns = game.ServerStorage.DFPos:GetChildren()
            local Spawn = Spawns[math.random(1,#Spawns)]
            local Items = game.ServerStorage.Zoan:GetChildren()
            local Item = Items[math.random(1,#Items)]
            local Clone = Item:Clone()
            Clone.Parent = game.Workspace
            print("Df spawn")
            Clone.Position = Spawn.Position
            wait(1)
            Clone.Anchored = false
            game.Debris:AddItem(Clone, 30)
0
Are the children of DFPos spawnlocations or models? models do not have a position property. TheDeadlyPanther 2460 — 9y
0
They are parts. So it gets their position ZeroCrimson 35 — 9y
0
Are children on 'Zoan' parts too? LetThereBeCode 360 — 9y
0
If either Zoan or DFPos contain any Model objects, this can error. 1waffle1 2908 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

It is pretty weird, i can help. Well, if it says that Position isn't a vaild member of a model that means you can't move a model, you just select every parts from the model and move them, moving to the Solution.

SOLUTION Instead of selecting the Clone/Spawn, select every impromant Part in Clone/Spawn

If this didn't work then i am very sorry.

0
use moveto bartekrabit 38 — 6y
Ad

Answer this question