18 lines
563 B
Lua
18 lines
563 B
Lua
|
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)
|