What do you want to achieve?
My folder will not parent to the current camera while in a team create place at all.
What is the issue?
My plugin creates a folder inside of the workspace.CurrentCamera, however, this folder does not show at all while in a team create place.
What solutions have you tried so far?
I have tried toggling Archivable, and even tried parenting it to different spots, however the folder needs to remain in the camera as that’s the only place I found where it is local to that specific client.
Heres the code that creates the folder:
repeat
Camera = workspace.CurrentCamera
task.wait()
until Camera ~= nil
-- These are other modules which the plugin uses
local Alerts = require(Utils.Alerts)
local Zipline = require(Utils.Zipline)
local StatsGui = require(Utils.StatsGui)
if Camera:FindFirstChild("FE2_StudioZiplines") then
if Camera.FE2_StudioZiplines:FindFirstChild("_Zipline") then
ZiplinesActivated = true
ZiplineFolder = Camera.FE2_StudioZiplines
else
ZiplineFolder = Camera.FE2_StudioZiplines
end
else
ZiplinesActivated = false
ZiplineFolder = Instance.new("Folder")
ZiplineFolder.Name = "FE2_StudioZiplines"
ZiplineFolder.Archivable = false
ZiplineFolder.Parent = Camera
end
ZiplineFolder.Archivable = false
print("Created folder and parented to:", ZiplineFolder.Parent:GetFullName())
However nothing is parented
In a regular solo place, this works fine.
Is this being ran from a script or localscript? Im pretty sure camera instances are local so if it is being ran from a script it is likely going to the server’s camera instance (or nil cause it might just be blank on the server)
sorry for the late reply, im not too familiar with teamcreate stuff but its possible that it does have a different camera system due to the weird nature of how teamcreate handles stuff, since you said it works fine in solo it might just be due to teamcreate. I would test in game to see if it works though
Problem solved 8 months later haha
I just needed to wait around 5 seconds for the camera instance to load, not sure why this works but I’m not changing it
If anyone else has this problem, here’s a rough recreation of what worked for me (keep in mind that my plugin doesn’t need to run instantly)
-- ...
local camera;
print("Starting")
wait(5)
if workspace.CurrentCamera then
camera = workspace.CurrentCamera
else
repeat
camera = workspace.CurrentCamera
wait(0.5)
until camera ~= nil
end
-- ...