Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Will this VR enabled detecting script work?

This script so far seems to work, it displayed the message I want when the game is out of VR mode. The problem I have is that im not sure if the text will appear when VR mode is enabled as I do not have access to a VR headset at the moment. Will this work, its quite simple but ive messed up simpler before.

This is a local script as well.

while true do
	wait()
	if game.VRService.VREnabled == true then
		script.Parent.Enabled = false
	else
		script.Parent.Enabled = true
	end
end

Also if there is a way to enable VR mode without a headset that would be helpful as well.

2 comments

0

I may be able to test this in a few days.

0

Try changing VRService to like desktop and see if it works then add the VR back

1 answer

Yes, it does. Though you could increase the delay a bit, that script might cause lag.

2 comments

0

You can enable/disable VR in the menu cant you? In the settings at the bottom. It only appears when you have a VR headset hooked up.

0

Thanks, editet.

This discussion is preserved as it was. New answers, comments, and votes are closed.