Skip to content

Commit

Permalink
Make it easier to bundle ReplicatedPseudoInstances
Browse files Browse the repository at this point in the history
  • Loading branch information
Validark authored Jan 15, 2019
1 parent 74bc244 commit 79cb5c8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions ReplicatedPseudoInstance.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,15 @@ local SortedArray = Resources:LoadLibrary("SortedArray")
local PseudoInstance = Resources:LoadLibrary("PseudoInstance")

local Templates = Resources:GetLocalTable("Templates")

local RemoteEvent = Resources:GetRemoteEvent("PseudoInstanceReplicator")
local RemoteFunction = Resources:GetRemoteFunction("PseudoInstanceStartupVerify")
local RemoteEvent, RemoteFunction

if IsServer and IsClient and RunService:IsStudio() then
RemoteEvent = Instance.new("RemoteEvent")
RemoteFunction = Instance.new("RemoteFunction")
else
RemoteEvent = Resources:GetRemoteEvent("PseudoInstanceReplicator")
RemoteFunction = Resources:GetRemoteFunction("PseudoInstanceStartupVerify")
end

local AutoReplicatedInstances = {}
local LoadedPlayers = setmetatable({}, {__mode = "k"})
Expand Down

0 comments on commit 79cb5c8

Please sign in to comment.