local ReplicatedStorage = game:GetService("ReplicatedStorage") local RemoteEvents = ReplicatedStorage.RemoteEvents
local GivePoint = RemoteEvents.GivePoint
GivePoint.OnServerEvent:Connect(function(player) local points = player.leaderstats.Points local ClickBonus = player.Playerstats.ClickBonus points.Value = points.Value + (1 + ClickBonus.Value) end)
Try this:
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RemoteEvents = ReplicatedStorage.RemoteEvents local GivePoint = RemoteEvents.GivePoint GivePoint.OnServerEvent:Connect(function(player) local points = player:WaitForChild("leaderstats").Points local ClickBonus = player:WaitForChild("Playerstats").ClickBonus points.Value = points.Value + (1 + ClickBonus.Value) end)