Codys4x4
|
  |
| Joined: 14 Oct 2006 |
| Total Posts: 2312 |
|
|
| 15 Dec 2014 10:07 AM |
I have no clue why this isn't working... Makes no sense.
11:05:21.743 - ID is not a valid member of ImageButton 11:05:21.745 - Script 'Players.Player.PlayerGui.ScreenGui.Catalog.Frame.Pic.Script', Line 1 11:05:21.748 - Stack End
local ID = script.Parent.ID
script.Parent.MouseButton1Click:connect(function() game:GetService("InsertService"):LoadAsset(ID.Value):GetChildren()[1].Parent = workspace --[script.Parent.Parent.Parent.Parent.Parent.Parent.Name] --.Character end) |
|
|
| Report Abuse |
|
|
vividtrip
|
  |
| Joined: 14 Oct 2008 |
| Total Posts: 2890 |
|
|
| 15 Dec 2014 10:16 AM |
ID is not a valid property of an ImageButton. If you're trying to change the picture, try 'Image'.
Becuz I Used Corrects Grammer |
|
|
| Report Abuse |
|
|
|
| 15 Dec 2014 10:25 AM |
^
Try looking in the ImageButton properties to know what you can/cant change :) |
|
|
| Report Abuse |
|
|
Codys4x4
|
  |
| Joined: 14 Oct 2006 |
| Total Posts: 2312 |
|
|
| 15 Dec 2014 10:33 AM |
No it's not the image. What I am doing is inserting items as it inserts them, it clones a Frame.
The frames has this code in the ImageButton, so it's
-Frame --ID --ImageButton ---Script
I need to make is so when a user clicks the ImageButton they are able to wear the hats is ID.Value |
|
|
| Report Abuse |
|
|
|
| 15 Dec 2014 10:36 AM |
[Take note I am a beginner, sorry]
Try and change ID into the hat ID? |
|
|
| Report Abuse |
|
|
|
| 15 Dec 2014 10:36 AM |
Could you re-post your script but type it so it's just like how it is in-game?
Hard to acknowledge when its all bunched up like it is. |
|
|
| Report Abuse |
|
|
vividtrip
|
  |
| Joined: 14 Oct 2008 |
| Total Posts: 2890 |
|
|
| 15 Dec 2014 10:42 AM |
The frames has this code in the ImageButton, so it's
-Frame --ID --ImageButton ---Script
Sorry, I misread. In that case, try 'script.Parent.Parent.Value'.
Becuz I Used Corrects Grammer |
|
|
| Report Abuse |
|
|
vividtrip
|
  |
| Joined: 14 Oct 2008 |
| Total Posts: 2890 |
|
|
| 15 Dec 2014 10:42 AM |
By the way, I posted your second response in my second reply by mistake. Please ignore.
Becuz I Used Corrects Grammer |
|
|
| Report Abuse |
|
|
Codys4x4
|
  |
| Joined: 14 Oct 2006 |
| Total Posts: 2312 |
|
|
| 15 Dec 2014 10:45 AM |
I've try'ed script.Parent.Parent.ID but yet, still an error.
11:44:52.533 - ID is not a valid member of Frame 11:44:52.534 - Script 'Players.Player.PlayerGui.ScreenGui.Catalog.Frame.Pic.Script', Line 1 11:44:52.535 - Stack End |
|
|
| Report Abuse |
|
|
Codys4x4
|
  |
| Joined: 14 Oct 2006 |
| Total Posts: 2312 |
|
|
| 15 Dec 2014 10:46 AM |
| Also, ID.Value is the hats ID. |
|
|
| Report Abuse |
|
|
|
| 15 Dec 2014 10:46 AM |
| Did you set a variable for ID? |
|
|
| Report Abuse |
|
|
vividtrip
|
  |
| Joined: 14 Oct 2008 |
| Total Posts: 2890 |
|
|
| 15 Dec 2014 10:47 AM |
Could you post a picture of your archive structure inside of Studio? I can't seem to interpret it properly via text.
Becuz I Used Corrects Grammer |
|
|
| Report Abuse |
|
|
Codys4x4
|
  |
| Joined: 14 Oct 2006 |
| Total Posts: 2312 |
|
|
| 15 Dec 2014 11:28 AM |
| I got it :) thanks for the help. |
|
|
| Report Abuse |
|
|