Vr not tracking head

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!

I am studying VRService to make my own vr game so I copied the ROBLOX dev hub script.

  1. What is the issue? Include screenshots / videos if possible!

It doesn’t seem to be tracking

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

    I have searched around all places I know and I have tried changing small stuff.

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!

Almost the same as the one on developer hub.

local VRService = game:GetService("VRService")

local players = game:GetService("Players")
local player = players.LocalPlayer
local character = player.CharacterAdded:Wait()
local head = game.Workspace.Baseplate

local function TrackHead(inputType, value)
	if inputType == Enum.UserCFrame.Head then
		head.CFrame = value
	end
end

if VRService.VREnabled then
	-- Set the inital CFrame
	VRService:RecenterUserHeadCFrame()
	head.CFrame = VRService:GetUserCFrame(Enum.UserCFrame.Head)

	-- Track VR headset movement and mirror for character's head
	VRService.UserCFrameChanged:Connect(TrackHead)
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.

Is this a problem with your hardware or are you getting some kind of error? It looks like the script should be taking the baseplate and putting in in the same spot as your head. It should not be moving in relation to your perspective so It may feel like you are not moving if your game is empty or the baseplate blocks your view. What do you see when you put the headset on?

I just see the world but like vertical.

And my vr headset works for other vr games.

Is your view stuck on the baseplate?

In VR you are allowed to use the 360° of freedom, not be locked to be vertically. Correct me if I am wrong.

I can look around but it still is vertical-

Can you tell me what VR headset you have?

I think I’ve seen the problem mate.

Try changing this to local head = Instance.new("Part", workspace)

I did this kind of in a hurry, my code has the issues solved.

Ain’t working, Im gonna try anchoring it just in case.