TweenService in repeat

I am getting freezed whenever I use tweenservice:Create in repeat. I don’t know why. It worked few months ago for me but now its just dead. Anyone can help?

Allright I forgot to put wait() beacuse the repeat is instant and doesnt wait for the tween to finish

Please provide the code.

Assuming it looks something like this:

local TweenService = game:GetService("TweenService")

repeat 
   TweenService:Create(p, info, {Transparency = 1}):Play() 
until false

You’re problem probably is because there is nothing pausing the script. The way the code works here, is it’ll pause the game and repeat this forever.

TweenService:Create(p, info, {Transparency = 1}):Play() 

If you throw a wait() into the repeat function it’ll give the script the ability to pause what it’s doing to allow other things to run.

Fixed Script

local TweenService = game:GetService("TweenService")

repeat 
   TweenService:Create(p, info, {Transparency = 1}):Play() 
   wait(1)
until false

Instead of constantly repeating, try setting the repeat amount in your TweenInfo to -1 which will make it repeat indefinitely

This will eliminate the need for the while loop