So i need the part to change transparency to 1 or 0 using a single key.
COMMUNITY QUESTION
So how do I toggle the visibility of a part using a single key?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
tool.Equipped:Connect(function() UIS.InputBegan:Connect(function(input, gameProcessedEvent) if input.KeyCode == Enum.KeyCode.Q and KeyPressed == false then KeyPressed = true print(KeyPressed) tool.Part.Transparency = 1 end end)
So what is the problem?
nvm i fixed it