
2.2k Views
249 Executions
Remove Part Universal KEYLESS
Universal Script 📌
bettusanFirst script
1 year ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Binds f1 - remove f2 - undo f4 - undo all
-- f1 - remove
-- f2 - undo
-- f4 - undo all
-- LocalScript in StarterPlayerScripts
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local mouse = player:GetMouse()
-- table of removed objects
local removedStack = {}
-- check: is the object part of a character (does the model have a Humanoid)?
local function isCharacterPart(part)
if part and part.Parent then
if part.Parent:FindFirstChildOfClass("Humanoid") then
return true
end
end
return false
end
-- delete the object under the cursor
local function deletePartUnderCursor()
local target = mouse.Target
if target and (target:IsA("Part") or target:IsA("MeshPart") or target:IsA("UnionOperation")) then
if isCharacterPart(target) then
warn("You cannot delete character parts!")
return
end
-- save the object and its parent in the stack
table.insert(removedStack, {
object = target,
parent = target.Parent
})
target.Parent = nil -- hide the object
print("Deleted object:", target.Name, "(in stack:", #removedStack .. ")")









Can other people see?
@RCDHookify No, this is only for the client.