So I’m trying to make a golf game and I ran into a issue were the golf ball lags when you shoot it.
Here is the game: Golf Game - Roblox
How would I fix this?
So I’m trying to make a golf game and I ran into a issue were the golf ball lags when you shoot it.
Here is the game: Golf Game - Roblox
How would I fix this?
What do you mean? That makes absolutely no sense. CFrame.LookVector
is not laggy. If you mean that the golf ball lags, that is because of how replication works in Roblox and the only way to “fix” that is to replicate physics yourself (manually sync client and server physics). Physics is best for whoever the NetworkOwner of the ball is because that is the person in charge of computing its physics. This is the simple solution but it will still result in inaccurate collisions with other balls and seeing other people’s balls lag
Should I just add this code: game.Workspace.Part:SetNetworkOwner(player)?