How to make the first person view come back to it's original position when you click a button and how do you make a camera system?

  1. What do you want to achieve?
    Make a FNaF fangame.
  2. What is the issue?
    I’m trying to make so that if you press a button your first person view will be back at the same position normally, and how to make so when you press a text button a new one appears saying “Camera” instead of “Back” (it got destroyed when I clicked it) and when I click “Camera” text button, the image button and other text buttons appear again, but “Camera” text button gets destroyed and “Back” one appears again, so basically a loop.
    Here is my script:
    local Camera = game.StarterGui.ScreenGui.BackButton
    local Clone = Camera:Clone()

if Camera then
wait(0.1)
game.StarterGui.ScreenGui.BackButton:Destroy()
Clone:Clone().Parent = game.StarterGui.ScreenGui.BackButton.LocalScript
Clone:Clone().Parent.Name = “CameraButton”
Button.MouseButton1Click:Connect(function()
ImageButton.Visible = true
end)
end

  1. What solutions have you tried so far?
    Now, because barely anyone makes FNaF games on roblox (not the RP ones),
    there are no posts helping me.
2 Likes

just do this for each camera you want

textButton.MouseButton1Click:Connect(function()
     workspace.CurrentCamera.CFrame = workspace.Camera1.CFrame
end)
2 Likes

Do you know how to make a button dissappear after you click it, a button appears (with different text) and when you click it it makes the map visible?

1 Like

change the Visible and Text properties of the buttons, and for the map i recommend you use a remote event to clone it from ServerStorage

1 Like