(Sorry for being a noob on the og post)
Rewrite :
I’m try to make it so once clicking a part the particles go to transparency 1, if I did disable you see the particles fade out…
I got told to use this
function click()
script.Parents.Father.Mother.Sister.SistersPart.PartParticles.Particles.ParticleTransparency = 1
start
stop
end
I just don’t know how to connect the part with the part with particle (called A) with button (b)
There is no “gender” property on models and well every instance there is, you may be thinking of the parent. Right now it seems the parent is workspace.
Regardless if this was a joke or not, the amount of joke replies took this a bit too far. 10 people didn’t have to post a joke about OPs mistake. This is the devforum, be civilised.
I realised my mistake now, kinda sad to see how many people didn’t help… Greatful for the ones who did…
Try and read my rewrite… it was what I was trying to get across
Hey, can you provide some more context on to what you are doing? It seems like you are trying to make a button be pressed to change your particles. It seems you’re new and can use some help, I would highly recommend using @Egzekiel 's solution.
Just for some clarification: You should find the path by using the “explorer” tab and look within the Workspace folder, then find the direct path to the part you need for your particles.
script.Parent would get the parent of the part. script.Parent.Parent would be used instead of script.Parents.Father.Mother. To get a direct child of an object, you’d do Object.ChildName; for example, script.Parent.Parent.Parent.Model1.ParticlePart.ParticleEmitter
Rip, I don’t plan to be districted to this code though. If it’s not going to work or not correct I’m open to a different script or corrections, I think I need a different script lol
It would be best if you try to understand what you wanna do, I suggest you go to this page and start learning so you don’t have to ask to do that kind of stuff for you.
If you have another question related to developing, feel free to make a new thread ^^
I seem to have found your issue, you are not connecting the “clicked()” function to a .MouseClick event and there seems to be no ClickDetector, if no one has replied a working fix yet then you can use this.
local Part = script.Parents.Father.Mother.Sister.SistersPart
local Particle = Part.PartParticles.Particles
local ClickDetector = Instance.new("ClickDetector")
function clicked()
Particle.Transparency = NumberSequence.new(1)
end
ClickDetector.Parent = Part
ClickDetector.MouseClick:Connect(clicked)
If you want to make it simpler you could move the script in ServerScriptService and have the part just be in workspace with particles inside the part.
Here is what the code would look like and how the directory would look, this has the same effect as my above GIF shows.
local Part = workspace.ThePart
local Particle = Part.PartParticles.Particles
local ClickDetector = Instance.new("ClickDetector")
function clicked()
Particle.Transparency = NumberSequence.new(1)
end
ClickDetector.Parent = Part
ClickDetector.MouseClick:Connect(clicked)
This is what the directory would look like this time, this is much cleaner.