I want to clone an object by referring to the exact position of the character

  1. What do you want to achieve?

I want to clone an object by referring to the exact position of the character at the moment the player inputs.
For example, I want to create an object in front of a character the moment player types something.
And I want to make the object on the server side so that other players can see it.

  1. What is the issue?

I don’t know how to clone an object by accurately referring to the character’s position the moment the player types something.

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

I used RemoteEvent to clone from ServerStorage on the server side.
However, the position of the character that gotten on the server side seems to be a little late, so I could not refer to the position of the character accurately.

When I cloned from ReplicatedStorage on the client side, the object was not created on the server side and was not visible to other players.

The premise is a bit confusing , could you be more specific? what do you mean by referring to the position of the character ,do you want to clone an object and move it to the same position as the character?

if you mean clone an object and move it to the player.character then:

if your object is a model then this might work
myObject:SetPivot(playerCharacter:GetPivot())
if its a part then you should do
myObject.Position = playerCharacter.PrimaryPart.Position

(slight disclaimer: if the code doesn’t work then sorry. I’m not too good at coding yet)

You might not need to have this object on the server. If it doesn’t serve any other purpose besides being there, I suggest looking at FireAllClients.

do you want to clone an object and move it to the same position as the character?

Yes, I want to create an object at the position of the character.

My Object is a part.

myObject.Position = playerCharacter.PrimaryPart.Position

With this method, if the character is moving, the position of the object will shift from the character.

I want to create the object on the server side.

Apologies for the extremely late response, but have you considered using a weld?