Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local Delete = ReplicatedStorage:WaitForChild("Delete")
- local UserInputService = game:GetService("UserInputService")
- local part = game.Workspace.Part
- UserInputService.InputBegan:Connect(function(input)
- if input.KeyCode == Enum.KeyCode.D then
- print("C is Pressed, and the part is going to destroy shortly!")
- Delete:FireServer(part)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment