I'm using a quest 2, and I can get all of my VR game to work, besides the inputs, if I just normally press the inputs, it doesn't work, but if I hold down the button, It thinks I'm pressing the right trigger 2000 - 5000 times, and then studio crashes. Inside of the published game, instead of crashing it just freezes up.

My code is here:

Local Script:

		UIS.InputBegan:Connect(function(input, processed)
			if input.KeyCode == Enum.KeyCode.ButtonR2 then
				fireEvent:FireServer()
			end
		end)
	end)

Server Script:

	fireEvent.OnServerEvent:Connect(function()

		local ShootPart = Navy:WaitForChild("ShootPart")
		ShootPart.Fire1:Play()
		ShootPart.Fire2:Play()
		ShootPart.Fire3:Play()

	end)

3 comments

0

It's odd that it's doing that, it should only Input once. Have you tried using a break to see what it does?

0

I'll try that.

0

Alright I tried it out, and it doesn't crash, but it still freezes up for a second, and I still have to hold down the right trigger, and it still fires multiple times.