Questions about VR on Roblox

I am making a vr game and i am having trouble with bugs and stuff. How do you get around the ~0.2 second delay when pressing trigger buttons? Also how do i have movement based around a joystick rather than trigger buttons?

1 Like

Movement with a joystick is actually pretty simple. You can use UserInputService to find when joystick movement is detected. Be sure to check for UserInputType as Gamepad1.

If you want me to go more in depth please ask. I have a VR testing place on my profile if you want to take a look.

As for the delay I am not to sure how to fix that as I have the same issue.

The problem with the joysticks is that i cant get a stable reading. I am using a quest as well but it just is completely random.

Could you provide the current script so I could take a look?

This is how I currently handle joystick movement. It does not increase speed based on how far the joystick is, but it does work. If you want to change the sensitivity you can change the numbers giving how far the joystick needs to be to trigger.

UserInputService.InputChanged:Connect(function(Input, gameProcessed)
    if Input.UserInputType == Enum.UserInputType.Gamepad1 then -- if the input device is a gamepad
		if Input.KeyCode == Enum.KeyCode.Thumbstick2 then -- I believe this is the left joystick
			if Input.Position.X < -.2 then -- if the joystick is on the left side
                -- do stuff
			elseif Input.Position.X > .2 then -- if the joystick is on the right side
		        -- do stuff
			else 
				-- do stuff if neither left or right
			end
			if Input.Position.Y < -.2 then -- if the joystick is downward
				-- do stuff
			elseif Input.Position.Y > .2 then -- if the joystick is upward
				-- do stuff
			else
				--do stuff if neither up or down 
			end
		end
1 Like

Sorry, but it didn’t work for me.