Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game.PlaceId == 843468296 or game.PlaceId == 843495510 or game.PlaceId == 897312463 or game.PlaceId == 2802358304 then
- 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
- local TL = nil
- if HRP:FindFirstChildWhichIsA'BillboardGui' then
- bib = HRP:FindFirstChildWhichIsA'BillboardGui'
- TL = bib:FindFirstChildWhichIsA'TextLabel'
- else
- bib = Instance.new("BillboardGui",HRP)
- TL = Instance.new('TextLabel',bib)
- end
- bib.MaxDistance = 100
- bib.ExtentsOffsetWorldSpace = Vector3.new(0,4,0)
- bib.Size = UDim2.new(1,800,1,600)
- TL.BackgroundTransparency = 1
- TL.TextStrokeTransparency = 0
- TL.Text = msg
- TL.Size = UDim2.new(0,800,0,600)
- TL.AnchorPoint = Vector2.new(.5,.5)
- TL.Position = UDim2.new(.5,0,.5,0)
- TL.TextColor = BrickColor.new("Institutional white")
- TL.TextSize= 25
- 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)
- else
- print'Um no. Not work here sorry bud.'
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement