hello guys, I’ve been using @Quenty’s Signal module for making custom RBXScriptSignals for my work
but it seems like this isn’t firing while I already fired the event
Codes
function (inside my ModuleScript):
function new:ForceChat(player)
self.Typing:Fire(player) -- the function I used to fire the event
Objects.ForceChat:FireClient(player) -- fires the RemoteEvent
print("fired") -- confirmation, it printed
end
Script (I used it to invoke the function above):
game.ReplicatedStorage.ServerAccess.Server.OnServerEvent:Connect(function(player)
local Module = require(game.ReplicatedStorage.ChatClass) -- require the module so I can use it
Module.new():ForceChat(player) -- invokes the function above
print("invoked") -- confirmation, it printed
end)
Script (I used it to confirm if the event fires or not, it didn’t print):
local Module = require(game.ReplicatedStorage.ChatClass) -- requires the module so I can use it
local Event = Module.new() -- creates a table so I can use the event
Event.Typing:Connect(function(player) -- an event named "Typing" which I fired earlier
print(player.Name, "is typing!") -- confirmation, it didn't print
end)
and yet no errors
you can ask me to give the full code of the module
I would appreciate if anyone could help me get over this