Roblox/Scripts/click remove.lua

18 lines
563 B
Lua
Raw Permalink Normal View History

2024-10-22 02:11:10 +02:00
local Plr = game:GetService("Players").LocalPlayer
local Mouse = Plr:GetMouse()
Mouse.Button1Down:connect(function()
-- NOTE: The if statements gets an indent or '4' spaces from the start of the line
if not game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.LeftControl) then
-- This gets 2 indents or '8' spaces from the start of the line
return end
if not Mouse.Target then
-- This also gets 2 indents or '8' spaces from the start of the line
return end
Mouse.Target:Destroy()
end)