Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How would i get higher identity permission?

Asked by 4 years ago
Edited 4 years ago

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
0
^ Filipalla 504 — 4y

3 answers

Log in to vote
3
Answered by 4 years ago
Edited 4 years ago

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!

Ad
Log in to vote
1
Answered by 4 years ago

U simply cant.

1
yes DeceptiveCaster 3761 — 4y
2
You can, just depends on which script you use and how you set it up. killerbrenden 1537 — 4y
Log in to vote
-1
Answered by
Filipalla 504 Moderation Voter
4 years ago
Edited 4 years ago

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 :)

0
That wasn’t what my problem was EnzoTDZ_YT 275 — 4y
0
I thought that maybe the UserInputService one doesn't need that permission level, thanks for downvoting me for trying to help... Filipalla 504 — 4y
0
Oh, didn't notice it was actually .VRDeviceName that errored, you can't access that for obvious reasons Filipalla 504 — 4y

Answer this question