Never mind I fixed my problem
There is nogame.Workspace.Character
.
If this is a LocalScript (e.g., in a GUI object in a PlayerGui), you can use game.Players.LocalPlayer.Character.
If this isn't a LocalScript, you would have to use script.Parent. ... .Character
, to refer to the Player from within the PlayerGui.
If this is in a SurfaceGui or BillboardGui in the Workspace, you'll need to rework this to use one of the above combined with the Adornee property
I'm puzzled. Is this supposed to change a Model's appearance whose name is "Character"? Or the player itself?
If it's the player, try this:
script.Parent.MouseButton1Click:connect(function() game.Workspace.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=170596150" game.Workspace.Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=170594552" end)
Locked by Shawnyg and adark
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?