Skip to content

Instantly share code, notes, and snippets.

@MajorTal
Created June 1, 2025 15:26
Show Gist options
  • Save MajorTal/fd87cee48b373cb066efaf73ece62677 to your computer and use it in GitHub Desktop.
Save MajorTal/fd87cee48b373cb066efaf73ece62677 to your computer and use it in GitHub Desktop.
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