Universal Script 📌
370 Views
9 Executions

Gui for adding features to it

Universal Script 📌
Helloboy
Helloboy10K executions
1 year 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

A simple gui that you can add your scripts to it with the code sorry for not posting in like forever I got logged out of this account and I was testing out other scripts and today I made as powerful one that I might post and yes this is made by Grok enjoy

View Raw

local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")

local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "TouchOptimizedGUI"
screenGui.ResetOnSpawn = false
screenGui.Parent = playerGui

-- ==================== DRAGGABLE FUNCTION (Mobile-Friendly) ====================
local function makeDraggable(frame, handle)
	handle = handle or frame
	local dragging = false
	local dragInput, dragStart, startPos

	local function updateInput(input)
		if 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
	end

	handle.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


Comments

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

Tags

More universal scripts

See all
Script hub
44
2
2 hours ago
Key System

Script hub

NEW Script Hub

Script hub
256
243
18 hours ago
Universal Script 📌
19.4k
178.7k
Bumped 1 hour ago
Key System
Script hub
109
7
3 hours ago
Key System
Script hub
272.4k
143.3k
Bumped 1 hour ago
Key System
Script hub
182.2k
1.8M
Bumped 3 hours ago
Key System

Script hub

#18 this week

Verified script badgeAirflow HUB

Script hub
71.3k
235.0k
Bumped 3 hours ago
Key System
Script hub
244
14
3 hours ago