Hi, I am trying to make a game that consists of character customization. It is a cat game, each player can choose a cat color/species that makes them a furry and that’s it LOL. The problem is that when they die, they go back to their normal avatar. I was trying to find some Youtube video or some answers on this website and didn’t have luck with it. And I am very new with the scripting. Can someone please give me a script that helps the player save their character customization after they reset/respawn? In the first place, I watch TheVenomousOwl to know how to make a character customization, which his tutorial really helped me, but he never mention about saving customization. Here is my script for one of the cat choose they can pick, is the same for every 11 cats they can pick and I put it in the Service Script service:
game.ReplicatedStorage.Events.ColorEvent1.OnServerEvent:Connect(function(plr) local Button = game.StarterGui.Menu.Frame1.tuxedo local q = BrickColor.new("Really black") local p = BrickColor.new("White")
local char = plr.Character char.Head.BrickColor = q char.UpperTorso.BrickColor = p char.LowerTorso.BrickColor = q char.RightLowerArm.BrickColor = q char.LeftLowerArm.BrickColor = q char.RightUpperArm.BrickColor = q char.LeftUpperArm.BrickColor = q char.RightLowerLeg.BrickColor = q char.LeftLowerLeg.BrickColor = q char.RightUpperLeg.BrickColor = q char.LeftUpperLeg.BrickColor = q char.RightFoot.BrickColor = q char.LeftFoot.BrickColor = q char.RightHand.BrickColor = q char.LeftHand.BrickColor = q char:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=9649345503" char:FindFirstChild("Pants").PantsTemplate = "http://www.roblox.com/asset/?id=9649346110" local Storage = game.ReplicatedStorage.CatsHeads.TuxedoHead local char = plr.Character if char:findFirstChild("Humanoid") then local Folder = char.Head.Hats Folder:ClearAllChildren() local Head = char.Head local New_Hat = Storage:Clone() New_Hat.Parent = Folder New_Hat.Position = Head.Position local Weld = Instance.new("Weld") Weld.Parent = New_Hat Weld.Part0,Weld.Part1 = Head, New_Hat Weld.C0 = CFrame.new(0,0.61,-0.1) Weld.C1 = Head.HatAttachment.CFrame local Storage = game.ReplicatedStorage.CatsEars.TuxedoEars local char = plr.Character if char:findFirstChild("Humanoid") then local Folder = char.Head.Hats local Head = char.Head local New_Hat = Storage:Clone() New_Hat.Parent = Folder New_Hat.Position = Head.Position local Weld = Instance.new("Weld") Weld.Parent = New_Hat Weld.Part0,Weld.Part1 = Head, New_Hat Weld.C0 = CFrame.new(0,1.3,0) Weld.C1 = Head.HatAttachment.CFrame local Storage = game.ReplicatedStorage.CatsTails.TuxedoTails local char = plr.Character if char:findFirstChild("Humanoid") then local Folder = char.UpperTorso.Waist Folder:ClearAllChildren() local Head = char.LowerTorso local New_Hat = Storage:Clone() New_Hat.Parent = Folder New_Hat.Position = Head.Position local Weld = Instance.new("Weld") Weld.Parent = New_Hat Weld.Part0,Weld.Part1 = Head, New_Hat Weld.C0 = CFrame.new(0,-0.9,2.3) Weld.C1 = Head.WaistBackAttachment.CFrame end end end
end)