I converted the video if anyone doesn’t want to download it for themselves.
Show ur output in studio
If that’s possible
Due to the fact that the names of the children are different from what @Snoutfare is using, this does not work. Make the Part’s and Particle’s names the same as those in Snoutfare’s screenshot
For the Trigger variable change it to
local Trigger = script.Parent
Well its not really a parent since its not a child.
Heres what I mean:
So what do I do now?
(Im a noob at scripting btw)
Well, have you already tested it?
GENERAL ADVICE
Look @TeamDreams123, throughout the replies you mention you’re an inexperienced scripter and that’s alright- But we can only provide so much help before it just becomes spoonfeeding.
Without some more understanding on your part, adding more features based on your game’s audience’s feedback isn’t going to be feasible. You should try to get a bigger grasp on scripting to maintain your game or hire someone who can do the job properly.
Remember, most of the things sent here are just examples you should base your code on, not necessarily things to copy and paste with the expectation of the code/setup working immediately.
BACK ON TOPIC
You should make sure you’re testing properly with the Output Window
open through View -> Output
. You should also take screenshots of this.
If you want to add a particle to your checkpoint when its touched, that’s cool…
Assuming you already implemented the code for the checkpoint’s touch detection, why not just add a line that parents an existing particle emitter to it? What exactly isn’t working?
or
What does your current code look like?
Well, it looks like this:
local Confetti1 = script.Parent.Confetti1.Explosion -- Finds ParticleEmitter1
local Confetti2 = script.Parent.Confetti2.Explosion -- Finds ParticleEmitter2
local Trigger = script.Parent -- Finds the part that triggers the confetti
Confetti1.Enabled = false -- Makes sure the particles arent enabled by default
Confetti2.Enabled = false
Trigger.Touched:Connect(function(trigger) -- This will make that when a player touches the Triggerpart a function will get triggered
if trigger.Parent:FindFirstChild("Humanoid") then -- Makes sure that whoever touches it is a player
Confetti1:Emit(1) -- Emits the particles
Confetti2:Emit(1)
end
end)
It’s working now,
I don’t need any more advice but thanks for letting me know that.
Yeah, I am inexperienced lol.