Answer the question
In order to leave comments, you need to log in
Which operator to enter so that it is if by (number) more?
local energy = game.Players.LocalPlayer.leaderstats.energy
local lvl = game.Players.LocalPlayer.leaderstats.lvl
local country = game.Players.LocalPlayer.leaderstats.country
while wait(2) do
if energy.Value == 100 then
lvl.Value += 1
end
if lvl.Value == 10 then
country.Value +=1
end
end
Answer the question
In order to leave comments, you need to log in
Operator: >
(more).
And in Lua there is no operator +=
unfortunately. This language is positioned as the simplest, without these programming hieroglyphs, understandable only to them.
local energy = game.Players.LocalPlayer.leaderstats.energy
local lvl = game.Players.LocalPlayer.leaderstats.lvl
local country = game.Players.LocalPlayer.leaderstats.country
while wait(2) do
if energy.Value > 100 then --если энергии больше 100
lvl.Value = lvl.Value + 1
end
end
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question