|
| 08 Jan 2016 01:23 PM |
Hi guys, I'm sort of new to scripting and have watched a bunch of tutorials on the subject. Anyways, I'm trying to build a self building house to get the hang of how things work in Lua. Here is what I got:
p = Instance.new("Part", game.Workspace) p.Anchored = true p.Position = Vector3.new(-27, 0.5, 34) p.Size = Vector3.new(14, 1, 14) p.BrickColor = BrickColor.new("Rust")
p = Instance.new("Part", game.Workspace) p.Anchored = true p.Position = Vector3.new(-22.5, 4.5, 40.5) p.Size = Vector3.new(3, 7, 1) p.BrickColor = BrickColor.new("Medium stone grey")
p = Instance.new("Part", game.Workspace) p.Anchored = true p.Position = Vector3.new(-31.5, 4.5, 40.5) p.Size = Vector3.new(3, 7, 1) p.BrickColor = BrickColor.new("Medium stone grey")
p = Instance.new("Part", game.Workspace) p.Anchored = true p.Position = Vector3.new(-27, 9.5, 40.5) p.Size = Vector3.new(12, 3, 1) p.BrickColor = BrickColor.new("Medium stone grey")
p = Instance.new("Part", game.Workspace) p.Anchored = true p.Position = Vector3.new(-33.5, 6, 34) p.Size = Vector3.new(1, 10, 14) p.BrickColor = BrickColor.new("Medium stone grey")
p = Instance.new("Part", game.Workspace) p.Anchored = true p.Position = Vector3.new(-20.5, 6, 34) p.Size = Vector3.new(1, 10, 14) p.BrickColor = BrickColor.new("Medium stone grey")
p = Instance.new("Part", game.Workspace) p.Anchored = true p.Position = Vector3.new(-27, 6, 27.5) p.Size = Vector3.new(12, 10, 1) p.BrickColor = BrickColor.new("Medium stone grey")
p = Instance.new("Part", game.Workspace) p.Anchored = true p.Position = Vector3.new(-27, 11.4, 34) p.Size = Vector3.new(14, 1, 14) p.BrickColor = BrickColor.new("Medium stone grey")
p = Instance.new("WedgePart", game.Workspace) p.Anchored = true p.Position = Vector3.new(-23.5, 15, 34) p.Size = Vector3.new(14, 6, 7) p.Rotation = Vector3.new(0, -90, 0) p.BrickColor = BrickColor.new("Medium stone grey")
p = Instance.new("WedgePart", game.Workspace) p.Anchored = true p.Position = Vector3.new(-30.5, 15, 34) p.Size = Vector3.new(14, 6, 7) p.Rotation = Vector3.new(0, 90, 0) p.BrickColor = BrickColor.new("Medium stone grey")
Well, as you can see it gets quite long in one direction. I kept thinking while doing this, that there has to be a shorter way to do it and keep me from having to scroll all the way to the right all the time.
Also, the last wedge ALWAYS wants to go up to Y 21 instead of Y 15 like the other wedge. Can you help with that?
One more thing, I was thinking of doing a script that self builds and drops the parts from the sky around Y 20 - 25 and changes the transparency as it goes down (from like .6 to 0.) With an wait of each block to get into place about 2 seconds or more if needed to make it look nicer. Thanks a lot! :D |
|
|
| Report Abuse |
|
| |
|
| 09 Jan 2016 04:08 PM |
| I'm working on a part compression method. It'll turn all that in to an interpretable string a fraction of the size. But it's not done yet :( |
|
|
| Report Abuse |
|