Hi, i just know a bit how to read lua code, and i try to made a very dumb pet sim game to play it with friends, so i used AI and some code i found to make almost all, but i just cannot do a script than when a coin breaks it drops particle, i try to a code than copys a part wich has a particle emitter, but it just dont work, what can i do? is the first game i actually try to do, so sorry if its a dumb question (I know stealing code is bad but this is just a silly game i want to play with friends)
#ParticleEmitter is not emitting nothing ðŸ˜
1 messages · Page 1 of 1 (latest)
sounds like a silly waste of our time!
Ofc, but i have nothing better to do with my life rn
** You are now Level 1! **
what does that have to do with my time?
the fact than u are also here? idk, manage your time as your want
not too sure but i assume particle emitters dont work instantly so, try adding a small amount of wait before emitting?
and, i recommed instead of making the emitter from scratch using scripting, make an already exist]ing one and clone it to the toilet effect part
to garuantee its not a problem with the values of the particle emitter
gl!
i read that message u send i was thinking how much dumb i am
where is this placed?
yes this is a common problem @icy grove its bc there is a slight delay to the particle emitter, the exact time i dont know, but i have come across this problem several times. What I did before was emit the particles BEFORE the "coin break" to sync it, however this is unstable and unreliable
i mean, its a pet sim game, i think if i add a wait ime efore emitting the ones who breaks it fast will seem it with delay ig
Inside the model of the breakable
Script
yeah dont worry, i put localscript one time
then idk
Soo, there isnt a easy way to do it?
you could do this: instead of emitting AFTER the break, you could do it before the break (delay the break so they both sync)
i dont wanna expend days in making just a particle, cuz i wanna make the game soon
Okay, i will try
dont worry, thanks for trying to help
honestly, it depends on what you want your game to become, if you just want to practise scripting, then you can skip the particles. You could make the coin break in an equally satisfying way, ill give u a script
I mean, the game idea started like a joke with school friends saying "imagine pet sim 99 but brainrot" and i satart making one of skibidi toilet, just for fun
and when i start trying the particles, it turns fun into pain ðŸ˜
task.wait(0.001)
im not trying to make a viral game or smth
alr, i dont knowed than lua can handle decimals
for i, v in ipairs(skibidiModel:GetChildren())
while v.Transparency < 1.01 then
v.Transparency += 0.01
v.Size += Vector3.new(0.1,0.1,0.1) --you can adjust this to smaller or larger if you want
task.wait(0.01)
end
end
btw make sure to do this if that doesnt also work
@icy grove
Why transpareency? what it will do?
how visible the object is
basically my script makes the parts in the model become larger and more transparent, like a fading animation when you break them
u mean, downloading a free asset? i dont understand it sorry
makes sense, i put it at the end of the code?
put it in the if health <= 0
okay, tysm instantiate
** You are now Level 2! **
make particle emitters
like, the object
and remember to put a skibidiModel:Destroy() to destroy it
store it somehwere like replicated storage
use Clone() to clone the object
for example
yeah i know, but i tryied to make a invisible part with particleemitter inside than when i break a breakable, the part apears for a second and drop some particles
I deleted it for error ig, thanks
local orginparticleemitter = game.ReplicatedStorage.Template
local newparticleemitter = orginparticleemitter:Clone()
newparticleemitter.Parent = yourparentobj
yes, it can error bc the script runs slightly longer than the destroy meaning it will be running on nil, and therefore think something is wrong
put a return after the Destroy, everything works
Okay, i will try it later, tysm, u helpeed me a lot
np, i wish you success on your game!!
im js saying that i recommed not creating particles using scripts just to make sure
yeah, i try it on the cod ei send, it was a dumb idea
but thanks
np, gl on your game
Skibidimodel 😠ðŸ˜
thats what he wrote on his code i just copied it