It won't find the position, I'm not sure why

I’m trying to make a Tycoon and I want it to spawn parts but I’m not sure why it’s not working…It’s works on one dropper but when I put it on a different dropper it doesn’t work???

local block = game.ReplicatedStorage.Blocks.plastic1x1x1
local position = script.Parent.SpawnBlocks.Position
wait(1.1)


while script.Parent.Parent.Parent.Parent == game.Workspace do
	wait(.1)
	local DupBlock = block:Clone()
	DupBlock.Position = position - Vector3.new(0,1,0)
	DupBlock.Parent = workspace
end

This is what the error says:
Position is not a valid member of Script "Workspace.Tycoon1.ThingsToBeMade.Dropper2.SpawnBlocks

1 Like

Please send an image of your explorer hierarchy

You cannot modify the position value, or any Vector3 values. For this, use CFrame instead:

DupBlock.CFrame = position - Vector3.new(0,1,0)
1 Like

Parent the new part first before you change the position.


I move the dropper from “Tycoon1Storage” to “ThingsToBeMade” Folder
and the
Explorer
“GiveValues” is the animation for the tycoon

That’s wrong, don’t tell people that.

1 Like

SpawnBlocks is both a script and a part. Rename one of them and try again.

1 Like

I feel so stupid rn I am going to go commit school

1 Like

Oh. Apologies, I’m not very experienced with scripting.

1 Like