I’m having a problem where where even after setting the primary part of the model the script has an error. Am I doing something wrong? (Btw the script’s location can be seen at the beginning of the video)
local vf = script.Parent
local camera = Instance.new("Camera", vf)
vf.CurrentCamera = camera
local popsicle = script.Parent.Popsicle
popsicle:SetPrimaryPartCFrame(CFrame.new(0,0,0))
local cameraPosition = Vector3.new(3, 3, 3)
camera.CFrame = CFrame.new(cameraPosition, script.Parent.Popsicle.Prime.Position)
That fixed it, thank you!
That is so weird. I wonder if it’s because the script runs before the other objects are replicated into the GUI maybe? I’m not sure. Quite weird I would say myself
Edit: Both worked, but @Halalaluyafail3 Your solution of waiting for the property changed is really smart, as it waits until it exists. Thank you all so much!