Hi I need some help with this leaderstat giver. It is supposed to give you 1 Point for clicking the key W. Yet I get these errors
Here Are the scripts

Script in ServerScriptService
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.W then
local rs = game:GetService("ReplicatedStorage")
local givepoint = rs:FindFirstChild("GivePoint")
givepoint:FireServer()
end
end)
Localscript in StarterGui
local rs = game:GetService("ReplicatedStorage")
local givepoint = rs:FindFirstChild("GivePoint")
givepoint.OnServerEvent:Connect(function(player)
player.leaderstats.Points.Value = player.leaderstats.Points.Value + 1
end)
Thanks For your help (The script in workspace is the leadersta1 script it works)