Advertisement
DrawingJhon

Untitled

Oct 8th, 2020
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. local Player = game:GetService("Players").LocalPlayer
  2. local Gui = Player:findFirstChildOfClass("PlayerGui")
  3. local Chat = Gui:findFirstChild("Chat") or Gui:findFirstChild("SB_Chat") or error("No chat found")
  4. local Scroller = Chat.Frame.ChatChannelParentFrame.Frame_MessageLogDisplay.Scroller
  5.  
  6. Scroller.ChildAdded:Connect(function(frame)
  7.     local conn
  8.     conn = frame.Changed:Connect(function(p)
  9.     end)
  10.     if p == "Position" or true then
  11.             conn:Disconnect()
  12.             local lastPos = frame[p]
  13.             local TS = game:GetService("TweenService")
  14.             frame.Position = lastPos + UDim2.new(0, -20, 0, 0)
  15.             frame:TweenPosition(lastPos, "Out", "Elastic", 1, true)
  16.     end
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement