i want to make a player change clothes when he click on a imagebutton
i added a localscript inside of the button and put the following codes :
`local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function(player)
local Shirt = "http://www.roblox.com/asset/?id=6345106575"
local Pants = "http://www.roblox.com/asset/?id=8194595340"
local PlayerShirt = game.Workspace:FindFirstChild(player.Name).Shirt
local PlayerPants = game.Workspace:FindFirstChild(player.Name).Pants
PlayerShirt.ShirtTemplate = Shirt
PlayerPants.PantsTemplate = Pants
end)`
but when i click on the imagebutton it does nothing , any help??