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

How would i get higher identity permission?

The error i get is The current identity (2) cannot VRDeviceName (lacking permission 5) this is confusing as i never have ran into it before can i get help?

My code is

local VRService = game:GetService("VRService")
 
if (VRService.VREnabled) then
--	game.ReplicatedStorage.IsVR:InvokeServer(VRService.VRDeviceName)
	print(VRService.VRDeviceName)
else
	print("No VR device detected!")
end

2 comments

0

^

3 answers

✓ Accepted answer

Script Identities

This will explain how you can create this. All you have to do is check which permission it requires to use VRService and use that identity to create it.

Simply, this has to be a plugin. Since it requires permission 5, and plugins have the highest permission possible, which is permission 5!

Hope this helped!

What you actually need is UserInputService, you can find a code example for UserInputService.VREnabled here

Don't forget to mark my answer as the solution and up vote it if it solved your problem :)

3 comments

0

That wasn’t what my problem was

0

I thought that maybe the UserInputService one doesn't need that permission level, thanks for downvoting me for trying to help...

0

Oh, didn't notice it was actually .VRDeviceName that errored, you can't access that for obvious reasons

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