When the player clicks, the script is suppose to change the texture of a meshpart, but when the button is clicked, nothing happens. Any Idea Why?
SkinId = "rbxassetid://633490575"
Player = game.Players.LocalPlayer
Character = Player.Character
Aug = Character:WaitForChild("Aug")
Carbon = script.Parent.Parent.Parent.Parent.Parent.Skins:WaitForChild("carbon")
script.Parent.MouseButton1Click:connect(function()
if Carbon == true then
print("Skin Applied")
Aug.TextureID = SkinId
end
end)

6 comments
Did you check that it's getting past the :WaitForChild()? You can add a second argument to that to timeout after a given time like this :WaitForChild("carbon", 5).
I tried that, didn't make a diffrence
If it's not showing output, it's probably a problem with the texture. Try to subtract 1 from the skinId, and keep subtracting 1 until it loads.
Output?
Output?
no output