|
| 06 Jul 2014 11:36 AM |
Ok so basically what this script does is when i say "!Serv 1" a model in the game named Servant1 (which is a humanoid) will walk to the cordinates in the script. (also if possible how can i make it go to a brick i know the WalkToPoint works but the WalkToPart seems to be grayed out and does not work?)
function onChatted(msg, recipient, speaker) MSG = string.lower(msg) if speaker.Name == "TreeLineUser" then if MSG == "!Serv 1" then game.Workspace.Servant1.Humanoid.WalkToPoint = (1,1,1 end end
|
|
|
| Report Abuse |
|
|
|
| 06 Jul 2014 11:38 AM |
| You seem to be missing an end parenthesis in the Vector3 value and a connection line. |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2014 11:39 AM |
| Woah the simple mistakes.. I'll see if that fixes it. |
|
|
| Report Abuse |
|
|
| |
|
|
| 06 Jul 2014 11:55 AM |
function onChatted(msg, recipient, speaker) MSG = string.lower(msg) if speaker.Name == "TreeLineUser" then if MSG == "!Serv 1" then game.Workspace.Servant1.Humanoid.WalkToPoint = (1,1,1) game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(message) onChatted(message, player) end) end)
this is what i have so far though but still not working. |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2014 12:04 PM |
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) MSG = string.lower(msg) if player.Name == "TreeLineUser" and MSG == "!Serv 1" then game.Workspace.Servant1.Humanoid.WalkToPoint = (1,1,1) end end) end)
I tried rearranging your script around a bit; see if that works |
|
|
| Report Abuse |
|
|
| |
|
|
| 06 Jul 2014 12:17 PM |
| What exactly is not working? Is the model not spawning or is it not refusing to walk to the point? |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2014 12:20 PM |
| What do you mean model not spawning? No model is suppose to spawn the model is already in game waiting to be commanded around. It's just It is not moving. I know that it's the script that is not working because when i enter in the cordinates manually by clicking humanoid properties, The servant will move to the cordinates. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
rens321
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 11470 |
|
|
| 06 Jul 2014 01:50 PM |
| because you're lowering a string and you have a capital in the comparison string |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 06 Jul 2014 02:15 PM |
| No because it's just humanoid model nothing more. |
|
|
| Report Abuse |
|
|
Vuva
|
  |
| Joined: 22 Jan 2010 |
| Total Posts: 1102 |
|
|
| 06 Jul 2014 02:54 PM |
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) MSG = string.lower(msg) if player.Name:lower() == ("treeineuser"):lower() and MSG == ("!Serv 1"):lower() then game.Workspace.Servant1.Humanoid.WalkToPoint = Vector3.new(1,1,1) end end) end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 06 Jul 2014 03:45 PM |
| Nothing in the output why is this not working?? |
|
|
| Report Abuse |
|
|
Vuva
|
  |
| Joined: 22 Jan 2010 |
| Total Posts: 1102 |
|
|
| 06 Jul 2014 04:02 PM |
OH wait I apparently messed up your name.
Replace this line: if player.Name:lower() == ("treeineuser"):lower() and MSG == ("!Serv 1"):lower() then with this: if player.Name:lower() == ("treelineuser"):lower() and MSG == ("!Serv 1"):lower() then |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2014 04:31 PM |
| oh... yea did not spot that.. you would think the output would show that but guess not i'll test it out |
|
|
| Report Abuse |
|
|
| |
|