Hi! In my place I am building a forklift. I want to be able to press R to raise the forklift and F to lower it. I have the player sitting in the seat (seat.Occupant) stored into a variable (Player) but I do not know how to tell if Player presses a key. I am using UserInputService and if one person clicks r or f all forklifts activate. Any idea how to do this?
local Player = script.Parent.VehicleSeat.Occupant function onKeyPress(inputObject, gameProcessedEvent) if inputObject.KeyCode == Enum.KeyCode.R then print("Raise") elseif inputObject.KeyCode == Enum.KeyCode.F then print("Lower") end end game:GetService("UserInputService").InputBegan:connect(onKeyPress)