Back to Library
Spawning
Nov 22, 2025
Spawning a blueprint
S
by sebi3000f
How to spawn a blueprint using tm.players.SpawnStructure() and tm.physics.AddTexture()
LUA
local position = tm.vector3.Create(0,0,0)
local rotation = tm.vector3.Create(0,0,0)
local playerId = 0
local structureId = 0
tm.physics.AddTexture("Blueprint.png", "Blueprint")
tm.players.DespawnStructure(structureId)
tm.players.SpawnStructure(playerId, "Blueprint", structureId, position, rotation)