I was Trying to get the number of Games the Player has created and Get the Total Place Visits of the Player in a Script. How would I Get the Total Place Visits and Amount of Created Games.
Local Script to make it Appear on a Gui
script.Parent.Text = "Total Visits: ".. game.Players.LocalPlayer.Visits
Visits is not Going to Work but there is an Api
Jou must enable studio api services to your game, then insert a script int serverscriptservice that
local sd = game:GetService("DataStoreService") local ds = sd:GetDataStore("JoinsOfAPlayer") game.Players.PlayerAdded:Connect(function(plr) local val = Instance.new("NumberValue", plr) val.Name = "Joins" val.Value = ds:GetAsync(plr.UserId) ds:SetAsync(plr.UserId, val.Value) wait() val.Value = val.Value + 1 end) game.Players.PlayerRemoving:Connect(function(plr) ds:SetAsync(plr.UserId, plr.Joins.Value) end)