Advertisement
SubScripts

Void SB Chatlogs

Jun 2nd, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.34 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local Chatlogs = Instance.new("ScreenGui")
  5. local Frame = Instance.new("Frame")
  6. local ScrollingFrame = Instance.new("ScrollingFrame")
  7. local UIListLayout = Instance.new("UIListLayout")
  8. local TextButton = Instance.new("TextButton")
  9. ScrollingFrame.CanvasSize = UDim2.new(0,0,9,0)
  10. --Properties:
  11. Chatlogs.Name = "Chat logs"
  12. Chatlogs.Parent = owner:WaitForChild("PlayerGui")
  13.  
  14. Frame.Parent = Chatlogs
  15. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  16. Frame.BackgroundTransparency = 1
  17. Frame.Position = UDim2.new(0.380062312, 0, 0.318944842, 0)
  18. Frame.Size = UDim2.new(0, 237, 0, 286)
  19.  
  20. ScrollingFrame.Parent = Frame
  21. ScrollingFrame.BackgroundColor3 = Color3.new(0.160784, 0.160784, 0.164706)
  22. ScrollingFrame.Position = UDim2.new(-0.00390393217, 0, 0.0777372867, 0)
  23. ScrollingFrame.Size = UDim2.new(0, 237, 0, 185)
  24. ScrollingFrame.CanvasPosition = Vector2.new(0, 7.21813965)
  25.  
  26. UIListLayout.Parent = ScrollingFrame
  27.  
  28. TextButton.Parent = Frame
  29. TextButton.BackgroundColor3 = Color3.new(0, 0, 0)
  30. TextButton.Position = UDim2.new(-0.00390392542, 0, -0.0044041276, 0)
  31. TextButton.Size = UDim2.new(0, 237, 0, 24)
  32. TextButton.Font = Enum.Font.SourceSans
  33. TextButton.TextColor3 = Color3.new(0, 0, 0)
  34. TextButton.TextSize = 14
  35. TextButton.TextTransparency = 1
  36. -- Scripts:
  37. function SCRIPT_LWKF70_FAKESCRIPT() -- TextButton.LocalScript
  38.     local script = Instance.new('LocalScript')
  39.     script.Parent = TextButton
  40.     wanttobemoved=script.Parent.Parent
  41.     X=wanttobemoved.Position.X.Offset
  42.     Y=wanttobemoved.Position.Y.Offset
  43.     XS=wanttobemoved.Position.X.Scale
  44.     YS=wanttobemoved.Position.Y.Scale
  45.     function down(posX,posY)--the positions of the mouse
  46.     drag=true--activate the drag function
  47.     X=wanttobemoved.Position.X.Offset--redefines the value "X"
  48.     Y=wanttobemoved.Position.Y.Offset--redefines the value "Y"
  49.     XS=wanttobemoved.Position.X.Scale
  50.     YS=wanttobemoved.Position.Y.Scale
  51.     DposX=posX-X--the mouse's X position offset by the frame's X position.
  52.     DposY=posY-Y--the mouse's Y position offset by the frame's Y position.
  53.     print(""..DposX..","..DposY.."")--remembers the values DposX and DposY in the output toolbar.
  54.     end
  55.     function up()
  56.     drag=false--deactivate the drag
  57.     end
  58.     function move(posX,posY)--again, the positions of the mouse
  59.     if drag then--if held down then
  60.     wanttobemoved.Position=UDim2.new(XS,posX - DposX,YS,posY - DposY)
  61.     end
  62.     end
  63.     script.Parent.MouseButton1Down:connect(down)
  64.     script.Parent.MouseButton1Up:connect(up)
  65.     script.Parent.MouseLeave:connect(up)
  66.     script.Parent.MouseMoved:connect(move)
  67.  
  68. end
  69. coroutine.resume(coroutine.create(SCRIPT_LWKF70_FAKESCRIPT))
  70. function SCRIPT_FJON65_FAKESCRIPT() -- Frame.Script
  71.     local script = Instance.new('Script')
  72.     script.Parent = Frame
  73.     wait(5)
  74.    
  75.     for i,v in pairs(game.Players:GetPlayers()) do
  76.         v.Chatted:Connect(function(m)
  77.                 local TextLabel = Instance.new("TextLabel")
  78.                 --Properties:
  79.                 TextLabel.Parent = script.Parent.ScrollingFrame
  80.                 TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  81.                 TextLabel.BackgroundTransparency = 1
  82.                 TextLabel.Size = UDim2.new(0, 237, 0, 31)
  83.                 TextLabel.Font = Enum.Font.SciFi
  84.                 TextLabel.TextColor3 = Color3.new(0.996078, 0.996078, 0.996078)
  85.                 TextLabel.TextSize = 15
  86.                 TextLabel.TextWrapped = true
  87.                 TextLabel.Text = v.Name..": "..m
  88.         end)
  89.     end
  90.  
  91. end
  92. coroutine.resume(coroutine.create(SCRIPT_FJON65_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement