Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Skin wont reload when player is respawned?

Asked by 4 years ago

I'm making a skin system where a player gets a skin when they bought, but it'll go back to their og character when they respawn. Heres some code

game.Players.PlayerAdded:Connect(function(Player)
local Data = game.ReplicatedStorage.Assets.Remotes.GetTeleportData:InvokeClient(Player).EquippedSkin or "Dummy"
local Character = game.ServerStorage.Assets.Skins[Data]:Clone()
Player.Character = Character
Character.Parent = workspace
--Not Showing
    Player.CharacterAdded:Connect(function(Char)
        Char.Humanoid.Died:Wait()
        --Not Showing
wait(5)
local Data = game.ReplicatedStorage.Assets.Remotes.GetTeleportData:InvokeClient(Player).EquippedSkin or "Dummy"
local Character = game.ServerStorage.Assets.Skins[Data]:Clone()
Player.Character = Character
Character.Parent = workspace
    end)
    --Not Showing
end)

Any way I can fix it

1 answer

Log in to vote
0
Answered by 4 years ago

Might be because it has the wrong character so try to make sure you have the right character

0
Works faster thanks Dalbertjdplayz 37 — 4y
Ad

Answer this question