For a game that I’m making, I’m trying to making a custom inventory system with custom slots. I wanted to make it so that the slot would rise slightly when the player equipped it. I made a tween service that moves the gui up, but I came across a problem.
This is the code that tells the tween where to move to (third argument to the tween):
local GuiPos = { Position = UDim2.new(slotPos.Position.X, 0, 0.9, 0) }
My problem is that no matter what I change in the 3rd argument, the tween always puts the gui in the same Y position. (The X position works properly).
Here’s a video to show you what I mean robloxapp-20201230-1713128.wmv
The slot is moving way too far up and I can’t seem to change that.
How can I change it so that the tween puts the gui in a different Y position?
No, I want the Gui to go to a specific Y position but no matter how I change the 3rd parameter of the UDim2 statement, it always goes to the same position.
The slotPos variable is used so that if I press 1, slot number one goes up. That’s working okay.
My problem is that the slots are moving up way too far and I can’t seem to change that.
Here’s what I mean: robloxapp-20201230-1713128.wmv (310.0 KB)