---
title: "Mobile Support Drag UI | Universal Roblox Script - ScriptBlox"
description: "Mobile Support Drag UI for any Roblox game: This is for developers only Those who need a script that helps Mobile support"
canonical_url: "https://scriptblox.com/script/Universal-Script-Mobile-Support-Drag-UI-40209"
meta:
  "og:description": "Mobile Support Drag UI for any Roblox game: This is for developers only Those who need a script that helps Mobile support"
  "og:image": "https://scriptblox.com/images/script/0-1747578794586.png"
  "og:title": "Mobile Support Drag UI | Universal Roblox Script - ScriptBlox"
  "twitter:description": "Mobile Support Drag UI for any Roblox game: This is for developers only Those who need a script that helps Mobile support"
  "twitter:image": "https://scriptblox.com/images/script/0-1747578794586.png"
  "twitter:title": "Mobile Support Drag UI | Universal Roblox Script - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![Universal Script 📌](https://scriptblox.com/images/script/0-1747578794586.png)

# **Mobile Support Drag UI**

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![lumpiasallad](https://scriptblox.com/images/user-default.webp) [lumpiasallad](https://scriptblox.com/u/lumpiasallad)First script**

2 years ago

[**Get an executor**](https://scriptblox.com/executors?kind=executor)

Please login to perform these actions:

## **Does it work? **

**No reports yet **

No reports yet. Tried it? Be the first to say.

Also noticed:

## Description

This is for developers only Those who need a script that helps Mobile support

[View Raw](https://scriptblox.com/raw/Universal-Script-Mobile-Support-Drag-UI-40209)

```
--[[
Made By: lumpia
]]

local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local localPlayer = Players.LocalPlayer
local mouse = localPlayer:GetMouse()

-- Helper: Clamp a UDim2 position within screen bounds
local function clampToScreen(frame, newPos)
    local parent = frame.Parent
    local screensize
    if parent:IsA("ScreenGui") then
        screensize = parent.AbsoluteSize
    elseif parent.Parent and parent.Parent:IsA("ScreenGui") then
        screensize = parent.Parent.AbsoluteSize
    else
        screensize = workspace.CurrentCamera and workspace.CurrentCamera.ViewportSize or Vector2.new(1920, 1080)
    end
    local absSize = frame.AbsoluteSize

    -- Clamp to screen
    local x = math.clamp(newPos.X.Offset, 0, screensize.X - absSize.X)
    local y = math.clamp(newPos.Y.Offset, 0, screensize.Y - absSize.Y)
    return UDim2.new(0, x, 0, y)
end

-- the dragging logic

local function dragToPosition(startInputPos, startFramePos, currInputPos, frame, bounds)
    local delta = currInputPos - startInputPos
    local newPos = UDim2.new(
        startFramePos.X.Scale,
        startFramePos.X.Offset + delta.X,
        startFramePos.Y.Scale,
        startFramePos.Y.Offset + delta.Y
    )
    if bounds then
        newPos = clampToScreen(frame, newPos)


```

## **Comments **

**1**

Log in to join the conversation. [**Login **](https://scriptblox.com/login?redirect=/script/Universal-Script-Mobile-Support-Drag-UI-40209)

![lumpiasallad's profile picture](https://scriptblox.com/images/user-default.webp)

[**lumpiasallad**](https://scriptblox.com/u/lumpiasallad)**Uploader**2 years ago

here github link : [https://github.com/lumpiasallad/MobileSuport\_Drag\_UI\_Script-](https://scriptblox.com/redirect?url=https%3A%2F%2Fgithub.com%2Flumpiasallad%2FMobileSuport_Drag_UI_Script-)

1

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-Mobile-Support-Drag-UI-40209#script","url":"https://scriptblox.com/script/Universal-Script-Mobile-Support-Drag-UI-40209","name":"Mobile Support Drag UI","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"lumpiasallad","url":"https://scriptblox.com/u/lumpiasallad"},"datePublished":"2025-05-18T14:33:14.622Z","image":"https://scriptblox.com/images/script/0-1747578794586.png","isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/Universal-Script-Mobile-Support-Drag-UI-40209#webpage","@type":"WebPage","description":"Mobile Support Drag UI for any Roblox game: This is for developers only Those who need a script that helps Mobile support","name":"Mobile Support Drag UI | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-Mobile-Support-Drag-UI-40209","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-Mobile-Support-Drag-UI-40209#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-Mobile-Support-Drag-UI-40209#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-Mobile-Support-Drag-UI-40209"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-Mobile-Support-Drag-UI-40209#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"Universal","item":"https://scriptblox.com/game/universal","position":2},{"@type":"ListItem","name":"Mobile Support Drag UI","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
