jordan83221

Test

Nov 27th, 2015
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.76 KB | None | 0 0
  1. --[[Project TIME]]--
  2. wait(2)
  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.     if dist(part.Position,Vector3.new(cframe.X,cframe.Y,cframe.Z))>1 then
  38.         part.CFrame=CFrame.new(part.CFrame.X+vx,part.CFrame.Y+vy,part.CFrame.Z+vz)
  39.     end
  40. end
  41. local function makeBillboard(item, text)
  42.     local bg = Instance.new("BillboardGui", item)
  43.     bg.Enabled = true
  44.     bg.AlwaysOnTop = true
  45.     bg.Size = UDim2.new(5, -0.5, 5, 0)
  46.     local f = Instance.new("Frame", bg)
  47.     f.BackgroundTransparency = 1
  48.     f.Size = UDim2.new(2.5, 0, 1.25, 0)
  49.     local tb = Instance.new("TextBox", f)
  50.     tb.Size = UDim2.new(0.5, 0, 0.5, 0)
  51.     tb.FontSize = "Size36"
  52.     tb.Text = text
  53.     tb.TextStrokeTransparency = 0
  54.     tb.TextXAlignment = "Center"
  55.     tb.TextYAlignment = "Top"
  56.     tb.BackgroundTransparency = 1
  57.     tb.TextColor3 = Color3.new(0,0,1)
  58.     tb.Font="ArialBold"
  59.     if text == "Dismiss" then
  60.         tb.TextColor3 = Color3.new(1, 0, 0)
  61.         tb.TextStrokeColor3=Color3.new(0,0,0)
  62.     end
  63. end
  64. function notify(stat)
  65.     local tab = Instance.new("Part", game.Workspace)
  66.     tab.Name = "Tab"
  67.     tab.CanCollide = false
  68.     tab.TopSurface = "Smooth"
  69.     tab.BottomSurface = "Smooth"
  70.     tab.Size = Vector3.new(4, 0.4, 6.6)
  71.     tab.Transparency = 0.5
  72.     tab.Anchored = true
  73.     tab.FormFactor = "Plate"
  74.     local tabad = Instance.new("Part",tab)
  75.     tabad.Name = "Tabad"
  76.     tabad.CanCollide = false
  77.     tabad.TopSurface = "Smooth"
  78.     tabad.BottomSurface = "Smooth"
  79.     tabad.Transparency = 0
  80.     tabad.BrickColor = BrickColor.new(1,1,1)
  81.     tabad.Anchored = true
  82.     local mesh = Instance.new("BlockMesh",tabad)
  83.     mesh.Scale = Vector3.new(0.5, 0.2, 1)
  84.     makeBillboard(tab,stat)
  85.     local sele = Instance.new("SelectionBox",tab)
  86.     sele.Adornee = tab
  87.     sele.Color = BrickColor.new(1,1,1)
  88.     sele.Transparency = 0
  89.     insert(tabs,{taba=tab,sel=sele,tabd=tabad})
  90.     coroutine.resume(coroutine.create(function()
  91.         for i,v in next,tabs do
  92.             local num=#tabs
  93.             local slice=(pi*2)/num
  94.             local radius=2+num
  95.             local angle=i*slice;
  96.             local x=cos(angle)*radius;
  97.             local y=40
  98.             local z=sin(angle)*radius;
  99.             tab.CFrame=camera.Focus*CFrame.new(x,y,z)
  100.             tabad.CFrame=camera.Focus*CFrame.new(x,y,z)
  101.         end
  102.     end))
  103. end
  104. NLS([[print'Test']],game.Players.Voreli.Backpack)
  105. local function rot()
  106.     for i,v in next,tabs do
  107.         local num=#tabs
  108.         local slice=(pi*2)/num
  109.         local radius=2+num
  110.         local angle=i*slice;
  111.         local x=cos(angle)*radius;
  112.         local y=-2
  113.         local z=sin(angle)*radius;
  114.         easey(v.taba,camera.Focus*CFrame.new(x,y,z))
  115.         easey(v.tabd,camera.Focus*CFrame.new(x,y,z))
  116.         v.taba.CFrame=CFrame.new(v.taba.Position,Vector3.new(camera.Focus.X,camera.Focus.Y,camera.Focus.Z))*CFrame.Angles(15,0,0)
  117.         v.tabd.CFrame=CFrame.new(v.taba.Position,Vector3.new(camera.Focus.X,camera.Focus.Y,camera.Focus.Z))*CFrame.Angles(15,0,0)
  118.     end
  119. end
  120. game:service'RunService'.Stepped:connect(function() rot() end)
  121. notify("Hello!")
  122. notify("Hello!")
  123. notify("Hello!")
  124. notify("Hello!")
  125. notify("Hello!")
  126. notify("Hello!")
  127. notify("Hello!")
  128. notify("Hello!")
  129. notify("Hello!")
  130. notify("Hello!")
  131. notify("Hello!")
  132. notify("Hello!")
Advertisement
Add Comment
Please, Sign In to add comment