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 » Scripters
Home Search
 

Re: Need help.

Previous Thread :: Next Thread 
SameySam is not online. SameySam
Joined: 22 Mar 2012
Total Posts: 11040
17 Jan 2016 12:09 PM
These lines dont work and I've literally tried everything to get it to work. They're in a script in serverscriptservice. There is more to the script but this is the part that doesn't work. Could anyone help explain to me what's wrong???


while not Player:HasAppearanceLoaded() and wait() do

Player:ClearCharacterAppearance()

end


Report Abuse
SameySam is not online. SameySam
Joined: 22 Mar 2012
Total Posts: 11040
17 Jan 2016 12:10 PM
This is also in a function if that matters


Report Abuse
MahouReikon is not online. MahouReikon
Joined: 15 Feb 2014
Total Posts: 1359
17 Jan 2016 12:10 PM
Why would you do this?


#code 'The Legend of Heroes Sen no Kiseki'
Report Abuse
samthemagicman is not online. samthemagicman
Joined: 20 Mar 2011
Total Posts: 1225
17 Jan 2016 12:11 PM
Are you trying to make the player not have their custom appearance? If you are, just go into the StarterPlayer folder in the Explorer, scroll down, and disable LoadCharacterAppearance
Report Abuse
samthemagicman is not online. samthemagicman
Joined: 20 Mar 2011
Total Posts: 1225
17 Jan 2016 12:12 PM
Welp, ignore that last thing, apparently you can't do that..
Report Abuse
SameySam is not online. SameySam
Joined: 22 Mar 2012
Total Posts: 11040
17 Jan 2016 01:40 PM
@mah
To make players from teams have uniforms (fps type of thing)


@sam
Would u know why this isnt working?
Report Abuse
MahouReikon is not online. MahouReikon
Joined: 15 Feb 2014
Total Posts: 1359
17 Jan 2016 01:41 PM
Switch out the shirts and pants


#code 'The Legend of Heroes Sen no Kiseki'
Report Abuse
ColonySimulator is not online. ColonySimulator
Joined: 05 Jul 2015
Total Posts: 1721
17 Jan 2016 01:46 PM
game.Players.PlayerAdded(function(player)
local playerIG = game.Workspace:FindFirstChild(player.Name)
for i,v in pair(playerIG:GetChildren(children)) do
if children:IsA("Shirt") or children:IsA("Pants") or children:IsA("Hat") then
children:destroy()
end
end
end)


(It's possible that my function doesn't work,then I'm sorry :( )
Report Abuse
SameySam is not online. SameySam
Joined: 22 Mar 2012
Total Posts: 11040
17 Jan 2016 01:56 PM
@mahou

I need custom body colors, shirts, pants, packages and hats
Report Abuse
SameySam is not online. SameySam
Joined: 22 Mar 2012
Total Posts: 11040
17 Jan 2016 03:18 PM
yours is full of errors and stuff.
I can try to make it work tho

anyone else know what could be wrong?


Report Abuse
SameySam is not online. SameySam
Joined: 22 Mar 2012
Total Posts: 11040
17 Jan 2016 03:28 PM
Still didn't work:




game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Character)
repeat wait() until Player.Character

local playerIG = game.Workspace:FindFirstChild(Player.Name)

local function changeClothes()
for i,v in pairs(playerIG:GetChildren()) do
if v.ClassName == "Shirt" or v.ClassName == "Hat" or v.ClassName == "Pants" or v.ClassName == "T-Shirt" or v.ClassName == "CharacterMesh" then
v:Destroy()
end
end

local head = Character:WaitForChild("Head")

if Player.TeamColor == BrickColor.new("Really red") then
--head

head:WaitForChild("face"):Destroy()
head:WaitForChild("Mesh"):Destroy()

end

end
changeClothes()

end)
end)


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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