You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
A fixed and working script.
What is the issue? Include screenshots / videos if possible!
Camera moving left and right whenever the player moved or pressed WASD
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Anchored Humanoid Root Part, Walkspeed set to 0, and tried finding over topics about this wasn’t successful.
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 CurrentCamera = workspace.CurrentCamera
local Player = game.Players.LocalPlayer
local character = Player.Character or Player.CharacterAdded:Wait()
local newcamera = workspace.CAMERAS.Poster
wait (.001)
character.Humanoid.WalkSpeed = 0
print("changed speed")
character.HumanoidRootPart.Anchored = true
print("anchored")
CurrentCamera.CameraType = Enum.CameraType.Scriptable
CurrentCamera.CFrame = newcamera.CFrame
local function playEntered()
CurrentCamera.CFrame = newcamera.CFrame
end
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.
Sorry, but the issue is that the camera starts rotating whenever the player starts moving, i tried anchoring the humanoidrootpart and changing walkspeed.