generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: how can i get decals to loop insted of stretching

Previous Thread :: Next Thread 
markaaron is not online. markaaron
Joined: 21 Feb 2011
Total Posts: 455
29 May 2015 01:38 PM
how can i get decals to loop insted of stretching with out needing to edit the decal or make the blocks smaller
Report Abuse
lucas200206 is not online. lucas200206
Joined: 06 Dec 2009
Total Posts: 899
29 May 2015 02:13 PM
Steps:

1. Advanced Objects >> Texture;

2. Set the "Face" property of the Texture you just inserted in the brick to the same as the Decal;

3. Set the "Texture" property to the same as of the decal;

4. Tweak the "StudsPerTileU" and "StudsPerTileV" as you want.

OR

In the command bar, insert this and hit Enter with the part(s) selected,
and then repeat step 4:

for _, x in next, game.Selection:Get() do
for _, y in next, x:GetChildren() do
if y.ClassName == "Decal" then
local t = Instance.new("Texture", x)
t.Name = y.Name
t.Texture = y.Texture
t.Face = y.Face
y:Destroy()
end
end
end
Report Abuse
markaaron is not online. markaaron
Joined: 21 Feb 2011
Total Posts: 455
30 May 2015 12:51 PM
but it will be a pain to do that to every single block D:
Report Abuse
lucas200206 is not online. lucas200206
Joined: 06 Dec 2009
Total Posts: 899
30 May 2015 01:25 PM
Select all the blocks that have the decals you want to loop and run that code in the command bar
Report Abuse
markaaron is not online. markaaron
Joined: 21 Feb 2011
Total Posts: 455
30 May 2015 03:28 PM
k thanks :D
Report Abuse
markaaron is not online. markaaron
Joined: 21 Feb 2011
Total Posts: 455
30 May 2015 03:31 PM
also could you edit the command so the StudsPerTileU and StudsPerTileV will always be 6
Report Abuse
lucas200206 is not online. lucas200206
Joined: 06 Dec 2009
Total Posts: 899
31 May 2015 08:19 AM
sure

for _, x in next, game.Selection:Get() do
for _, y in next, x:GetChildren() do
if y.ClassName == "Decal" then
local t = Instance.new("Texture", x)
t.Name = y.Name
t.Texture = y.Texture
t.Face = y.Face
t.StudsPerTileU = 6
t.StudsPerTileV = 6
y:Destroy()
end
end
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image