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 |
|
|
|
| 16 Jul 2015 06:05 PM |
| MouseButton1Down:connect(function()( < delete that last bracket |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 06 Apr 2013 |
| Total Posts: 12569 |
|
| |
|
Despawned
|
  |
| Joined: 06 Apr 2013 |
| Total Posts: 12569 |
|
| |
|
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
|
  |
| Joined: 08 Jan 2013 |
| Total Posts: 3576 |
|
| |
|
ozzzyt
|
  |
| Joined: 08 Jan 2013 |
| Total Posts: 3576 |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| Joined: 06 Apr 2013 |
| Total Posts: 12569 |
|
| |
|
Despawned
|
  |
| Joined: 06 Apr 2013 |
| Total Posts: 12569 |
|
| |
|
Despawned
|
  |
| Joined: 06 Apr 2013 |
| Total Posts: 12569 |
|
| |
|
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 |
|
|