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 » Scripting Helpers
Home Search
 

Re: MORPH GUI

Previous Thread :: Next Thread 
OneWhoCreates is not online. OneWhoCreates
Joined: 29 Jun 2011
Total Posts: 1230
04 Sep 2011 07:01 PM
I am working on a morph gui for a new game im making and am having a little problem. The GUI works perfect in build and solo modes but when i go into play mode it does not work at all.

The main gui is in starter gui and it opens a gui called morphGUI that is located in lighting when the MORPH button is clicked on the mainGUI. The morphGUI opens a frame with a ImageButton that have this script inside. The script simply changes the players clothes to the Shirt and Pants defined in the script.

The Script:

script.Parent.MouseButton1Down:connect(function()
playername = script.Parent.Parent.Parent.Parent.Parent.Name
player = Workspace:FindFirstChild(""..playername.."")
if player ~= nil then

player:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=55768155"
player:FindFirstChild("Pants").PantsTemplate = "http://www.roblox.com/asset/?id=55768223"

end


Thanks in advance for any help !!
end)
Report Abuse
OneWhoCreates is not online. OneWhoCreates
Joined: 29 Jun 2011
Total Posts: 1230
04 Sep 2011 07:09 PM
script.Parent.MouseButton1Down:connect(function()
playername = script.Parent.Parent.Parent.Parent.Parent.Name
player = Workspace:FindFirstChild(""..playername.."")
if player ~= nil then

player:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=55768155"
player:FindFirstChild("Pants").PantsTemplate = "http://www.roblox.com/asset/?id=55768223"

end
end)
Report Abuse
OneWhoCreates is not online. OneWhoCreates
Joined: 29 Jun 2011
Total Posts: 1230
04 Sep 2011 08:36 PM
*Bump*

Anyone ?
Report Abuse
OneWhoCreates is not online. OneWhoCreates
Joined: 29 Jun 2011
Total Posts: 1230
04 Sep 2011 11:55 PM
*Bump*
Report Abuse
OneWhoCreates is not online. OneWhoCreates
Joined: 29 Jun 2011
Total Posts: 1230
05 Sep 2011 06:20 PM
*Bump*
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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