I took VRService.VREnabled from robloxs site, and put the kick line in it, but it wont print anything or kick me. (it is in a localscript in workspace). Im very new to scripting so sorry.
local userInputService = game:GetService("UserInputService")
local isUsingVR = userInputService.VREnabled
if (isUsingVR) then
print("has vr headset :D")
else
print("Turn on your VR headset! This game requires VR")
game.Players.Player1:Kick()
end

1 comment
try to put the local script at StarterGui,StarterPack,StarterCharacterScripts or StarterPlayerScripts