when a player collects multiple coins & gems at once, the server gets laggy… On computer it doesn’t affect the performance much, but on mobile it almost freezes everything.
the coins and gems have pretty massive hitboxes so that they can be collected from a longer distance.
the coin is displayed with a billboard gui.
in game, the orbs are usually this close to each other.
if db == false then if game.Players:GetPlayerFromCharacter(hit.Parent) then db = true if (hit.Position - coin.Position).magnitude < 10 then -- give currency else -- player was not close enough db = false end end end