Attempt to call a RBXScriptSignal value - Error

This is the code:

game.ReplicatedStorage.RemoteEvents.ToolInventory.OnServerEvent(function(player, Value, tool)
print(tool)
end)

This is the error:

You forgot to connect the event

game.ReplicatedStorage.RemoteEvents.ToolInventory.OnServerEvent:Connect(function(player, Value, tool)
    print(tool)
end)
1 Like

Explanation:

OnServerEvent is literally what it is, an event lol

It needs to be connected in order to detect when it gets fired, else you’re just making your own custom function

FireServer() will fire, and OnServerEvent will receive the connected “fire”

I’m dumb idk how I forgot to connect the event, thx

1 Like