function CheckMobile()if UserInputService.TouchEnabled==true and UseGyroSteering.Value==false then UserInputService.ModalEnabled=true GuiControls.Parent=PlayerGui end end function CheckVR()if UserInputService.VREnabled then UpdateVRPos()if PlayerGui and(PlayerGui:FindFirstChild("\068\105\115\112\108\097\121\071\117\105")and PlayerGui:FindFirstChild("\067\111\108\111\114\071\117\105"))then(PlayerGui:FindFirstChild("\068\105\115\112\108\097\121\071\117\105")).Enabled=false;(PlayerGui:FindFirstChild("\067\111\108\111\114\071\117\105")).Enabled=false end UpdateCharTrans(1,0)end end
--Mobile control
function CheckMobile()
	if UserInputService.TouchEnabled == true and UseGyroSteering.Value == false then -- Won't show mobile guis if gyro is enabled
		UserInputService.ModalEnabled = true
		GuiControls.Parent = PlayerGui
	end
end

function CheckVR()
	if UserInputService.VREnabled then
		UpdateVRPos()

		-- Hide tool UI using VR
		if PlayerGui and PlayerGui:FindFirstChild("DisplayGui") and PlayerGui:FindFirstChild("ColorGui") then
			PlayerGui:FindFirstChild("DisplayGui").Enabled = false
			PlayerGui:FindFirstChild("ColorGui").Enabled = false
		end
		UpdateCharTrans(1, 0)
	end
end
