01 | local ReplicatedStorage = game:GetService( "ReplicatedStorage" ) |
02 | local RemoteEvents = ReplicatedStorage.RemoteEvents |
03 |
04 | local GivePoint = RemoteEvents.GivePoint |
05 |
06 | GivePoint.OnServerEvent:Connect( function (player) |
07 | local points = player:WaitForChild( "leaderstats" ).Points |
08 | local ClickBonus = player:WaitForChild( "Playerstats" ).ClickBonus |
09 | points.Value = points.Value + ( 1 + ClickBonus.Value) |
10 | end ) |
are you sure that leaderstats is in player?