local player = game.Players.LocalPlayer local leaderstats = player:WaitForChild("leaderstats") leaderstats.Views.Changed:Connect(function() script.Parent.Text = leaderstats.Views.Value end)
ERROR:Players.Not_Prototype.PlayerGui.ScreenGui.Counter.Numbers.Script:2: attempt to index nil with 'WaitForChild'
Line:2
Switch your script to a Localscript. That will solve your problem.