connectEvent.OnServerEvent:Connect(function(player, targetIP) if computers[targetIP] then -- Link player's terminal to target computer local targetScreen = computers[targetIP].Screen -- Send data, allow remote control, etc. end end) Create a ModuleScript for file handling:
-- ServerScript in ServerScriptService local connectEvent = Instance.new("RemoteEvent") connectEvent.Name = "ConnectToComputer" connectEvent.Parent = game.ReplicatedStorage local computers = {} -- dictionary of computer parts pinewood computer core uncopylocked
function fileSystem.read(path) -- parse drive and file end connectEvent
connectEvent.OnServerEvent:Connect(function(player, targetIP) if computers[targetIP] then -- Link player's terminal to target computer local targetScreen = computers[targetIP].Screen -- Send data, allow remote control, etc. end end) Create a ModuleScript for file handling:
-- ServerScript in ServerScriptService local connectEvent = Instance.new("RemoteEvent") connectEvent.Name = "ConnectToComputer" connectEvent.Parent = game.ReplicatedStorage local computers = {} -- dictionary of computer parts
function fileSystem.read(path) -- parse drive and file end