Let’s say I have the following code:
function playerResponse(): number
SomeEvent:Connect(function(player, response)
return response
end)
end
local result = playerResponse() --nil
This code should return nil instead of a response, so the question is, how can I return the event value to the above function the moment its ready?(so instead of nil it prints the response)