Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I use leaderstats value for over <value>?

Asked by 3 years ago

There is a simple script that im working with, but this somewhat simple thing is a lot harder then it looks for me. This script checks if you have a leaderstat value of 20. But I want it to check if it has 20 or OVER that number. Any help I can get?

1 answer

Log in to vote
0
Answered by
Hypoxla 125
3 years ago

It's pretty simple.

Just use >=

if value >= 20 then
    --stuff
    end

More info can be found here: https://developer.roblox.com/en-us/articles/Operators

0
Thanks! Andromedual 35 — 3y
Ad

Answer this question