I need constant replication of the object's position between client and server and I found this to be the best way to do it. Any other solutions?
game:GetService("RunService").RenderStepped:Connect(function()
if not RenderDebounce then
RenderDebounce = true
if target and target:FindFirstChild("Gravity") and target.Anchored == false and target:GetMass() < 250 and (target.Position - Tool.Emitter.Position).magnitude < 10 then
Attach:FireServer()
local obj = target
if obj then
obj.Position = Tool.Emitter.Position
end
end
RenderDebounce = false
end
end)
