Hello, I wanted to make a script that uses the "E" button to move the frame. Unfortunately, something went wrong. Does anyone know how to reposition the x or y of the frame?
-- loop,
while true do
--when pressed D
game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.D then
script.Parent.Player.Position.X = script.Parent.Player.Position.X+1 -- change position X of the player(player is a frame)
end
end)
end
