Spawning Objects

i need to spawn a barrier infront of my character i think i need to instantate it but im not sure, i work in C# btw but javascript would be fine

Yes you need to do some instantiation.

See the documentation here