Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local uis = game:GetService("UserInputService")
- local Mouse = game.Players.LocalPlayer:GetMouse()
- function onKeyPressed(inputObject, gameProcessEvent)
- if inputObject.KeyCode == Enum.KeyCode.G then
- if (Mouse.Target).CanCollide == false then
- (Mouse.Target).CanCollide = true
- (Mouse.Target).Transparency = 0
- else
- (Mouse.Target).CanCollide = false
- (Mouse.Target).Transparency = 0.6
- end
- end
- end
- uis.InputBegan:Connect(onKeyPressed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement