|
| 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 |
|
|
|
| 01 May 2014 11:18 PM |
| Also I know the texture works because i used it on another brick |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 01 May 2014 11:21 PM |
| "basePiece" is not defined. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
| |
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 02 May 2014 02:41 AM |
| Texture is not a valid member of Part |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 03:10 AM |
| Roblox doesn't have texture offset properties, so you can only squish and stretch it D: |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 07:50 AM |
| I am just trying to add it |
|
|
| Report Abuse |
|
|
| |
|