Jump to content

Spawn an object randomly in the map


Recommended Posts

You can spawn the object and then have to set its position using Transform:SetPosition(x,y,z). y should be 0, x and z should be random, but the spot should meet a certain criteria: you can check whether that spot turned out to be actual land using inst:IsOnValidGround().

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

  • Create New...