You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want the frame to move up via tweenservice when its hovered over. -
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. -
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.