I have been trying to create a puzzle game, but it has certain parts that delete other parts but don't delete the player, but if you accidentally remove an important part in the game its impossible, so I want to make a dropper that generates a union when you click a part.
COMMUNITY QUESTION
how to make a part generator with a clickdetector?
1 answer
Alright, I don't know whether you have tried it yourself but here is the script. (If you didn't, you are not a "Real" Game Dev:
--Put this script inside click detector
local clickDetect = script.Parent
clickDetect.MouseClick:Connect(function()
local partToBeCreated = Instance.new("Part")
partToBeCreated.Parent = game.Workspace
partToBeCreated.Position = Vector3.new(0, 0, 0) -- Enter where it would be created
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Hey, this website is not a request site. We will help you solve scripting issues, not create entire scripts.