i am trying to make a script that adds a part after deleting a part by pressing the "delete" key ,this is in a local script
local UserInputService = game:GetService("UserInputService")
local part = game.Workspace.Part
UserInputService.InputBegan:connect(function(input)
if input.KeyCode == Enum.KeyCode.Delete then
part:Destroy()
end
end)
thank you

1 comment
Do you want it to show up to everyone or just the player?