Universal Script 📌
877 Views
355 Executions

Glue Script

Universal Script 📌
srisoegiharto
srisoegihartoFirst script
9 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

IT sticks to anything (on the ground), also u can change the value on the script on the first value an the top

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

local glue = PhysicalProperties.new(100, 0.5, 1, 100, 100)
local normal = PhysicalProperties.new(0.7, 0.3, 0.5, 1, 1)

local gui = Instance.new("ScreenGui", lp.PlayerGui)
gui.Name = "GlueTool"
gui.ResetOnSpawn = false

local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0, 130, 0, 45)
frame.Position = UDim2.new(0.5, -65, 0.8, 0)
frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
frame.BorderSizePixel = 2
frame.BorderColor3 = Color3.new(1, 1, 1)

local btn = Instance.new("TextButton", frame)
btn.Size = UDim2.new(1, 0, 1, 0)
btn.BackgroundTransparency = 1
btn.Text = "GLUE: OFF"
btn.TextColor3 = Color3.new(1, 1, 1)
btn.Font = "Code"
btn.TextSize = 15

local drag = false
local startPos, dragStart

btn.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
		drag = true
		dragStart = input.Position
		startPos = frame.Position
	end
end)

UIS.InputChanged:Connect(function(input)
	if drag and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) 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)


Comments

1
Log in to join the conversation. Login
srisoegiharto's profile picture
srisoegihartoUploader9 months ago

i made another script ;)

1

More universal scripts

See all
Script hub
29.2k
241.1k
Bumped 2 hours ago
Script hub
6.9k
101.0k
Bumped 3 hours ago

Script hub

SAGAZx Hub

Script hub
280.1k
189.2k
Bumped 3 hours ago
Key System
Script hub
354
451
Bumped 4 hours ago

Script hub

Blythe

Script hub
9.0k
56.2k
Bumped 5 hours ago
Key System