Universal Script 📌
1.8k Views
30 Executions

G1337 Block R15

Universal Script 📌
someguyonscriptblox
someguyonscriptblox10K executions
6 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

idk bro 💔

View Raw
--// SETTINGS
local NORMAL_SPEED = 7
local BLOCK_SPEED = 0.1
local ANIM_ID = "rbxassetid://139933859877956"

--// REFERENCES
local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

--// CLEANUP
if playerGui:FindFirstChild("BlockButtonUI") then
	playerGui.BlockButtonUI:Destroy()
end

--// GUI
local gui = Instance.new("ScreenGui")
gui.Name = "BlockButtonUI"
gui.ResetOnSpawn = false
gui.Parent = playerGui

local button = Instance.new("TextButton")
button.Size = UDim2.new(0, 120, 0, 60)
button.Position = UDim2.new(0, 100, 0, 200)
button.Text = "BLOCK"
button.TextScaled = true
button.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
button.TextColor3 = Color3.new(1,1,1)
button.Parent = gui

Instance.new("UICorner", button)

--// DRAG
local dragging = false
local dragStart, startPos

button.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
		dragging = true
		dragStart = input.Position
		startPos = button.Position


Comments

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