I have a game where the camera is locked on a certain part in the Workspace. The script worked perfectly fine for my other games, but it just suddenly stops working.
Its now giving me the error of "Start is not a valid member of Model" Line 3.
All the names are spelled correctly and match.
Can anyone help me out with this?
--Local Script in StarterGui local target = workspace.CamParts.Start local camera = workspace.CurrentCamera camera.CameraType = Enum.CameraType.Scriptable camera.CameraSubject = target local angle = 0 while wait() do camera.CoordinateFrame = CFrame.new(target.Position, workspace.CamParts.LookAt.Position) --Start at the position of the part end
Don't index it using .
. Instead, use WaitForChild
.
local camParts = workspace:WaitForChild("CamParts") local target = camParts:WaitForChild("Start") local camera = workspace:WaitForChild("CurrentCamera")
Hope this helps! :)