|
| 21 Mar 2013 04:10 PM |
17:06:49.206 - Workspace.decalscript:23: unexpected symbol near '=' line 23 is local right = Instance.new(... I want this script to make a decal on each side of the brick.
for i,v in pairs(Workspace:GetChildren()) do if v.ClassName == "Part" then local right = Instance.new("Decal",v).Texture = "http://www.roblox.com/asset/ id=69129747" right.Face = "Right" local left = Instance.new("Decal",v).Texture = "http://www.roblox.com/asset/?id=69129747" left.Face = "Left local back = Instance.new("Decal",v).Texture = "http://www.roblox.com/asset/?id=69129747" back.Face = "Back" local front = Instance.new("Decal",v).Texture = "http://www.roblox.com/asset/?id=69129747" front.Face = "Front" local top = Instance.new("Decal",v).Texture = "http://www.roblox.com/asset/?id=69129747" top.Face = "Top" local bottom = Instance.new("Decal",v).Texture = "http://www.roblox.com/asset/?id=69129747" bottom.Face = "Bottom" end end
Thanks for any help
|-MassiveGman-| ~|Law Of Inertia|~ |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 21 Mar 2013 04:21 PM |
You can't set a Texture of a created object that's set as a variable on a single line.
local bottom = Instance.new("Decal", v) bottom.Texture = "assetURL" |
|
|
| Report Abuse |
|
|
|
| 21 Mar 2013 04:36 PM |
You can't? You can set parents and things that way.
Instance.new("Fire",Workspace.Brick).Size = 4
I believe you can.
|-MassiveGman-| ~|Law Of Inertia|~ |
|
|
| Report Abuse |
|
|
|
| 21 Mar 2013 04:44 PM |
Ugh The problem was the uncompleted string.
nvm
|-MassiveGman-| ~|Law Of Inertia|~ |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 21 Mar 2013 05:14 PM |
Gman, you can't do this:
item = Instance.new("BoolValue", workspace).Value = true
But you can do this:
item = Instance.new("BoolValue", workspace) item.Value = true
or:
Instance.new("BoolValue, workspace).Name = "item" workspace.item.Value = true |
|
|
| Report Abuse |
|
|