Parts on client dont load or getting deleted

Hello! I have a proximity prompt and when you activate it u get a new cutscene (server side).
What I mean by cutscene is: I clone a model from replicated storage and move it to workspace, and I found out that all parts from the model dont load at all or they are getting deleted, but they are still ok on server side. It happens half of the time or always. If you need more detail let me know.

Please give me your script so I might help why the parts won’t load.

1 Like

Yes and please make up your mind if it’s either half of the time or always.

1 Like

Does the model have archivable set to false? I remember doing something with cloning models where that caused problems with the cloning. Turning it to true first then clone, then turn it back on seems to work.

1 Like

I also came across an error like that before, you can try to change the models ModelStreamingMode property to atomic or persistent. I would suggest you to try that out first.

1 Like

–main function for the cutscene
local function exit(char, plrHum, player, var)
local newModel = RunCutscene:Clone()
newModel.Parent = workspace
newModel.Name = player.Name…“Cutscene”
newModel:PivotTo(var.CFrame)
–sets the lightning
rs.Events.Set123:FireClient(player)

local dummy : Model = newModel:WaitForChild("Player")
local hum:Humanoid = dummy:WaitForChild("Humanoid")

local desc = players:GetHumanoidDescriptionFromUserId(player.UserId)
hum:ApplyDescription(desc)
cameraEvent:FireClient(player, false, newModel:WaitForChild("CamPart1"), nil, 0, false, false) --error, because on client CamPart1 is nil
local openDoor1 = newModel:WaitForChild("OpenDoor1")
local openDoor2 = newModel:WaitForChild("OpenDoor2")
local door = newModel:WaitForChild("Door")
local closedDoor1 = door:WaitForChild("Part1")
local closedDoor2 = door:WaitForChild("Part2")
local tween1 = tweenServ:Create(closedDoor1, TweenInfo.new(0.8), {CFrame = openDoor1.CFrame})
local tween2 = tweenServ:Create(closedDoor2, TweenInfo.new(0.8), {CFrame = openDoor2.CFrame})
task.wait(2)
tween1:Play()
tween2:Play()
task.wait(1)
hum:MoveTo(newModel.MoveTo1.Position)
task.wait(2.1)
dummy.HumanoidRootPart.CFrame = workspace.Cutscenes.TpBox.CFrame
task.wait(1)
	cameraEvent:FireClient(player, false, newModel:WaitForChild("CamPart2"), nil, 0, false, false)
task.wait(0.5)
rs.Events.LastRun:FireClient(player, newModel)
for i = 1, 2500 do
	newModel.Car:TranslateBy(Vector3.new(0,0,0.9))
	task.wait()
end
rs.Events.Titles:FireClient(player, false)
--secret for the cutscene 

rs.Events.RunSecret:FireClient(player)
end

at the one time it happens always, at the other time it can appear sometimes

no, i always had it set to true

I tried both atomic and persistent and i can say that persistent one worked! Thank you so much!

1 Like

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