Advertisement
Guest User

sdsada

a guest
Sep 23rd, 2019
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. local uis = game:GetService("UserInputService")
  2. local Mouse = game.Players.LocalPlayer:GetMouse()
  3.  
  4. function onKeyPressed(inputObject, gameProcessEvent)
  5. if inputObject.KeyCode == Enum.KeyCode.G then
  6. if (Mouse.Target).CanCollide == false then
  7. (Mouse.Target).CanCollide = true
  8. (Mouse.Target).Transparency = 0
  9. else
  10. (Mouse.Target).CanCollide = false
  11. (Mouse.Target).Transparency = 0.6
  12. end
  13. end
  14. end
  15. uis.InputBegan:Connect(onKeyPressed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement