local WFSMODE = true local customSpawnPoint = nil local spawnHandler = nil local spawnedObjects = {} -- Таблица для отслеживания созданных объектов local spawnedNPCs = {} -- Таблица для отслеживания созданных NPC -- Удаляем старые GUI если они существуют if game.Players.LocalPlayer.PlayerGui:FindFirstChild("WFSMODE_Menu") then game.Players.LocalPlayer.PlayerGui.WFSMODE_Menu:Destroy() end if game.Players.LocalPlayer.PlayerGui:FindFirstChild("RainbowSquareGui") then game.Players.LocalPlayer.PlayerGui.RainbowSquareGui:Destroy() end local function createRainbowText(text, parent) local label = Instance.new("TextLabel") label.Text = text label.Size = UDim2.new(0, 160, 0, 25) label.BackgroundTransparency = 1 label.TextScaled = true label.Font = Enum.Font.SciFi label.Parent = parent spawn(function() while label.Parent do for i = 0, 1, 0.01 do label.TextColor3 = Color3.fromHSV(i, 1, 1) wait(0.05) end end end) return label end local function createPart(color, size, shape) local player = game.Players.LocalPlayer local character = player.Character if not character then return end local humanoidRootPart = character:FindFirstChild("HumanoidRootPart") if not humanoidRootPart then return end -- Спавним объект перед игроком (на 10 studs вперед) и на 1 stud выше local spawnPosition = humanoidRootPart.Position + (humanoidRootPart.CFrame.LookVector * 10) spawnPosition = Vector3.new(spawnPosition.X, humanoidRootPart.Position.Y + 1, spawnPosition.Z) local part = Instance.new("Part") part.Shape = shape part.Size = size part.Position = spawnPosition part.BrickColor = BrickColor.new(color) part.Material = Enum.Material.SmoothPlastic -- Гладкая текстура part.Anchored = false part.CanCollide = true part.Parent = workspace -- Добавляем объект в таблицу для отслеживания table.insert(spawnedObjects, part) return part end -- Функция для создания NPC local function createNPC() local player = game.Players.LocalPlayer local character = player.Character if not character then return end local humanoidRootPart = character:FindFirstChild("HumanoidRootPart") if not humanoidRootPart then return end -- Спавним NPC перед игроком (на 10 studs вперед) local spawnPosition = humanoidRootPart.Position + (humanoidRootPart.CFrame.LookVector * 10) -- Создаем модель NPC local npcModel = Instance.new("Model") npcModel.Name = "noob(npc)" npcModel.Parent = workspace -- Создаем Humanoid local humanoid = Instance.new("Humanoid") humanoid.Parent = npcModel -- Создаем голову local head = Instance.new("Part") head.Name = "Head" head.Size = Vector3.new(2, 1, 1) head.Position = spawnPosition + Vector3.new(0, 3, 0) head.BrickColor = BrickColor.new("Bright yellow") head.Material = Enum.Material.SmoothPlastic head.Parent = npcModel -- Создаем лицо local face = Instance.new("Decal") face.Name = "face" face.Texture = "rbxasset://textures/face.png" face.Face = Enum.NormalId.Front face.Parent = head -- Создаем туловище local torso = Instance.new("Part") torso.Name = "Torso" torso.Size = Vector3.new(2, 2, 1) torso.Position = spawnPosition + Vector3.new(0, 1.5, 0) torso.BrickColor = BrickColor.new("Bright blue") torso.Material = Enum.Material.SmoothPlastic torso.Parent = npcModel -- Создаем руки local leftArm = Instance.new("Part") leftArm.Name = "Left Arm" leftArm.Size = Vector3.new(1, 2, 1) leftArm.Position = spawnPosition + Vector3.new(-1.5, 1.5, 0) leftArm.BrickColor = BrickColor.new("Bright blue") leftArm.Material = Enum.Material.SmoothPlastic leftArm.Parent = npcModel local rightArm = Instance.new("Part") rightArm.Name = "Right Arm" rightArm.Size = Vector3.new(1, 2, 1) rightArm.Position = spawnPosition + Vector3.new(1.5, 1.5, 0) rightArm.BrickColor = BrickColor.new("Bright blue") rightArm.Material = Enum.Material.SmoothPlastic rightArm.Parent = npcModel -- Создаем ноги local leftLeg = Instance.new("Part") leftLeg.Name = "Left Leg" leftLeg.Size = Vector3.new(1, 2, 1) leftLeg.Position = spawnPosition + Vector3.new(-0.5, 0, 0) leftLeg.BrickColor = BrickColor.new("Bright blue") leftLeg.Material = Enum.Material.SmoothPlastic leftLeg.Parent = npcModel local rightLeg = Instance.new("Part") rightLeg.Name = "Right Leg" rightLeg.Size = Vector3.new(1, 2, 1) rightLeg.Position = spawnPosition + Vector3.new(0.5, 0, 0) rightLeg.BrickColor = BrickColor.new("Bright blue") rightLeg.Material = Enum.Material.SmoothPlastic rightLeg.Parent = npcModel -- Создаем соединения между частями тела local neck = Instance.new("Motor6D") neck.Name = "Neck" neck.Part0 = torso neck.Part1 = head neck.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) neck.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) neck.Parent = torso local leftShoulder = Instance.new("Motor6D") leftShoulder.Name = "Left Shoulder" leftShoulder.Part0 = torso leftShoulder.Part1 = leftArm leftShoulder.C0 = CFrame.new(-1, 0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) leftShoulder.C1 = CFrame.new(0.5, 0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) leftShoulder.Parent = torso local rightShoulder = Instance.new("Motor6D") rightShoulder.Name = "Right Shoulder" rightShoulder.Part0 = torso rightShoulder.Part1 = rightArm rightShoulder.C0 = CFrame.new(1, 0.5, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0) rightShoulder.C1 = CFrame.new(-0.5, 0.5, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0) rightShoulder.Parent = torso local leftHip = Instance.new("Motor6D") leftHip.Name = "Left Hip" leftHip.Part0 = torso leftHip.Part1 = leftLeg leftHip.C0 = CFrame.new(-0.5, -1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) leftHip.C1 = CFrame.new(-0.5, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) leftHip.Parent = torso local rightHip = Instance.new("Motor6D") rightHip.Name = "Right Hip" rightHip.Part0 = torso rightHip.Part1 = rightLeg rightHip.C0 = CFrame.new(0.5, -1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0) rightHip.C1 = CFrame.new(0.5, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0) rightHip.Parent = torso -- Делаем NPC неподвижным for _, part in ipairs(npcModel:GetChildren()) do if part:IsA("BasePart") then part.Anchored = true part.CanCollide = true end end -- Добавляем NPC в таблицу для отслеживания table.insert(spawnedNPCs, npcModel) return npcModel end -- Функция для удаления всех созданных объектов local function deleteAllObjects() for _, obj in ipairs(spawnedObjects) do if obj and obj.Parent then obj:Destroy() end end spawnedObjects = {} -- Очищаем таблицу -- Удаляем обработчик спавна, если он существует if spawnHandler then spawnHandler:Disconnect() spawnHandler = nil end customSpawnPoint = nil -- Сбрасываем точку спавна end -- Функция для удаления всех NPC local function clearNPCs() for _, npc in ipairs(spawnedNPCs) do if npc and npc.Parent then npc:Destroy() end end spawnedNPCs = {} -- Очищаем таблицу end -- Create interface local screenGui = Instance.new("ScreenGui") screenGui.Name = "WFSMODE_Menu" screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") screenGui.ResetOnSpawn = false -- Меню не будет пропадать при смерти local mainFrame = Instance.new("Frame") mainFrame.Size = UDim2.new(0, 250, 0, 330) -- Увеличиваем высоту для новых кнопок mainFrame.Position = UDim2.new(0.5, -125, 0.5, -165) mainFrame.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) mainFrame.BorderSizePixel = 0 mainFrame.Active = true mainFrame.Draggable = true mainFrame.Parent = screenGui -- WFSMODE title local title = createRainbowText("WFSMODE", mainFrame) title.Position = UDim2.new(0.5, -80, 0, 10) title.Size = UDim2.new(0, 160, 0, 30) -- Close button local closeButton = Instance.new("TextButton") closeButton.Size = UDim2.new(0, 25, 0, 25) closeButton.Position = UDim2.new(1, -30, 0, 5) closeButton.Text = "X" closeButton.TextColor3 = Color3.new(1, 0, 0) closeButton.TextScaled = true closeButton.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2) closeButton.BorderSizePixel = 0 closeButton.Parent = mainFrame -- Создаем ScrollingFrame для прокрутки local scrollFrame = Instance.new("ScrollingFrame") scrollFrame.Size = UDim2.new(1, -10, 1, -40) scrollFrame.Position = UDim2.new(0, 5, 0, 40) scrollFrame.BackgroundTransparency = 1 scrollFrame.BorderSizePixel = 0 scrollFrame.ScrollBarThickness = 5 scrollFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y scrollFrame.Parent = mainFrame -- Создаем контейнер для кнопок local buttonContainer = Instance.new("Frame") buttonContainer.Size = UDim2.new(1, 0, 0, 0) buttonContainer.BackgroundTransparency = 1 buttonContainer.AutomaticSize = Enum.AutomaticSize.Y buttonContainer.Parent = scrollFrame local uiListLayout = Instance.new("UIListLayout") uiListLayout.Parent = buttonContainer uiListLayout.Padding = UDim.new(0, 5) uiListLayout.SortOrder = Enum.SortOrder.LayoutOrder -- Spawn buttons local function createSpawnButton(text, color, size, shape) local button = Instance.new("TextButton") button.Size = UDim2.new(0, 160, 0, 25) button.Text = "" button.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3) button.BorderSizePixel = 0 button.Parent = buttonContainer local label = createRainbowText(text, button) label.Size = UDim2.new(1, 0, 1, 0) label.BackgroundTransparency = 1 button.MouseButton1Click:Connect(function() createPart(color, size, shape) end) end -- Куб 4x4x4 createSpawnButton("Spawn Blue Cube", "Really blue", Vector3.new(4, 4, 4), Enum.PartType.Block) createSpawnButton("Spawn Red Ball", "Really red", Vector3.new(4, 4, 4), Enum.PartType.Ball) createSpawnButton("Spawn Green Platform", "Lime green", Vector3.new(10, 1, 10), Enum.PartType.Block) -- Кнопка Add Spawn local addSpawnButton = Instance.new("TextButton") addSpawnButton.Size = UDim2.new(0, 160, 0, 25) addSpawnButton.Text = "" addSpawnButton.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3) addSpawnButton.BorderSizePixel = 0 addSpawnButton.Parent = buttonContainer local addSpawnLabel = createRainbowText("Add Spawn", addSpawnButton) addSpawnLabel.Size = UDim2.new(1, 0, 1, 0) addSpawnLabel.BackgroundTransparency = 1 addSpawnButton.MouseButton1Click:Connect(function() local player = game.Players.LocalPlayer local character = player.Character if not character then return end local humanoidRootPart = character:FindFirstChild("HumanoidRootPart") if not humanoidRootPart then return end -- Запоминаем позицию игрока customSpawnPoint = humanoidRootPart.Position -- Создаем желтую платформу под игроком на 1 stud выше земли local platform = Instance.new("Part") platform.Size = Vector3.new(10, 1, 10) platform.Position = Vector3.new(humanoidRootPart.Position.X, humanoidRootPart.Position.Y - 3, humanoidRootPart.Position.Z) platform.BrickColor = BrickColor.new("New Yeller") platform.Material = Enum.Material.SmoothPlastic -- Гладкая текстура platform.Anchored = true platform.CanCollide = true platform.Parent = workspace -- Добавляем платформу в таблицу для отслеживания table.insert(spawnedObjects, platform) -- Обработчик смерти игрока if spawnHandler then spawnHandler:Disconnect() end spawnHandler = player.CharacterAdded:Connect(function(newCharacter) if customSpawnPoint then wait(0.5) -- Ждем немного пока персонаж загрузится local newHumanoidRootPart = newCharacter:WaitForChild("HumanoidRootPart", 5) if newHumanoidRootPart then newHumanoidRootPart.CFrame = CFrame.new(customSpawnPoint + Vector3.new(0, 1, 0)) end end end) end) -- Кнопка Spawn NPC local spawnNPCButton = Instance.new("TextButton") spawnNPCButton.Size = UDim2.new(0, 160, 0, 25) spawnNPCButton.Text = "" spawnNPCButton.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3) spawnNPCButton.BorderSizePixel = 0 spawnNPCButton.Parent = buttonContainer local spawnNPCLabel = createRainbowText("Spawn NPC", spawnNPCButton) spawnNPCLabel.Size = UDim2.new(1, 0, 1, 0) spawnNPCLabel.BackgroundTransparency = 1 spawnNPCButton.MouseButton1Click:Connect(function() createNPC() end) -- Кнопка Clear NPC local clearNPCButton = Instance.new("TextButton") clearNPCButton.Size = UDim2.new(0, 160, 0, 25) clearNPCButton.Text = "" clearNPCButton.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3) clearNPCButton.BorderSizePixel = 0 clearNPCButton.Parent = buttonContainer local clearNPCLabel = createRainbowText("Clear NPC", clearNPCButton) clearNPCLabel.Size = UDim2.new(1, 0, 1, 0) clearNPCLabel.BackgroundTransparency = 1 clearNPCButton.MouseButton1Click:Connect(function() clearNPCs() end) -- Функция для создания кнопок с скриптами local function createScriptButton(text, url) local button = Instance.new("TextButton") button.Size = UDim2.new(0, 160, 0, 25) button.Text = "" button.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3) button.BorderSizePixel = 0 button.Parent = buttonContainer local label = createRainbowText(text, button) label.Size = UDim2.new(1, 0, 1, 0) label.BackgroundTransparency = 1 button.MouseButton1Click:Connect(function() loadstring(game:HttpGet(url))() end) end -- Кнопка Noclip (исправленная) local noclipButton = Instance.new("TextButton") noclipButton.Size = UDim2.new(0, 160, 0, 25) noclipButton.Text = "" noclipButton.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3) noclipButton.BorderSizePixel = 0 noclipButton.Parent = buttonContainer local noclipLabel = createRainbowText("Noclip", noclipButton) noclipLabel.Size = UDim2.new(1, 0, 1, 0) noclipLabel.BackgroundTransparency = 1 noclipButton.MouseButton1Click:Connect(function() local Workspace = game:GetService("Workspace") local CoreGui = game:GetService("CoreGui") local Players = game:GetService("Players") local Noclip = Instance.new("ScreenGui") local BG = Instance.new("Frame") local Title = Instance.new("TextLabel") local Toggle = Instance.new("TextButton") local StatusPF = Instance.new("TextLabel") local Status = Instance.new("TextLabel") local Credit = Instance.new("TextLabel") local Plr = Players.LocalPlayer local Clipon = false Noclip.Name = "Noclip" Noclip.Parent = game.CoreGui BG.Name = "BG" BG.Parent = Noclip BG.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392) BG.BorderColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235) BG.BorderSizePixel = 2 BG.Position = UDim2.new(0.149479166, 0, 0.82087779, 0) BG.Size = UDim2.new(0, 210, 0, 127) BG.Active = true BG.Draggable = true Title.Name = "Title" Title.Parent = BG Title.BackgroundColor3 = Color3.new(0.266667, 0.00392157, 0.627451) Title.BorderColor3 = Color3.new(0.180392, 0, 0.431373) Title.BorderSizePixel = 2 Title.Size = UDim2.new(0, 210, 0, 33) Title.Font = Enum.Font.Highway Title.Text = "Noclip" Title.TextColor3 = Color3.new(1, 1, 1) Title.FontSize = Enum.FontSize.Size32 Title.TextSize = 30 Title.TextStrokeColor3 = Color3.new(0.180392, 0, 0.431373) Title.TextStrokeTransparency = 0 Toggle.Parent = BG Toggle.BackgroundColor3 = Color3.new(0.266667, 0.00392157, 0.627451) Toggle.BorderColor3 = Color3.new(0.180392, 0, 0.431373) Toggle.BorderSizePixel = 2 Toggle.Position = UDim2.new(0.152380958, 0, 0.374192119, 0) Toggle.Size = UDim2.new(0, 146, 0, 36) Toggle.Font = Enum.Font.Highway Toggle.FontSize = Enum.FontSize.Size28 Toggle.Text = "Toggle" Toggle.TextColor3 = Color3.new(1, 1, 1) Toggle.TextSize = 25 Toggle.TextStrokeColor3 = Color3.new(0.180392, 0, 0.431373) Toggle.TextStrokeTransparency = 0 StatusPF.Name = "StatusPF" StatusPF.Parent = BG StatusPF.BackgroundColor3 = Color3.new(1, 1, 1) StatusPF.BackgroundTransparency = 1 StatusPF.Position = UDim2.new(0.314285725, 0, 0.708661377, 0) StatusPF.Size = UDim2.new(0, 56, 0, 20) StatusPF.Font = Enum.Font.Highway StatusPF.FontSize = Enum.FontSize.Size24 StatusPF.Text = "Status:" StatusPF.TextColor3 = Color3.new(1, 1, 1) StatusPF.TextSize = 20 StatusPF.TextStrokeColor3 = Color3.new(0.333333, 0.333333, 0.333333) StatusPF.TextStrokeTransparency = 0 StatusPF.TextWrapped = true Status.Name = "Status" Status.Parent = BG Status.BackgroundColor3 = Color3.new(1, 1, 1) Status.BackgroundTransparency = 1 Status.Position = UDim2.new(0.580952346, 0, 0.708661377, 0) Status.Size = UDim2.new(0, 56, 0, 20) Status.Font = Enum.Font.Highway Status.FontSize = Enum.FontSize.Size14 Status.Text = "off" Status.TextColor3 = Color3.new(0.666667, 0, 0) Status.TextScaled = true Status.TextSize = 14 Status.TextStrokeColor3 = Color3.new(0.180392, 0, 0.431373) Status.TextWrapped = true Status.TextXAlignment = Enum.TextXAlignment.Left Credit.Name = "Credit" Credit.Parent = BG Credit.BackgroundColor3 = Color3.new(1, 1, 1) Credit.BackgroundTransparency = 1 Credit.Position = UDim2.new(0.195238099, 0, 0.866141737, 0) Credit.Size = UDim2.new(0, 128, 0, 17) Credit.Font = Enum.Font.SourceSans Credit.FontSize = Enum.FontSize.Size18 Credit.Text = "Created by KingLuna" Credit.TextColor3 = Color3.new(1, 1, 1) Credit.TextSize = 16 Credit.TextStrokeColor3 = Color3.new(0.196078, 0.196078, 0.196078) Credit.TextStrokeTransparency = 0 Credit.TextWrapped = true Toggle.MouseButton1Click:connect(function() if Status.Text == "off" then Clipon = true Status.Text = "on" Status.TextColor3 = Color3.new(0,185,0) Stepped = game:GetService("RunService").Stepped:Connect(function() if not Clipon == false then for a, b in pairs(Workspace:GetChildren()) do if b.Name == Plr.Name then for i, v in pairs(Workspace[Plr.Name]:GetChildren()) do if v:IsA("BasePart") then v.CanCollide = false end end end end else Stepped:Disconnect() end end) elseif Status.Text == "on" then Clipon = false Status.Text = "off" Status.TextColor3 = Color3.new(170,0,0) end end) end) -- Создаем остальные кнопки с скриптами createScriptButton("Telekinesis", "https://rawscripts.net/raw/Universal-Script-Fe-Telekinesis-V5-21542") createScriptButton("Fly", "https://raw.githubusercontent.com/XNEOFF/FlyGuiV3/main/FlyGuiV3.txt") createScriptButton("Fling", "https://rawscripts.net/raw/Universal-Script-fling-gui-48374") createScriptButton("ESP", "https://rawscripts.net/raw/Universal-Script-Esp-Gui-42473") createScriptButton("Invisible", "https://rawscripts.net/raw/Universal-Script-Fe-invisible-46165") createScriptButton("Fake Items", "https://rawscripts.net/raw/Universal-Script-Fake-Gamepass-V5-39379") createScriptButton("Super Fling", "https://rawscripts.net/raw/Universal-Script-FE-BEST-FLING-GUI-47718") createScriptButton("Infinite Yield", "https://rawscripts.net/raw/Universal-Script-Infinite-Yield-43437") createScriptButton("TP GUI", "https://rawscripts.net/raw/Universal-Script-Universal-TP-GUI-v1-39525") -- Кнопка Delete All Objects local deleteButton = Instance.new("TextButton") deleteButton.Size = UDim2.new(0, 160, 0, 25) deleteButton.Text = "" deleteButton.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3) deleteButton.BorderSizePixel = 0 deleteButton.Parent = buttonContainer local deleteLabel = createRainbowText("Delete All Objects", deleteButton) deleteLabel.Size = UDim2.new(1, 0, 1, 0) deleteLabel.BackgroundTransparency = 1 deleteButton.MouseButton1Click:Connect(function() deleteAllObjects() end) -- Create rainbow square UI element local rainbowSquareGui = Instance.new("ScreenGui") rainbowSquareGui.Name = "RainbowSquareGui" rainbowSquareGui.Enabled = false rainbowSquareGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") rainbowSquareGui.ResetOnSpawn = false -- Квадрат не будет пропадать при смерти local rainbowSquare = Instance.new("TextButton") rainbowSquare.Size = UDim2.new(0, 50, 0, 50) rainbowSquare.Position = UDim2.new(0, 10, 0, 60) rainbowSquare.BackgroundColor3 = Color3.new(1, 0, 0) rainbowSquare.BorderSizePixel = 0 rainbowSquare.Text = "⚡" rainbowSquare.TextScaled = true rainbowSquare.Parent = rainbowSquareGui -- Make rainbow square color cycle spawn(function() while rainbowSquare.Parent do for i = 0, 1, 0.01 do if rainbowSquare then rainbowSquare.BackgroundColor3 = Color3.fromHSV(i, 1, 1) end wait(0.05) end end end) -- Close button functionality closeButton.MouseButton1Click:Connect(function() screenGui.Enabled = false rainbowSquareGui.Enabled = true end) -- Rainbow square click functionality rainbowSquare.MouseButton1Click:Connect(function() rainbowSquareGui.Enabled = false screenGui.Enabled = true end)