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 » Scripting Helpers
Home Search
 

Re: Please Fix

Previous Thread :: Next Thread 
TreeLineUser is not online. TreeLineUser
Joined: 17 Mar 2013
Total Posts: 1659
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
Frostglacier is not online. Frostglacier
Joined: 28 Oct 2010
Total Posts: 4177
06 Jul 2014 11:38 AM
You seem to be missing an end parenthesis in the Vector3 value and a connection line.
Report Abuse
TreeLineUser is not online. TreeLineUser
Joined: 17 Mar 2013
Total Posts: 1659
06 Jul 2014 11:39 AM
Woah the simple mistakes.. I'll see if that fixes it.
Report Abuse
TreeLineUser is not online. TreeLineUser
Joined: 17 Mar 2013
Total Posts: 1659
06 Jul 2014 11:43 AM
Nope still not working.
Report Abuse
TreeLineUser is not online. TreeLineUser
Joined: 17 Mar 2013
Total Posts: 1659
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
Frostglacier is not online. Frostglacier
Joined: 28 Oct 2010
Total Posts: 4177
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
TreeLineUser is not online. TreeLineUser
Joined: 17 Mar 2013
Total Posts: 1659
06 Jul 2014 12:15 PM
Nope still not working...
Report Abuse
Frostglacier is not online. Frostglacier
Joined: 28 Oct 2010
Total Posts: 4177
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
TreeLineUser is not online. TreeLineUser
Joined: 17 Mar 2013
Total Posts: 1659
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
TreeLineUser is not online. TreeLineUser
Joined: 17 Mar 2013
Total Posts: 1659
06 Jul 2014 12:36 PM
Bump
Report Abuse
TreeLineUser is not online. TreeLineUser
Joined: 17 Mar 2013
Total Posts: 1659
06 Jul 2014 01:07 PM
Bump
Report Abuse
TreeLineUser is not online. TreeLineUser
Joined: 17 Mar 2013
Total Posts: 1659
06 Jul 2014 01:46 PM
bump
Report Abuse
rens321 is not online. 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
TreeLineUser is not online. TreeLineUser
Joined: 17 Mar 2013
Total Posts: 1659
06 Jul 2014 02:04 PM
Nope. That's not it.
Report Abuse
iamsmartcookie is not online. iamsmartcookie
Joined: 18 Aug 2012
Total Posts: 2738
06 Jul 2014 02:07 PM
Maybe add .Character?
Report Abuse
TreeLineUser is not online. TreeLineUser
Joined: 17 Mar 2013
Total Posts: 1659
06 Jul 2014 02:15 PM
No because it's just humanoid model nothing more.
Report Abuse
Vuva is not online. 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
TreeLineUser is not online. TreeLineUser
Joined: 17 Mar 2013
Total Posts: 1659
06 Jul 2014 03:25 PM
Nope.. :C
Report Abuse
TreeLineUser is not online. TreeLineUser
Joined: 17 Mar 2013
Total Posts: 1659
06 Jul 2014 03:45 PM
Nothing in the output why is this not working??
Report Abuse
Vuva is not online. 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
TreeLineUser is not online. TreeLineUser
Joined: 17 Mar 2013
Total Posts: 1659
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
TreeLineUser is not online. TreeLineUser
Joined: 17 Mar 2013
Total Posts: 1659
06 Jul 2014 04:34 PM
Works many thanks!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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