|
| 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 |
|
|
|
| 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 |
|
|
| |
|
| |
|
| |
|