Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

ConnectionAccepted is not a valid member of ClientReplicator?

Asked by 4 years ago

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
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 Block_manvn 395 — 4y

Answer this question