Universal Script 📌
713 Views
230 Executions

* crab GUI

Universal Script 📌
SmoreBUTTS
SmoreBUTTSPublished 5
11 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
GhostWorks11 months ago

Dang smash

2
thunten595's profile picture
thunten59510 months ago

Doesnt work

1
SmoreBUTTS's profile picture
SmoreBUTTSUploader11 months ago

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

1

Tags

More universal scripts

See all
Script hub
158.0k
496.6k
Bumped 26 minutes ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub OP SCRIPT

Universal Script 📌
597.6k
4.2M
Bumped 1 hour ago
Script hub
50.9k
320.4k
Bumped 3 hours ago

Script hub

Nameless Admin

Script hub
176.8k
1.6M
Bumped 5 hours ago
Key System
Script hub
46.8k
11.6k
Bumped 7 hours ago
Key System
Paid