So I made this script, where if you type in a ID from the decal catalog, it will insert it into your swords TextureID, and here's the problem it's getting annoying because everytime someone dies they have to reinsert it. Could someone edit it and fix it so it saves when a player changes it?
repeat wait() until game.Players.LocalPlayer
local player = Game.Players.LocalPlayer
local swordMesh = script.Parent
local GuiBar = player.PlayerGui.ScreenGui.Frame.TextBox --Change to correct path.
GuiBar.FocusLost:connect(function() --When someone is finished typing into the TextBox,
pcall(function()
swordMesh.TextureId = "http://www.roblox.com/asset/?id="..tostring(tonumber(GuiBar.Text)-1) --Try to change the texture.
end)
end)

1 comment
The information is showing you what the stuff does, so you can figure it out.