StreamingEnabled x Door Support

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? A fix to my doors.

  2. What is the issue? Include screenshots / videos if possible! Attached

  3. What solutions have you tried so far? Yes

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

I have recently turned on streamingenabled, and when you spawn into the game and try open doors into areas of the map that wasn’t already loaded in upon joining, that you reached, it will not let them press E to open the door. It leaves them with an error

Remotes.Entry.OnServerEvent:Connect(function(PlayerCalled,Id)
    local Door = game.Workspace.Doors[Id.Name]

1 Like

It would seem that when the remote is being fired the Id variable is not actually being sent to the server. Can you show the script that fires the remote?

Use a WaitForChild. Due to the fact that StreamingEnabled loads certain parts of the game based on client/player interaction, it’s good practice, as it says in the develeper API page, to use WaitForChild.
Just do:

local Door = workspace.Doors:WaitForChild(Id.Name)

Also, the error is with the “Id”, meaning the value Id sent over was nil. I assume this is also due to a loading issue.