Universal Script 📌
707 Views
178 Executions

* crab GUI

Universal Script 📌
SmoreBUTTS
SmoreBUTTSPublished 5
10 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

Funny Bum slammer

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


local gui = Instance.new("ScreenGui", LocalPlayer:WaitForChild("PlayerGui"))

local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 300, 0, 380)
frame.Position = UDim2.new(0.5, -150, 0.5, -190)
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.BorderSizePixel = 0
frame.Parent = gui


local UIS = game:GetService("UserInputService")
local drag, dragStart, startPos

frame.InputBegan:Connect(function(i)
	if i.UserInputType == Enum.UserInputType.MouseButton1 then
		drag = true
		dragStart = i.Position
		startPosPosition = frame.
	end
end)

frame.InputChanged:Connect(function(i)
	if i.UserInputType == Enum.UserInputType.MouseMovement and drag then
		local delta = i.Position - dragStart
		frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
			startPos.Y.Scale, startPos.Y.Offset + delta.Y)
	end
end)

UIS.InputEnded:Connect(function(i)
	if i.UserInputType == Enum.UserInputType.MouseButton1 then
		drag = false
	end
end)

-- TITLE


Comments

3
Log in to join the conversation. Login
GhostWorks's profile picture
GhostWorks10 months ago

Dang smash

2
thunten595's profile picture
thunten59510 months ago

Doesnt work

1
SmoreBUTTS's profile picture
SmoreBUTTSUploader10 months ago

You cant just put me for the players name or your name [Not display]

1

Tags

More universal scripts

See all
Universal Script 📌
40.3k
817.4k
Bumped 2 hours ago
Universal Script 📌
133.6k
24.2k
Bumped 2 hours ago
Key System
Universal Script 📌
147
9
Approved 3 hours ago
Universal Script 📌
145
6
Approved 3 hours ago
Universal Script 📌
6.5k
118
Bumped 3 hours ago