You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve? Keep it simple and clear!
I want to make a button that you can click in VR.
- What is the issue? Include screenshots / videos if possible!
I genuinely cannot find a pattern to when the button works. Sometimes just enabling and disabling the SurfaceGui fixes it, sometimes it doesn’t. Sometime it just randomly enables itself. Sometimes closing and reopening Roblox’s default VR menu causes it to work. Sometimes taking my headset off and on again fixes it. Sometimes tabbing out of Studio and back in fixes it. Sometimes I literally have to do a ritual of toggling on and off CanCollide, CanQuery, CanTouch, Enabled and Visible and suddenly the button will work just fine regardless of what any of those options are sett to.,
I genuinely cannot piece together what is happening with this button but I have been spending literally hours just trying literally anything in my power to make this button work.
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Parent to PlayerGui
Parent to Part
Enable and Disable SurfaceGui at random intervals
CanCollide = true, CanTouch = true
CanCollide = false, CanQuery = true, CanTouch = true
CanCollide = true, CanTouch = false
CanCollide = false, CanQuery = true, CanTouch = false
Change resolution of SurfaceGui
AlwaysOnTop = true
AlwaysOnTop = false
Changing MaxDistance
Changing ToolPunchThroughDistance