RBXScriptSignal error

Getting the error Workspace.MainScript:10: attempt to call a RBXScriptSignal value, this is my server code:

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local FFUpgradeEvent = ReplicatedStorage:WaitForChild("FFUpgradeEvent")
local HealthUpgradeEvent = ReplicatedStorage:WaitForChild("HealthUpgradeEvent")

FFUpgradeEvent.OnServerEvent(function(Player)
if Player.leaderstats.Money.Value >= 299 then
Player.leaderstats.Money.Value = Player.leaderstats.Money.Value - 1
end
end)

HealthUpgradeEvent.OnServerEvent(function(Player)
if Player.leaderstats.Money.Value >= 299 then
Player.leaderstats.Money.Value = Player.leaderstats.Money.Value - 1
end
end)

You forgot to use the :Connect method

How did i miss that lol, thanks for the solution :+1: