Remote event broken

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I want to make that if you click a npc spawns on where your mouse location is.

  1. What is the issue? Include screenshots / videos if possible!

i entered a CFrame and script 1 printed the actual cframe and i made replicated event and put the Cframe on Argument 2

and when i tried to set the Cframe the script is just saying that the Argument is nil how do i fix

Pictures:
1.


2.

3.


  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I tried Youtube

I didnt looked for solution on Dev Hub

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

Detail.1 This does not make sense

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

Could you try debugging first? Try printing the PrimaryPart.CFrame on Client or double-checking if there is even a primarypart set in the model.

primary part is set and i alredy tried doing that

wait let me do something that might work