Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = game.Players.LocalPlayer
- mouse = player:GetMouse()
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.Q then
- T = mouse.Target
- if T.CanCollide == false then
- T.CanCollide = true
- else
- T.CanCollide = false
- end
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Add Comment
Please, Sign In to add comment