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)
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)
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?
I just want it where when you touch a certain part the particle in the starter character will come visible.