I won’t share all of my code since I know some people will probably steal it. But you will get the gist from this topic and down below for what I am gonna say.
I indexed the player in the FireClient argument even in the client script.
No typos in both the client and server script.
I did everything correctly and it still errors with the specified error shown up top even printing the player’s name and folder’s name will throw the attempt to index “nil” error.
that is checking if something was inserted into the blood folder. And yes so that answers your question. Weird how it indexes nil even tho it isn’t suppose to do that.
It isn’t nil in the server it’s created in the server and i’m getting it from the client by firing an remote event in the blood server script with the variables included in the FireClient argument.
Try adding :WaitForChild() replicated_storage:WaitForChild(“blood_Events”):WaitForChild(“bloodShakeFX”):FireClient(player, blood_folder);
I had an issue with things showing up as nil until I added WaitForChild
worth a try
Also printing the player’s name will also index nil with the name. Strange enough.
(Printing the player’s name was before removing the player parameter from the client script.)