Script not Rendering Parts

Hello everyone! I’m trying to make a Camera Main menu script,

but for some reason, when I have “CharacterAutoLoad” turned off, it doesn’t seem to render parts in workspace?
image

I’ve tried looking for solutions in the Dev Wiki but I couldn’t find anything.
I don’t know if it has to do anything with the script or just studio in general,

local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()

local replicatedStorage = game:GetService("ReplicatedStorage")

local cam = workspace.CurrentCamera
local camPart = workspace:WaitForChild("campartPlay")
local PlayButton = script.Parent:WaitForChild("PlayButton")

repeat
	wait()
	cam.CameraType = Enum.CameraType.Scriptable
	print("lol")
until cam.CameraType == Enum.CameraType.Scriptable


PlayButton.MouseButton1Click:Connect(function()
	--local respawnEvent = replicatedStorage:WaitForChild("RespawnRemote")
	--respawnEvent:FireServer()
end)

local maxTilt = 10

game:GetService("RunService").RenderStepped:Connect(function()
	cam.CFrame = camPart.CFrame * CFrame.Angles(
		math.rad((((mouse.Y - mouse.ViewSizeY / 2) / mouse.ViewSizeY)) * -maxTilt),
		math.rad((((mouse.X - mouse.ViewSizeX / 2) / mouse.ViewSizeX)) * -maxTilt),
		0
	)
end)

Thank you!

Hello, the reason why is because Roblox recently (I think) made StreamingEnabled always on. Turn it off in Workspace Properties and it should work.

2 Likes

Parts aren’t loading because of Content Streaming. To load parts around an area, set the replication focus to a part near or at the camera’s position.

Player.ReplicationFocus = --Part
1 Like

Thank you so so much! That helped me out a ton, and I was wondering why

1 Like

Thanks a lot! I’ll keep that in mind for different games I’ll be making in the future!

I just remembered that ReplicationFocus can only be set by the server so make sure to set it on the server.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.