Hey guys!
I have this script here where if you click on the GUI, it gives you the outfit. It works fine in Studio test mode, but not in-game. Does anyone see an error with my code?
script.Parent.MouseButton1Down:connect(function() playername = script.Parent.Parent.Parent.Parent.Name playerteam = script.Parent.Parent.Parent.Parent player = Workspace:FindFirstChild(""..playername.."") if player ~= nil then player:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=267460168" player:FindFirstChild("Pants").PantsTemplate = "http://www.roblox.com/asset/?id=267460509" end end)
Thanks in advanced,
Michael
Try to put it in a LocalScript if it's already in a regular script, and vise versa. If it works in studio, but not in game, then this will almost always fix it.