guys, im making a body changer script, im my game exist two races, and for one of that races i want change player body, i made a script b4 what work in R15, but when i made my game R6 this script doesnt work anymore, can some of u see whats wrong with my script?
local W = game:GetService("Workspace")
local SS = game:GetService("ServerStorage")
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAppearanceLoaded:Connect(function(char)
local stats = plr:FindFirstChild("Stats")
local race = stats:WaitForChild("Race")
local hollow = SS.Adjuchas
local gillian = SS.Gillian
local adjuchas = SS.Adjuchas
if race.Value == "gillian" then
for _,v in pairs(char:GetChildren()) do
if v:IsA("BasePart") then
v:Destroy()
elseif v:IsA("Accessory") then
v:Destroy()
end
end
for _, x in pairs(gillian:GetDescendants()) do
if x:IsA("BasePart") then
local y = x:Clone()
y.Parent = char
end
end
end --
its the main part of the script, the changer part, in my game has types of "monsters" and player can get em with getting a higher level, then when race int value change, body change too, then i made the same as this changer but in Race.Changed
