Camera stuck at around 0, 0, 0

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

  1. What do you want to achieve? Main menu camera

  2. What is the issue? Title,

  3. What solutions have you tried so far? I checked the Dev Hub for similar issues, but nothing so far helped

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 plr = game.Players.LocalPlayer

local char = plr.Character or plr.CharacterAdded:Wait()
char:WaitForChild("HumanoidRootPart").Anchored = true


local mouse = plr:GetMouse()


local camera = workspace.CurrentCamera

camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace.MenuComponents.CameraStartPosition.CFrame


local tweenService = game:GetService("TweenService")

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.

So what are you trying to accomplish? Are you trying to set the player camera to main menu and then set it back to the player? I dont know what the issue is

I think you need to constantly position the camera every frame instead of only changing it once. Try this:

local RunService = game:GetService("RunService")
local plr = game.Players.LocalPlayer

local camera = workspace.CurrentCamera

camera.CameraType = Enum.CameraType.Scriptable
RunService:BindToRenderStep("MainMenuCamera", Enum.RenderPriority.Camera.Value+1, function()
    camera.CFrame = workspace.MenuComponents.CameraStartPosition.CFrame
end)

If you want to cancel the camera positioning, simply run RunService:UnbindFromRenderStep("MainMenuCamera")

I hope this helps!

Just the main menu, it teleports players to different games

It works, but are you able to explain how scripts break when copy and pasting from one game to another? Trying to place a teleport script and for some reason it doesn’t work anymore, I haven’t changed it

I fixed it by placing the spawn location closer, what the hell

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.