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

1 comment
is this a server script? If so, switch it to local as LocalPlayer is only exists on the client