#.

44 messages · Page 1 of 1 (latest)

still meadow
#

you'd have to make a value inside of the player like an boolean value that is named "water arena"

#

then once the player leaves it saves to a datastore

#

then the script would check if the player's 'water arena' value is equal to true and if they have enough funds to purchase it

granite knotBOT
#

studio** You are now Level 1! **studio

still meadow
#

if u did it would have worked

jade basin
#

datastore

still meadow
#

its basically that

#

use datastores

#

any errors?

#

why do you have the if not part.Parent

#

how can it not have a parent if it gets registered by workspace:GetChildren()

granite knotBOT
#

studio** You are now Level 16! **studio

#

studio** You are now Level 2! **studio

still meadow
#

well

#

the way ur script is doing it

#

is that

#

if it DOESNT have a parent

#

it adds it to the table

#

i dont understand the logic behind that

#

if you were to save the touchedParts

#

you'd have to save them somewhere

#

so that when the player leaves the script can still detect those parts and delete

#

maybe like parent them to a folder and then check for _, part in folder

jade basin
#

just make database

#

make table with all areas in descending/ascending order

#

save current area

#

player leave save area again

#

player join get saved area

still meadow
#

he is attempting to save all the deleted parts

jade basin
#

loop through table and delete the parts under that

still meadow
#

but i assume he used :Destroy()

jade basin
#

even easier then

still meadow
#

so yea he needs to parent the parts to a folder inside the player or smth

jade basin
#

just add the instances to a table and do the same thing

#

load and delete

still meadow
#

oh yea true

#

he could destroy then add

#

his current script wont work cuz its

#
if not part.Parent then
table.insert(deletedParts, part.Name)
end
#

and assuming it works

#

you would have to do

#
workspace:FindFirstChild(part.Name):Destroy()