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

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

Asked by 4 years ago

HOW ON EARTH DO I DO THIS??

0
You could do so when the game runs the part gets transparent, then put a wait, and transparent again RolaDoAlan 0 — 4y
0
So like... SharkOwen_dev 69 — 4y

Closed as Too Broad by DeceptiveCaster

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?

3 answers

Log in to vote
0
Answered by 4 years ago

Try this

local part = workspace.Part
part.Parent = nil

--Anytime you can set it to workspace again. with this
part.Parent = workspace
Ad
Log in to vote
0
Answered by 4 years ago
local start = game.Workspace.Part

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

dis look good?

0
Yeah RolaDoAlan 0 — 4y
0
Ok SharkOwen_dev 69 — 4y
Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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