Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.StarterGui:SetCore('SendNotification', {Title='Press Ctrl'; Text='to delete stuff.', Duration=5;});
- local delete = game.Players.LocalPlayer:GetMouse()
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.LeftControl then
- delete.Target:Destroy()
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement