this is my events script
> script.AddPoints.OnServerEvent:Connect(function(plr)
plr.leaderstats.points.Value = plr.leaderstats.points.Value +1
end)
and here is my localscript
script.Parent.MouseClick:Connect(function()
workspace.Cookie.ClickDetector.event.AddPoints:FireServer()
end)
and here is my leaderstats
game.Players.PlayerAdded:Connect(function(plr)
local leader = Instance.new("Model")
leader.Name = "leaderstats"
leader.Parent = plr
local points = Instance.new("IntValue")
points.Name = "points"
points.Parent = leader
points.Value = 0
end)
plz help thx -Amin

1 comment
Any errors?