Universal Script 📌
16 Views
0 Executions

Gabriel

Universal Script 📌
Gabriel_64646
Gabriel_64646First script
4 days ago · Updated

Reviewed by QueueSpeedDemonPaid revieweron How review works

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

سكربت بانق بحقوق انفجار / مطور جبريل

View Raw
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local LocalPlayer = Players.LocalPlayer

local Flinging = false
local Banging = false
local OldCF = nil
local currentBangAnim = nil
local bangConn = nil

-- وظيفة عامة لجعل أي عنصر قابل للسحب والإفلات
local function makeDraggable(frame, dragHandle)
    local dragging, dragInput, dragStart, startPos
    dragHandle = dragHandle or frame

    dragHandle.InputBegan:Connect(function(input)
        if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
            dragging = true
            dragStart = input.Position
            startPos = frame.Position
            input.Changed:Connect(function()
                if input.UserInputState == Enum.UserInputState.End then
                    dragging = false
                end
            end)
        end
    end)

    dragHandle.InputChanged:Connect(function(input)
        if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
            dragInput = input
        end
    end)

    UserInputService.InputChanged:Connect(function(input)
        if input == dragInput and dragging then
            local delta = input.Position - dragStart
            frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
        end


Comments

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

More universal scripts

See all
Universal Script 📌
18
0
Approved 29 minutes ago
Script hub
2.9M
684.5k
Bumped 29 minutes ago
Key System

Script hub

#2 today

Verified script badgeFlow Hub | 35 Games | Updated

Universal Script 📌
39
1
Approved 37 minutes ago
Universal Script 📌
24.0k
82.3k
Bumped 38 minutes ago
Universal Script 📌
36
0
Approved 41 minutes ago
Universal Script 📌
5.7k
17.5k
Bumped 2 hours ago
Universal Script 📌
105
26
Approved 3 hours ago