squidingtin

Q clip

Mar 30th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. player = game.Players.LocalPlayer
  2. mouse = player:GetMouse()
  3. function onKeyPress(inputObject, gameProcessedEvent)
  4.     if inputObject.KeyCode == Enum.KeyCode.Q then
  5.         T = mouse.Target
  6.     if T.CanCollide == false then
  7.         T.CanCollide = true
  8.     else
  9.         T.CanCollide = false  
  10.         end
  11.     end
  12. end
  13.  
  14. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Add Comment
Please, Sign In to add comment