Universal Script 📌
1.2k Views
105 Executions

Kavo UI Mobile friendly UI drag (Toggle added)

Universal Script 📌
TheBestHaker
TheBestHakerFirst script
8 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

SUPPORTS MOBILE DRAG AND SUPPORTS SERVER SIDE MODULE LOADING (Toggle added!)

Updates

  1. Script edited: Update script

View Raw
--// to the 2 peoplee who are constantly watching this repo, get a life yall weird.
--// to the people who are still forking this unoptimized garbage, if you want a custom optimized rewrite for $, hmu on discord: federal6768 or federal.

local Kavo = {}

local tween = game:GetService("TweenService")
local tweeninfo = TweenInfo.new
local input = game:GetService("UserInputService")
local run = game:GetService("RunService")

local Utility = {}
local Objects = {}
function Kavo:DraggingEnabled(frame, parent)

	parent = parent or frame

	-- stolen from wally or kiriot, kek
	local dragging = false
	local dragInput, mousePos, framePos

	frame.InputBegan:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.MouseButton1 then
			dragging = true
			mousePos = input.Position
			framePos = parent.Position

			input.Changed:Connect(function()
				if input.UserInputState == Enum.UserInputState.End then
					dragging = false
				end
			end)
		end
	end)

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



Comments

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

More universal scripts

See all
Script hub
4.0M
2.4M
Bumped 30 minutes ago

Script hub

Hall of Fame #3

KeylessVerified script badge[KEYLESS] Moondiety Script | 27+ supported Games

Script hub
197.3k
2.1M
Bumped 2 hours ago
Key System

Script hub

#21 this week

Verified script badgeAirflow HUB

Universal Script 📌
111
237
Approved 6 hours ago