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

How do I use Tween Info correctly??

Asked by
iuclds 720 Moderation Voter
4 years ago
--//IN\\--
    script.Parent.MouseEnter:Connect(function() 
    TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.In,1,true,0.001)  
script.Parent:TweenPosition(UDim2.new(0.032, 0,0.4, 0)) 
    end)

--//OUT\\--
    script.Parent.MouseLeave:Connect(function()
    TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.In,1,true,0.001)   
script.Parent:TweenPosition(UDim2.new(0, 0,0.4, 0))
    end)
0
Is the object a 3D object (like a part) or a 2D object (like a Gui)??? Eternalove_fan32 188 — 4y

2 answers

Log in to vote
1
Answered by 4 years ago

This link should be everything you need to describe what TweenInfo is.

Ad
Log in to vote
-2
Answered by 4 years ago

TweenInfo is only for 3D objects, not for 2D objects (a Gui for example):

script.Parent.MouseEnter:Connect(function() 
    script.Parent:TweenPosition(UDim2.new(0.032, 0,0.4, 0), 3, true) 
end)
--//OUT\\--
script.Parent.MouseLeave:Connect(function()
    script.Parent:TweenPosition(UDim2.new(0, 0,0.4, 0), 3, true)
end)
0
TweenInfo can be used for 2D objects (fading in/out, changing size). Nowaha 459 — 4y

Answer this question