Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

image label gui not tweening?

Asked by 3 years ago

my gui tween code isnt working? it runs the code but the gui not moving? here is the code:

if fishsuccess == true then
    fishrate.Visible = true
    fisharrow.Visible = true
    fisharrow.AnchorPoint = Vector2.new(0.5, 0.5)
    local arrowgoal = {}
    arrowgoal.Position = UDim2.new(0.2, 0, 0.019, 0)
    local arrowtweeninfo = TweenInfo.new (6, Enum.EasingStyle.Sine )
    TweenService:Create(fisharrow, arrowtweeninfo, arrowgoal)

end

*fish rate is another gui part that needs to be visible when the value is true

0
Just be like : yourimagegui:TweenPosition(UDim2.new(0.388, 0,0.161, 0)). It will tween automatically to a positiion. Not sure if that might help you. but their yah go... Carlowskey 20 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

you didnt play the tween

if fishsuccess == true then
    fishrate.Visible = true
    fisharrow.Visible = true
    fisharrow.AnchorPoint = Vector2.new(0.5, 0.5)
    local arrowgoal = {}
    arrowgoal.Position = UDim2.new(0.2, 0, 0.019, 0)
    local arrowtweeninfo = TweenInfo.new (6, Enum.EasingStyle.Sine )
    TweenService:Create(fisharrow, arrowtweeninfo, arrowgoal):Play()
end
0
can u answer my new question? im sstruggling with it adihhgg 0 — 3y
Ad

Answer this question