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
 

Clothes Changer.

Previous Thread :: Next Thread 
VictoriousMaxPower is not online. VictoriousMaxPower
Joined: 14 Jan 2010
Total Posts: 841
08 Aug 2011 02:07 PM
Okay so I made somethign sot hat if you're in a Group it will change your Clothes to what you put.
The problem is the hat touches it first which Disconnects it. Script:

id = "106362"

debounce = false

function onTouch(hit)
if (hit.Parent.Humanoid ~= nil) and debounce == false then
debounce = true
if game.Players:findFirstChild(hit.Parent.Name):IsInGroup(id) == true then
hit.Parent.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=42001448"
wait(1)
hit.Parent.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=30318037"
wait(1)
end
elseif game.Players:findFirstChild(hit.Parent.Name):IsInGroup(id) ~= true then
script.Parent.CanCollide = false
end
end
debounce = false

script.Parent.Touched:connect(onTouch)


Ouput:

Running Script "Workspace.Uniform.Script"
Humanoid is not a valid member of Hat
Script "Workspace.Uniform.Script", Line 6
stack end

Also while you're here ,I have the feeling I added a couple of things that aren't needed. Please remove them if you spot them...
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