Currently I’m finishing the barebones of my game, and I’m getting to the difficult part for me at least
Currently I’m working on the first one, which is client-prediction running (although they aren’t really similar at all in concept)
Basically, I have two tables and for each character a table storing their location. Now what I am unsure of is wat should be compared once I set it up like this -
["Sprinting"] = function(Params) RunService.Heartbeat:Connect(function() Prev.PlayerLocation = Params.Player.Character.HumanoidRootPart.Position task.delay(2.5,function() Curr.CurrentLocation = Params.Player.Character.HumanoidRootPart.Position end) end) coroutine.wrap(function() for _, plr in pairs(game.Players:GetChildren()) do VFX:FireClient(plr, Params.Hold, "CombatVFX", "RunVFX", Params.Player.Character.HumanoidRootPart) end end)() end,
Between the two values, I don’t know if I should be comparing the values as a whole, or a specific part of them. Alongside with this, I’m not even sure if in concept this would properly work. Any assistance?