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: HELP PLZ this script wont work

Previous Thread :: Next Thread 
SJ9466 is not online. 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
PalmToFace is not online. PalmToFace
Joined: 25 Oct 2010
Total Posts: 65
19 Jul 2014 08:20 PM
lne 4 is wrng
yoose da wikee
Report Abuse
SJ9466 is not online. SJ9466
Joined: 14 Feb 2013
Total Posts: 39
19 Jul 2014 08:21 PM
wa??
Report Abuse
PalmToFace is not online. PalmToFace
Joined: 25 Oct 2010
Total Posts: 65
19 Jul 2014 08:21 PM
dewd
dew u evn engls?
Report Abuse
SJ9466 is not online. SJ9466
Joined: 14 Feb 2013
Total Posts: 39
19 Jul 2014 08:36 PM
ik wat ur saying but wike?
Report Abuse
PalmToFace is not online. PalmToFace
Joined: 25 Oct 2010
Total Posts: 65
19 Jul 2014 08:37 PM
-plm 2 fce-
DEW YEW... EVN... ENGLS?
Report Abuse
SJ9466 is not online. SJ9466
Joined: 14 Feb 2013
Total Posts: 39
19 Jul 2014 08:49 PM
PERZ HERLP MER
Report Abuse
sparker22 is not online. 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 is not online. 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
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
19 Jul 2014 09:21 PM
put the script in debris
Report Abuse
SJ9466 is not online. 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 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
19 Jul 2014 09:44 PM
sj, no dont.
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
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 is not online. 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
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
19 Jul 2014 09:52 PM
oh then put it in startergui
Report Abuse
SJ9466 is not online. 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 is not online. 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
robloxandtyler is not online. robloxandtyler
Joined: 16 Feb 2013
Total Posts: 3456
19 Jul 2014 10:04 PM
workspace needs a capital: Workspace and you forgot game: game.Workspace
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
19 Jul 2014 10:06 PM
@roblox

no u can just do

w0rKsp@c3.noob = true
Report Abuse
TakeYourLemons is not online. TakeYourLemons
Joined: 04 Jul 2014
Total Posts: 177
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 is not online. 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 is not online. 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 is not online. SJ9466
Joined: 14 Feb 2013
Total Posts: 39
20 Jul 2014 11:35 PM
XD lol good point
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