I made a customization system where you can choose your clothing and things, but I want to make it so it’ll save when you leave. How can I save it?
The tutorial I used for DataStore: DataStore (Saving & Loading Player Data) - Roblox Scripting Tutorial - YouTube
Pictures:
MyDataStore: DataStore Scr - Pastebin.com
CustomizationLocalScript: CharacterCustomization LocalScript - Pastebin.com
CustomizationServerScript:
local CustomRemote = game:GetService("ReplicatedStorage"):WaitForChild("Customaztion"):WaitForChild("Remotes").RemoteEvent
CustomRemote.OnServerEvent:Connect(function(Player, ShirtTemplate, PantsTemplate)
local Character = Player.Character
Character.Shirt.ShirtTemplate = ShirtTemplate
Character.Pants.PantsTemplate = PantsTemplate
end)