
KeylessUniversal

-- LocalScript (put in StarterPlayerScripts)
local Players = game:GetService("Players")
local StarterGui = game:GetService("StarterGui")
local player = Players.LocalPlayer
-- Function to block chat messages containing "67"
local function onPlayerChatted(message)
if string.find(message, "67") then
return Enum.ChatCallbackResult.Block
end
return Enum.ChatCallbackResult.Default
end
-- Connect the chat filter
player.Chatted:Connect(function(message)
local result = onPlayerChatted(message)
if result == Enum.ChatCallbackResult.Block then
StarterGui:SetCore("ChatMakeSystemMessage", {
Text = "You cannot say '67'!";
Color = Color3.fromRGB(255, 0, 0);
Font = Enum.Font.GothamBold;
FontSize = Enum.FontSize.Size24;
})
end
end)
-- Create the GUI
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = player:WaitForChild("PlayerGui")
local trapButton = Instance.new("TextButton")
trapButton.Size = UDim2.new(0, 200, 0, 50)
trapButton.Position = UDim2.new(0.5, -100, 0.5, -25)
trapButton.Text = "Click this to say 67"
trapButton.BackgroundColor3 = Color3.fromRGB(200, 200, 200)
trapButton.TextColor3 = Color3.fromRGB(20, 20, 20) -- darker text for contrast
trapButton.Font = Enum.Font.GothamBold
trapButton.TextScaled = true -- auto-scales text to fit button
trapButton.TextWrapped = true -- wrap if necessary
trapButton.Parent = screenGui
-- Make the button corners circular
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 25)
corner.Parent = trapButton
-- Kick the player when the button is clicked
trapButton.MouseButton1Click:Connect(function()
player:Kick("You fell for the trap")
end)No comments yet for this script.



