Advertisement
dahpiglz

Untitled

May 28th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. index = 1
  2. bdex = 1
  3. num = {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "19", "18", "17", "16", "15", "14", "13", "12", "11", "10", "9", "8", "7", "6", "5", "4", "3", "2"}
  4. Names = {"Camo", "Dark orange", "Dark green", "Bright green", "CGA brown"}
  5. last = nil
  6. tex = "http://www.roblox.com/asset/?id=22527112"
  7. for x = 1 ,40 do -- change the "42" for an other terrain pathern.
  8. for z = 1,42 do -- change the "42" for an other terrain pathern.
  9. wait()
  10. pc = Instance.new("Part")
  11. d = Instance.new("Texture")
  12. d.StudsPerTileU = 10
  13. d.StudsPerTileV = 10
  14. d.Texture = tex
  15. d.Parent = pc
  16. d2 = d:clone()
  17. d3 = d:clone()
  18. d4 = d:clone()
  19. d5 = d:clone()
  20. d6 = d:clone()
  21. d2.Parent = pc
  22. d3.Parent = pc
  23. d4.Parent = pc
  24. d5.Parent = pc
  25. d6.Parent = pc
  26. d.Face = "Top"
  27. d2.Face = "Bottom"
  28. d3.Face = "Left"
  29. d4.Face = "Right"
  30. d5.Face = "Back"
  31. d6.Face = "Front"
  32. pc.BrickColor = BrickColor.new((Names[index]))
  33. pc.Size = Vector3.new(8,5,8)
  34. pc.TopSurface = "Smooth"
  35. pc.BottomSurface = "Smooth"
  36. pc.Name = "Part"
  37. pc.Parent = game.Workspace
  38. pc.CFrame = CFrame.new(x*8,num[bdex],z*8)
  39. if last == nil then else
  40. pc.CFrame = CFrame.new(pc.Position,last.Position)
  41. end
  42. pc.Anchored = true
  43. last = pc
  44. index = index + 1
  45. bdex = bdex + 1
  46. if index > table.maxn(Names) then
  47. index = 1
  48. if bdex > table.maxn(num) then
  49. bdex = 1
  50. end
  51. end
  52. end
  53. end
  54.  
  55. -- Have fun with it!
  56.  
  57. -- arundel
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement