Anyone knows why this script is not working as normal?

I have a script that puts a player in VR that works at intended when the player loads but after 3 seconds it stops working and deletes the parts from the workspace.

if game:GetService("VRService").VREnabled == true then
	local VRS = game:GetService("VRService")
	local SG = game:GetService("StarterGui")
	local Run = game:GetService("RunService")
	local Camera = workspace.CurrentCamera
	SG:SetCore("VREnableControllerModels", false)
	VRS:RecenterUserHeadCFrame()
	local Head = workspace:WaitForChild("Head")
	local RArm = workspace:WaitForChild("RArm")
	local LArm = workspace:WaitForChild("LArm")
	

	Run.RenderStepped:Connect(function()
		Head.CFrame = Camera.CFrame * VRS:GetUserCFrame(Enum.UserCFrame.Head)
		RArm.CFrame = Camera.CFrame * VRS:GetUserCFrame(Enum.UserCFrame.RightHand)
		LArm.CFrame = Camera.CFrame * VRS:GetUserCFrame(Enum.UserCFrame.LeftHand)
	end)
end

Still dont understand why it’s not working.

Where is this script located? StarterPlayerScripts or StarterCharacterScripts?

Idk why but I made a new game with the exact same settings and for some reason the new game worked. I guess some things are just unexplainable.

Seems kinda sus if im being honest…

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