I want to click a part and make it spawn a brick. I’ve tried tinkering around but it’s just not working. I’ve read through it but it seems right.
local partSpawner = script.Parent
local function buttonClicked()
local e = Instance.new("Part")
e.Parent = workspace
e.Position = Vector3.new(-116, 7.5, -121)
end
script.Parent.ClickDetector:Connect(buttonClicked)