script.Parent.Equipped:Connect (function(key) if (key == "F") then script.Parent.Part1111.Transparency = 0 script.Parent.Part11111.Transparency = 0 end end)
Equipped doesn't have a "key" value, but it has a "mouse" value which can be used to get keyboard input.
local tool = script.Parent tool.Equipped:connect(function(mouse) -- indexing mouse from tool.equipped mouse.KeyDown:connect(function(key) --connecting keydown from the mouse already indexed if key == "f" then script.Parent.Part1111.Transparency = 0 script.Parent.Part11111.Transparency = 0 end end) end)
Here's a script that you can hide the saber with: (hope it works)
local tool = script.Parent tool.Equipped:connect(function(mouse) -- indexing mouse from tool.equipped mouse.KeyDown:connect(function(key) --connecting keydown from the mouse already indexed if key == "q" then if script.Parent.Part1111.Transparency == 0 and script.Parent.Part11111.Transparency == 0 then wait (0.5) script.Parent.Part1111.Transparency == 1 script.Parent.Part11111.Transparency == 1
end
end) end)