I try make a clicker game and I finded a tutorial on youtube but I cannot make leaderstats work.Here's the script I finded: local event = Instance.new("RemoteEvent") event.Name = "AddStats" event.parent = game.ReplicatedStorage
event.OnServerEvent:Connect(function(plr) local taps = plr.leaderstats.Taps taps.Value = taps.Value + 1 end)
game.Players.PlayerAdded:Connect(funtion(plr) local ls = Instance.new("Folder") ls.Name = "leaderstats" local menu = Instance.new ("IntValue", ls) menu.Name = "Taps" ls.Parent = plr end)
Can someone try find the problem pls?
