so basically im working on a clicker simulator with a twist but the problem in this script is that the tween happens the first time but the next times the text seems to just get visible with no tween please help me in this script
x = script.Parent
plr = game.Players.LocalPlayer or game.Players.PlayerAdded:Wait()
leaderstats = plr.leaderstats
reb = leaderstats.Rebirths
cash = leaderstats.Clicks
txt = x.Parent.Warning
x.MouseButton1Click:Connect(function()
if cash.Value >= 100 then
reb.Value = reb.Value + 1
cash.Value = 0
print(plr.Name.. " Has Got".. reb.Value.. " Worth Of Rebirth (s) ! Keep Going !")
else
print("Not Enough Clicks To Rebirth! Try After Getting 100 Clicks !")
txt.Visible = true
txt:TweenPosition(UDim2.new(0.018, 0, -0.66,0), "Out", "Elastic")
task.wait(3)
txt.Visible = false
end
end)