Needing 2 things to happen at once

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    making pov camera move while typing GUI
  2. What is the issue? Include screenshots / videos if possible!
    typing happens before the camera then goes instead of at the same time
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried changing the order but they still seem to just be the same thing in the reverse
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local message1 = "We have an imposter among us"
AnimateUI.typeWrite(label, message1, 0.05) --modula script that gives the talking effect on a gui

Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = CamPOV.BLDGPOV.CFrame
FOVmovement(100, 90, 0.1) -- function i made

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

The type write function is probably yielding the script with a wait() so it has to wait() for the type write before the camera can happen.

The solution is task.spawn or coroutines, task.spawn is newer and more easier to use in my opinion.

task.spawn(function()
local message1 = "We have an imposter among us"
AnimateUI.typeWrite(label, message1, 0.05) --modula script that gives the talking effect on a gui
end)

task.spawn(function()
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = CamPOV.BLDGPOV.CFrame
FOVmovement(100, 90, 0.1) -- function i made
end)
2 Likes