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 5 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 — 5y
0
So like... SharkOwen_dev 69 — 5y

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 5 years ago

Try this

1local part = workspace.Part
2part.Parent = nil
3 
4--Anytime you can set it to workspace again. with this
5part.Parent = workspace
Ad
Log in to vote
0
Answered by 5 years ago
1local start = game.Workspace.Part
2 
3start.Transperency = 1
4start.CanCollide = false
5wait(5)
6start.Transperency = 0
7start.CanCollide = true

dis look good?

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

you can also do this

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

01local part = game.ReplicatedStorage.Part --put the part in the replicatedstorage!
02 
03 
04local function Disappear()
05    for i, v in pairs(game.Workspace:GetChildren()) do --Checks all the parts/models that are in the workspace and loops through it
06        if v.Name == "Part" then -- Name of the part that needs to be destroyed
07            v:Destroy()
08        end                                        
09    end
10end
11 
12local function Clone()
13    local part2 = part:Clone() -- Clone the part
14    part2.Parent = workspace -- Put the part in the workspace. If you put game.serverstorage for example it gets placed in the serverstorage
15 
View all 23 lines...