its not working please help. Code its in localscript
--Variables
local NetworkClient = game:GetService('NetworkClient')
local ClientReplicator = NetworkClient.ClientReplicator
--Function
local function Accepted(a, b)
print(a)
print(b)
end
--Main
ClientReplicator.ConnectionAccepted(Accepted())

1 comment
ConnectionAccepted is an event of NetworkClient, not ClientReplicator. And you will need :Connect() to connect the function. https://developer.roblox.com/en-us/api-reference/event/NetworkClient/ConnectionAccepted