-- [[ WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk! ]] -- [[ Corrected version of the script ]] -- local P = game:GetService("Players") local Workspace = game:GetService("Workspace") local U = game:GetService("UserInputService") local R = game:GetService("RunService") local C = game:GetService("Workspace").CurrentCamera local L = P.LocalPlayer local Config = {A = true, P = "Head", R = 500} local function Get() local c, sd = nil, Config.R for _, p in pairs(P:GetPlayers()) do if p ~= L and p.Character then local h = p.Character:FindFirstChild(Config.P) local hum = p.Character:FindFirstChildOfClass("Humanoid") if h and hum and hum.Health > 0 then local vec, os = C:WorldToViewportPoint(h.Position) if os then local m = U:GetMouseLocation() local d = (Vector2.new(vec.X, vec.Y) - m).Magnitude if d < sd then c = p sd = d end end end end end return c end if game:GetService("CoreGui"):FindFirstChild("PhotoCopyUI") then game:GetService("CoreGui").PhotoCopyUI:Destroy() end local UI = Instance.new("ScreenGui", game:GetService("CoreGui")) UI.Name = "PhotoCopyUI" local FrameM = Instance.new("Frame", UI) FrameM.Size = UDim2.new(0, 360, 0, 300) FrameM.Position = UDim2.new(0.5, -180, 0.5, -150) FrameM.BackgroundColor3 = Color3.fromRGB(160, 10, 255) FrameM.BorderSizePixel = 1 FrameM.BorderColor3 = Color3.fromRGB(0, 0, 0) FrameM.Active = true -- Скрипт для плавного перетаскивания вместо устаревшего .Draggable local dragToggle, dragStart, startPos local function updateInput(input) local delta = input.Position - dragStart FrameM.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end FrameM.InputBegan:Connect(function(input) if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then dragToggle = true dragStart = input.Position startPos = FrameM.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragToggle = false end end) end end) FrameM.InputChanged:Connect(function(input) if (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then if dragToggle then updateInput(input) end end end) local B1 = Instance.new("TextButton", FrameM) B1.Size = UDim2.new(0, 215, 0, 60) B1.Position = UDim2.new(0.5, -107, 0, 60) B1.BackgroundColor3 = Color3.fromRGB(110, 245, 10) B1.Text = "Aimbot ON/OFF" B1.TextColor3 = Color3.fromRGB(0, 0, 0) B1.Font = Enum.Font.SourceSans B1.TextSize = 15 B1.BorderSizePixel = 1 B1.BorderColor3 = Color3.fromRGB(0, 0, 0) local function Up() if Config.A then B1.BackgroundColor3 = Color3.fromRGB(110, 245, 10) else B1.BackgroundColor3 = Color3.fromRGB(180, 40, 40) end end B1.MouseButton1Click:Connect(function() Config.A = not Config.A Up() end) U.InputBegan:Connect(function(i, gpe) if i.KeyCode == Enum.KeyCode.M then FrameM.Visible = not FrameM.Visible if not FrameM.Visible then U.MouseBehavior = Enum.MouseBehavior.Default end return end if gpe then return end if i.KeyCode == Enum.KeyCode.E then Config.A = not Config.A Up() end end) R.RenderStepped:Connect(function() if Config.A then local t = Get() if t and t.Character and t.Character:FindFirstChild(Config.P) then C.CFrame = CFrame.new(C.CFrame.Position, t.Character[Config.P].Position) end end end) local L1 = Instance.new("TextLabel", FrameM) L1.Size = UDim2.new(0, 215, 0, 38) L1.Position = UDim2.new(0.5, -107, 0, 152) L1.BackgroundColor3 = Color3.fromRGB(24, 24, 24) L1.Text = "actual hotkey: E" L1.TextColor3 = Color3.fromRGB(255, 255, 255) L1.Font = Enum.Font.SourceSans L1.TextSize = 15 L1.BorderSizePixel = 1 L1.BorderColor3 = Color3.fromRGB(0, 0, 0) local T = Instance.new("TextBox", FrameM) T.Size = UDim2.new(0, 215, 0, 38) T.Position = UDim2.new(0.5, -107, 0, 210) T.BackgroundColor3 = Color3.fromRGB(200, 200, 200) T.Text = "TextBox" T.TextColor3 = Color3.fromRGB(0, 0, 0) T.Font = Enum.Font.SourceSans T.TextSize = 15 T.BorderSizePixel = 1 T.BorderColor3 = Color3.fromRGB(0, 0, 0) local L2 = Instance.new("TextLabel", FrameM) L2.Size = UDim2.new(0, 217, 0, 36) L2.Position = UDim2.new(0.5, -108, 1, 0) L2.BackgroundColor3 = Color3.fromRGB(24, 24, 24) L2.Text = "Press 'M' to toggle mouse visibility" L2.TextColor3 = Color3.fromRGB(255, 255, 255) L2.Font = Enum.Font.SourceSans L2.TextSize = 13 L2.BorderSizePixel = 1 L2.BorderColor3 = Color3.fromRGB(0, 0, 0) print("Updated Safe UI Loaded.")