Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Interpolate not working in Studio?

I've been re-introducing myself to camera manipulation and I can't perform the simplest of tasks for some reason. All I want to do is interpolate the camera to a point and it's not doing anything. Focus also doesn't work. The event that the call is in does fire (I've confirmed this with output printing), but the Interpolate call itself doesn't work. The code I have so far is as follows:

cam = workspace.CurrentCamera
staff = workspace.Song.Staff
debounce = false
		
script.Parent.Torso.Touched:connect(function(hit)
	if not debounce and hit.Name == "Starter" then debounce = true
		cam.CameraType = "Scriptable"
		cam:Interpolate(staff.CFrame, staff.CFrame, 10)
		game.Players.LocalPlayer.PlayerGui.ScreenGui.Songmaker.Visible = true
	end
end)

1 answer

✓ Accepted answer

Studio and camera interpolation do not mix, if you run the script in-game instead of in studio it should work. Also camera type should be Enum.CameraType.Scriptable.

This discussion is preserved as it was. New answers, comments, and votes are closed.