I've been trying to make a script for a GUI which when the mouse enters it uses camera interpolation to move the camera to another part. It works to start with, starting to move towards the part when I move the mouse into the GUI, but when it reaches it the screen turns black and I'm not sure why. The code:
script.Parent.MouseEnter:connect(function(z) cam = workspace.CurrentCamera cam.CameraType = "Scriptable" cam.CameraSubject = workspace.camerapart cam:Interpolate(workspace.pandacam.CFrame,workspace.pandacam.CFrame,0.5) end)
Edit I've also tried doing it in another new place and the screen also goes black when it reaches it. I'm thinking this could be an issue with roblox studio since no one's given any answers yet. I've also asked a friend to try it and he had the same issue.