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.
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.
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)