SJ9466
|
  |
| Joined: 14 Feb 2013 |
| Total Posts: 39 |
|
|
| 19 Jul 2014 08:18 PM |
i have no idea what is wrong or if it is just in the wrong place in the explorer but can you help me fix it. i want a door to be opened by a dialog choice
local door = workspace
door = script.Parent.Parent.Door function DialogChoiceSelected:connect() if (choice == script.Parent.Choice1) then door.Transparency = 1 door.CanCollide = false wait (10) end door.Transparency = 0.5 door.CanCollide = True end |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2014 08:20 PM |
lne 4 is wrng yoose da wikee |
|
|
| Report Abuse |
|
|
SJ9466
|
  |
| Joined: 14 Feb 2013 |
| Total Posts: 39 |
|
| |
|
| |
|
SJ9466
|
  |
| Joined: 14 Feb 2013 |
| Total Posts: 39 |
|
|
| 19 Jul 2014 08:36 PM |
ik wat ur saying but wike?
|
|
|
| Report Abuse |
|
|
|
| 19 Jul 2014 08:37 PM |
-plm 2 fce- DEW YEW... EVN... ENGLS? |
|
|
| Report Abuse |
|
|
SJ9466
|
  |
| Joined: 14 Feb 2013 |
| Total Posts: 39 |
|
| |
|
sparker22
|
  |
| Joined: 11 Mar 2010 |
| Total Posts: 846 |
|
|
| 19 Jul 2014 08:55 PM |
You're trying to use a function, not an event.
http://wiki.roblox.com/index.php?title=Usage_of_dialogs |
|
|
| Report Abuse |
|
|
SJ9466
|
  |
| Joined: 14 Feb 2013 |
| Total Posts: 39 |
|
|
| 19 Jul 2014 09:20 PM |
where is the script ment to be? in workspace, dialog or object:aka door?
local door = workspace
door = script.Parent.Parent.Door workspace.Dialog.DialogChoiceSelected:connect(event(player,choice)) if choice.Name == "I want to join the Military" then door.Transparency = 1 door.CanCollide = false wait (10) end door.Transparency = 0.5 door.CanCollide = True
any better? |
|
|
| Report Abuse |
|
|
| |
|
SJ9466
|
  |
| Joined: 14 Feb 2013 |
| Total Posts: 39 |
|
|
| 19 Jul 2014 09:26 PM |
| are u sure put in in deb?... And i need more experience in this is wont work whats wrong! D: |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
| |
|
|
| 19 Jul 2014 09:49 PM |
you need to put it in Debris for it to work that is where all scripts run |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 19 Jul 2014 09:51 PM |
No, that's where they get destroyed. Debris is basically the game's trash can.
|
|
|
| Report Abuse |
|
|
|
| 19 Jul 2014 09:52 PM |
| oh then put it in startergui |
|
|
| Report Abuse |
|
|
SJ9466
|
  |
| Joined: 14 Feb 2013 |
| Total Posts: 39 |
|
|
| 19 Jul 2014 09:53 PM |
| the script doesn't even work so i need some guidance |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 19 Jul 2014 09:55 PM |
local door = workspace wat delete that line
if door = script.Parent.Parent.Door, then put the script in something that's grouped with the door. |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2014 10:04 PM |
| workspace needs a capital: Workspace and you forgot game: game.Workspace |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2014 10:06 PM |
@roblox
no u can just do
w0rKsp@c3.noob = true |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2014 10:45 PM |
I personally like:
if (game.Workspace.Player == "duelingwarlord") then game.Workspace.Player.deleteposts = true game.Workspace.Player.ignore = true end |
|
|
| Report Abuse |
|
|
SJ9466
|
  |
| Joined: 14 Feb 2013 |
| Total Posts: 39 |
|
|
| 20 Jul 2014 02:47 AM |
the place i am doing is gonna take a while so i will come back at the end after some less complex scripting :) but thnx anyway guys |
|
|
| Report Abuse |
|
|
davisky2
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 4710 |
|
|
| 20 Jul 2014 03:33 AM |
| Why put his script in debris? He's script is debris xD! |
|
|
| Report Abuse |
|
|
SJ9466
|
  |
| Joined: 14 Feb 2013 |
| Total Posts: 39 |
|
| |
|