Universal Script 📌
341 Views
16 Executions

Test

Universal Script 📌
9 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

Idk

Updates

  1. Script edited: Update script

View Raw
-- LocalScript in StarterGui

local Players = game:GetService("Players")
local PathfindingService = game:GetService("PathfindingService")
local UserInputService = game:GetService("UserInputService")
local Workspace = game:GetService("Workspace")

local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local rootPart = character:WaitForChild("HumanoidRootPart")

-- Find killbricks (assume parts named "Killbrick")
local killbricks = {}
for _, part in ipairs(Workspace:GetDescendants()) do
    if part:IsA("BasePart") and part.Name == "Killbrick" then
        table.insert(killbricks, part)
        -- Add PathfindingModifier if not present
        local modifier = part:FindFirstChildOfClass("PathfindingModifier")
        if not modifier then
            modifier = Instance.new("PathfindingModifier")
            modifier.CostsMultiplier = 10  -- High cost to prefer avoidance
            modifier.Parent = part
        end
    end
end

-- Create GUI
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "AIToggleGui"
screenGui.Parent = player:WaitForChild("PlayerGui")

local toggleButton = Instance.new("TextButton")
toggleButton.Name = "ToggleButton"
toggleButton.Size = UDim2.new(0, 150, 0, 50)
toggleButton.Position = UDim2.new(0.5, -75, 0.8, 0)  -- Adjusted position
toggleButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
toggleButton.Text = "Toggle AI: Off"
toggleButton.TextSize = 18
toggleButton.Draggable = true


Comments

3
Log in to join the conversation. Login
FEscript_showcaser's profile picture
FEscript_showcaserUploader9 months ago(edited)

Ik it's AI. It's a test.

1
user346346346's profile picture
user3463463469 months ago

lebron

1
rqccc's profile picture
rqccc9 months ago

ai

1

More universal scripts

See all
Script hub
3.0M
18.5M
Bumped 22 minutes ago

Script hub

Hall of Fame #1

KeylessVerified script badgeYARHM Hub KEYLESS 2026

Script hub
119.5k
193.5k
Bumped 5 hours ago
Key System
Script hub
180.8k
1.8M
Bumped 6 hours ago
Key System
Universal Script 📌
1.1k
2.4k
Bumped 6 hours ago
Script hub
60.1k
243.1k
Bumped 6 hours ago
Key System
Universal Script 📌
6.1k
53.3k
Bumped 9 hours ago
Universal Script 📌
122.9k
878.3k
Bumped 9 hours ago