I want a exact same thing as you died for PlayerLeave and PlayerJoined, Folder will saved anything such as Model, if inside were added or remove, including different ClassName.
I’m trying to save Folder inside for Morphs, So i can clone them.
What is the issue?
BoolSaving Script
local DataStore = game:GetService(“DataStoreService”)
local ds = DataStore:GetDataStore(“BoolSave”)
game.Players.PlayerAdded:connect(function(player)
local folder = Instance.new(“Folder”,player)
folder.Name = “MorphsSaveData”
local model = Instance.new(“Model”,folder)
model.Name = “Scout Bot”
local bool = Instance.new(“BoolValue”,model)
bool.Name = “SBoolValue”
bool.Value = ds:GetAsync(player.UserId) or false
ds:SetAsync(player.UserId, bool.Value)
end)
game.Players.PlayerRemoving:connect(function(player)
ds:SetAsync(player.UserId, player.MorphsSaveData[“Scout Bot”].SBoolValue.Value)
print(“Your Scout Bot has been save!”)
end)
It does save itself when you died to keep these inside the folder, I want it exact for PlayerLeave and PlayerJoined(As Loaded)
What solutions have you tried so far?
Is any of these solution?
Comment your Example if this possible, Thank you.