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

VR Inputs in studio cause crash. Fixes?

Asked by 3 years ago

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)
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? pwx 1581 — 3y
0
I'll try that. calenmaster1 31 — 3y
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. calenmaster1 31 — 3y

Answer this question