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
 

Dialog Door

Previous Thread :: Next Thread 
ErnieTheGreatest is not online. ErnieTheGreatest
Joined: 20 Nov 2010
Total Posts: 2336
24 Aug 2012 09:38 PM
So, I'm trying to make a door that opens when you choose any of 3 certain dialog choices... there's a problem. I have no clue where the actual script goes (in the door, the dialog, the NPC?). What makes it worse is how I've tried a few scripts and they don't look right. But I can't test them if I don't know where to put them. So let's see.
I have:
1 NPC
1 Door
3 Correct choices (named CORRECT1, etc)

So I have the script, but I also have no clue how to edit it to work with my thing.
Just ask for any more info.
Report Abuse
ErnieTheGreatest is not online. ErnieTheGreatest
Joined: 20 Nov 2010
Total Posts: 2336
24 Aug 2012 10:29 PM
UGH
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
24 Aug 2012 10:30 PM
http://wiki.roblox.com/index.php/How_to_use_Dialog

dialog is very simple :P you should be able to get it down just from this page.

¬ SHG Scripter Tier-2, LuaLearners Elite - pm me!
Report Abuse
ErnieTheGreatest is not online. ErnieTheGreatest
Joined: 20 Nov 2010
Total Posts: 2336
25 Aug 2012 12:22 AM
I read that a ton of times and didn't say where to put the script.
Report Abuse
ErnieTheGreatest is not online. ErnieTheGreatest
Joined: 20 Nov 2010
Total Posts: 2336
25 Aug 2012 09:51 AM
._..
Report Abuse
SadPandaDog is not online. SadPandaDog
Joined: 09 Jun 2012
Total Posts: 172
25 Aug 2012 09:58 AM
If the setup is like:
NPC
-Part
--Dialog
---DialogChoice1
---DialogChoice2
---DialogChoice3


Door

Then put it inside the Dialog,

And not quite sure if you're asking for the script but it would go like:
open = false
moving = false
door = workspace.Door
dialog = script.Parent
correctchoice = "DialogChoice1"
dialog.DialogChoiceSelected:connect(plr, dial)
if dial == correctchoice then
for i=0, 5, 0.1 do
door.CFrame = door.CFame * CFrame.new(0.01, 0, 0)
wait(.1)
end
wait(6)
for i=5, 0, -0.1 do
door.CFrame = door.CFrame * CFrame.new(-0.01, 0, 0)
wait(.1)
end
end
end)
Report Abuse
ErnieTheGreatest is not online. ErnieTheGreatest
Joined: 20 Nov 2010
Total Posts: 2336
25 Aug 2012 11:14 AM
Oh okay 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