Advertisement
EmeraldIT

TEst "admin tabs"

Jan 14th, 2020
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.55 KB | None | 0 0
  1. local vt = Vector3.new
  2. local cf = CFrame.new
  3. local cfA = CFrame.Angles
  4.  
  5. local NewR = function(v1,v2)
  6. Ran = {
  7. NumberSequenceKeypoint.new(0,v1),
  8. NumberSequenceKeypoint.new(1,v2)
  9. }
  10. Final = NumberSequence.new(Ran)
  11. return Final
  12. end
  13.  
  14. local NewR2 = function(v1, v1b,v2, v2b)
  15. Ran = {
  16. NumberSequenceKeypoint.new(0,v1b,v1),
  17. NumberSequenceKeypoint.new(1,v2b,v2)
  18. }
  19. Final = NumberSequence.new(Ran)
  20. return Final
  21. end
  22.  
  23. local SmoothVis = function()
  24. Ran = {
  25. NumberSequenceKeypoint.new(0,1),
  26. NumberSequenceKeypoint.new(0.25, 0),
  27. NumberSequenceKeypoint.new(0.75, 0),
  28. NumberSequenceKeypoint.new(1,1)
  29. }
  30. Final = NumberSequence.new(Ran)
  31. return Final
  32. end
  33.  
  34. local Tablets = {}
  35. local InnerCol = "Really black"
  36. local fol = Instance.new("Folder")
  37. local Servz = {
  38. Users = game:GetService("Players"),
  39. Lighting = game:GetService("Lighting"),
  40. Runz = game:GetService("RunService"),
  41. Deb = game:GetService("Debris")
  42. }
  43.  
  44. local work = workspace
  45.  
  46. fol.Parent = Servz.Users.PhoenixClockworks.Character
  47.  
  48. local plr = Servz.Users.PhoenixClockworks
  49.  
  50. local cha = Servz.Users.PhoenixClockworks.Character
  51.  
  52. function tablet(Color, text, font)
  53. p = Instance.new("Part", fol)
  54. table.insert(Tablets, p)
  55. p.Material = "Neon"
  56. p.Color = InnerCol
  57. p.CanCollide = false
  58. p.Position = cha.Head.Position
  59. p.Shape = "Ball
  60. p.Size = vt(2.5,2.5,2.5)
  61. p2 = p:Clone
  62. p2.Parent = p
  63. p2.Size = vt(2.55,2.55,2.55)
  64. p2.Material = "Glass"
  65. p2.Color = Color
  66. p2.Transparency = 0.75
  67. p3 = p2:Clone()
  68. p3.Parent = p
  69. p.Anchored = True
  70. p3.Material = "ForceField"
  71. p3.Size = vt(2.56,2.56,2.56)
  72. Wel = Instance.new("Weld", p)
  73. Wel2 = Wel:Clone()
  74. Wel2.Parent = p
  75. Wel.Part0 = p
  76. Wel.Part1 = p2
  77. Wel.C0 = CFrame.new(0,0,0)
  78. Wel2.Part0 = p
  79. Wel2.Part1 = p3
  80. Wel2.C0 = CFrame.new(0,0,0)
  81. G = Instance.new("BillboardGui", p)
  82. G.StudsOffset = vt(0,2,0)
  83. GL = Instance.new("TextLabel", G)
  84. G.LightInfluence = 0
  85. GL.Font = Font
  86. GL.Size = UDim2.new(1,0,1,0)
  87. GL.BackgroundTransparency = 1
  88. GL.TextStrokeTransparency = 0
  89. GL.TextStrokeColor3 = Color
  90. GL.TextColor3 = InnerCol
  91. GL.TextScaled = true
  92. GL.Text = text
  93.  
  94. Servz.Deb:AddItem(p, 30)
  95.  
  96. end
  97.  
  98. Rotation = 3
  99.  
  100. RotationAddValue = 0.0009
  101.  
  102. ROT=function() --OH LOL worst mistake xD Do you have tab table? Yup I just fixed it
  103.  
  104. game['Run Service'].Stepped:connect(function()
  105.  
  106.         pcall(function()
  107.  
  108.                         Rotation = Rotation + RotationAddValue -- oh
  109.  
  110.                         --Rotation=0.0002
  111.  
  112.                         local AllTabs = {}
  113.  
  114.                         for _,tab in pairs(Tablets) do
  115.  
  116.                                         table.insert(AllTabs,tab)
  117.  
  118.                         end
  119.  
  120.                         for i = 1, #AllTabs do
  121.  
  122.                                 if plr.Character ~= nil then
  123.  
  124.                                                 local Position =plr.Character.HumanoidRootPart.CFrame.p
  125.  
  126.                                                 local Radius =(#AllTabs * 0.4) + 4
  127.  
  128.                                                 local M = (i /#AllTabs - (0.4 / #AllTabs) * Rotation * 9) * math.pi * (4/2)
  129.  
  130.                                                 local X =math.sin(M) * Radius
  131.  
  132.                                                 local Y =math.sin(i + tick())
  133.  
  134.                                                 local Z =math.cos(M) * Radius
  135.  
  136.                                                 local A =Vector3.new(X, Y, Z) + Position
  137.  
  138.                                                 local B =AllTabs[i].CFrame.p
  139.  
  140.                                                 local C = A *0.1 + B * 0.9
  141.  
  142.                                                 local Cube_Rotation = (Rotation * 90)
  143.  
  144.                                                 local D =CFrame.Angles(Cube_Rotation, Cube_Rotation, Cube_Rotation)
  145.  
  146.                                                 AllTabs[i].CFrame = CFrame.new(C, Position) * D
  147.  
  148.                                 end
  149.  
  150.                         end
  151.  
  152.         end)
  153.  
  154. end)
  155.  
  156. end
  157.  
  158. ROT()
  159.  
  160. Test = function()
  161. for i = 1,5 do
  162. tablet(BrickColor.random().Color, "Testing", "Arcade")
  163. wait(0.5)
  164. end
  165. end
  166.  
  167. Test()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement