Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 2 years 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?

0
Or do you mean the way the texture is facing ? Cirillix 110 — 2y

2 answers

Log in to vote
2
Answered by
Cirillix 110
2 years ago

Right = 0

Top = 1

Back = 2

Left = 3

Bottom = 4

Front = 5

Part.Texture.Face = "Top"

or

Part.Texture.Face = 1

I hope this is what you meant.

Ad
Log in to vote
0
Answered by
Xapelize 2658 Moderation Voter Community Moderator
2 years ago
Edited 2 years 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