I have a game that requires dragging a block around, I’m developing it for both PC and Mobile. On PC, it works flawlessly, but on Mobile for whatever reason you need to tap it twice for it start going to the cursor.
This is definitely something with the Mouse.Target, but I cannot figure out any alternatives.
“Mover” is the part that is dragged, it’s spawned by the client and Anchored. I have tried every other solution, but none of them work .
local plr = game.Players.LocalPlayer
local drag_enabled = false
plr.Mouse = plr:GetMouse()
mouse.Button1Down:Connect(function()
if mouse.Target == mover then
drag_enabled = true
end
end)
mouse.Button1Up:Connect(function()
drag_enabled = false
end)