if game.Workspace.AmountOfOrbs.Value = 3 then print("Hello") end --AmountOfOrbs is a string value btw--
You're using a single equal sign =
, which can be used to set variables but cannot be used to compare values.
You need an operator to compare values, a double equal sign ==
is what you're looking for.
if game.Workspace.AmountOfOrbs.Value == 3 then print("Hello") end