idk what im doing worng it is saying += is wrong??
while true do
script.Parent.Text = game.Players.LocalPlayer.OtherStuff.rebirths.Value += 0.1
wait(0.01)
end
idk what im doing worng it is saying += is wrong??
while true do
script.Parent.Text = game.Players.LocalPlayer.OtherStuff.rebirths.Value += 0.1
wait(0.01)
end
Get rid of the +=
part of your script. When you set the value of a variable you don’t use +=
unless you are adding to the value directly.
The line should instead be:
-- "+ 0.1" instead of "+= 0.1"
script.Parent.Text = game.Players.Local.OtherStuff.rebirths.Value + 0.1
thanks, also when I fixed it the text says, 1.000000000000000000000000000002 for some reason
What is the value of the rebirths? Try printing that out and see what it is. That value might be getting messed up before you add to it.
its not the value of the rebirths it is just the code, is there a way i can round it in text?
local variableName = math.round(value)
I think he wants decimals but if not then that would also work.
Ohh decimals, yea then that wouldn’t work
it still does not work here waht it looks like,
because your not setting the text to a rounded value
did i write the script wrong?
while true do
local idk = string.format(game.Players.LocalPlayer.OtherStuff.rebirths.Value + 0.1 .."x")
script.Parent.Text = idk
wait(0.01)
end
you are, have it something like this;
string.format("%0.1f", game.Players.LocalPlayer.OtherStuff.rebirths.Value + 0.1).."x"
It is not showing the decimal or the …“x”
Do a bit of debugging yourself, we’re not here to give out free code
I messed around with the text and i got wonky i fixed and so thankyou!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.