Hello biocommand here with one question, I am trying to make something like a stamper tool, but as easy as possible so people can understand it´s code, heres the code:
function onClicked(playerWhoClicked) local brick = Instance.new("Part", game.Workspace) -- Creating the brick, and placing it into the Workspace brick.Name = "NewBrick" -- This name has to correspond with the name of your brick on the map brick.Size = Vector3.new(10, 10, 10) -- This is the size to which you want to change your brick end script.Parent.ClickDetector.MouseClick:connect(onClicked)
please tell me what I did wrong :( (I put this in a normal script I will try it on a local script)
function onClicked(playerWhoClicked) local brick = Instance.new("Part", game.Workspace) -- Creating the brick, and placing it into the Workspace brick.Name = "NewBrick" -- This name has to correspond with the name of your brick on the map brick.Size = Vector3.new(10, 10, 10) -- This is the size to which you want to change your brick brick.CFrame = Vector3.new(100, 0, 50) --change to ur Position... end script.Parent.ClickDetector.MouseClick:connect(onClicked)
Edit: I forgot that it's not Pos. it's CFrame...