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 » Scripting Helpers
Home Search
 

Re: Why is this not working?

Previous Thread :: Next Thread 
AhtnamasStudio is not online. AhtnamasStudio
Joined: 15 Jan 2014
Total Posts: 1104
01 May 2014 11:17 PM
So I am trying to make a brick that spawns with a texture on it but it dose not want to work! I am trying to have a texture on top The brick works but when i add in the texture it dose not

local surface = basePiece:clone()
surface.Size = Vector3.new(400, 1, 400)
surface.Transparency = 1
surface.CanCollide = false
surface.Texture = "http://www.roblox.com/asset/?id=36358296"
surface.Name = "Ocean"

local model = Instance.new("Model")
model.Name = "Ocean"
model.Parent = game.Workspace
Report Abuse
AhtnamasStudio is not online. AhtnamasStudio
Joined: 15 Jan 2014
Total Posts: 1104
01 May 2014 11:18 PM
Also I know the texture works because i used it on another brick
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
01 May 2014 11:21 PM
"basePiece" is not defined.
Report Abuse
AhtnamasStudio is not online. AhtnamasStudio
Joined: 15 Jan 2014
Total Posts: 1104
01 May 2014 11:22 PM
No it is. But that is up in the script here i should of posted it

local basePiece = Instance.new("Part")
basePiece.formFactor = "Symmetric"
basePiece.Anchored = true
basePiece.Locked = true
basePiece.BrickColor = BrickColor.new("Deep blue")
basePiece.TopSurface = "Smooth"
basePiece.BottomSurface = "Smooth"
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
01 May 2014 11:23 PM
What does the output say?
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
01 May 2014 11:24 PM
Oh wait
Brick do not have a .Texture property.
Use a decal(s).
Report Abuse
AhtnamasStudio is not online. AhtnamasStudio
Joined: 15 Jan 2014
Total Posts: 1104
01 May 2014 11:28 PM
The output says nothing and how would i do it?
surface.Decal.Texture = "http://www.roblox.com/asset/?id=36358296"
I tried that it did not work
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
01 May 2014 11:29 PM
Decals are an object
You will need to Instance.new() 6 decals into the brick and change each one to effect one side, and set the texture of each one
I can do that for you if you want.
Report Abuse
AhtnamasStudio is not online. AhtnamasStudio
Joined: 15 Jan 2014
Total Posts: 1104
01 May 2014 11:32 PM
Well this is what i have to make the texture move

while true do
game.Workspace.Ocean.Texture.StudsPerTileU =20
wait(.5)
game.Workspace.Ocean.Texture.StudsPerTileU =25
wait(.5)
game.Workspace.Ocean.Texture.StudsPerTileU =30
wait(.5)
game.Workspace.Ocean.Texture.StudsPerTileU =35
wait(.5)
end



Also could you show how i would add the instance in the script?
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
01 May 2014 11:34 PM
Oh you are using a texture object, my bad.

http://wiki.roblox.com/index.php?title=RBX.lua.Texture_(Object)
http://wiki.roblox.com/index.php?title=Texture_(Property)

You need to do
surface.Texture.Texture =
Report Abuse
AhtnamasStudio is not online. AhtnamasStudio
Joined: 15 Jan 2014
Total Posts: 1104
02 May 2014 02:41 AM
Texture is not a valid member of Part
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
02 May 2014 03:10 AM
Roblox doesn't have texture offset properties, so you can only squish and stretch it D:
Report Abuse
AhtnamasStudio is not online. AhtnamasStudio
Joined: 15 Jan 2014
Total Posts: 1104
02 May 2014 07:50 AM
I am just trying to add it
Report Abuse
AhtnamasStudio is not online. AhtnamasStudio
Joined: 15 Jan 2014
Total Posts: 1104
02 May 2014 06:53 PM
Bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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