In a script I have this. The script is in a model in the Workspace.
function onKeyPress(actionName, userInputState, inputObject) if userInputState == Enum.UserInputState.Begin and InUse == 0 and Players.LocalPlayer.PlayerScripts.Allowed.Value == 1 and script.Parent.Localizer.Value == 1 then print("Stuff happens here") end end game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.E)
Using this works fine in Solo, but it doesn't work in a Server. I'm thinking it's because Keyboard Input is having a problem when I play on a server.
If I'm wrong please let me know. I'm trying to look for an alternative, but I'm hoping to stick to this format.