Advertisement
jordan83221

test23

Nov 27th, 2015
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.36 KB | None | 0 0
  1. --[[Project TIME]]--
  2. wait()
  3. script.Parent=nil
  4. local next=next
  5. local pcall=pcall
  6. local cos=math.cos
  7. local sin=math.sin
  8. local atan2=math.atan2
  9. local pi=math.pi
  10. local camera=workspace.CurrentCamera
  11. local ease=0.05
  12. local tabs={}
  13. local function insert(tab,val)
  14.     tab[#tab+1]=val
  15. end
  16. local function remove(tab,val)
  17.    if type(val)~="number" then
  18.        for _,v in next,tab do
  19.             if v==val then
  20.                 tab[_]=nil
  21.             end
  22.         end
  23.     else
  24.         tab[val]=nil
  25.     end
  26. end
  27. function dist(part1,part2)
  28.     return (part1-part2).magnitude
  29. end
  30. local function easey(part,cframe)
  31.     local dx=cframe.X-part.CFrame.X
  32.     local dy=cframe.Y-part.CFrame.Y
  33.     local dz=cframe.Z-part.CFrame.Z
  34.     local vx=dx*ease;
  35.     local vy=dy*ease;
  36.     local vz=dz*ease
  37.     part.CFrame=CFrame.new(part.CFrame.X+vx,part.CFrame.Y+vy,part.CFrame.Z+vz)
  38. end
  39. local function makeBillboard(item, text)
  40.     local bg = Instance.new("BillboardGui", item)
  41.     bg.Enabled = true
  42.     bg.AlwaysOnTop = true
  43.     bg.Size = UDim2.new(5, -0.5, 5, 0)
  44.     local f = Instance.new("Frame", bg)
  45.     f.BackgroundTransparency = 1
  46.     f.Size = UDim2.new(2.5, 0, 1.25, 0)
  47.     local tb = Instance.new("TextBox", f)
  48.     tb.Size = UDim2.new(0.5, 0, 0.5, 0)
  49.     tb.FontSize = "Size36"
  50.     tb.Text = text
  51.     tb.TextStrokeTransparency = 0
  52.     tb.TextXAlignment = "Center"
  53.     tb.TextYAlignment = "Top"
  54.     tb.BackgroundTransparency = 1
  55.     tb.TextColor3 = Color3.new(0,0,1)
  56.     tb.Font="ArialBold"
  57.     if text == "Dismiss" then
  58.         tb.TextColor3 = Color3.new(1, 0, 0)
  59.         tb.TextStrokeColor3=Color3.new(0,0,0)
  60.     end
  61. end
  62. local logs=[[
  63.     local next=next
  64.     local pcall=pcall
  65.    
  66. ]]
  67. function notify(stat)
  68.     local tab = Instance.new("Part", game.Workspace)
  69.     tab.Name = "Tab"
  70.     tab.CanCollide = false
  71.     tab.TopSurface = "Smooth"
  72.     tab.BottomSurface = "Smooth"
  73.     tab.Size = Vector3.new(4, 0.4, 6.6)
  74.     tab.Transparency = 0.5
  75.     tab.Anchored = true
  76.     tab.FormFactor = "Plate"
  77.     local tabad = Instance.new("Part",tab)
  78.     tabad.Name = "Tabad"
  79.     tabad.CanCollide = false
  80.     tabad.TopSurface = "Smooth"
  81.     tabad.BottomSurface = "Smooth"
  82.     tabad.Transparency = 0
  83.     tabad.BrickColor = BrickColor.new(1,1,1)
  84.     tabad.Anchored = true
  85.     local mesh = Instance.new("BlockMesh",tabad)
  86.     mesh.Scale = Vector3.new(0.5, 0.2, 1)
  87.     makeBillboard(tab,stat)
  88.     local sele = Instance.new("SelectionBox",tab)
  89.     sele.Adornee = tab
  90.     sele.Color = BrickColor.new(1,1,1)
  91.     sele.Transparency = 0
  92.     insert(tabs,{taba=tab,sel=sele,tabd=tabad})
  93.     coroutine.resume(coroutine.create(function()
  94.         for i,v in next,tabs do
  95.             local num=#tabs
  96.             local slice=(pi*2)/num
  97.             local radius=2+num
  98.             local angle=i*slice;
  99.             local x=cos(angle)*radius;
  100.             local y=40
  101.             local z=sin(angle)*radius;
  102.             tab.CFrame=camera.Focus*CFrame.new(x,y,z)
  103.             tabad.CFrame=camera.Focus*CFrame.new(x,y,z)
  104.         end
  105.     end))
  106. end
  107. local function logp(plr)
  108.    
  109. end
  110. local cmds={
  111.     ["log"]=function(a)
  112.         for _,v in next,game.Players:GetPlayers() do
  113.             if string.find(v.Name:lower(),a:lower())~=nil then
  114.                 local plr=v
  115.                 logp(plr)
  116.             end
  117.         end
  118.     end,
  119.     ["ff"]=function(a)
  120.         for _,v in next,game.Players:GetPlayers() do
  121.             if string.find(v.Name:lower(),a:lower()) ~= nil then
  122.                 pcall(function() Instance.new("ForceField",v.Character) end)
  123.             end
  124.         end
  125.     end
  126. }
  127. local function chat(msg,plr)
  128.     if msg and plr then
  129.         local cmd,parm=string.match(msg,"(.*)/(.*")
  130.         if cmd and parm and cmds[cmd] then
  131.             cmds[cmd](parm)
  132.         end
  133.     end
  134. end
  135. local function playerAdd(p)
  136.     if p then
  137.         p.Chatted:connect(function(m) chat(m,p) end)
  138.     end
  139. end
  140. game.Players.PlayerAdded:connect(function(p) playerAdd(p) end)
  141. local function rot()
  142.     for i,v in next,tabs do
  143.         local num=#tabs
  144.         local slice=(pi*2)/num
  145.         local radius=2+num
  146.         local angle=i*slice;
  147.         local x=cos(angle)*radius;
  148.         local y=-2
  149.         local z=sin(angle)*radius;
  150.         easey(v.taba,camera.Focus*CFrame.new(x,y,z))
  151.         easey(v.tabd,camera.Focus*CFrame.new(x,y,z))
  152.         v.taba.CFrame=CFrame.new(v.taba.Position,Vector3.new(camera.Focus.X,camera.Focus.Y,camera.Focus.Z))*CFrame.Angles(15,0,0)
  153.         v.tabd.CFrame=CFrame.new(v.taba.Position,Vector3.new(camera.Focus.X,camera.Focus.Y,camera.Focus.Z))*CFrame.Angles(15,0,0)
  154.     end
  155. end
  156. game:service'RunService'.Stepped:connect(function() rot() end)
  157. notify("Welcome to TIME")
  158. notify("Created by Voreli.")
  159. notify("Voreli said that he hated admin tabs, so he decided to make the strongest one, such logic.")
  160. notify("Have fun! Bet is '/'")
  161. notify("Welcome to TIME")
  162. notify("Created by Voreli.")
  163. notify("Voreli said that he hated admin tabs, so he decided to make the strongest one, such logic.")
  164. notify("Have fun! Bet is '/'")
  165. notify("Welcome to TIME")
  166. notify("Created by Voreli.")
  167. notify("Voreli said that he hated admin tabs, so he decided to make the strongest one, such logic.")
  168. notify("Have fun! Bet is '/'")
  169. notify("Welcome to TIME")
  170. notify("Created by Voreli.")
  171. notify("Voreli said that he hated admin tabs, so he decided to make the strongest one, such logic.")
  172. notify("Have fun! Bet is '/'")
  173. notify("Welcome to TIME")
  174. notify("Created by Voreli.")
  175. notify("Voreli said that he hated admin tabs, so he decided to make the strongest one, such logic.")
  176. notify("Have fun! Bet is '/'")
  177. notify("Welcome to TIME")
  178. notify("Created by Voreli.")
  179. notify("Voreli said that he hated admin tabs, so he decided to make the strongest one, such logic.")
  180. notify("Have fun! Bet is '/'")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement