|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 25 Aug 2012 12:22 AM |
| I read that a ton of times and didn't say where to put the script. |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
| |
|