Hello, so I’m making a skin system. But the issue is that it’ll auto respawn.
as you can see.
This is my skin loader script
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function()
task.wait(1)
local Inventory = Player:WaitForChild("Inventory")
local Skins = Inventory:WaitForChild("Skins")
local SkinValues = Player:WaitForChild("SkinValues")
for i,v in pairs(SkinValues:GetChildren()) do
if v.Value == true then
local SkinInstance = Skins:FindFirstChild(v.Name)
if SkinInstance then
local SkinInstanceClone = SkinInstance:Clone()
local Animate = script.Animate:Clone()
SkinInstanceClone.Name = Player.Name
SkinInstanceClone.Parent = workspace
Player.Character = SkinInstanceClone
Animate.Parent = SkinInstanceClone
game.ReplicatedStorage.RemoteEvents.SkinCameraAdjuster:FireClient(Player, SkinInstanceClone)
print('char set')
end
end
end
end)
end)
and my camera adjuster script
game.ReplicatedStorage.RemoteEvents.SkinCameraAdjuster.OnClientEvent:Connect(function(Skin)
local Camera = workspace.CurrentCamera
Camera.CameraType = Enum.CameraType.Custom
local Humanoid:Humanoid = Skin:WaitForChild("Humanoid")
Camera.CameraSubject = Humanoid
end)