just so you know I set the camera to scriptable and here is the code
Tween = game:GetService("TweenService")
Vpart = game.Workspace.VisualPart
Camera = game.Workspace.CurrentCamera
local tweenInfo = TweenInfo.new(6)
local goal = {}
goal.subject = Vpart
local tween = Tween:Create(Camera,tweenInfo,goal)
part = game.Workspace.DialoguePart
part.Touched:Connect(function(itemTouchingPart)
if(itemTouchingPart.Parent and game.Players:FindFirstChild(itemTouchingPart.Parent.Name))then
tween:Play()
end
end)

20 comments
Is there something you don't understand still? You can just ask me by replying to my answer.
For some reason in my game its doing the exact opposite of zooming in, do you know if this is a glitch or is there a problem with the code? I dont really know cause I haven't really worked with Cframes
Its zooming out? That should not happen unless you've already set your FOV to be lower than 50.
I haven't, Ill post video link on question
actually can u get on scripting helpers discord that way I can easily upload it
ok
here is video link https://youtu.be/yMFE0O-UzGY
sorry it took so long
its unlisted here is new link https://youtu.be/yMFE0O-UzGY
oh, the only thing I can see that would do that is if Vpart isn't where you think it is, and actually, it shouldn't be panning away like that at all.
just checked it out, its where it was supposed to be
Do you have another script controlling the camera?
Oh I think I know what happened, for some reason it changed the players FOV
not camera
the player's fov is in the camera, and it is as intended. You did want it to zoom, right?
The only way I can see this doing what it did is if the camera's cframe was suddenly moved to that part it panned to.
yes I wanted to zoom in but, it zooms in on the player instead of the part
I messaged you my discord ID via roblox messages, i'm not sure what the problem is, so it'll be easier to figure it out together there
could u tell me ur discord here it tags it out on Roblox
https://discord.gg/Yy9Bh9 here's a server we can talk through. I don't feel like its a good idea to throw around my ID wherever because last time I did that, I got spammed