Okay so I am trying to make a statement that says: if leaderstats is greater than or equal to 100 then How would I put that into scripting language?
Depends on what leaderstat you're checking. To access a leaderstat-
Game.Players.PlayerName.leaderstats.StatName
so...
if Game.Players.PlayerName.leaderstats.StatName.Value >= 100 then print("dewd u r rich") end
You would do exactly what you're saying, use the >=
operator in an if statement.
local SomeNumber = 1337 local SomeOtherNumber = 9001 local TheLastNumber = 42 if SomeNumber >= 1337 then print("Some Number is at least 1337") end if SomeOtherNumber >= 1337 then print("Some Other Number is at least 1337") end if TheLastNumber >= 1337 then print("The Last Number is at least 1337") end --- Output: -- Some Number is at least 1337 -- Some Other Number is at least 1337
For the leaderstats part, you do that however you would like, there is no definite way and a broad amount of solutions to answer such a question with such a lack of detail.