|
| 02 Sep 2013 09:56 AM |
Ok so first I have this, it changes their clothing when they equip a certain gear ____________________________________________________________________________________________
local Player = Game.Players.LocalPlayer
script.Parent.Equipped:connect(function() if Player.Character then local Character = Player.Character local Shirt = Character:FindFirstChild("Shirt") or Instance.new("Shirt", Character) local Pants = Character:FindFirstChild("Pants") or Instance.new("Pants", Character) Shirt.ShirtTemplate = "http://www.roblox.com/asset?id=96783235" Pants.PantsTemplate = "http://www.roblox.com/asset?id=96793099" end end) ____________________________________________________________________________________________ Is there any way to make it so when you deselect the gear you go back to what clothing you were wearing before you selected it? ____________________________________________________________________________________________ |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 02 Sep 2013 10:13 AM |
Character.ChildRemoved:connect(function(Child) if Child == tool then --code end end) |
|
|
| Report Abuse |
|
|
|
| 02 Sep 2013 10:15 AM |
@dog
how will it change your clothing back to what it was before |
|
|
| Report Abuse |
|
|
|
| 02 Sep 2013 10:16 AM |
Save the clothing in an object value? ObjectValue.Value = instance |
|
|
| Report Abuse |
|
|
|
| 02 Sep 2013 10:16 AM |
| And make sure you move the clothing to lighting, don't :Destroy() it. |
|
|
| Report Abuse |
|
|
|
| 02 Sep 2013 10:17 AM |
The above script is my first script which I barely understand ._.
so what would the full script be?
and what else do I need such as from basic objects |
|
|
| Report Abuse |
|
|
|
| 02 Sep 2013 10:18 AM |
@dog
umm I need it so no matter what clothing your wearing it will change back to it
not like saving one outfit |
|
|
| Report Abuse |
|
|
|
| 02 Sep 2013 10:18 AM |
So you didn't even make that script? If you didn't make a script just tell us so we know that you're a noob |
|
|
| Report Abuse |
|
|
|
| 02 Sep 2013 10:19 AM |
Someone made it for me
I meant its the first script Ive really delt with other than admin commands and stuff |
|
|
| Report Abuse |
|
|
|
| 02 Sep 2013 10:20 AM |
I'm not a noob
everyone has weaknesses and strengths
My weakness is scripting |
|
|
| Report Abuse |
|
|
|
| 02 Sep 2013 10:20 AM |
| Make a script that will copy the clothes to lighting, and set the value of an ObjectValue to the shirt and another one to the the pants. Then have a function that puts them back on the character |
|
|
| Report Abuse |
|
|
|
| 02 Sep 2013 10:21 AM |
That makes sense
If only I knew how.. |
|
|
| Report Abuse |
|
|