Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Skin wont reload when player is respawned?

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

✓ Accepted answer

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

1 comment

0

Works faster thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.