Having trouble with CharacterAppearanceLoaded. Help?
So I created a script which gives players some localscripts everytime they spawn. I have been testing It for a while, and I realized after running it in client mode, It doesnt work with players without any clothes. I have been looking for information and I found out it is a roblox issue which has not been fixed yet.
Here's my script
01 | local Players = game:GetService( "Players" ) |
03 | Players.PlayerAdded:Connect( function (player) |
04 | player.CharacterAppearanceLoaded:Connect( function (character) |
09 | function setPlayer(char) |
10 | for _,setting in pairs (script:GetChildren()) do |
11 | local c = setting:Clone() |
13 | if c.ClassName = = "LocalScript" then |
I just don't know what to do. I tried cloning the scripts into the players directly with "player.Character", but It doesnt work