Remote Event Not Being Fired?

Hello. I was testing some remote event calling and functions when i ran into an error.

I made a tool called “Pushup”, with a LocalScript inside of it.

LocalScript:

    local tool = script.Parent
    local player = game.Players.LocalPlayer
    local pushup = game.ReplicatedStorage:WaitForChild("Pushup")

    tool.Activated:Connect(function()
    	pushup:FireServer()
    end)

As you can see, every time the tool is activated, i want a remote event to fire. Now moving on to the server script.

Server Script:

local pushup = game.ReplicatedStorage:WaitForChild("Pushup")

pushup.OnServerEvent:Connect(function(player)
print("Activated!")
player.leaderstats.Strength.Value = player.leaderstats.Strength.Value + 1
end)

My goal here is for every time the tool is activated, it adds 1 to the leaderstats int value, strength. But this isnt currently working.

2 Likes

i maybe know why if u have tool without handle go to tool properties and uncheck Requires Handle if it still doesnt work reply me