of     1   

Bella4463
#140456810Tuesday, July 15, 2014 11:06 PM GMT

I'm helping with designing a house for someone's game and thought she would like to have some tour guide,after I saw and explored the Humanoid controls.I tried making a script to make the guide to walk to a certain point/room if you ask the guide where that room is(e.g. someone wants to know where the kitchen is,he asks "where is the kitchen" and the guide will walk to the kitchen and stand there). Since I'm not good at scripting,I thought I had this one right.Would anyone fix or at least point out my errors? guide = script.Parent function onChatted(msg, recipient, speaker) local source = string.lower(speaker.Name) msg = string.lower(msg) if (msg == "show me the kitchen") then guide.Humanoid.WalkToPoint = 10.571, 1.188, -58.499 end end function onPlayerEntered(newPlayer) newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end) end game.Players.ChildAdded:connect(onPlayerEntered) I have put the coordinates directly into the WalkToPoint control,and the bot walked to that point and stopped.It's not the coordinates or the bot,it's the script.
vlekje513
#140458580Tuesday, July 15, 2014 11:23 PM GMT

Vector3.new and i recommend using walktopart.
Bella4463
#142311907Friday, August 01, 2014 9:55 PM GMT

so,instead of saying "WalkToPoint,"I should put in "WalkToPart" and the part's coordinates?I haven't the slightest idea of what Vector3.new is.
softspoken
#142312204Friday, August 01, 2014 9:58 PM GMT

If you don't know what Vector3 is you probably didn't make this. Humanoid.WalkToPoint = Vector3.new(coordinates here)
AnonyAnonymous
#142312316Friday, August 01, 2014 9:59 PM GMT

Vector3.new() uses the XYZ or The X Axis, Y Axis and Z Axis An example would be, Vector3.new(X,Y,Z) Vector3 is three-dimensional.
Bella4463
#142318623Friday, August 01, 2014 11:06 PM GMT

I honestly didn't make the script 100%,I derived it from a command door script(which explains my ignorance..).I can't make scripts from scratch,I change scripts if I think I can work with it to make it into what I want.but thank you two very much,the help is very appreciated.I'll try everything once I can.
super10099
#142318724Friday, August 01, 2014 11:07 PM GMT

use MoveTo instead. Humanoid:MoveTo(Vector3.new())
AnonyAnonymous
#142318841Friday, August 01, 2014 11:08 PM GMT

Hopefully the information and additional links provided in this link helps you understand these concepts more clearly in the future, http://wiki.roblox.com/index.php?title=AllTutorials#Beginning_Scripting
super10099
#142318856Friday, August 01, 2014 11:08 PM GMT

guide = script.Parent function onChatted(msg, recipient, speaker) local source = string.lower(speaker.Name) msg = string.lower(msg) if (msg == "show me the kitchen") then guide.Humanoid:MoveTo("10.571, 1.188, -58.499") end end function onPlayerEntered(newPlayer) newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end) end game.Players.ChildAdded:connect(onPlayerEntered)
super10099
#142319197Friday, August 01, 2014 11:12 PM GMT

The thing is, you'll need to use path finding for this, cause the player will just walk straight to the coordinate. And the path can be blocked by stuff.

    of     1