My code is:
script.Parent.MouseButton1Down:connect(function() local playername = game.Players.LocalPlayer.Name local player = workspace:FindFirstChild(""..playername.."") if player ~= nil then player:FindFirstChild("Pants").PantsTemplate = "http://www.roblox.com/asset/?id=7133612447" player:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=7133614237" end end)
No Idea why this is not working, all it's doing is removing my clothing instead of giving me the new clothing.
LocalScripts can't change things that other players can see. Other players see clothing, so you will need to use remote events for this
use the rbxassetid://