I am trying to make this script change a value when "Q" has been pressed down. Here is the script:
function onKeyPress(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.Q then
local Place = true
if Place then
game.Players.LocalPlayer.PlaceMode.Value = false
Place = false
if not Place then
game.Players.LocalPlayer.PlaceMode.Value = true
end
end
end
end
game:GetService("UserInputService").InputBegan:connect(onKeyPress)

3 comments
What does elseif do?
@TinyScripter its like, if this then that elseif this then that elseif this then that else that end
...?