Advertisement
TheFlamingBlaster

Untitled

Apr 23rd, 2016
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. function kick(plr)
  2. Instance.new("RemoteEvent", plr):FireClient(plr,{string.rep("a",2e5+5)})
  3. end
  4. for i,plr in next,game:GetService("Players"):GetPlayers() do
  5. local msgnew = ""
  6. local int = 0
  7. local int1 = 0
  8. local ChatOn = Instance.new("BoolValue",plr)
  9. ChatOn.Name = "ChatOn"
  10. ChatOn.Value = true
  11. plr.Chatted:connect(function(msg)
  12. if msg == "tc#" or "/e tc#" then
  13. if plr.ChatOn.Value == false then
  14. plr.ChatOn.Value = true
  15. else
  16. plr.ChatOn.Value = false
  17. end
  18. else
  19. if plr.ChatOn.Value == true then
  20. local player = plr
  21. local bill = Instance.new("BillboardGui",player.Character.Head) bill.Size = UDim2.new(0,350,0,50) bill.StudsOffset = Vector3.new(0,3,0) local txtlabel = Instance.new("TextLabel",bill) txtlabel.Text = "There was an error while processing your request. Please try again." txtlabel.TextScaled = true txtlabel.Size = UDim2.new(1,0,1,0) txtlabel.TextWrapped = true txtlabel.Transparency = 0.25 print(msg) for w in string.gmatch(msg, "[%w.:'!?~*,-()@#$&/]+") do local sound = Instance.new("Sound",player.Character.Torso) sound.Volume = 1 sound.SoundId = "http://www.roblox.com/asset/?id=358280695" sound:Play() txtlabel.BackgroundColor = BrickColor.Random() int1 = int1 + 1 print(int1.." >> "..w) msgnew = (msgnew.." "..w) txtlabel.Text = msgnew wait(0.25) end local length = string.len(msgnew) int1 = 0 print(player.Name.." chatted "..msgnew.." which is "..length - 1 .." characters long.") msgnew = "" wait(3) bill:Destroy()
  22. end
  23. end
  24. end)
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement