I am working a script that when you keypress some parts in the tool will become visible and some invisible. It just isn't working. Nothing Pops Up in the output
Drink = script.Parent.Drink FCP = script.Parent.FCP Flavoring = script.Parent.Flavoring Part1 = script.Parent.Part Part2 = script.Parent.Part2 Part3 = script.Parent.Part3 Part = script.Parent.Part4 Up1 = script.Parent.Up1 Up2 = script.Parent.Up2 Up3 = script.Parent.Up3 Up4 = script.Parent.Up4 Up5 = script.Parent.Up5 Up7 = script.Parent.Up7 function onKeyDown(key) key:lower() if key == "f" then Up1.Transparency = 0 Up2.Transparency = 0 Up3.Transparency = 0 Up4.Transparency = 0 Up5.Transparency = 0 Up7.Transparency = 0 Drink.Transparency = 1 FCP.Transparency = 1 Flavoring.Transparency = 1 Part1.Transparency = 1 Part2.Tarnsparency = 1 Part3.Tarnsparency = 1 Part.Transparency = 1 wait(3) Up1.Transparency = 1 Up2.Transparency = 1 Up3.Transparency = 1 Up4.Transparency = 1 Up5.Transparency = 1 Up7.Transparency = 1 Drink.Transparency = 0 FCP.Transparency = 0 Flavoring.Transparency = 0 Part1.Transparency = 0 Part2.Tarnsparency = 0 Part3.Tarnsparency = 0 Part.Transparency = 0 end mouse.KeyDown:connect(key) end
mouse = game.Players.LocalPlayer:GetMouse() Drink = script.Parent.Drink FCP = script.Parent.FCP Flavoring = script.Parent.Flavoring Part1 = script.Parent.Part Part2 = script.Parent.Part2 Part3 = script.Parent.Part3 Part = script.Parent.Part4 Up1 = script.Parent.Up1 Up2 = script.Parent.Up2 Up3 = script.Parent.Up3 Up4 = script.Parent.Up4 Up5 = script.Parent.Up5 Up7 = script.Parent.Up7 function onKeyDown(key) if key == "f" then Up1.Transparency = 0 Up2.Transparency = 0 Up3.Transparency = 0 Up4.Transparency = 0 Up5.Transparency = 0 Up7.Transparency = 0 Drink.Transparency = 1 FCP.Transparency = 1 Flavoring.Transparency = 1 Part1.Transparency = 1 Part2.Transparency = 1 Part3.Transparency = 1 Part.Transparency = 1 wait(3) Up1.Transparency = 1 Up2.Transparency = 1 Up3.Transparency = 1 Up4.Transparency = 1 Up5.Transparency = 1 Up7.Transparency = 1 Drink.Transparency = 0 FCP.Transparency = 0 Flavoring.Transparency = 0 Part1.Transparency = 0 Part2.Transparency = 0 Part3.Transparency = 0 Part.Transparency = 0 end end mouse.KeyDown:connect(onKeyDown)