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: Roblox Studio Must Be Causing This...

Previous Thread :: Next Thread 
TechPerson32 is not online. TechPerson32
Joined: 25 Dec 2011
Total Posts: 81
12 Sep 2013 08:18 PM
As probably some of you know, I've been making a few topics about help with a script. This time, it's just plain annoyance. I've done everything I can. I'm convinced its because of Roblox Studio.

function b1click() --The function doesn't even start.
if select == 1 and du1 == false then --By default, the condition should already be true.
d1 = Instance.new("Decal")
d1.Name = "Decal"
d1.Parent = di1
d1.Texture = "http://www.roblox.com/asset/?id=20040403"
select = 2
du1 = true
num1 = 1
end
end
b1.ClickDetector.MouseClick:connect(b1click) --Function linked here.

I hope the answer isn't in front of my face.. :P
Report Abuse
DonnyTheDemented is not online. DonnyTheDemented
Joined: 29 May 2010
Total Posts: 1413
12 Sep 2013 08:21 PM
you didn't define select or du1 (du1 == nil by default)
Report Abuse
TechPerson32 is not online. TechPerson32
Joined: 25 Dec 2011
Total Posts: 81
12 Sep 2013 08:25 PM
I did, but it's not shown in the post.
Report Abuse
TechPerson32 is not online. TechPerson32
Joined: 25 Dec 2011
Total Posts: 81
13 Sep 2013 06:21 AM
Bump. Please help!
Report Abuse
Absurdism is not online. Absurdism
Joined: 18 Jul 2013
Total Posts: 2568
13 Sep 2013 06:56 AM
Show all of the variable definitions.
Report Abuse
DragonODeath is not online. DragonODeath
Joined: 02 May 2011
Total Posts: 1252
13 Sep 2013 07:01 AM
@OP. the person that doesn't know how to receive halp from SH. Post the full script.
Report Abuse
TechPerson32 is not online. TechPerson32
Joined: 25 Dec 2011
Total Posts: 81
13 Sep 2013 07:27 AM
Here are the variables used in the script (with original values):

ui = script.Parent.ui
di1 = ui.displays.display1
select = 1
du1 = false
num1 = nil
Report Abuse
TechPerson32 is not online. TechPerson32
Joined: 25 Dec 2011
Total Posts: 81
13 Sep 2013 07:28 AM
Oh, I forgot about b1:

b1 = ui.buttons.button1
Report Abuse
DragonODeath is not online. DragonODeath
Joined: 02 May 2011
Total Posts: 1252
13 Sep 2013 07:30 AM
Are you sure the casing is correct? Capitalization matters.
Report Abuse
TechPerson32 is not online. TechPerson32
Joined: 25 Dec 2011
Total Posts: 81
13 Sep 2013 07:35 AM
Yeah, pretty sure. I try to not use capitalization as much as I can to make the scripting easier. I did check the other things that require it (properties, events, etc) and it all seems right.
Report Abuse
TechPerson32 is not online. TechPerson32
Joined: 25 Dec 2011
Total Posts: 81
13 Sep 2013 03:14 PM
Bump.
Report Abuse
janthran is not online. janthran
Joined: 15 May 2009
Total Posts: 17429
13 Sep 2013 03:16 PM
What is b1?
GuiButton or part?
Either way you don't specify clickdetector
Report Abuse
TechPerson32 is not online. TechPerson32
Joined: 25 Dec 2011
Total Posts: 81
13 Sep 2013 04:46 PM
Its a part. Look where I link the function ("b1.ClickDetector.MouseClick:connect(b1click)").
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