clickdetector = script.Parent.ClickDetector
newPart = Instance.new('Part', workspace)
newPart:Destroy()
function createPushBlock():
newPart = newPart
newPart.BrickColor = 'Neon orange'
end
clickdetector.MouseClick:Connect(createPushBlock())
I tried to search information in devforum, but i didn’t find a useful solution
I expected it to spawn a new part once part is clicked
New contributor