Created
June 1, 2025 15:26
-
-
Save MajorTal/fd87cee48b373cb066efaf73ece62677 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local tool = script.Parent | |
local deleteRequest = tool:WaitForChild("DeleteRequest") | |
local player = game.Players.LocalPlayer | |
local mouse = player:GetMouse() | |
tool.Activated:Connect(function() | |
if mouse.Target and mouse.Target:IsA("BasePart") then | |
deleteRequest:FireServer(mouse.Target) | |
end | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment