Attempt to call missing method 'TweenPosition' of string

Hello, so i am getting this error while im trying to use TweenPosition on a TextLabel

script.Parent.Buttons.Name:TweenPosition(UDim2.new(0.471, 0,0.111, 0),
	Enum.EasingDirection.Out, 
	Enum.EasingStyle.Quart, 
	2,                      
	true                   
)

Players.Split_s.PlayerGui.Menu.Main:52: attempt to call missing method ‘TweenPosition’ of string

but it works totally fine when i use it on a TextButton ,does anybody know how i can fix this issue ?

image

1 Like

Do script.Parent.Buttons:FindFirstChild("Name") instead, it is searching for the button’s name

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.