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!
Do
part.Postion = pasterBlock.Positon