|
| 14 Aug 2011 12:53 AM |
script.Parent.Image = (script.Parent.Parent.(script.Parent.Parent.Select.Value).Image)
how would I get that to work? |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2011 12:55 AM |
You can't do that, try this. --------- local Value = script.Parent.Parent.Select.Value script.Parent.Image = (script.Parent.Parent[Value].Image)
|
|
|
| Report Abuse |
|
|
|
| 14 Aug 2011 01:15 AM |
Not working. heres the whole script
w = script.Parent.Parent.Select
function click(mouse) if script.Parent.Parent.Select.Value ~= nil then script.Parent.Image = (script.Parent.Parent[w].Image) script.Parent.Parent[w].Image = script.Parent.Image script.Parent.Parent.Select.Value = nil elseif script.Parent.Parent.Select.Value == nil then script.Parent.Parent.Select.Value = script.Parent.Name end end script.Parent.MouseButton1Click:connect(click) |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2011 01:16 AM |
| Says an error on line 5 too. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
3465yoba
|
  |
| Joined: 31 Jul 2011 |
| Total Posts: 377 |
|
|
| 14 Aug 2011 02:44 AM |
function click(mouse) if script.Parent.Parent.Select.Value ~= nil then script.Parent.Image = (script.Parent.Parent[w].Image) script.Parent.Parent[w].Image = script.Parent.Image script.Parent.Parent.Select.Value = nil elseif script.Parent.Parent.Select.Value == nil then script.Parent.Parent.Select.Value = script.Parent.Name end end script.Parent.MouseButton1Click:connect(click)
What's w??? |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2011 02:46 AM |
w = script.Parent.Parent.Select
function click(mouse) if script.Parent.Parent.Select.Value ~= nil then script.Parent.Image = (script.Parent.Parent[w].Image) -- This is line five. script.Parent.Parent[w].Image = script.Parent.Image script.Parent.Parent.Select.Value = nil elseif script.Parent.Parent.Select.Value == nil then script.Parent.Parent.Select.Value = script.Parent.Name end end script.Parent.MouseButton1Click:connect(click) |
|
|
| Report Abuse |
|
|
3465yoba
|
  |
| Joined: 31 Jul 2011 |
| Total Posts: 377 |
|
|
| 14 Aug 2011 02:47 AM |
Oh fail... Sorry.. copy/pated wrong...
Erm... Check your referencing... Make sure the number of parents is correct... |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2011 02:56 AM |
New script:
w = script.Parent.Parent.Select.Value
function click(mouse) if script.Parent.Parent.Select.Value ~= "" then script.Parent.Image = (script.Parent.Parent[w].Image) script.Parent.Parent[w].Image = script.Parent.Image script.Parent.Parent.Select.Value = "" elseif script.Parent.Parent.Select.Value == "" then script.Parent.Parent.Select.Value = script.Parent.Name end end script.Parent.MouseButton1Click:connect(click)
Error:
Sun Aug 14 02:55:32 2011 - is not a valid member of Frame Sun Aug 14 02:55:32 2011 - Script "Players.Player.PlayerGui.inter_main.backpack.BG.1_1.LocalSc", Line 5 Sun Aug 14 02:55:32 2011 - stack end
|
|
|
| Report Abuse |
|
|
| |
|