Im not sure if this is a bug or what but i’ve been messing around with my npc system and my serverscript works fine but my localscript is literally not responding at all, I thought it was an issue with my code so I created a separate localscript(inside of NPC Model in workspace) and added a 1 line print statement, nothing is outputting at all.
local scripts dont run when parented to something in workspace
use a server script instead
if you need something to be run on the client side, you need to use remote events
Oh man I must be completely idle in the head Lol, thanks for the help. If I was trying to animate the npc via localscript would I need to do it through the serverscript or what?
NPCs should always be animated on the server
you only use the client to animate its own player
simple solution
if youre trying to run an animation, use a localscript but place in something that is replicated client side (starterplayer, startergui)
recommended to animate them server side, but maybe your scenario is different
Alright thanks for the help, I’ll just run it via serverscript no worries.
no problem. glad i could help!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.