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

how to make a part generator with a clickdetector? [closed]

Asked by 4 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.

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.

0
Hey, this website is not a request site. We will help you solve scripting issues, not create entire scripts. User#34929 0 — 4y

Closed as Not Constructive by Nguyenlegiahung, IAmNotTheReal_MePipe, and killerbrenden

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 4 years ago

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)
Ad