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: i need help with something...

Previous Thread :: Next Thread 
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
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
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
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
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
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
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
12 Jul 2012 07:57 PM
can i use a teleport script?
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
12 Jul 2012 07:57 PM
i need help to make a teeport script...
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
12 Jul 2012 07:58 PM
^teeport.
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
12 Jul 2012 08:04 PM
teleport* :P
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
12 Jul 2012 08:15 PM
anyone can help me?
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
13 Jul 2012 09:21 AM
would i use this if i were to use moveTo():
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
13 Jul 2012 09:21 AM
nvm
Report Abuse
cheatmaster18 is not online. cheatmaster18
Joined: 29 Oct 2010
Total Posts: 1871
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
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
13 Jul 2012 09:27 AM
Thx
Report Abuse
swordofnoah is not online. swordofnoah
Joined: 20 Sep 2008
Total Posts: 18
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
swordofnoah is not online. swordofnoah
Joined: 20 Sep 2008
Total Posts: 18
13 Jul 2012 10:02 AM
^Forces
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
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
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
13 Jul 2012 04:57 PM
ill try it
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
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
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
14 Jul 2012 10:20 AM
try the script above to know why it doesn't work
Report Abuse
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
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
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
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
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
14 Jul 2012 10:38 AM
what does this this script do?
Report Abuse
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
14 Jul 2012 01:24 PM
I fixed the one you posted
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
14 Jul 2012 02:58 PM
what does it do explain so i know you fixed it rite
Report Abuse
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
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
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
14 Jul 2012 03:49 PM
can you change the huminoid:MoveTo() into a teleport?
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