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
First Put In in StarterGui Roblox Only Allows LocalScripts In The Player Also Dont Just Go Likegame.Players.Player1:Kick()
You Wont Be Able To Kick Anybody Else What I Will Do Is
local userInputService = game:GetService("UserInputService")
local Player = game.Players.LocalPlayer
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[Player.Name]:Kick()
end
`