I'm trying to make the menu in the corner of the screen (but that's not the problem) and in the meantime it is showing an image of a part of the map, however, it happens that the beginner shows and then errors start to occur, does anyone know what could it be?

Script(in screenGUI):


wait()

local Tween = game:GetService("TweenService")

local Cam = workspace.CurrentCamera
local CamPoints = workspace:WaitForChild("CameraPoints")

local function TweenCameraPos(Point,Speed)
	Tween:Create(Cam,TweenInfo.new(Speed,Enum.EasingStyle.Linear),{CFrame = Point.CFrame}): Play()
end			

Cam.CameraType = Enum.CameraType.Scriptable
Cam.FieldOfView = 50

while true do
   Cam.CFrame = CamPoints:FindFirstChild("1").CFrame
   TweenCameraPos(CamPoints:FindFirstChild("2"),3)
    wait(3)
end

Gif: https://gyazo.com/66624791f35867a1b546c1243182b1f8

5 comments

0

link is broken

0

And can you clarify your problem? What is happening, what is supposed to happen?

0

What errors are occuring? Just copy and paste the error in the output if you don't understand how to read it.

0

sorry for the delay guys, but well, the error did not appear in my Output, for some reason...

0

tomorrow I'll make another link with the error to demonstrate