Need help with making particle emitter transparent (URGENT)

Okay so what I’m trying to do is make it so the particles disappear but it’s not working heres the script: ‘’'local Userinputservice = game:GetService(“UserInputService”)
local player = game.Players.LocalPlayer
local reps = game:GetService(“ReplicatedStorage”)

local char = player.CharacterAdded:Wait()
local part = game.Workspace.Part
local Part = part.ParticleEmitter
Part.Parent = game.Workspace
print(char)

Userinputservice.InputBegan:Connect(function(input,gameProcessedEvent)

if input.KeyCode == Enum.KeyCode.LeftShift then  
	print(Part.Parent)
	local trail = Part:Clone()
	local trail2 = Part:Clone()
	local trail3 = Part:Clone()
	local trail4 = Part:Clone()
	local trail5 = Part:Clone()
	local rp = char:WaitForChild("HumanoidRootPart")
	local arm = char:FindFirstChild("RightHand")
	local larm = char:FindFirstChild("LeftHand")
	local leg = char:FindFirstChild("RightFoot")
	local lleg = char:FindFirstChild("LeftFoot")
	trail2.Parent = arm
	trail3.Parent = larm 
	trail.Parent = rp 
	trail4.Parent = leg
	trail5.Parent = lleg 

	local hum = char:FindFirstChild("Humanoid") if "Humanoid" then print("Found humanoid") 
		if hum.WalkSpeed == 100 then hum.WalkSpeed = 16 Part.Parent = game.Workspace trail2.Transparency = NumberSequence.new(1,0) or 0 trail.Transparency = NumberSequence.new(0,1) or 0 trail3.Transparency = NumberSequence.new(0,1) or 0 trail4.Transparency = NumberSequence.new(0,1) or 0 trail5.Transparency = NumberSequence.new(0,1) or 0
			

		else trail.Transparency = NumberSequence.new(0,1) trail2.Transparency = NumberSequence.new(0,1) trail3.Transparency = NumberSequence.new(0,1) trail4.Transparency = NumberSequence.new(0,1) trail5.Transparency = NumberSequence.new(0,1)

			print("Not Humanoid") hum.WalkSpeed = 100  hum.running:connect(function()
				if hum.MoveDirection.Magnitude > 0 and hum.WalkSpeed == 100 then print("Player has moved") while hum.MoveDirection.Magnitude > 0 and hum.WalkSpeed == 100 do 
						wait(0.1)
						print("Player is moving")
						for i =1, 4 do
							hum.CameraOffset = Vector3.new(math.random(-0.5,1),math.random(0.5,0.5), 0)


						end end
				end
			end)


		end end end

end)‘’’

It looks like the issue with your script is that you are not actually making the particles disappear. Based on your code, it seems that you are setting the transparency of the particle clones to a NumberSequence that will gradually make them invisible over time, but you are not actually doing anything to remove them from the game once they become fully transparent.

To make the particles disappear, you could try adding a line of code that removes each particle clone from the game once it becomes fully transparent. For example, you could add the following code to the end of your if hum.WalkSpeed == 100 then block:

wait(1) -- Wait for the particle clones to become fully transparent
trail:Destroy()
trail2:Destroy()
trail3:Destroy()
trail4:Destroy()
trail5:Destroy()

This code will wait for one second to ensure that the particle clones have become fully transparent, and then it will destroy each of the clones to remove them from the game.

Alternatively, if you want to make the particles disappear immediately, you could set their Lifetime property to 0 instead of changing their transparency. This will cause the particles to disappear as soon as they are created, without any gradual fade-out effect. To do this, you could add the following line of code after creating each particle clone:

trail.Lifetime = NumberRange.new(0,0)
trail2.Lifetime = NumberRange.new(0,0)
trail3.Lifetime = NumberRange.new(0,0)
trail4.Lifetime = NumberRange.new(0,0)
trail5.Lifetime = NumberRange.new(0,0)

This will set the Lifetime property of each particle clone to a NumberRange that starts at 0 and ends at 0, effectively making the particles disappear as soon as they are created.