Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why isn't this working?

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)

4 comments

0

Are the children of DFPos spawnlocations or models? models do not have a position property.

0

They are parts. So it gets their position

0

Are children on 'Zoan' parts too?

0

If either Zoan or DFPos contain any Model objects, this can error.

1 answer

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.

1 comment

0

use moveto

This discussion is preserved as it was. New answers, comments, and votes are closed.