Basically I want a tool's handle to have it's transparency gradually fade in and out when I press 'F', and uh...mine isn't doing that, so here's what I've got so far.
brick = game.StarterPack.KeyPressing.Handle
local userInputService = game:GetService("UserInputService")
userInputService.InputBegan:Connect(function(input, gameProcessedEvent)
if input.UserInputType == Enum.UserInputType.Keyboard then
if input.KeyCode == Enum.KeyCode.F == true then
if brick.Transparency == 0 then do
brick.Transparency +=.1
wait (.5)
repeat until brick.Transparency == 1
end
elseif brick.Transparency == 1 then do
brick.Transparency -= .1
wait(.5)
repeat until brick.Transparency == 0
end
end
