generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: Simple script, need help.

Previous Thread :: Next Thread 
Codys4x4 is not online. 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 is not online. 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
ipadboy123 is not online. ipadboy123
Joined: 05 Apr 2010
Total Posts: 6475
15 Dec 2014 10:25 AM
^

Try looking in the ImageButton properties to know what you can/cant change :)
Report Abuse
Codys4x4 is not online. 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
kevincatssing is online. kevincatssing
Joined: 29 Aug 2011
Total Posts: 15763
15 Dec 2014 10:36 AM
[Take note I am a beginner, sorry]

Try and change ID into the hat ID?
Report Abuse
ipadboy123 is not online. ipadboy123
Joined: 05 Apr 2010
Total Posts: 6475
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 is not online. 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 is not online. 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 is not online. 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 is not online. Codys4x4
Joined: 14 Oct 2006
Total Posts: 2312
15 Dec 2014 10:46 AM
Also, ID.Value is the hats ID.
Report Abuse
ipadboy123 is not online. ipadboy123
Joined: 05 Apr 2010
Total Posts: 6475
15 Dec 2014 10:46 AM
Did you set a variable for ID?
Report Abuse
vividtrip is not online. 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 is not online. Codys4x4
Joined: 14 Oct 2006
Total Posts: 2312
15 Dec 2014 11:28 AM
I got it :) thanks for the help.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image