local DataStore = game:GetService("DataStoreService")
local ds = DataStore:GetDataStore("MoneySaveSystem")
game.Players.PlayerAdded:connect(function(player)
local SkinColor = player:WaitForChild("Data").SkinColor
SkinColor.Value = ds:GetAsync(player.UserId)
SkinColor.Changed:connect(function()
ds:SetAsync(player.UserId, SkinColor.Value)
end)
end)
game.Players.PlayerRemoving:connect(function(player)
ds:SetAsync(player.UserId, player.SkinColor.Value)
end)
Im trying to change the skincolor (from a value) for a character but it doesn't seem to work
