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: Please help I'm not sure how to do this

Previous Thread :: Next Thread 
Flamehill1 is not online. Flamehill1
Joined: 12 Nov 2010
Total Posts: 8023
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
Flamehill1 is not online. Flamehill1
Joined: 12 Nov 2010
Total Posts: 8023
02 Sep 2013 09:58 AM
bump
Report Abuse
Flamehill1 is not online. Flamehill1
Joined: 12 Nov 2010
Total Posts: 8023
02 Sep 2013 10:09 AM
bump
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
02 Sep 2013 10:13 AM
Character.ChildRemoved:connect(function(Child)
if Child == tool then
--code
end
end)
Report Abuse
Flamehill1 is not online. Flamehill1
Joined: 12 Nov 2010
Total Posts: 8023
02 Sep 2013 10:15 AM
@dog

how will it change your clothing back to what it was before
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
02 Sep 2013 10:16 AM
Save the clothing in an object value?
ObjectValue.Value = instance
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
02 Sep 2013 10:16 AM
And make sure you move the clothing to lighting, don't :Destroy() it.
Report Abuse
Flamehill1 is not online. Flamehill1
Joined: 12 Nov 2010
Total Posts: 8023
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
Flamehill1 is not online. Flamehill1
Joined: 12 Nov 2010
Total Posts: 8023
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
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
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
Flamehill1 is not online. Flamehill1
Joined: 12 Nov 2010
Total Posts: 8023
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
Flamehill1 is not online. Flamehill1
Joined: 12 Nov 2010
Total Posts: 8023
02 Sep 2013 10:20 AM
I'm not a noob

everyone has weaknesses and strengths

My weakness is scripting
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
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
Flamehill1 is not online. Flamehill1
Joined: 12 Nov 2010
Total Posts: 8023
02 Sep 2013 10:21 AM
That makes sense

If only I knew how..
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