game.Players.ChildRemoved:Connect(function(plr)
dsservice = game:GetService("DataStoreService")
datastore = dsservice:GetDataStore("Rank")
datastore:SetAsync(plr.UserId, plr.Rank.Value)
end)
game.Players.ChildAdded:Connect(function()
dsservice = game:GetService("DataStoreService")
datastore = dsservice:GetDataStore("Rank")
local text = datastore:GetAsync("Rank")
script.Parent.Rank.Value = text
end)
I Am Trying To Save A Rank But After some Tests It Doesn't Save The Rank And I Don't Know Why
