I know this this can only work on LocalScripts, but what can I do to make it when a player touches the part, and then presses the letter to activate the other part?
local Player = game.Players.LocalPlayer
local mouse = Player:GetMouse()
script.Parent.Touched:connect(function(hit)
mouse.KeyDown:connect(function(Key)
if Key == "f" then
game.Workspace.TestDoor.Transparency = 1
end
end)
end)

1 comment
To correct you- Local scripts are functional in Characters and players. (Characters being the model in workspace, Players being the Player its self in Players