the script worked completely fine before but now Im getting this error. im lost, anyone have any idea why?
Error: attempt to index number with 'TweenPosition'
stat = script.Parent.Stat
remote.OnClientEvent:connect(function(player)
stat:TweenPosition(
UDim2.new(.3, 0, .6, 0),
"Out",
"Quad",
.5,
true
)
wait(3)
stat:TweenPosition(
UDim2.new(.3, 0, 1.1, 0),
"Out",
"Quad",
1,
true
)
end)

3 comments
are you sure "stat" is a gui instance?
yes
stat is a member of a gui? (ex: frame/textlabel/textbutton) etc