Miro034Join Date: 2009-10-07 Post Count: 6568 |
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? |
|
Miro034Join Date: 2009-10-07 Post Count: 6568 |
Also, that script is in 'Button1' |
|
Miro034Join Date: 2009-10-07 Post Count: 6568 |
I hope SDuke posts here :D |
|
Miro034Join Date: 2009-10-07 Post Count: 6568 |
Maybe 1Woof1 would do :c |
|
su8Join Date: 2009-03-06 Post Count: 6334 |
Y U NO USE LOCALSCRIPT? |
|
Miro034Join Date: 2009-10-07 Post Count: 6568 |
Does it have to be in local script? |
|
su8Join Date: 2009-03-06 Post Count: 6334 |
No, but you wouldn't have to count how many parents you need to use :P |
|
Miro034Join Date: 2009-10-07 Post Count: 6568 |
I think the parenting part is wrong. How many parents should I use? |
|
Miro034Join Date: 2009-10-07 Post Count: 6568 |
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?????? |
|
Miro034Join Date: 2009-10-07 Post Count: 6568 |
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 |
|
Miro034Join Date: 2009-10-07 Post Count: 6568 |
I bet the next 2h, the advanced scripters would help me :D |
|
Miro034Join Date: 2009-10-07 Post Count: 6568 |
BUMP please Help ): |
|
Miro034Join Date: 2009-10-07 Post Count: 6568 |
Please help. I been waiting a long time D: |
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
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. |
|
Miro034Join Date: 2009-10-07 Post Count: 6568 |
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 |
|
Miro034Join Date: 2009-10-07 Post Count: 6568 |
Won't work D: |
|
Miro034Join Date: 2009-10-07 Post Count: 6568 |
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 |
|
Miro034Join Date: 2009-10-07 Post Count: 6568 |
I just edited a bit of it. I changed 'selection' to 'selection2' |
|
Miro034Join Date: 2009-10-07 Post Count: 6568 |
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... |
|
Miro034Join Date: 2009-10-07 Post Count: 6568 |
Anyone? |
|
Miro034Join Date: 2009-10-07 Post Count: 6568 |
... |
|
Miro034Join Date: 2009-10-07 Post Count: 6568 |
Nevermind, I think I fixed it. :D |
|