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

How can I make a clone go to the workspace and go to the part's position?

I have two parts: a block and a paster block, I want the paster block to clone the block and make the cloned block go to the workspace and go to the position of the paster block.

Here is my script:

MiningArea = script.Parent.Parent.Parent
PartPos = script.Parent.Position
function CClone(Xadd, Yadd, Zadd)
	local part = game.Lighting.Block:Clone()
	part.Parent = MiningArea.Blocks
	part.Position = Vector3.new(PartPos.X, PartPos.Y, PartPos.Z)
	script.Parent.Position = Vector3.new(PartPos.X + Xadd, PartPos.Y + Yadd, PartPos.Z + Zadd)
end

Please help me!

1 answer

✓ Accepted answer

Do

part.Postion = pasterBlock.Positon

3 comments

0

Or do Part.CFrame = pasterBlock.Positon

0

You misspelled "position" but I fixed it, thank you for helping!

0

Wait I did It?

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