Particle Transparency Errors

I am trying to make particles go transparent and then untransparent in certain situations. I am curious on why I am getting an error. Here is a script that I have in ServerScriptService:

local part = game.Workspace.Food.YellowSeeds
local seed = game.StarterPlayer.StarterCharacter.Head.LowerBeak.Yellow

function onTouched(part)
	seed.Transparency = 0
	wait(3)
	seed.Transparency = 1
end

part.Touched:connect(onTouched)

And then here is the error that I am getting:

Screenshot (814)

Thanks

You need to assign a ‘NumberSequence’ value instead, not a number value.

Sequence = NumberSequence.new()

https://developer.roblox.com/en-us/api-reference/datatype/NumberSequence

1 Like

Something like this?

local part = game.Workspace.Food.YellowSeeds
local seed = game.StarterPlayer.StarterCharacter.Head.LowerBeak.Yellow

function onTouched(part)
	seed.Transparency = NumberSequence.new(0)
	wait(3)
    seed.Transparency = NumberSequence.new(1)
end

part.Touched:connect(onTouched)

Check the link I shared, it demonstrates how ‘NumberSequences’ work.

I am using the number sequence but it still isnt working. I just realized now that maybe the issue is that the particles I want to become enabled are in a Starter Character. Is that maybe affecting it?

Screenshot (816)

I just want it where when you touch a certain part the particle in the starter character will come visible.