--print("Saved!")

end)
end)

game.ReplicatedStorage.SaveLeaderBoardData.Event:Connect(function(DataStore,Key,Object)
if not DataStore then
return warn("No Arg 1!")
end
if not Key then
return warn("No Arg 2!")
end
if not Object then
return warn("No Arg 3!")
end
if type(DataStore) == "string" then
else
return warn("Arg 1 Must Be String!")
end
if type(Key) == "string" then
else
return warn("Arg 2 Must Be String!")
end
if type(Object) == "string" then
return warn("Arg 3 Must Be A Object!")
else
end
local DataStoreService = game:service("DataStoreService")
local DataStore = DataStoreService:GetOrderedDataStore(DataStore)
DataStore:SetAsync(Key,Object.Value)
print("Saved Leaderboard Data!")
end)

return self
