I'm trying to make a script where when you press E the GUI frame moves to a different position, but its not working( the original position is 220,50)
local GUI = game.StarterGui.ScreenGui1.HIghlightGUI
function onKeyPress(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.E then
GUI.Position = UDim2.new(340,50)
end
end
game:GetService("UserInputService").InputBegan:connect(onKeyPress)
