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: ClearCharacterAppearance( )?

Previous Thread :: Next Thread 
NightPyro is not online. NightPyro
Joined: 22 Apr 2012
Total Posts: 183
21 Nov 2012 02:44 PM
How come this doesn't work?
local player = game.Players.LocalPlayer

wait(2)
player:ClearCharacterAppearance( )
Report Abuse
dmjoe is not online. dmjoe
Joined: 01 May 2009
Total Posts: 2387
21 Nov 2012 02:45 PM
local player = game.Players.LocalPlayer

wait(2)
player.CharacterAppearance = " "

--#theeasywayout
Report Abuse
NightPyro is not online. NightPyro
Joined: 22 Apr 2012
Total Posts: 183
21 Nov 2012 03:53 PM
Thank you for helping, but the script didn't work, so i just figured it out on my own, which is what i should of done, but anyways, here is the final script;


game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
wait(2)
player:ClearCharacterAppearance( )


end)
end)

Works great!
Report Abuse
nrscsy is not online. nrscsy
Joined: 09 Nov 2012
Total Posts: 465
21 Nov 2012 03:59 PM
What would that do to the character?
Report Abuse
NightPyro is not online. NightPyro
Joined: 22 Apr 2012
Total Posts: 183
21 Nov 2012 04:09 PM
It basically deletes your personal roblox appearance you customarily chose. What i am trying to do with this... Is, i am making a zombie game, and i have it so it will delete the personal character appearance, and put on a custom character for a special character in the game. am making. I wanted to do this rather then morphs. It's more efficient.
Example;
BodyColors = script.BodyColors:clone()
Pants = script.Pants:clone()
Shirt = script.Shirt:clone()
SpikyHair = script.SpikyHair:clone()
face = script.face:clone()
-------------------------------------------------------------------
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
wait(2)
player:ClearCharacterAppearance( )
wait(2)
BodyColors.Parent = player.Character
Pants.Parent = player.Character
Shirt.Parent = player.Character
SpikyHair.Parent = player.Character
face.Parent = player.Character.Head

end)
end)
Report Abuse
NightPyro is not online. NightPyro
Joined: 22 Apr 2012
Total Posts: 183
21 Nov 2012 04:21 PM
Wiki example;
function onPlayerAdded(player)
player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=0" --the last numbers of the URI is the ID of the desired character look
end
game.Players.PlayerAdded:connect(onPlayerAdded)


Put the ID "0," to what ever usename you want it to be, and you will become that use only "ingame."
Report Abuse
ukwarrior6 is not online. ukwarrior6
Joined: 06 Sep 2009
Total Posts: 485
21 Nov 2012 04:42 PM
Haven't seen that method before, i've learnt something! :O
Report Abuse
nrscsy is not online. nrscsy
Joined: 09 Nov 2012
Total Posts: 465
21 Nov 2012 04:42 PM
This method is a simpler way to delete shirts, pants, t-shirts, face, head mesh and body mesh. Wonder if it's more efficent than the old way.
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
21 Nov 2012 04:45 PM
Actually, you can make it so much simpler in the LocalScript

local player = Game.Players.LocalPlayer
player.CanLoadCharacterAppearance = false
Report Abuse
nrscsy is not online. nrscsy
Joined: 09 Nov 2012
Total Posts: 465
21 Nov 2012 04:48 PM
It's great to see a 10 line script turn into a 2 line script. Marvelous isn't it?
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