Ok so I have a script that is supposed to make it to where when a function is called, a tween is played
game.ReplicatedStorage.KingUpdater.OnClientEvent:Connect(function(King)
spawn(function()
if NotifTween ~= nil then
NotifTween:Cancel()
end
wait(3)
NotifTween = game:GetService("TweenService"):Create(script.Parent.NotificationText,TweenInfo.new(.25),{TextTransparency = 1})
NotifTween:Play()
end)
end)
What the problem is is that when the tween gets played twice in the time period of 3 seconds it basically overlaps and doesn’t restart and wait 3 seconds like it’s supposed to. Does anyone know how to fix this? I’ve been tearing my hair out for the past hour