Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function kick(plr)
- Instance.new("RemoteEvent", plr):FireClient(plr,{string.rep("a",2e5+5)})
- end
- for i,plr in next,game:GetService("Players"):GetPlayers() do
- local msgnew = ""
- local int = 0
- local int1 = 0
- local ChatOn = Instance.new("BoolValue",plr)
- ChatOn.Name = "ChatOn"
- ChatOn.Value = true
- plr.Chatted:connect(function(msg)
- if msg == "tc#" or "/e tc#" then
- if plr.ChatOn.Value == false then
- plr.ChatOn.Value = true
- else
- plr.ChatOn.Value = false
- end
- else
- if plr.ChatOn.Value == true then
- local player = plr
- 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()
- end
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement