Universal Script 📌
341 Views
13 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

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_showcaserUploader8 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
21.1k
74.4k
Bumped 41 minutes ago
Key System
Script hub
601.1k
48.7k
Bumped 50 minutes ago
Script hub
7.0k
54.9k
Bumped 3 hours ago
Universal Script 📌
154
20
Approved 3 hours ago
Script hub
13.3k
63.3k
Bumped 4 hours ago
Script hub
2.6k
7.7k
Bumped 5 hours ago
Key System