I want to know if a button could temporally remove a part but make a (model).Part (destroy) go with a click decotor.
COMMUNITY QUESTION
Is there a way to make a (model).Part (destroy) aqquire with a click decotor? and if so link script?
1 answer
local click = path.to.clickdetector
click.MouseClick:Connect(function()
local clone = click.Parent:Clone()
clone.Parent = game:GetService("ReplicatedStorage")
clone.Name = "PartClone"
click.Parent:Destroy()
end)
then you can just grab the temporarily removed part by doing
local part = game:GetService("ReplicatedStorage"):WaitForChild("PartClone")
This discussion is preserved as it was. New answers, comments, and votes are closed.
