Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 20 Dec 2011 09:11 AM |
Vector = script.Parent.Parent.Parent.Backpack.GAMETOOL.Vector3Value Selection = script.Parent.Parent.Parent.Backpack.GAMETOOL.Partpack.Selection.Size function OnClick() Vector.Value = Selection end script.Parent.MouseButton1Down:connect(OnClick)
Map thingy...
+StarterGui ++Frame +++Frame2 +++++Frame3 ++++++Button1
+StarterPack ++GAMETOOL +++Vector3Value +++PartPack ++++Selection(inside partpack)
I think this is broken maybe because of parents. Can you fix it please? |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 20 Dec 2011 09:11 AM |
| Also, that script is in 'Button1' |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 20 Dec 2011 09:21 AM |
| I hope SDuke posts here :D |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
| |
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
| |
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 20 Dec 2011 09:42 AM |
| Does it have to be in local script? |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 20 Dec 2011 09:44 AM |
| No, but you wouldn't have to count how many parents you need to use :P |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 20 Dec 2011 10:07 AM |
| I think the parenting part is wrong. How many parents should I use? |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 20 Dec 2011 10:46 AM |
Vector = script.Parent.Parent.Parent.Parent.Parent.Parent.Backpack.GAMETOOL.Vector Selection = script.Parent.Parent.Parent.Parent.Parent.Parent.Backpack.GAMETOOL.FollowPack.Selection2.Size function OnClick() Vector.Value = Selection end script.Parent.MouseButton1Down:connect(OnClick)
How come it won't work?????? |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 20 Dec 2011 10:49 AM |
Output:
16:47:55 - Backpack is not a valid member of Players 16:47:55 - Script "Players.Player.PlayerGui.GameData.Frame1.Help.Loc", Line 1 16:47:55 - stack end |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 20 Dec 2011 11:31 AM |
| I bet the next 2h, the advanced scripters would help me :D |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
| |
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 20 Dec 2011 02:53 PM |
| Please help. I been waiting a long time D: |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 20 Dec 2011 02:58 PM |
GameTool = game.Players.LocalPlayer.Backpack['GAMETOOL'] -- In a localScript GameTool = script.Parent.Parent.Backpack['GAMETOOL'] -- In a normal script.
script.Parent.MouseButton1Down:connect(function() GameTool['Vector3Value'].Value = GameTool.Partpack['Selection'].Size end)
Maybe? If it doesn't work, could you tell me please what the output is. |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 20 Dec 2011 04:45 PM |
| Ok, maybe tomorrow I might test it out because my mom and me needed to go somewhere across the country. :D Thanks by the way. :D |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
| |
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 21 Dec 2011 10:54 AM |
Output:
16:53:17 - Selection2 is not a valid member of Model 16:53:17 - Script "Players.Player.PlayerGui.GameData.Frame.Button.Loc", Line 3 16:53:17 - stack end 16:53:17 - Disconnected event because of exception |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 21 Dec 2011 10:55 AM |
| I just edited a bit of it. I changed 'selection' to 'selection2' |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 21 Dec 2011 11:46 AM |
Hey spec
GameTool = game.Players.LocalPlayer.Backpack['GAMETOOL'] -- In a localScript
script.Parent.MouseButton1Down:connect(function() Player.Character['Selection2'].Size = GameTool['Vector'].Value end)
I made a part's parent to be Player.Character and this isn't working. Can you fix it? Btw, I need to add this to a script... |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
| |
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
| |
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 22 Dec 2011 01:39 AM |
| Nevermind, I think I fixed it. :D |
|
|
| Report Abuse |
|
|