Camera Tweening Issue

For an example here

game.ReplicatedStorage.OpenGui.OnClientEvent:Connect(function()
	camera.CameraType = Enum.CameraType.Scriptable
	tween:Play()
end)

if i wait 2 seconds (the tweening time) can i call then another function?
like so

game.ReplicatedStorage.OpenGui.OnClientEvent:Connect(function()
	camera.CameraType = Enum.CameraType.Scriptable
	tween:Play()
     wait(2)
    NPCText:Connect()
end)

I am sorry for my bad explanation but i hope you know what i mean…

If u want to call another function then u can define the function like this:

local function FunctionName()

end

and then call it like this:

FunctionName()
1 Like

Ah yes i forgot how to properly call a function, my bad. So i can indeed call a function inside another function. Thank you so so much! :heart:

1 Like

Just gotta say. that :Play() :Connect() are all functions

1 Like