when this script runs it doesn't print but there's no error
1 | script.Parent.Touched:connect( function (hit) |
2 | if hit.Parent:FindFirstChild ( "leaderstats" ) then |
3 | if hit.Parent:FindFirstChild ( "leaderstats" ).Points.Value > = 2 then |
4 | print ( "working" ) |
5 | end |
6 | end |
7 | end ) |
This is how I use it in my game; while game.ServerStorage.DoughValue.Value >= 1 and currentAmount <= 2 do
Try to do the same, but with your code. I don't understand what you're trying to do.
So, it is pretty basic. If the points value is BIGGER (>) or EQUAL (=) to 2, then the print should print.
You can remove the = to get only a higher number do the print, and you can also change it the other way around.