Frame Script can make mobile unplayable

I have a script that make all frames in my game draggable. (Code Below) It works great, but on mobile, it breaks their ability to move as is makes their buttons to move, move too. This needs to be fixed. Unless their is a workaround for this, please inform me. I know the draggable property is deprecated, but its the only way I know that can makes frames draggable.

local service = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
local frames = service:GetDescendants()

for index, descendant in pairs(frames) do
	if descendant:IsA("Frame") then
		descendant.Draggable = true
		descendant.Active = true
		descendant.Selectable = true

This topic was automatically closed after 1 minute. New replies are no longer allowed.