I was making a module to handle projectiles for me and this line of code on the server make it so it lags on the clients view.
Projectile.CFrame = CFrame.new(Projectile.CFrame.Position,Projectile.CFrame.Position+BodyVelocity.Velocity)*OffsetOrientation
I already tried to replicate it to every client with renderstepped but it created a lot more problems.
I wanted to have the projectile follow the bodyvelocitys direction but it made so it stutters a lot.
elseif v1 == "BulletFollow" then
local Following
Followng = RunService.RenderStepped:Connect(function()
if v2.Anchored then Followng:Disconnect() end
v2.CFrame = CFrame.new(v2.CFrame.Position,v2.CFrame.Position+v3)*v4
end)
This is the code i tried on the client
and this is what it looks like.
Yes i have my network owner set. And if i set it to the player the projectile doesnt even move.