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

Whats the bug in the script?

Asked by 9 years ago

Is there a bug in this script? script.Parent:TweenSizeAndPosition(UDim2.new(0,100,0,100),UDim2.new(0.5,0,0.25,0), "Out", "Bounce", 0.5, false, nil) output keeps saying "Players.Player1.PlayerGui.ScreenGui.TextButton.Script:2: attempt to call a userdata value"


1 answer

Log in to vote
0
Answered by 9 years ago

You Cant Use "Out" and "Bounce" you have to use Enums.

Example:

TweenSizeAndPosition(UDim2.new(0, 300, 0, 150), UDim2.new(0.5, -150, 0.5, -75), 
    Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 1, true)
0
You don't necessarily have to use enumerations. Redbullusa 1580 — 9y
Ad

Answer this question