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: Need Help

Previous Thread :: Next Thread 
TherealScpfan108 is online. TherealScpfan108
Joined: 13 Nov 2014
Total Posts: 19
03 Oct 2017 02:56 AM
Hello, I am a fellow scripter like you are! But, I need help on this one thing
There is a game I am currently making with a constant of a Pathfinding NPC, I want to make the NPC go through the door but I want to make the non-NPC (Players) not go through the door its self. Can you help me on this script? If so post it in the comments below cause I need it fully, I cant even script it good!

-Xenil
Report Abuse
nooneisback is not online. nooneisback
Joined: 28 Feb 2012
Total Posts: 1672
03 Oct 2017 04:59 AM
You can make this using filtering. Make the door CanCollide locally, and make the NPC implementation on the server's side. That way the PathfindingService will make the path go through it, while the player is restricted.
Report Abuse
soutenu is online. soutenu
Joined: 09 Dec 2011
Total Posts: 1021
03 Oct 2017 05:28 AM
@OP PhysicsService
Report Abuse
evilninja77 is not online. evilninja77
Joined: 06 Jun 2013
Total Posts: 61
03 Oct 2017 06:09 AM
Reference the play with a parameter.

script.Parent.Touched:connect(function(hit)
if hit.Parent.Name == "NPC NAME" then
--do code for npc




--in here

else -- if a human then
--do stuff



--ya
end
Report Abuse
TherealScpfan108 is online. TherealScpfan108
Joined: 13 Nov 2014
Total Posts: 19
04 Oct 2017 04:47 AM
Thanks for the suggestions!
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