It’s being tweened down, so it isn’t going down by whole numbers.
Then use two different values rather than one??
that would work
or maybe math.floor()
or math.celi()
This forum so stupid
(joke)
lol
YOUR the one asking for a countdown script that any person with the smallest bit of experience could do (maybe not efficiently, but they could)
I’m not asking for a countdown script. I already have that implemented. I’m asking for an alternative method of running a function. What the actual hell have you been reading? I’m not trying to start an argument here, but half of what you’ve posted hasn’t made any sense.
i gave you diff solutions man
your welcome btw for helping!
Yes, you gave me solutions that I previously stated cause lag for me, so great job doing nothing, I guess.
yw! hope you have a good day/night and cya man
ok, i will! thanks idk what my attention span ahs to do with anything, i also didn’t know you could get that checked out, or if thats even a problem man!
(what context)
cool man! didn’t know that!
(what are you implying lmao)
can you not just
value.Changed:Connect(function()
if value == 0 then
-- code here
end
end)
Unfortunately because I am tweening the value, this function would run 100 times per second, which will definitely lag my game.
math.ceil() --rounds up
--or
math.floor() --rounds down
--so maybe
math.floor(value).Changed:Connect() -- or just replace floor with ceil to round up
could fix that by rounding it and checking when the second changes, not the millisecond
ywwwww
gave you the answer lolol
but ignored due to you worrying about the argument
Actually math.round() would be better suited for this situation, so technically you still didn’t give me a correct answer. I did.
Not necessarily. 100 operations for the server is relatively nothing, same with repeat
.
But, if you are afraid of lag, you can use RunService
.
local RunService = game:GetService("RunService")
RunService.Stepped:Connect(function()
if value < 0 then
do something about it
end
end)
Even better than what I was about to do! Thanks!
nice ego dude, they all do the same thing
except for how they round, they all round
yw for the idea, and maybe don’t be such a prick to someone whos helping you write a script
and using adhd as an insult says alot about you, my man, have a good dayyyy
dayum the hell happened here
irdk, i tried to help, was given no context or anything, and he got upset for me trying to help
then tried to insult me (by implying i have adhd and i should go see a doctor)
lol