|
| 09 Jul 2012 05:04 PM |
i need to make a tour guide. when you click his head, he will anounce stuf and walk to places. as in, you click his head, then a message with the gray screenGUI and it says "ANYONE WHO WANTS A TOUR OF THE MOUNTAINS COME HERE". The non-player tour guide waits 10 secs then walks to a certain destination, says something, repeats to other destinations, then say something like this=" THIS IS THE END OF THE TOUR, FEEL FREE TO WALK BACK OR AROUND". Then the tour guide teleports back to the front of the trail or a certain place.
Here's some of the parts of the script I know:
For Him to talk certain parts at the certain destination i will have to use this script: ------------------------------------------------------------------------------------------ script.Parent.Parent.Name = " This is ____ " -- Change my text to your text.
wait(3) -- Change the time in between changing from the current text to the next text
script.Parent.Parent.Name = " It is very facinating "
wait(3)
script.Parent.Parent.Name = " (another adjective) "
wait(3)
script.Parent.Parent.Name = " (something) "
wait(3)
script.Parent.Parent.Name = " (something) " wait(3)
script.Parent.Parent.Name = " (something) "
wait(3)
script.Parent.Parent.Name = " (something) "
------------------------------------------------------------------------------------------
More on the next post, |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2012 05:06 PM |
i know ill need this part of the script: ------------------------------------------------------------------------------------------
OnTouched:()
------------------------------------------------------------------------------------------
Thats all i know of what to put in the script for the scenario above |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2012 06:00 PM |
I would use:
e = true script.Parent.ClickDetector.MouseClick:connect(function() if not e then return end e = false script.Parent.Parent.Name = "Follow me for a tour" --[[--]] e = true end)
It would be difficult to use Humanoid:MoveTo(), because people could get in the way. However, it would work with a while loop. A reliable way would be to use CFraming, but that would look fake. Message me if you want more help. |
|
|
| Report Abuse |
|
|
|
| 12 Jul 2012 07:57 PM |
| can i use a teleport script? |
|
|
| Report Abuse |
|
|
|
| 12 Jul 2012 07:57 PM |
| i need help to make a teeport script... |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
| |
|
| |
|
| |
|
|
| 13 Jul 2012 09:21 AM |
| would i use this if i were to use moveTo(): |
|
|
| Report Abuse |
|
|
| |
|
|
| 13 Jul 2012 09:24 AM |
here is a very simple script on how you can do it:
torso = game.Players.Player.Character.Torso TeleportTo = CFrame.new(0,0,0) torso.CFrame = TeleportTo |
|
|
| Report Abuse |
|
|
| |
|
|
| 13 Jul 2012 10:02 AM |
If you dont want him to teleport but you dont want players to get in the way you can make it so when players touch him its orces them to jump.
function onTouch(part) local humanoid = part.Parent:findFirstChild("Humanoid") if (humanoid ~=nil) then humanoid.Jump = true end end
script.Parent.Touched:connect(onTouch) |
|
|
| Report Abuse |
|
|
| |
|
|
| 13 Jul 2012 04:40 PM |
would it look like this?:
e = true script.Parent.ClickDetector.MouseClick:connect(function() if not e then return end e = false script.Parent.Parent.Name = "Follow me for a tour" wait (3 secs) Humanoid:MoveTo(0,0,0) --[[--]] e = true end)
function onTouch(part) local humanoid = part.Parent:findFirstChild("Humanoid") if (humanoid ~=nil) then humanoid.Jump = true end end |
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Jul 2012 10:16 AM |
can someone fix this?:
e = true script.Parent.ClickDetector.MouseClick:connect(function() if not e then return end e = false script.Parent.Parent.Name = "Follow me for a tour" wait (3 secs) Humanoid:MoveTo(0,0,0) --[[--]] e = true end)
function onTouch(part) local humanoid = part.Parent:findFirstChild("Humanoid") if (humanoid ~=nil) then humanoid.Jump = true end end |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 10:20 AM |
| try the script above to know why it doesn't work |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 10:25 AM |
e = true script.Parent.ClickDetector.MouseClick:connect(function(playerWhoClicked) if not e then return end e = false script.Parent.Parent.Name = "Follow me for a tour" wait (3 secs) playerWhoClicked.Character:findFirstChild("Torso").CFrame = Vector3.new(0,0,0) --[[--]] e = true end)
function onTouch(part) local humanoid = part.Parent:findFirstChild("Humanoid") if (humanoid ~=nil) then humanoid.Jump = true end end |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 10:25 AM |
Ugh, I forgot to fix the "wait"
e = true script.Parent.ClickDetector.MouseClick:connect(function(playerWhoClicked) if not e then return end e = false script.Parent.Parent.Name = "Follow me for a tour" wait(3) playerWhoClicked.Character:findFirstChild("Torso").CFrame = Vector3.new(0,0,0) --[[--]] e = true end)
function onTouch(part) local humanoid = part.Parent:findFirstChild("Humanoid") if (humanoid ~=nil) then humanoid.Jump = true end end |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 10:38 AM |
what does this this script do?
|
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 01:24 PM |
| I fixed the one you posted |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 02:58 PM |
| what does it do explain so i know you fixed it rite |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 03:15 PM |
You had
Humanoid:MoveTo
But humanoid wasn't defined. So I added an argument to it, and teleported them a different way. |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2012 03:49 PM |
| can you change the huminoid:MoveTo() into a teleport? |
|
|
| Report Abuse |
|
|