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

Why is TweenPosition not a member of TextButton?

Asked by
Azmidium 388 Moderation Voter
9 years ago

I am trying to make a simple tween out for my IntroGUI, but for some reason I am getting this error 13:15:23.972 - TweenPositon is not a valid member of TextButton 13:15:23.973 - Script 'Players.Player.PlayerGui.IntroGUI.Backing.Script', Line 6 13:15:23.974 - Stack End

This is my script. It runs the TextLabel TweenPosition, but not the TextButton...

script.Parent.Play.MouseButton1Click:connect(function()
    repeat wait() until script.Parent.Title
    repeat wait() until script.Parent.Play
    script.Parent.Title:TweenPosition(UDim2.new(-1, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Bounce, 1)
    wait(0.5)
    script.Parent.Play:TweenPositon(UDim2.new(-1, 0, 0.5, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Bounce, 1)
end)

1 answer

Log in to vote
2
Answered by 9 years ago
script.Parent.Play.MouseButton1Click:connect(function()
    repeat wait() until script.Parent.Title
    repeat wait() until script.Parent.Play
    script.Parent.Title:TweenPosition(UDim2.new(-1, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Bounce, 1)
    wait(0.5)
    script.Parent.Play:TweenPosition(UDim2.new(-1, 0, 0.5, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Bounce, 1)
end)

you wrote 'TweenPositon' not 'TweenPosition'

Ad

Answer this question