Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make a part delete itself, but then re appear?

HOW ON EARTH DO I DO THIS??

2 comments

0

You could do so when the game runs the part gets transparent, then put a wait, and transparent again

0

So like...

3 answers

✓ Accepted answer

Try this

local part = workspace.Part
part.Parent = nil

--Anytime you can set it to workspace again. with this
part.Parent = workspace
local start = game.Workspace.Part

start.Transperency = 1
start.CanCollide = false
wait(5)
start.Transperency = 0
start.CanCollide = true

dis look good?

2 comments

0

Yeah

0

Ok

you can also do this

make sure to put the part in the replicated storage and anchor the part!

local part = game.ReplicatedStorage.Part --put the part in the replicatedstorage!


local function Disappear()
	for i, v in pairs(game.Workspace:GetChildren()) do --Checks all the parts/models that are in the workspace and loops through it
		if v.Name == "Part" then -- Name of the part that needs to be destroyed
			v:Destroy()
		end											
	end
end

local function Clone()
	local part2 = part:Clone() -- Clone the part
	part2.Parent = workspace -- Put the part in the workspace. If you put game.serverstorage for example it gets placed in the serverstorage
	
end

while true do
	wait(1)
	Clone() -- calling the function
	wait(2)
	Disappear() -- calling the function
end

This discussion is preserved as it was. New answers, comments, and votes are closed.