How to lerp remote events

Hi, soo i have problem that i don’t want to send 10000 remotes per second, soo i found that i can send only 4 and then lerp positions, but how i can manage to do that? any solutions? please give me any example of doing that

ok, i made experiments, and i found easy solution:

local remote = game.ReplicatedStorage.RemoteEvent
local part = game.Workspace:WaitForChild("Part")


local last = CFrame.new(0,0,0)
remote.OnServerEvent:Connect(function(plr,hit:Vector3)
		local CF
		for i = 1, 15 do
			 CF = last:Lerp(CFrame.lookAt(Vector3.new(0,0,0),hit),1/15*i) 
			part.CFrame = CFrame.new(0,10,0) * CF
			task.wait(0)
		end
		last = CF
end)

this script heads example part to the player’s cursor position

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.