Jump to content

Player Move to Part Not Working


Recommended Posts

I'm working on a system so that the player walks to a part and then the glass breaks. Most of the script works fine, however I'd like the player to actually walk to a certain part. 

Here is my code:

windowscript.png.a6995efde47dedb7bdaf287bf33fbb37.png

If anyone can explain why it isn't working and a solution, that would be great, thanks!

 

 

Share this post


Link to post
Share on other sites

The "StandPartPositioin" variable is already a Vector3 therefore doing Vector3.new(Vector3) is wrong.

PlayerHumanoid.WalkToPoint = StandPartPosition;

that should work.

 

(sorry for the quotes, i didnt know how to remove them)

Quote
Quote
Quote

 

 

 

 

Edited by PK_Sarim
  • Love 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.