I have tried a few solutions like making sure the child is ready to be touched, but is still calling the nil value
local function onTouch()
game.Workspace.Map7:FindFirstChild("Ground")
function tween (part1,part2)
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = part1.CFrame
local tween = TweenService:Create(camera,tweeninfo,{CFrame = part2.CFrame})
tween:Play()
wait(cutscenetime)
camera.CameraType = Enum.CameraType.Custom
end
end
game.Workspace.Map7.Ground.Touched:Connect(onTouch)
wait(2)
tween(game.Workspace.Cutsceneparts.Part1,game.Workspace.Cutsceneparts.Part2)
the 'attempted to call a nil value' error is coming from the last line.

1 comment
this isnt from the very start of the script btw