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 » Scripters
Home Search
 

Re: Help fixing

Previous Thread :: Next Thread 
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
16 Jul 2015 06:04 PM
TeleportGUI = game.StarterGui.TeleportGUI
TeleportButton = game.StarterGui.TeleportGUI.TeleportButton

MouseButton1Down:connect(function()(
TeleportGUI.LineUseless.BackgroundTransparency = 1
TeleportGUI.TeleportButton.BackgroundTransparency = 1
end


On this line: TeleportGUI.LineUseless.BackgroundTransparency = 1

It says the error message, "Expected ')' (to close '(' at line 4),got'='
Report Abuse
iiNightDestroyer is not online. iiNightDestroyer
Joined: 27 Dec 2013
Total Posts: 57
16 Jul 2015 06:05 PM
MouseButton1Down:connect(function()( < delete that last bracket
Report Abuse
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
16 Jul 2015 06:14 PM
Ok, so I got it to the point where it no longer says any errors, but it wont make the background transparency set to 1. (it stays the same)

What is wrong with it?

TeleportGUI = game.StarterGui.TeleportGUI
TeleportButton = game.StarterGui.TeleportGUI.TeleportButton

MouseButton1Down:connect(function ()
TeleportGUI.LineUseless.BackgroundTransparency = 1
TeleportGUI.TeleportButton.BackgroundTransparency = 1
end
Report Abuse
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
16 Jul 2015 06:15 PM
bump
Report Abuse
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
16 Jul 2015 06:17 PM
bump2
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
16 Jul 2015 06:19 PM
That script has a good handful of issues.

1) MouseButton1Down is not defined. You need a GUI with that property. For insatnce:

local GUI = script.Parent

GUI.MouseButton1Down:connect()

2) You're accessing the StarterGui. A lot of people do this as a mistake. It makes no sense to me why people do, but that's okay. StarterGui is _given_ to players, they don't actually use the objects in it.

Read this: http://wiki.roblox.com/index.php?title=User:MrNicNac/Where_are_all_the_GUIs%3F
Report Abuse
ozzzyt is not online. ozzzyt
Joined: 08 Jan 2013
Total Posts: 3576
16 Jul 2015 06:21 PM
e3e
Report Abuse
ozzzyt is not online. ozzzyt
Joined: 08 Jan 2013
Total Posts: 3576
16 Jul 2015 06:22 PM
I see
Report Abuse
sharpchain1 is not online. sharpchain1
Joined: 05 Aug 2013
Total Posts: 1009
16 Jul 2015 06:24 PM
MouseButton1Down:connect(function()( <--- remove last bracket
--stuff here
end) <-- put the bracket there

That should work unless there are errors in other parts of your code
Report Abuse
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
16 Jul 2015 06:27 PM
@sharp

MouseButton1Down:connect(function()

"attempt to index global 'MouseButton1Down' (a nil value)"

Report Abuse
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
16 Jul 2015 06:30 PM
bump
Report Abuse
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
16 Jul 2015 06:31 PM
bumpy
Report Abuse
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
16 Jul 2015 06:35 PM
bumpybump
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
16 Jul 2015 06:36 PM
""attempt to index global 'MouseButton1Down' (a nil value)""

Please read my post again. If you're going to just ignore things, please don't bother using the forums. You're wasting people's time.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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