Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pl = game:GetService'Players'
- local plgc = pl:GetChildren()
- function newmessage(plyr)
- plyr.Chatted:Connect(function(msg)
- print("[ Message ] "..plyr.Name..": "..msg)
- if plyr.Character then
- local HRP = plyr.Character:FindFirstChild'HumanoidRootPart'
- if HRP then
- local bib = nil
- if HRP:FindFirstChildWhichIsA'BillboardGui' then
- bib = HRP:FindFirstChildWhichIsA'BillboardGui'
- else
- bib = Instance.new("BillboardGui",HRP)
- end
- bib.MaxDistance = 100
- bib.ExtentsOffsetWorldSpace = Vector3.new(0,4,0)
- bib.Size = UDim2.new(1,800,1,600)
- local seconds = 5
- while seconds~=0 do
- seconds = seconds - 1
- if seconds==0 then
- bib:Destroy()
- end
- wait(1)
- end
- end
- end
- end)
- end
- for _,v in pairs(plgc)do
- newmessage(v)
- end
- pl.PlayerAdded:Connect(function(per)
- newmessage(per)
- print("[ Game ] : Player added: "..per.Name)
- end)
- pl.PlayerRemoving:Connect(function(per)
- print("[ Game ] : Player removing: "..per.Name)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement