#why does my ai lag sometimes?

1 messages · Page 1 of 1 (latest)

slender burrow
#

like sometimes the ai lag/teleport whenever its walking towards a player

obtuse elbow
#

Probably something to do with Network Ownership

#

If the ownership is on the server, it will appear to be more jittery

slender burrow
obtuse elbow
#

Roblox handles physics and stuff by allowing clients to get ownership of rigid bodys

#

This means that physics objects can be calculated on the client and sent to other clients much faster instead of the clients having full control over them

slender burrow
drowsy groveBOT
#

studio** You are now Level 3! **studio

vivid vapor
#

im the "ownership" lmao

vivid vapor
#

whats that

obtuse elbow
#

Look it up and read the document about it

slender burrow
#

Could you send link perchance?

obtuse elbow
#

It's who has ownership of a rigid body

vivid vapor
#

ohh

obtuse elbow
vivid vapor
#

like parent?

slender burrow
obtuse elbow
slender burrow
#

I use firefox lite

obtuse elbow
#

lite

slender burrow
#

I get 2 searches a day

vivid vapor
obtuse elbow
#

well use one search on Network Ownership

vivid vapor
#

but is there a way to like fix the lagging

obtuse elbow
#

"the engine assigns network ownership of physically simulated BaseParts to either a client or server to divide the work of calculating physics."

vivid vapor
#

so

#

i set networkowner to not nil?

#

or what

obtuse elbow
#

Correct

vivid vapor
#

what do i change it to then

obtuse elbow
#

You would want to set it to the player who the npc is chasing

vivid vapor
#

workspace?

#

oh

#

wait hang on

#

let me try

obtuse elbow
#

That is so the player/client will have full control over the npc

#

While that can be unsafe

vivid vapor
#

unsafe from exploits?

obtuse elbow
#

It will result in a smoother movement

obtuse elbow
#

But exploiting is pretty hard to do now

vivid vapor
#

yeah

obtuse elbow
#

Most exploits are primarily external

vivid vapor
#

is it possible to detect those

#

i dont want exploiters in my game

#

they dont use roblox guis right?

obtuse elbow
#

Some do

#

But internal ones get caught easily

vivid vapor
#

alr

#

let me try make a script rq and ill send it here and idk

#

u can check if its correctly written

obtuse elbow
#

It would be better to create sanity checks on the server to check if the player didn't kill or do anything weird to the npc

vivid vapor
#

nvm error lol

#

@obtuse elbow

#

nvm i got it working

#

yay

#

Thanks for the help

obtuse elbow
#

Oh ok

vivid vapor
#

nvm

#

it doesnt really work

#

@obtuse elbow help please lol

slender burrow
#

@obtuse elbow 🙏

obtuse elbow
#

Hold on

slender burrow
obtuse elbow
#

Is this ai 😭

slender burrow
obtuse elbow
#

Is the script ai

slender burrow
obtuse elbow
#

I will not help then

vivid vapor
#

its not ai generated

drowsy groveBOT
#

studio** You are now Level 8! **studio

vivid vapor
#

the networkowner thing is

#

cus

#

idk how to do that

#

rest is not ai

karmic gale
#

HumanoidRootPart:SetNetworkOwner(nil) I think idk

slender burrow
slender burrow
#

@obtuse elbow pls bro, we need you