Okay, so I have a client script where it goes through every thing in the folder, there is the script.
local function SetUp()
local Prox = {}
for _, shop in pairs(shops:GetChildren()) do
local NPC = shop:WaitForChild("NPC")
local HumanoidRootPart = NPC:WaitForChild("HumanoidRootPart")
local ProximityPrompt = HumanoidRootPart:FindFirstChild("Shop")
table.insert(Prox, ProximityPrompt)
end
return Prox
end
I know what’s the problem too. The problem is because the client is destroying things that aren’t around. For more FPS. My map is pretty big and when it does this it means you can access the HumanoidRootPart. Can anyone at Roblox Staff make a Number to where we can add it to where it can delete parts in a certain number?
Or a code fix that could help and fix the problem here, cause this will break my game.
Turning it off will most likely fix the problem but if you want to keep streaming enabled on for whatever reason then you will have to look for another way. One way that might work is making the ModelStreamingMode to be persistent or something.
Maybe just turn streaming enabled off fully and then turn it back on once you learn more about it and know how it works. It basically just loads parts in and out depending how close players are to help with performance. But this requires some adjustments.