How do I make a Projectile Appear and disappear

im trying to make a laser projectile but i cant figure out how to make a projectile

If your making a laser it’s best to draw a raycast

can you help me do that i dont know how to

You need to make a variable for the from point, to the to point, from is where the bullet starts (the muzzle of the gun), then the “to” point, where it ends, then assign a color as the third, i may have some examples

But if you go on the playcanvas api it may help you