#why does my ai lag sometimes?
1 messages · Page 1 of 1 (latest)
Probably something to do with Network Ownership
If the ownership is on the server, it will appear to be more jittery
What do you mean?
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
thing is when the owner of the game wasnt in the game it was still kinda laggy, not as much tho
** You are now Level 3! **
is there a way to fix it tho?
im the "ownership" lmao
No
Network Ownership
whats that
Look it up and read the document about it
Could you send link perchance?
It's who has ownership of a rigid body
ohh
bro google is free 😭
like parent?
no no
No
I use firefox lite
lite
I get 2 searches a day
well use one search on Network Ownership
yeah
but is there a way to like fix the lagging
"the engine assigns network ownership of physically simulated BaseParts to either a client or server to divide the work of calculating physics."
Correct
what do i change it to then
You would want to set it to the player who the npc is chasing
That is so the player/client will have full control over the npc
While that can be unsafe
unsafe from exploits?
It will result in a smoother movement
yeah
Most exploits are primarily external
is it possible to detect those
i dont want exploiters in my game
they dont use roblox guis right?
alr
let me try make a script rq and ill send it here and idk
u can check if its correctly written
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
here. check line 182-184
nvm error lol
@obtuse elbow
nvm i got it working
yay
Thanks for the help
Oh ok
@obtuse elbow 🙏
Hold on
alright
Is this ai 😭
wdym?
Is the script ai
Yeah?
I will not help then
its not ai generated
** You are now Level 8! **
HumanoidRootPart:SetNetworkOwner(nil) I think idk
I didnt mean that the script was made by ai, I thought that you meant the script is a ai
@obtuse elbow pls bro, we need you