Universal Script πŸ“Œ
536 Views
206 Executions

Anti 67

Universal Script πŸ“Œ
ScriptDAILY
ScriptDAILYPublished 5
10 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

No 67. GET OUT

View Raw
-- 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


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
33.0k
298.1k
Bumped 24 minutes ago
Script hub
23.6k
5.2k
Bumped 25 minutes ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
171
526
Bumped 54 minutes ago
Universal Script πŸ“Œ
1.6k
30.2k
Bumped 55 minutes ago
Script hub
4.1M
558.5k
Bumped 1 hour ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow 35 Supported Games

Script hub
5.5k
28.9k
Bumped 2 hours ago
Key System
Script hub
14.0k
28.5k
Bumped 3 hours ago