local ContextActionService = game:GetService("ContextActionService")
local function EnterDoor(inputState)
if inputState == Enum.UserInputState.Begin then
local DoorDistance = (workspace.Door1.Zone.Position - game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude
if DoorDistance <= 50 then
print ("you went in the door yay")
end
end
end
ContextActionService:BindAction("GoInDoor", EnterDoor, true,"e")
it doesn't print the thing when i press the button and i don't know why. i don't get any errors when i run it.

2 comments
the e key is an enumeration value , not a string
yea i tried to get some help from someone else they changed the "e" to a different thing but in other scripts where i change controls, it seems to work fine the way i put it as. also it doesn't work for the way the guy put it as either.