Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I fix this script?(I fixed it)

Never mind I fixed my problem

2 answers

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

1 comment

1

Heh, you got Ninja'd.

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)

1 comment

0

It is supposed to change the clothing of a model in work space called Character

This discussion is preserved as it was. New answers, comments, and votes are closed.