Little help, making a script

Alright so im wanting to make a farming simulator style script!!! the closest that i was able to get was a grid system. but when ever i try to add props, holograms, icons or any thing to each grid/cell segment the script causes the player to crash when they enter render distance. any one got a suggestion or workaround that i may be able to use to get this to work???

Crashing when you enter render distance usually means too many entities spawning at once, or props being created before their model has loaded. A few things that help with grid systems:

  • Only spawn props for cells near the player (ox_lib’s lib.points works well), and delete them when the player leaves.
  • Request each model once and wait for HasModelLoaded, then call SetModelAsNoLongerNeeded afterwards.
  • Spread creation across frames with a Wait(0) every few props rather than spawning them all in one tick.
  • Use DrawMarker for holograms and icons instead of props. Markers aren’t entities, so they cost almost nothing.