Advertisement
bellaouzo

Echo Tabs (Fixed)

Sep 27th, 2016
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.61 KB | None | 0 0
  1. game.Players.PlayerAdded:connect(function(player)
  2. tab(player.Name .. " has entered the game")
  3. end)
  4. game.Players.PlayerRemoving:connect(function(player)
  5. tab(player.Name .. " has left the game")
  6. end)
  7.         local player = game.Players.LocalPlayer
  8.         local mouse = plr:GetMouse()
  9.         local function collapse(tab2)
  10.         local plr = game.Players.LocalPlayer
  11.         local mouse = plr:GetMouse()
  12.         if mouse.Target ~= nil and mouse.Target.Name == "Tab2" then
  13.             mouse.Target:Destroy()
  14.         end
  15.     end
  16.     mouse.Button1Down:connect(collapse)
  17. function tab(text)
  18.     local f = Instance.new("Folder",workspace.Terrain)
  19.     local x2 = Instance.new("Part",f)
  20.     local x1 = Instance.new("Part",x2)
  21.     local bil = Instance.new("BillboardGui",x1)
  22.     local t = Instance.new("TextLabel",bil)
  23.     local cd = Instance.new("ClickDetector",x2)
  24.     bil.AlwaysOnTop = true
  25.     x1.BrickColor = BrickColor.New("Really red")
  26.     x2.BrickColor = BrickColor.New("Teal")
  27.     t.TextColor3 = Color3.new( 0, 1, 0)
  28.     t.FontSize = "Size24"
  29.     t.Font = "SourceSansItalic"
  30.     t.Text = text
  31.     x1.Name = "Tab1"
  32.     x2.Name = "Tab2"
  33.     x1.Anchored = true
  34.     x2.Anchored = true
  35.     x1.Size = Vector3.new(5.45, 5.45, 5.45)
  36.     bil.Size = UDim2.new(0, 200,0, 50)
  37.     t.Size = UDim2.new(0, 200,0, 50)
  38.     x2.Size = Vector3.new(5.45, 5.45, 5.45)
  39.     x2.Transparency = 1
  40.     t.BackgroundTransparency = 0.65
  41.         t.TextWrapped = true
  42.     x1.CanCollide = false
  43.     x2.CanCollide = false
  44.     x1.CFrame = x2.CFrame
  45.     x1.Material = "Neon"
  46.     x2.Material = "Neon"
  47.     x1.BottomSurface = "Smooth"
  48.     x1.TopSurface = "Smooth"
  49.     x1.Transparency = 1
  50.     x2.TopSurface = "Smooth"
  51.     x2.BottomSurface = "Smooth"
  52.     local i = 0
  53.     local speed = 0.053
  54.     local Angle = math.rad(0)
  55.     local object = x1
  56.     local host = game.Players.LocalPlayer.Character.Head
  57.     local parent2 = game.Players.LocalPlayer
  58.     local parent = Game.Workspace.Base
  59.     local distance = 8.8
  60.     while true do
  61.     wait()
  62.     x2.CFrame = x1.CFrame
  63.     i = i + 1
  64.     object.CFrame = host.CFrame * CFrame.fromEulerAnglesXYZ(Angle,i*speed,0) * CFrame.new(0,0,distance)
  65.     x2.CFrame = x1.CFrame
  66.     end
  67.     end
  68.         plr = game.Players.LocalPlayer
  69.     plr.Chatted:connect(function(msg)
  70.     tab(msg)
  71. end)
  72.  
  73. -- Remove stuff --
  74. if Localplayer.HumanoidHealth == 0
  75. then
  76.     x1:Destroy()
  77.     x2:Destroy()
  78.    
  79.    
  80.     tab("Welcome to bellaouzo's echo tabs!")
  81.     if tab == ("Welcome to bellaouzo's echo tabs!") then
  82.         tab("Fully loaded!")
  83.    
  84. local destory = game.Workspace.x1 and game.Workspace.x2:destroy()
  85.  
  86.  
  87. end
  88. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement