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

how can i make a destroyed block save between play sessions?

Asked by 6 years ago

hi, i made a script to destroy a block when you touch it but i need to make sure that it stays destroyed when the player leaves.

here is the destroy block script if it helps:

script.Parent.Touched:connect(function()
    wait(0)
    script.Parent:Destroy()
end)

thanks in advance, from poopypigeon245

1 answer

Log in to vote
0
Answered by
H4X0MSYT 536 Moderation Voter
6 years ago

As long as it is a server script, or local script with FE disabled, then yes. It will stay destroyed. A player leaving will only make it appear if it is a local part again. If you mean destroy if if the player has allready destroyed it in another play session, then use datastore to save a boolean.

Ad

Answer this question