Here is the structure of my work so far.
I have an ImageButton I'm using in the main menu on my game. When I change the properties by writing, for example:
game.StarterGui.ScreenGui.MainMenuFrame.MainMenuAboutButton.x = 0.5
or
script.Parent.x = 0.5
where x equals a property, the code works and changes the properties.
However, when I define the ImageButton as a variable like this:
aboutButton = game.StarterGui.ScreenGui.MainMenuFrame.MainMenuAboutButton
and then try to change the properties like:
aboutButton.x = 0.5
nothing happens. It seems like the code doesn't even consider the variable as the button I've defined it as, because I have an event that links to it that doesn't even fire but does if I use script.Parent.
Sorry if this is obvious, thank you!

3 comments
Thank you!
I got it working! I wish I could upvote you but the site won't let me.
You can mark one of the answers as accepted though