Log in to vote

How would I set the face of a texture in a script?

Asked by 3 months ago

Hello! I'm making an old roblox simulator called Nostalgia Studio and I am currently working on making surface types work. I've got the textures for studs, inlets and universal and I am currently trying to make it create a new texture for each brick created via a script, but I've had trouble setting the texture's face. Would I just use BasePart.surface or is there some sort of enumeration? I've googled it and no developer forum posts showed up, and the documentation had nothing about it in FaceInstance, Face, Decal, Texture or Enumerations

Anybody know the answer?

Or do you mean the way the texture is facing ? Cirillix 88 — 3mo

2 answers

Log in to vote
Answered by 3 months ago

Right = 0

Top = 1

Back = 2

Left = 3

Bottom = 4

Front = 5

Part.Texture.Face = "Top"


Part.Texture.Face = 1

I hope this is what you meant.

Log in to vote
Answered by
Xapelize 1952 Moderation Voter
3 months ago
Edited 3 months ago

Even though this is answered by @Cirillix, I'm giving some information:

  • You can directly set the face by inserting the FaceName string, or use NormalId

  • Enumeration is not needed, but it's a Enumeration type

Good luck at your game!

Answer this question