Hey there! I'm just wondering, how do I tween camera from a Part or object to the original camera position that the player has.
So (I know that this probably doesn't work) but here's the basic Part to Part Tween:
local camera = workspace.CurrentCamera local mainMenuMap = workspace:WaitForChild("MainMenuMap") repeat wait() camera.CameraType = Enum.CameraType.Scriptable until camera.CameraType == Enum.CameraType.Scriptable camera.CFrame = mainMenuMap.CameraPart.CFrame
and for the Play Button (when press button on GUI) here's the localscript (still might not work for you but ok):
local camera = workspace.CurrentCamera local mainMenuMap = workspace:WaitForChild("MainMenuMap") local tweenService = game:GetService("TweenService") local btn = script.Parent function tweenCamera(pos,tweenTime) tweenService:Create(camera,TweenInfo.new(tweentime,Enum.EasingStyle.Linear),{CFrame = pos.CFrame}):Play() end btn.MouseButton1Click:Connect(function() btn.Visible = false btn.Parent.Title.Visible = false -- Basically you would insert the code when the button is pressed tweenCamera(mainMenuMap,CameraPart2,1) -- The "1" is time of seconds to move the camera wait(1) -- We wait 1 second then... print("Reached Destination") -- Code here after camera has moved
So if you guys can help, please make an answer! Thanks =)