Hi everyone,
I have a script that makes it so a version of the model is always in front of the player, and works fine. But there’s a thing that makes it so whenever you click, a version of that part spawns in the server instantly. Put when the player is moving a lot, the server part isnt in the same position as the one in the client.
The only reason I didnt just send the CFrame to the server is to stop hackers
Here’s the code:
‘’’
local ForwardOffset = RootPart.CFrame.LookVector * 5
local FineTuning = Vector3.new(0,-2,0)
local TargetCFrame = RootPart.CFrame + ForwardOffset + FineTuning
NewPart:PivotTo(TargetCFrame)
‘’’
Also, there are no errors or warnings in the console.