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
|
  |
| Joined: 22 Mar 2012 |
| Total Posts: 11040 |
|
|
| 17 Jan 2016 12:10 PM |
This is also in a function if that matters
|
|
|
| Report Abuse |
|
|
|
| 17 Jan 2016 12:10 PM |
Why would you do this?
#code 'The Legend of Heroes Sen no Kiseki' |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 17 Jan 2016 12:12 PM |
| Welp, ignore that last thing, apparently you can't do that.. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 17 Jan 2016 01:41 PM |
Switch out the shirts and pants
#code 'The Legend of Heroes Sen no Kiseki' |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|