Help with scripting if possible

Hello, good morning, good afternoon or even good evening depending on what time you are watching this,
I’m creating a tower defense style game, watching GnomeCode’s tutorial videos, in video number 17 on the tower defense playlist he makes the tower attack designs and sounds, but he uses an effect from Roblox called fire, I wanted to replace it with a vfx I made, when the tower attacked, an attack effect would come out towards the enemy

GnomeCode uses this code:

 local projectile = Instance.new("Part")
 projectile.Size = Vector3.new(1,1,1)
 projectile.CFrame = tower.Head.CFrame
 projectile.Anchored = true
 projectile.CanCollide = false 
 projectile.Transparency = 1
 projectile.Parent = workspace.Camera

 local fire = Instance.new("Fire")
 fire.Size = 10
 fire.Heat = 10 
 fire.Color = tower.Config.Trail.Value
 fire.Parent = projectile

What could I do to get the result I want? I already tried to make a variable that cloned itself and its destination was the projectile using fire.Parent = projectile, but it didn’t work, can anyone help me?

My discord is VallZ#0214 for anyone who wants to get in touch, I thank you for your help and for your time.

1 Like

You would have to replace the “Fire” instance with a regular particle emitter.

Here are some docs.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.