Hello everyone, I’m trying to make client sided effects in my game using an event but keep getting the same error
I tried changing the setting the parent of the part to Replicated Storage instead of Server Storage but still am getting the same error.
The only time it worked was when I used task.wait(10) after setting the parent of the part.
If anyone can help me with this problem it would be greatly appreciated as i have been trying to fix it for the past 4 hours.
3 Likes
If you click the error, does it take you to that script?
3 Likes
Its being called from the server with an event
3 Likes
Sorry, I’ve changed the question because I’ve realised that the error is a :GetDecendants error
2 Likes
The event calls a local script which calls a module script with all of the effects in it
I think it has to do with the event because the print sends nil for arg 2 even though its set when calling the event
It’ll be something else. Can you send me a screenshot of the part?
1 Like
My best guess is that if this is running on the server the part is client sided, and vise versa. Because the error you are getting is suggesting that part doesn’t exist.
its a normal part with transparency set to1
I was meaning the explorer side of things…
Ive checked on both the client and the server for the part and it shows up
1 Like
Hazania
(Hazania)
August 28, 2023, 7:52pm
#12
Print the part to output when the ParticleEmitter function runs, it appears one or more of the parts this function calls are not sending the expected parameter.
1 Like
the part doesnt show in the client script but it will work if i put task.wait(10) before calling the event
Would it work if you had no number in the wait? Maybe the part doesn’t spawn in time for the event to fire.
ive tried and that doesnt work either
Try spawning the part on the client.
Do you have streaming enabled on?
Streaming enabled would mean you would need to be close to the part for it to enable.
ILY bro it works when i turn off streaming enabled!
You’re welcome! I think they’re are a couple other ways to do it for if you want streaming enabled on, but I’m not sure how.
system
(system)
Closed
September 11, 2023, 8:56pm
#20
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.