Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/ReplicatedStorage/ReplicaController.lua
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,16 @@ function ReplicaController.GetReplicaById(replica_id)
return Replicas[replica_id]
end

function ReplicaController.GetReplicaByTokenName(token_name)
for _, replica in Replicas do
if replica.Class == token_name then
return replica
end
end

return nil
end

----- Connections -----

-- Fired from server after initial data is sent:
Expand Down