Advertisement
robthesnowman

circle

Aug 28th, 2016
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. --[[made by supercoolguy53]]
  2. circle = Instance.new("Part")
  3. circle.Position = Vector3.new(0,4,0) --change this to whatever. as long as it's a vector3 value you're good
  4. circle.Size = Vector3.new(10,.2,.2) -- change the first number to whatever DO NOT CHANGE THE LAST .2 however, change the middle number to whatever, that's how tall your circle will be
  5. circle.Anchored = true -- keep this true or it'll fall apart
  6. circle.CanCollide = false -- false means you can walk through it, true means you can't
  7. circle.Material = Enum.Material.Neon-- change to Material Enum (Plastic, Neon, etc.)
  8. circle.BrickColor = BrickColor.Random() -- change to whatever. if you dont know how color3 value works then change "BrickColor.new(1,1,1)" to "BrickColor." and options should pop up
  9. circle.Transparency = 0 -- change to a number between 0-1
  10. circle.Reflectance = 1 -- change to a number between 0-1
  11. circle.Name = "CirclePart" -- change purple text to whatever name you want
  12.  
  13.  
  14. --[[DONT MESS WITH ANY OF THIS UNLESS YOU KNOW WHAT YOU'RE DOING]]
  15.  
  16. rad = circle.Size.X/2 --radius
  17. print('rad: '..rad)
  18. pi = math.pi
  19. circ = 2*pi*rad --circumference
  20. print('circ: '..circ)
  21. n = circ/0.2 -- how many parts in the circle
  22. print('n: '..n)
  23. rot = 180/n -- i increase the rotation of each part by this much
  24. print('rot: '..rot)
  25. -- actually making the circle
  26. for i = 1,n do
  27. wait()
  28. clone = circle:Clone()
  29. clone.BrickColor = BrickColor.Random()
  30. clone.Parent = workspace
  31. clone.CFrame = circle.CFrame*CFrame.Angles(0,math.rad(i*rot),0)
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement