generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Controlling an NPC

Previous Thread :: Next Thread 
Ultraw is not online. 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
UltimateRaheem is not online. UltimateRaheem
Joined: 10 Nov 2012
Total Posts: 1886
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 is not online. 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 is not online. 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
Zarkonan_Zenheart is not online. Zarkonan_Zenheart
Joined: 29 May 2012
Total Posts: 610
25 Jan 2017 01:14 PM
setnetworkowner of the npc to the player
Report Abuse
Ultraw is not online. Ultraw
Joined: 20 Nov 2010
Total Posts: 6575
25 Jan 2017 01:24 PM
Ohhh yeah thanks


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image