Universal Script 📌
391 Views
16 Executions

Draggable PlayerList and ExperienceChat

Universal Script 📌
Irfannnnn
Irfannnnn1M executions
10 months ago
Get an 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

TESTED ON XENO Created by me Features: - Auto Save Current Position (it saved into `dragsaved.txt`) - Auto Load When Executed - Draggable ExperienceChat - Draggable PlayerList OPEN SOURCE

View Raw
local UserInputService = game:GetService("UserInputService")
local CoreGui = game:GetService("CoreGui")
local HttpService = game:GetService("HttpService")
local RunService = game:GetService("RunService")

local CONFIG_FILE = "dragsaved.txt"
local DRAG_SPEED = 0.05

local savedPositions = {}
local connections = {}

if isfile(CONFIG_FILE) then
    local success, result = pcall(function()
        return HttpService:JSONDecode(readfile(CONFIG_FILE))
    end)
    if success and type(result) == "table" then
        savedPositions = result
    end
end

local function saveConfig()
    writefile(CONFIG_FILE, HttpService:JSONEncode(savedPositions))
end

local function makeDraggable(frame, uniqueId)
    if not frame then return end
    
    if connections[uniqueId] then
        for _, conn in pairs(connections[uniqueId]) do
            conn:Disconnect()
        end
        connections[uniqueId] = {}
    else
        connections[uniqueId] = {}
    end

    if savedPositions[uniqueId] then
        local posData = savedPositions[uniqueId]
        frame.Position = UDim2.new(posData.Xs, posData.Xo, posData.Ys, posData.Yo)
    end


Comments

3
Log in to join the conversation. Login
coisye844's profile picture
coisye84410 months ago

Bro can I danlowed to the ios

1
Irfannnnn's profile picture
IrfannnnnUploader10 months ago

@coisye844 yes, if you have executor for roblox ios

1

[deleted]

Replying to a deleted comment
Irfannnnn's profile picture
IrfannnnnUploader10 months ago

@SheScripts sure

2

Tags

More universal scripts

See all
Universal Script 📌
3.9k
185.5k
Bumped 6 hours ago
Script hub
582
48
7 hours ago
Universal Script 📌
28.8k
673.9k
Bumped 9 hours ago
Script hub
14.0k
2.7k
Bumped 11 hours ago
Key System
Paid
Script hub
263.9k
88.5k
Bumped 12 hours ago
Key System
Universal Script 📌
3.1k
10.5k
Bumped 12 hours ago
Universal Script 📌
790
47
Approved 13 hours ago