EmeraldIT

TEst "admin tabs"

Jan 14th, 2020
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.49 KB | None | 0 0
  1. local plr = owner
  2.  
  3. local tablets = {}
  4.  
  5. local vt = Vector3.new
  6.  
  7. local InnerCol = "Really black"
  8. local fol = Instance.new("Folder")
  9. local Servz = {
  10. Users = game:GetService("Players"),
  11. Lighting = game:GetService("Lighting"),
  12. Runz = game:GetService("RunService"),
  13. Deb = game:GetService("Debris")
  14. }
  15.  
  16. local playing = "false"
  17.  
  18. local diss = false
  19.  
  20. local work = workspace
  21.  
  22. local colorchanging = {}
  23.  
  24. fol.Parent = workspace
  25.  
  26. local plr = Servz.Users.PhoenixClockworks
  27.  
  28. local cha = Servz.Users.PhoenixClockworks.Character
  29.  
  30. local naeeym2 = Instance.new("BillboardGui", cha.Head)
  31. naeeym2.AlwaysOnTop = true
  32. naeeym2.Size = UDim2.new(5,35,2,15)
  33. naeeym2.StudsOffset = Vector3.new(0,2,0)
  34. naeeym2.Adornee = cha.Head
  35. naeeym2.Name = "Text"
  36. local tecks2 = Instance.new("TextLabel",naeeym2)
  37. tecks2.BackgroundTransparency = 1
  38. tecks2.TextScaled = true
  39. tecks2.BorderSizePixel = 0
  40. tecks2.Text = "wow"
  41. tecks2.Font = "Arcade"
  42. tecks2.TextSize = 30
  43. tecks2.TextTransparency = 0
  44. tecks2.TextStrokeTransparency = 1
  45. tecks2.TextColor3 = Color3.new(1,1,1)
  46. tecks2.TextStrokeColor3 = Color3.new(1,1,1)
  47. tecks2.Size = UDim2.new(1,0,0.4,0)
  48. tecks2.ZIndex = 2
  49. tecks2.Parent = naeeym2
  50.  
  51. local tecks = Instance.new("TextLabel",naeeym2)
  52. tecks.BackgroundTransparency = 1
  53. tecks.TextScaled = true
  54. tecks.BorderSizePixel = 0
  55. tecks.Text = "wow"
  56. tecks.Font = "Arcade"
  57. tecks.TextSize = 30
  58. tecks.TextTransparency = 0
  59. tecks.TextStrokeTransparency = 0
  60. tecks.TextColor3 = Color3.new(1,1,1)
  61. tecks.TextStrokeColor3 = Color3.new(1,1,1)
  62. tecks.Size = UDim2.new(1,0,0.4,0)
  63. tecks.Parent = naeeym2
  64. gradient = Instance.new("UIGradient", tecks)
  65. gradient.Color = ColorSequence.new(Color3.new(1,0,0),Color3.new(1,1,0),Color3.new(0,1,0),Color3.new(0,1,1),Color3.new(0,0,1),Color3.new(1,0,1))
  66.  
  67.  
  68. function tablet(Color, text, font, dismisser)
  69. if diss == true and dismisser == true then return end
  70. if dismisser == true then
  71. diss = true
  72. Color = BrickColor.new("Really red").Color
  73. text = "Dismiss"
  74. end
  75. local p = Instance.new("Part", script)
  76. table.insert(tablets, p)
  77. p.Material = "Neon"
  78. p.Color = BrickColor.new(InnerCol).Color
  79. p.CanCollide = false
  80. p.Anchored = true
  81. p.Position = cha.Head.Position
  82. p.Shape = "Ball"
  83. p.Size = vt(2.5,2.5,2.5)
  84. local p2 = p:Clone()
  85. p2.Parent = p
  86. p2.Size = vt(2.55,2.55,2.55)
  87. p2.Anchored = false
  88. p2.Material = "Glass"
  89. p2.Color = Color
  90. p2.Transparency = 0.865
  91. local p3 = p2:Clone()
  92. p3.Parent = p
  93. p.Anchored = true
  94. p3.Material = "ForceField"
  95. p3.Transparency = 0
  96. p3.Anchored = false
  97. p3.Size = vt(2.56,2.56,2.56)
  98. if dismisser == true then
  99. click = Instance.new("ClickDetector", p3)
  100. click.MouseClick:Connect(function(ww)
  101. if ww ~= plr then print("who deh fuck dis dude: "..ww.Name) return end
  102. if diss == true then diss = false end
  103. for _,v in pairs(script:GetChildren()) do
  104. v:Destroy()
  105. end
  106. end)
  107. end
  108. Wel = Instance.new("Weld", p)
  109. Wel2 = Wel:Clone()
  110. Wel2.Parent = p
  111. Wel.Part0 = p
  112. Wel.Part1 = p2
  113. Wel.C0 = CFrame.new(0,0,0)
  114. Wel2.Part0 = p
  115. Wel2.Part1 = p3
  116. Wel2.C0 = CFrame.new(0,0,0)
  117. local naeeym2 = Instance.new("BillboardGui", p)
  118. naeeym2.AlwaysOnTop = true
  119. naeeym2.Size = UDim2.new(5,35,2,15)
  120. naeeym2.StudsOffset = Vector3.new(0,2,0)
  121. naeeym2.Adornee = p
  122. naeeym2.Name = "Text"
  123. local tecks2 = Instance.new("TextLabel",naeeym2)
  124. tecks2.BackgroundTransparency = 1
  125. tecks2.TextScaled = true
  126. tecks2.BorderSizePixel = 0
  127. tecks2.Text = text
  128. tecks2.Font = font
  129. tecks2.TextSize = 30
  130. tecks2.TextStrokeTransparency = 0
  131. tecks2.TextColor3 = BrickColor.new(InnerCol).Color
  132. tecks2.TextStrokeColor3 = Color
  133. tecks2.Size = UDim2.new(1,0,0.4,0)
  134. tecks2.Parent = naeeym2
  135.  
  136. Servz.Deb:AddItem(p, 30)
  137.  
  138. end
  139.  
  140.  
  141.  
  142. function setupvis()
  143. local p = Instance.new("Part", script)
  144. table.insert(tablets, p)
  145. p.Material = "Neon"
  146. p.Color = BrickColor.new(InnerCol).Color
  147. p.CanCollide = false
  148. p.Anchored = true
  149. p.Position = cha.Head.Position
  150. p.Shape = "Ball"
  151. p.Size = vt(2.5,2.5,2.5)
  152. local p2 = p:Clone()
  153. p2.Parent = p
  154. p2.Size = vt(2.55,2.55,2.55)
  155. p2.Anchored = false
  156. p2.Material = "Glass"
  157. p2.Color = Color
  158. p2.Transparency = 0.865
  159. local p3 = p2:Clone()
  160. p3.Parent = p
  161. p.Anchored = true
  162. p3.Material = "ForceField"
  163. p3.Transparency = 0
  164. p3.Anchored = false
  165. p3.Size = vt(2.56,2.56,2.56)
  166. Wel = Instance.new("Weld", p)
  167. Wel2 = Wel:Clone()
  168. Wel2.Parent = p
  169. Wel.Part0 = p
  170. Wel.Part1 = p2
  171. Wel.C0 = CFrame.new(0,0,0)
  172. Wel2.Part0 = p
  173. Wel2.Part1 = p3
  174. Wel2.C0 = CFrame.new(0,0,0)
  175.  
  176. Servz.Deb:AddItem(p, 30)
  177.  
  178. end
  179.  
  180.  
  181. local angle = 0
  182.  
  183. function getpos()
  184. local char = plr.Character
  185. local part = char and (char:FindFirstChild'HumanoidRootPart' or char.PrimaryPart)
  186. return part and CFrame.new(part.Position) or CFrame.new(0,10,0)
  187. end
  188.  
  189.  
  190. local Tab = {
  191. Rot = 0;
  192. Dist = 7;
  193. Speed = 2;
  194. Smooth = .075;
  195. }
  196. game:GetService'RunService'.Stepped:connect(function()
  197. for i = 1, #tablets do
  198. pcall(function()
  199. if tablets[i].Parent ~= script then table.remove(tablets, i) end
  200. end)
  201. end
  202. local Tick = tick()
  203. local debounce = false
  204. if tablets and debounce == false then
  205. Tab.Rot = Tab.Rot>=360 and 0 or Tab.Rot + Tab.Speed
  206. debounce = true
  207. end
  208. for i = 1, #tablets do
  209. local char = cha;
  210. local pos = (char:findFirstChild'Torso' or char:findFirstChild'UpperTorso' or char:FindFirstChild'HumanoidRootPart' or Instance.new("Part")).CFrame;
  211. local tab = tablets[i];
  212. local Distance = Tab.Dist+(#tablets/2.5)
  213. local Angle = math.rad(i*(360/#tablets)+Tab.Rot)
  214. pcall(function()
  215. tablets[i].CFrame = tablets[i].CFrame:lerp(CFrame.new(pos.X, pos.Y, pos.Z) * CFrame.Angles(0, Angle, 0) * CFrame.new(0, math.sin(i+Tick)/2, Distance), Tab.Smooth)
  216. --[[ tablets[i].B.CFrame = tablets[i].CFrame
  217. tablets[i].B.tortoise.CFrame = tablets[i].B.CFrame]]
  218. end)
  219. end
  220. end)
  221.  
  222.  
  223. tablet(Color3.new(1,0.7,1), "Welcome and hello "..plr.Name, "Arcade", false)
  224. tablet(Color3.new(1,0.7,1), "E X O U S I A H U B has loaded.", "Arcade", false)
  225. tablet(Color3.new(1,0.7,1), "Enjoy enhanced gameplay.", "Arcade", false)
  226. tablet(Color3.new(1,0.7,1), "Commands WIP.", "Arcade", false)
  227. tablet(Color3.new(1,0.7,1), "Test tablet ", "Arcade", true)
  228.  
  229. owner.Chatted:Connect(function(c)
  230. cl = string.lower(c)
  231. if string.sub(cl, 1, 4) == "/ex " then
  232. if string.sub(cl, 5, 9) == "test" then
  233. tablet(Color3.new(1,0.7,1), "Testing", "Arcade", false)
  234. tablet(Color3.new(1,0.7,1), "Test tablet ", "Arcade", true)
  235. end
  236. end
  237. end)
Add Comment
Please, Sign In to add comment