script:
game.Players.CharacterAutoLoads = false
print(class)
plr.Class.Value = class
local OldChar = plr.Character
local newChar = game.ReplicatedStorage.Classes[class]:Clone()
newChar.Parent = game.Workspace
newChar.Name = plr.Name
for i,v in pairs(OldChar:GetChildren()) do
if v:IsA("LocalScript") or v:IsA("Script") then
v:Destroy()
end
end
wait()
plr:LoadCharacter()
plr.Character = newChar
There is a local script inside the player, and it duplicates one more every time i run the script, i tried finding it, but its no where in the explorer even when the print that finds script.parent clearly states its in the character