
Key Required
item auto pickup
Lua Script•101 lines (3365 chars)
-- Создаем GUI
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 200, 0, 100)
frame.Position = UDim2.new(0.5, -100, 0.5, -50)
frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
frame.BackgroundTransparency = 0.2
frame.BorderSizePixel = 0
frame.Parent = screenGui
-- Делаем меню передвигаемым
local dragging = false
local dragInput, dragStart, startPos
frame.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = true
dragStart = input.Position
startPos = frame.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then
dragging = false
end
end)
end
end)
frame.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement then
dragInput = input
end
end)
game:GetService("UserInputService").InputChanged:Connect(function(input)
if input == dragInput and dragging then
local delta = input.Position - dragStart
frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
end
end)
-- Заголовок меню
local titleLabel = Instance.new("TextLabel")
titleLabel.Text = "Меню активации"
titleLabel.Size = UDim2.new(1, 0, 0, 30)
titleLabel.BackgroundTransparency = 1
titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
titleLabel.Font = Enum.Font.SourceSansBold
titleLabel.TextSize = 20
titleLabel.Parent = frame
-- Переключатель On/Off
local toggleButton = Instance.new("TextButton")
toggleButton.Text = "Off"
toggleButton.Size = UDim2.new(0.8, 0, 0.4, 0)
toggleButton.Position = UDim2.new(0.1, 0, 0.5, 0)
toggleButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
toggleButton.Font = Enum.Font.SourceSansBold
toggleButton.TextSize = 18
toggleButton.Parent = frame
-- Функция для активации всех TouchTransmitter в ItemsSpawned
local function activateAllTouchTransmitters()
for _, item in ipairs(workspace.GameAssets.ItemsSpawned:GetChildren()) do
if item:IsA("BasePart") then
local touchTransmitter = item:FindFirstChild("TouchInterest")
if touchTransmitter then
firetouchinterest(player.Character:FindFirstChild("HumanoidRootPart"), item, 0)
end
end
end
end
-- Управление состоянием переключателя и цикличной активацией
local isActive = false
local activationInterval = 2 -- интервал повторной активации в секундах
toggleButton.MouseButton1Click:Connect(function()
isActive = not isActive
toggleButton.Text = isActive and "On" or "Off"
toggleButton.BackgroundColor3 = isActive and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(50, 50, 50)
if isActive then
-- Запускаем цикличную активацию
spawn(function()
while isActive do
activateAllTouchTransmitters()
wait(activationInterval)
end
end)
else
-- Отключение активации
print("Активация TouchTransmitter остановлена.")
end
end)Features & Information
auto pickup dices

can u make like a op script inf money or like alor and all dat