This Code gives me this error: 12:55:04.012 - TextureId is not a valid member of LocalScript so im not sure whats wrong so i hope someone will help! Thanks for Reading & Helping me out! it really means alot.
function Clicked()
local plr = game:GetService("Players").LocalPlayer.PlayerGui
plr.LocalScript.TextureId = "rbxasset://textures/SwordTexture.png"
end
script.Parent.MouseButton1Down:connect(Clicked)

1 comment
The error is correct. What are you attempting to do/achieve with this script? A LocalScript does not have a TextureId property, so I am a bit puzzled. Are you trying to edit a weapon? Provide the hierarchy please.