Hello.
I am making a VR game in roblox.
But I can see an error.
What is this?
This is a script(Localscript in StarterGui)
local UserInputService = game:GetService("UserInputService")
local players = game:GetService("Players")
local player = players.LocalPlayer
local character = player.CharacterAdded:Wait()
local head = character:WaitForChild("Head")
local function TrackHead(inputType, value)
if inputType == Enum.UserCFrame.Head then
head.CFrame = value
end
end
if UserInputService.VREnabled then
head.CFrame = UserInputService:GetUserCFrame(Enum.UserCFrame.Head)
UserInputService.UserCFrameChanged:Connect(TrackHead)
end