Advertisement
BINO2002

Untitled

Feb 19th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. Me = game.Players.BINO2002
  2. char = Me.Character
  3. Torso = char.Torso
  4. local Background = BrickColor.new("Lime green")
  5. local Color = BrickColor.new("Lime green")
  6.  
  7. local pos = Vector3.new(-100, 1, 0)
  8.  
  9. xs = 5
  10. xz = 5
  11. x = xs*10
  12. z = xz*10
  13.  
  14. local dist = xs*5
  15.  
  16. for _,v in pairs(workspace:children()) do if v.Name == "Lolz" then v:remove() end end
  17.  
  18. local Model = Instance.new("Model",workspace)
  19. Model.Name = "Lolz"
  20.  
  21. function Part(Par, Anc, Colli, Tran, Ref, Col, Siz)
  22. local p = Instance.new("Part")
  23. p.formFactor = "Custom"
  24. p.TopSurface = 0
  25. p.BottomSurface = 0
  26. p.Transparency = Tran
  27. p.Reflectance = Ref
  28. p.Anchored = Anc
  29. p.CanCollide = Colli
  30. p.BrickColor = Col
  31. p.Size = Siz
  32. p.Locked = true
  33. p.Parent = Par
  34. p:BreakJoints()
  35. return p
  36. end
  37.  
  38. local briks = {}
  39.  
  40. for x2 = 0, x, xs do
  41. for z2 = 0, z, xz do
  42. local p = Part(Model, true, true, 0, 0, Color, Vector3.new(xs, 1, xz))
  43. local p2 = Part(Model, true, true, 1, 0, BrickColor.new("Really black"), Vector3.new(xs, 1, xz))
  44. Instance.new("BlockMesh",p2).Scale = Vector3.new(1.002, 1.002, 1.002)
  45. Instance.new("BlockMesh",p)
  46. p.CFrame = CFrame.new(pos) * CFrame.new(x2, 0, z2)
  47. p2.CFrame = p.CFrame
  48. table.insert(briks, {p, p2})
  49. end
  50. end
  51.  
  52. while true do
  53. for _,v in pairs(briks) do
  54. local magn = (v[1].Position - Torso.Position+Vector3.new(0,3,0)).magnitude
  55. if magn <= dist then
  56. magn = magn/dist
  57. v[2].Transparency = (1-magn)-(magn-1)
  58. else
  59. v[2].Transparency = 0
  60. end
  61. end
  62. wait()
  63. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement