X888X
|
  |
| Joined: 08 Oct 2011 |
| Total Posts: 243 |
|
|
| 14 Mar 2013 09:56 PM |
Hello, I'm still quite new at scripting so I need help targeting, I've tried everything.
What I tried: script.Parent.Parent.Parent.Menu
Target: Menu > Test > TextButton (Where the script is)
If not that then: Testing > Menu > Test > TextButton (Where the script is)
I really need help to this, I'm going to continue trying but doubt I'll get anything. |
|
|
| Report Abuse |
|
|
|
| 14 Mar 2013 09:57 PM |
What are you trying to do? post the whole script please
|
|
|
| Report Abuse |
|
|
X888X
|
  |
| Joined: 08 Oct 2011 |
| Total Posts: 243 |
|
|
| 14 Mar 2013 09:59 PM |
function Click() script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(0,0,0) end
script.Parent.MouseButton1Down:connect(Click)
|
|
|
| Report Abuse |
|
|
| |
|
X888X
|
  |
| Joined: 08 Oct 2011 |
| Total Posts: 243 |
|
|
| 14 Mar 2013 10:01 PM |
| Sorry what? I'm still a noob to this stuff. |
|
|
| Report Abuse |
|
|
|
| 14 Mar 2013 10:04 PM |
How many layers is your script dwon from your menu? You have to target menu's parent before you can target menu.
So let's say menu is in workspace and your script is 3 levels down.
Workspace <--- you need to target workspace/Menu's parent >Menu >>? >>>? >>>>? >>>>>Script--------------------------------------------------------------Menu again -------------------------------------------------------------------------------------v So you would use script.Parent.Parent.Parent.Parent.Parent.Menu ------------------------------------------------------------------^----------^ Menu Workspace |
|
|
| Report Abuse |
|
|
|
| 14 Mar 2013 10:05 PM |
>Menu >>? >>>? >>>>? >>>>>Script--------------------------------------------------------------Menu again -------------------------------------------------------------------------------------v So you would use script.Parent.Parent.Parent.Parent.Parent.Menu ------------------------------------------------------------------^----------^ --------------------------------------------------------------Menu---Workspace
*bad formatting on my part |
|
|
| Report Abuse |
|
|
X888X
|
  |
| Joined: 08 Oct 2011 |
| Total Posts: 243 |
|
|
| 14 Mar 2013 10:08 PM |
Testing >Menu >>Test >>>TextButton (Script is inside here) |
|
|
| Report Abuse |
|
|
|
| 14 Mar 2013 10:10 PM |
| script.Parent.Parent.Parent.Parent.Menu |
|
|
| Report Abuse |
|
|
|
| 14 Mar 2013 10:13 PM |
click view then click output then run ur place then copy the stuff in the output and post it
|
|
|
| Report Abuse |
|
|
X888X
|
  |
| Joined: 08 Oct 2011 |
| Total Posts: 243 |
|
| |
|
X888X
|
  |
| Joined: 08 Oct 2011 |
| Total Posts: 243 |
|
|
| 14 Mar 2013 10:28 PM |
23:28:23.048 - MouseButton1Down is not a valid member of Frame 23:28:23.051 - Script "Players.Player1.PlayerGui.Testing.Menu.Test.TextButton.Scri", Line 5 23:28:23.053 - stack end |
|
|
| Report Abuse |
|
|
|
| 14 Mar 2013 10:35 PM |
http://wiki.roblox.com/index.php/Beginner%27s_guide_to_GUI
|
|
|
| Report Abuse |
|
|
X888X
|
  |
| Joined: 08 Oct 2011 |
| Total Posts: 243 |
|
| |
|
X888X
|
  |
| Joined: 08 Oct 2011 |
| Total Posts: 243 |
|
|
| 14 Mar 2013 10:46 PM |
| I found out the problem, it wasn't what I though, thanks for the help guys! |
|
|
| Report Abuse |
|
|