Skip to content

Instantly share code, notes, and snippets.

@spotco
Created April 29, 2019 05:31
Show Gist options
  • Select an option

  • Save spotco/60a08c90a4183df629072f802009f8bb to your computer and use it in GitHub Desktop.

Select an option

Save spotco/60a08c90a4183df629072f802009f8bb to your computer and use it in GitHub Desktop.
texture_convert.lua
local convert_table = {
["rbxassetid://2587811489"] = "rbxgameasset://Images/WClub_BigWalls-2";
["rbxassetid://2587680553"] = "rbxgameasset://Images/WClub_SpeakerFront-Side-2";
["rbxassetid://2587754419"] = "rbxgameasset://Images/WClub_DJSet-Front-2";
["rbxassetid://2954514453"] = "rbxgameasset://Images/WClub_DJ-Set";
["rbxassetid://2587679730"] = "rbxgameasset://Images/WClub_SpeakerFront-Front-4";
["rbxassetid://2954480673"] = "rbxgameasset://Images/WClub_Tunnel-Texture";
["rbxassetid://2587785664"] = "rbxgameasset://Images/WClub_SideSpeaker-2";
["rbxassetid://2587802664"] = "rbxgameasset://Images/WClub_TV-Front-2";
["rbxassetid://2583869929"] = "rbxgameasset://Images/WClub_Speaker-1";
["rbxassetid://2587754979"] = "rbxgameasset://Images/WClub_DJSet-Side-2";
["rbxassetid://2587802466"] = "rbxgameasset://Images/WClub_TV-Side-2";
["rbxassetid://2644845949"] = "rbxgameasset://Images/WClub_Stairs-Top-1";
}
local function r_itr(cur)
for _,child in pairs(cur:GetChildren()) do
r_itr(child)
end
if cur.ClassName == "Decal" or cur.ClassName == "Texture" then
if convert_table[cur.Texture] ~= nil then
cur.Texture = convert_table[cur.Texture]
end
end
end
r_itr(game.Selection:Get()[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment