Ultraw
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 6575 |
|
|
| 25 Jan 2017 12:41 PM |
What's the easiest way to control an NPC in a filtering enabled place?
The NPC is a dummy robloxian which i want to control with the arrow keys.
Of course, you can't do this from the client - :Move() will not work
I tried doing it from the server, using the player's character's humanoid MoveDirection property.. but it turns out that this just prints (0,0,0) on the server. (Even though it prints the correct move direction on the client)
So, I guess that the only way to do this is by using remove events to pass through the move direction to the server.. is this correct? Wouldn't this cause a lot of lag if i am calling :FireServer() every time the player's controls are updated?
|
|
|
| Report Abuse |
|
|
|
| 25 Jan 2017 12:48 PM |
Go into test mode, and then copy the Character into edit mode.
Study through the animate scripts etc to see how they work.
Want to be supported by developers in a positive atmosphere? Then join Studio BSD: roblox.com/My/Groups.aspx?gid=1013064 |
|
|
| Report Abuse |
|
|
Ultraw
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 6575 |
|
|
| 25 Jan 2017 01:04 PM |
i'm talking about filtering enabled not humanoid scripts....
|
|
|
| Report Abuse |
|
|
Ultraw
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 6575 |
|
|
| 25 Jan 2017 01:13 PM |
I tried using :FireServer() every time the player updates their controls but the input lag is way too much
|
|
|
| Report Abuse |
|
|
|
| 25 Jan 2017 01:14 PM |
| setnetworkowner of the npc to the player |
|
|
| Report Abuse |
|
|
Ultraw
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 6575 |
|
| |
|