Hello. Yesterday I learnt of keyboard inputs. But the problem is I still don't know how to make a keyboard input sequence door, any help can be helpful (correction, roblox lua wiki links) ^^ If you don't know keyboard inputs, here is an example

function onKeyPress(inputObject, gameProcessedEvent)
	if inputObject.KeyCode == Enum.KeyCode.S then
		game.Workspace.ForestWorld.TreePuzzle1.DownArrow.Transparency = 0
		
	end
end
 
game:GetService("UserInputService").InputBegan:connect(onKeyPress)

2 comments

0

Here

0

function onKeyPress(Input) if Input.UserInputType == Enum.UserInputType.Keyboard then if Input.KeyCode == Enum.KeyCode.S then print('pressed') -- do code here end end end game:GetService("UserInputService").InputBegan:connect(onKeyPress)