Universal Script 📌
769 Views
79 Executions

Better Console

Universal Script 📌
ItzPnsdg
ItzPnsdg100K executions
6 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

Copiable console log Clear Text Draggble ui resizeable ui Keybind: F8 changes textsize auto scroll

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

DraggingSystem = {}

function DraggingSystem.GetDistance(pos1, pos2)
    return math.sqrt((pos2.X - pos1.X)^2 + (pos2.Y - pos1.Y)^2)
end

function DraggingSystem.IsMouseOverFrame(Frame, Position)
    AbsPos, AbsSize = Frame.AbsolutePosition, Frame.AbsoluteSize
    return Position.X >= AbsPos.X and Position.X <= AbsPos.X + AbsSize.X and Position.Y >= AbsPos.Y and Position.Y <= AbsPos.Y + AbsSize.Y
end

function DraggingSystem.MakeDraggable(MainFrame, DragFrame, CallbackTable)
    if not MainFrame or not DragFrame then return end
    
    dragging = false
    dragStart = nil
    startPos = nil
    dragDistance = 0
    DRAG_THRESHOLD = 5
    originalZIndex = MainFrame.ZIndex
    isDraggingStarted = false
    currentTouch = nil
    
    function getScreenSize()
        return workspace.CurrentCamera.ViewportSize
    end
    
    function updatePosition(input)
        if not dragging or not dragStart then return end
        delta = input.Position - dragStart
        dragDistance = math.sqrt(delta.X^2 + delta.Y^2)
        
        screenSize = getScreenSize()
        newOffsetX = startPos.X.Offset + delta.X
        newOffsetY = startPos.Y.Offset + delta.Y


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!