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

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

Asked by 6 years ago

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

Log in to vote
0
Answered by 6 years ago

Do

part.Postion = pasterBlock.Positon
0
Or do Part.CFrame = pasterBlock.Positon NerdBow_Gaming 41 — 6y
0
You misspelled "position" but I fixed it, thank you for helping! MrWafflesNBacon -1 — 6y
0
Wait I did It? NerdBow_Gaming 41 — 6y
Ad

Answer this question