Advertisement
urabigfatnoob

revamped floaty circle

Jul 19th, 2016
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. wait(1)
  2. chr = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:wait()
  3. float = Instance.new("Part",chr)
  4. float.Anchored = true
  5. float.Transparency = 1
  6. float.CanCollide = false
  7. float.Position = chr.Torso.Position + Vector3.new(0,10,0)
  8. model = Instance.new("Model")
  9. model.Parent = chr
  10. circle = Instance.new("Part",model)
  11. model.PrimaryPart = circle
  12. circle.Anchored = true
  13. circle.CanCollide = false
  14. circle.BrickColor = BrickColor.new(Color3.fromRGB(192, 57, 43)) --BRICKCOLOR ONLY GOES TO 1 R(ED)G(REEN)B(LUE)
  15. circle.Size = Vector3.new(.5,.5,.5) --SIZE ONLY CHANGE THE MIDDLE
  16. circle.Transparency = 1 --VISIBILITY OF INSIDE BLOCK
  17. circle.Material = Enum.Material.Neon
  18. rad = 7
  19. circ = 2*math.pi*rad
  20. n = circ/.5
  21. rot = 720/n
  22.  
  23. for i = 0,n/4 do
  24. local clone = circle:Clone()
  25. local function tran()
  26. clone.Parent = model
  27. for index = .5,7,.1 do
  28. game:GetService('RunService').RenderStepped:wait()
  29. clone.Size = Vector3.new(.5,index,.5)
  30. clone.Transparency = clone.Transparency - .05
  31. clone.CFrame = circle.CFrame*CFrame.Angles(0,0,math.rad(i*rot))
  32. end
  33. end
  34. spawn(tran)
  35. end
  36.  
  37. x = 0
  38. y = 0
  39. z = 0
  40. random = 1
  41. debounce = false
  42. colortable={BrickColor.new(Color3.fromRGB(41, 128, 185)),
  43. BrickColor.new(Color3.fromRGB(192, 57, 43)),
  44. BrickColor.new(Color3.fromRGB(142, 68, 173)),
  45. BrickColor.new(Color3.fromRGB(26, 188, 156)),
  46. BrickColor.new(Color3.fromRGB(46, 204, 113))}
  47. function changecolor()
  48. if debounce == false then
  49. debounce = true
  50. local children = model:GetChildren()
  51. random = random + 1
  52. if random == 6 then
  53. random = 1
  54. end
  55. for i,v in pairs(children) do
  56. game:GetService('RunService').RenderStepped:wait()
  57. v.BrickColor = colortable[random]
  58. end
  59. debounce = false
  60. end
  61. end
  62. while true do
  63. game:GetService('RunService').RenderStepped:wait()
  64. if x > 360 then
  65. x = 0
  66. spawn(changecolor)
  67. elseif y > 360 then
  68. y = 0
  69. end
  70. x = x + 2
  71. y = y - 4
  72. model:SetPrimaryPartCFrame(chr.HumanoidRootPart.CFrame*CFrame.new(0,7,0)*CFrame.Angles(math.rad(x),math.rad(y),math.rad(0)))
  73. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement