TweenService for Mouse hovering not working

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want the frame to move up via tweenservice when its hovered over.

  2. What is the issue? Include screenshots / videos if possible!
    it doesn’t do that, i tried using mousebutton1click to test if that would work, didn’t. I used [blank].Visible = false & [blank].Visible = true, that worked. So it’s a problem with the tweenservice lines.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Ive spent like 30 minutes trying to find out what it is, no idea, i havent slept in a while so i might just be stupid, i apologize if its obvious. I have looked on the dev hub.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

local tweenservice = game:GetService("TweenService")
local tweeninfo = TweenInfo.new(.25, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, 0, false, 0)

local Frame = script.Parent

local InvisiblePos = UDim2.new(1.5, 0, 0.5)

local VisiblePos = UDim2.new(0.5, 0, 0.5)

local Description = Frame.SkillDescription.Main

Frame.MouseEnter:Connect(function()
	local Popup = tweenservice:Create(Description, tweeninfo, {
		Description.Position == VisiblePos
	})
	Popup:Play()
end)

Frame.MouseLeave:Connect(function()
	local Popdown = tweenservice:Create(Description, tweeninfo, {
		Description.Position == InvisiblePos
	})
	Popdown:Play()
end)

Help is appreciated.

So the problem lies in the curly braces of your tween constructors.

This:

local Popup = tweenservice:Create(Description, tweeninfo, {
		Description.Position == VisiblePos
	})

should instead look like this:

local Popup = tweenservice:Create(Description, tweeninfo, {
		Position = VisiblePos
	})

You are already passing Description as the first argument, so it knows what object’s properties to change. And remember, == is an equivalency check, not an assignment. You are looking for = .

== is for condition checks, like

    if 2 == 2 then
        -- 2 equals 2!
    end

and = is for assignments, like

local two = 2
-- the two variable has been assigned a value of 2