[Fixed] Text Disappears on the screen (TweenPosition)

Hello, i want to make a Scrolling Text but it should wait for Disappears until the text is no more Visible can someone Help me? Thank You!

script.Parent:GetAttributeChangedSignal("Eingeschaltet"):Connect(function()
	if script.Parent:GetAttribute("Eingeschaltet") == true then
		script.Parent.Enabled = true
		script.Parent.Lauftext.Position = UDim2.new(1,0)
	else
		script.Parent.Enabled = false
	end
end)

while true do
	script.Parent.Lauftext.Position = UDim2.new(1,0)
	wait(0.1)
	script.Parent.Lauftext:TweenPosition(UDim2.new(-1,0), "InOut", "Linear", script.Parent.Lauftext.AbsoluteSize.X / 40, false)
	wait(10000)
end

1 Like

There some issues in your code

  1. Why you wait for 10000 seconds after the tween

  2. TweenPosition is depraced

What is the time of the tween btw

wait(10000) is diabolical work.

I think it does this because how you count the wait time just set it to an fixed time

Edit oops was supposed to reply to op

the attribute probably changed so it disabled