if not game:IsLoaded() then game.Loaded:Wait() end local function APP_FUTBOL(HOST) local Players = game:GetService("Players") local UIS = game:GetService("UserInputService") local Workspace = game:GetService("Workspace") local CoreGui = game:GetService("CoreGui") local LP = Players.LocalPlayer ---------------------------------------------------------------------- -- AYARLAR ---------------------------------------------------------------------- -- AYARLAR: değerler BURADA sabit (ekranda görünmez, kayıt dosyasından okunmaz). Değiştirmek için burayı düzenle. local S = { count = 2, -- kaç top konacak batch = 1, -- araç bir kez alınınca kaç top konsun (1 = tek tek) kickPower = 2.5, -- tekme vektörünün boyu kickRate = 1, -- saniyede kaç tekme (yüksek = havada daha az sallanır) kickDamp = 0.25, -- frenleme (hedef etrafında sallanmayı azaltır) kickDead = 1.5, -- hedefe bu kadar yakınsa tekmeleme (stud) maxSpeed = 60, -- yakındayken topun en fazla hızı (stud/sn) nearR = 25, -- hedefe bundan uzaksa TAM güçle hızlı gider, yakınsa yumuşak kilit follow = true, -- toplar seçili oyuncuları takip etsin radius = 1.25, -- etrafımdaki halka yarıçapı height = -0.5, -- halkanın yüksekliği (kök parçaya göre) orbit = 1, -- halkanın dönme hızı (rad/sn) dropH = 6, -- top, takım alanında bu kadar yükseğe konur (düşsün diye) upCount = 5, -- başlarken / yeni kişide kaç kez yukarı vursun upGap = 0.1, -- yukarı vuruşlar arası (sn) upPower = 5, -- yukarı vuruş gücü (vektör boyu, normal tekme gücünden AYRI) maxKps = 0, -- saniyede en çok toplam tekme (bütün toplar); 0 = sınırsız stuckT = 2, -- top ÖNÜNDE ENGEL varken bu kadar sn hedefe yaklaşamazsa yukarı vurulur; 0 = kapalı -- tırmanma: hedef toptan 8 stud'dan fazla yukarıdaysa dikey tekme ayrı güçle atılır climbPower = 0, -- tırmanma gücü (dikey tekme); 0 = kapalı climbT = 2, -- bu kadar sn içinde en az 3 stud yükselemezse "ulaşamadı" sayılır climbWait = 3, -- ulaşamayınca bu kadar sn altında sakin bekler (yukarı tekme yok), sonra tekrar dener upAim = 4, -- yukarı vururken aynı anda oyuncuya yönelme gücü (yatay); 0 = sadece yukarı deathRestart = true, -- takip edilen oyuncu ölüp doğunca "yeni kişi" gibi baştan başla farR = 0, -- oyuncuya bundan uzak top yukarı tekmelenip oyuncuya yönelir; 0 = kapalı upRate = 3, -- hedef toptan yukarıdayken o top saniyede kaç tekme alsın (yukarı çıkarken) upThr = 3, -- hedef nokta toptan en az bu kadar yukarıdaysa "yukarı çıkıyor" sayılır (stud) stuckGain = 30, -- engelli top stuckT sn içinde hedefe en az bu kadar yaklaşamazsa "takıldı" (stud) -- gökkuşağı (yazı kısmındaki gökkuşağının aynısı): her top sırasına göre renk, akan modda renkler kayar rb = false, -- gökkuşağı açık mı rbAnim = true, -- akan gökkuşağı rbSpeed = 0.25, -- akış hızı (tur/sn) rbStep = 0.12, -- toplar arası renk farkı rbEvery = 0.6, -- herkes görsün diye kaç sn'de bir boyansın (PaintingTool) busy = false, abort = false, closed = false, } ---------------------------------------------------------------------- -- AYAR KAYDI: ayarlar dosyaya yazılır, açılışta geri yüklenir ---------------------------------------------------------------------- local SAVE_FILE = "BYS_Futbol_ayar.json" local SAVE_KEYS = { -- sadece ekranda kalan ayarlar kaydedilir; gizli ayarlar her açılışta koddaki değerle başlar "rbAnim", "count", } local Save = { pending = false } do local Http = game:GetService("HttpService") function Save.load() if not (readfile and isfile) then return false end local ok, data = pcall(function() if not isfile(SAVE_FILE) then return nil end return Http:JSONDecode(readfile(SAVE_FILE)) end) if not ok or type(data) ~= "table" then return false end for _, k in ipairs(SAVE_KEYS) do if type(data[k]) == "number" or (type(data[k]) == "boolean" and type(S[k]) == "boolean") then S[k] = data[k] end end return true end function Save.write() if not writefile then return end local t = {} for _, k in ipairs(SAVE_KEYS) do t[k] = S[k] end pcall(function() writefile(SAVE_FILE, Http:JSONEncode(t)) end) end -- değişince 1 sn sonra yaz (art arda tıklamada her seferinde yazmasın) function Save.soon() if Save.pending then return end Save.pending = true task.delay(1, function() Save.pending = false Save.write() end) end end Save.loaded = Save.load() local Balls = {} -- { model, part } local Targets = {} -- seçili oyuncular (sıralı liste); boşsa takip bırakılır local Spec = { plr = nil } -- izlenen oyuncu local Lock = { sig = "", relaunch = false, ty = setmetatable({}, { __mode = "k" }) } -- top->hedef kilidi Lock.last = nil -- en son takip edilen kişi (kişi değişimini anlamak için) Lock.switching = false -- yeni kişiye geçiş sırası sürüyor (dur -> ankor aç -> sıfırla -> takip) Lock.swGen = 0 ---------------------------------------------------------------------- -- TOGGLE KORUMASI: Anchored özelliği toggle; aynı topa 5 sn içinde ikinci kez gönderme ---------------------------------------------------------------------- local Pend = setmetatable({}, { __mode = "k" }) local function pendOk(m) local t = Pend[m] return not (t and os.clock() - t < 5) end local function pendMark(m) Pend[m] = os.clock() end ---------------------------------------------------------------------- -- OYUN YARDIMCILARI ---------------------------------------------------------------------- local ZONE_BY_TEAM = { black = "BlackZone", blue = "Really blueZone", green = "CamoZone", red = "Really redZone", white = "WhiteZone", yellow = "New YellerZone", magenta = "MagentaZone", } local function getZone() local tc = LP.TeamColor local z = tc and Workspace:FindFirstChild(tc.Name .. "Zone") if z then return z end local t = LP.Team local n = t and ZONE_BY_TEAM[string.lower(t.Name)] return n and Workspace:FindFirstChild(n) end local function getBlocksFolder() local b = Workspace:FindFirstChild("Blocks") local f = b and b:FindFirstChild(LP.Name) if f then return f end local pf = Workspace:FindFirstChild(LP.Name) return (pf and pf:FindFirstChild("Blocks")) or b end -- envanterdeki futbol topu değeri (her seferinde YENİDEN okunur) local function ballValue() local d = LP:FindFirstChild("Data") if not d then return nil end local best for _, v in ipairs(d:GetChildren()) do if v:IsA("ValueBase") then local n = string.lower(v.Name) if n:find("soccer", 1, true) or n:find("football", 1, true) then if not best or (tonumber(v.Value) or 0) > (tonumber(best.Value) or 0) then best = v end end end end return best end local function hum() return LP.Character and LP.Character:FindFirstChildOfClass("Humanoid") end local function unequipAll() local h = hum() if h then pcall(function() h:UnequipTools() end) end end local function equip(name) local ch = LP.Character if not ch then return nil end local t = ch:FindFirstChild(name) if t then return t end local bp = LP:FindFirstChildOfClass("Backpack") t = bp and bp:FindFirstChild(name) if not t then return nil end local h = hum() if h then pcall(function() h:EquipTool(t) end) task.wait(0.12) end return ch:FindFirstChild(name) or t end local function getRF(name) local t = equip(name) return t and (t:FindFirstChild("RF") or t:FindFirstChildWhichIsA("RemoteFunction")) end local function ballPart(m) return m:FindFirstChild("PPart") or m.PrimaryPart or m:FindFirstChildWhichIsA("BasePart", true) end local function kickRE(m) local pp = m and m.Parent and m:FindFirstChild("PPart") local re = pp and pp:FindFirstChild("KickRE") return (re and re:IsA("RemoteEvent")) and re or nil end local function kick(m, v) local re = kickRE(m) if not re then return end local vec = (vector and vector.create) and vector.create(v.X, v.Y, v.Z) or v pcall(function() re:FireServer(vec) end) end ---------------------------------------------------------------------- -- TEPKİ ÖLÇÜMÜ: top tekmeye cevap veriyor mu? Bana uzaklığına göre (25 stud'luk dilimler) -- Oyun tekmeyi sadece top bana yakınken kabul ediyorsa, uzak dilimlerde "tepki yok" çıkar. ---------------------------------------------------------------------- local Diag = { yes = {}, no = {} } local function diagCheck(b) local k = b.dk if not k then return end b.dk = nil local dt = os.clock() - k.t if dt < 0.03 or dt > 0.8 or not b.part.Parent then return end local dv = b.part.AssemblyLinearVelocity - k.vel - Vector3.new(0, -Workspace.Gravity, 0) * dt local resp = dv:Dot(k.dir) local bin = math.floor(k.dme / 25) if resp > 3 then Diag.yes[bin] = (Diag.yes[bin] or 0) + 1 elseif resp < 1 then Diag.no[bin] = (Diag.no[bin] or 0) + 1 end end local function diagText() local parts = {} for bin = 0, 20 do local y, n = Diag.yes[bin] or 0, Diag.no[bin] or 0 if y + n >= 5 then parts[#parts + 1] = ("%d-%d: %%%d"):format(bin * 25, bin * 25 + 25, math.floor(100 * y / (y + n) + 0.5)) end end if #parts == 0 then return "tepki ölçülüyor..." end return "Tekmeye tepki (bana uzaklık): " .. table.concat(parts, " | ") end ---------------------------------------------------------------------- -- ANKOR AÇ: sadece ankorlu olan toplara, bir kez gönder, sonra bekle (tekrar gönderme) ---------------------------------------------------------------------- local function unanchorList(list) local send = {} for _, b in ipairs(list) do if b.part.Parent and b.part.Anchored and pendOk(b.model) then pendMark(b.model) send[#send + 1] = b.model end end if #send > 0 then local tool = equip("PropertiesTool") local rf = tool and (tool:FindFirstChild("SetPropertieRF") or tool:FindFirstChildWhichIsA("RemoteFunction")) if not rf then return false end pcall(function() rf:InvokeServer("Anchored", send) end) end local t0 = os.clock() while os.clock() - t0 < 3 do local left = false for _, b in ipairs(list) do if b.part.Parent and b.part.Anchored then left = true break end end if not left then return true end task.wait(0.05) end return false end -- ANKORLA: hareket eden toplara bir kez "Anchored" gönder (araç geçiş yapar: açık -> kapalı) local function anchorList(list) local send = {} for _, b in ipairs(list) do if b.part.Parent and not b.part.Anchored and pendOk(b.model) then pendMark(b.model) send[#send + 1] = b.model end end if #send > 0 then local tool = equip("PropertiesTool") local rf = tool and (tool:FindFirstChild("SetPropertieRF") or tool:FindFirstChildWhichIsA("RemoteFunction")) if not rf then return false end pcall(function() rf:InvokeServer("Anchored", send) end) end local t0 = os.clock() while os.clock() - t0 < 3 do local left = false for _, b in ipairs(list) do if b.part.Parent and not b.part.Anchored then left = true break end end if not left then break end task.wait(0.05) end -- sadece GERÇEKTEN ankorlanan toplarda bekleme kaldırılır (ankor aç hemen ardından gelecek). -- ankorlanmayanlarda istek hâlâ yolda olabilir: tekrar gönderilmez (çift geçiş = ters durum) for _, b in ipairs(list) do if b.part.Parent and b.part.Anchored then Pend[b.model] = nil end end return true end ---------------------------------------------------------------------- -- BİR SEFER: aracı bırak -> al -> (her top için GÜNCEL sayı -> koy -> modeli bekle) x batch -> aracı bırak ---------------------------------------------------------------------- local function placeBatch(slot0, n) local z = getZone() if not z then return {}, "Takım alanı bulunamadı" end local folder = getBlocksFolder() if not folder then return {}, "Blok klasörü bulunamadı" end unequipAll() task.wait(0.1) local rf = getRF("BuildingTool") if not rf then return {}, "BuildingTool bulunamadı" end local out = {} for j = 1, n do if S.abort or S.closed then break end local dv = ballValue() -- araç alındıktan SONRA güncel değer if not dv then unequipAll() return out, "Envanterde futbol topu yok" end -- sayı 0 görünse bile dene (değer geç güncellenebilir); konmazsa dışarıda tekrar denenir local seen = {} for _, c in ipairs(folder:GetChildren()) do seen[c] = true end local k = slot0 + j - 2 local col, row = k % 8, math.floor(k / 8) % 8 local cf = z.CFrame * CFrame.new(col * 6 - 21, S.dropH + math.floor(k / 64) * 6, -14 - row * 6) pcall(function() rf:InvokeServer(dv.Name, dv.Value, nil, nil, true, cf, false) end) local got local t0 = os.clock() while not got and os.clock() - t0 < 3 and not S.abort do for _, c in ipairs(folder:GetChildren()) do if not seen[c] and c:IsA("Model") then local pp = ballPart(c) if pp then got = { model = c, part = pp } break end end end if not got then task.wait(0.05) end end if not got then unequipAll() return out, (tonumber(dv.Value) or 0) <= 0 and "Top yetmiyor" or "Top konamadı" end out[#out + 1] = got end unequipAll() return out end ---------------------------------------------------------------------- -- ARAYÜZ (önce tanımlanır; durum yazısı için) ---------------------------------------------------------------------- local gui = HOST.gui local C = { bg = Color3.fromRGB(22, 24, 30), panel = Color3.fromRGB(32, 35, 44), acc = Color3.fromRGB(80, 160, 255), txt = Color3.fromRGB(235, 238, 245), dim = Color3.fromRGB(150, 156, 170), good = Color3.fromRGB(90, 210, 120), bad = Color3.fromRGB(240, 90, 90), } local function corner(o, r) local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, r or 6) c.Parent = o end local main = Instance.new("Frame") main.Size = UDim2.fromOffset(300, 500) main.Position = HOST.pos main.BackgroundColor3 = C.bg main.BorderSizePixel = 0 main.Parent = gui corner(main, 10) local top = Instance.new("TextLabel") top.Size = UDim2.new(1, 0, 0, 32) top.BackgroundColor3 = C.panel top.BorderSizePixel = 0 top.Text = "" top.TextXAlignment = Enum.TextXAlignment.Left top.Font = Enum.Font.GothamBold top.TextSize = 14 top.TextColor3 = C.txt top.Active = true top.Parent = main corner(top, 10) HOST.tabs(top, "futbol") local function topBtn(txt, x, cb) local b = Instance.new("TextButton") b.Size = UDim2.fromOffset(26, 22) b.Position = UDim2.new(1, x, 0, 5) b.BackgroundColor3 = C.bg b.Text = txt b.Font = Enum.Font.GothamBold b.TextSize = 14 b.TextColor3 = C.txt b.Parent = top corner(b, 5) b.MouseButton1Click:Connect(cb) return b end local body = Instance.new("ScrollingFrame") body.Size = UDim2.new(1, -12, 1, -44) body.Position = UDim2.fromOffset(6, 38) body.BackgroundTransparency = 1 body.BorderSizePixel = 0 body.ScrollBarThickness = 4 body.AutomaticCanvasSize = Enum.AutomaticSize.Y body.CanvasSize = UDim2.new() body.Parent = main local lay = Instance.new("UIListLayout") lay.Padding = UDim.new(0, 5) lay.SortOrder = Enum.SortOrder.LayoutOrder lay.Parent = body local statusL = Instance.new("TextLabel") statusL.Size = UDim2.new(1, -12, 0, 22) statusL.Position = UDim2.new(0, 6, 1, -26) statusL.BackgroundTransparency = 1 statusL.Font = Enum.Font.Gotham statusL.TextSize = 12 statusL.TextColor3 = C.dim statusL.TextXAlignment = Enum.TextXAlignment.Left statusL.TextTruncate = Enum.TextTruncate.AtEnd statusL.Text = "" statusL.Visible = false -- durum satırı kaldırıldı local function status(t, col) statusL.Text = t statusL.TextColor3 = col or C.dim end local order = 0 local function nextOrder() order = order + 1 return order end local function header(t) local l = Instance.new("TextLabel") l.Size = UDim2.new(1, -6, 0, 18) l.BackgroundTransparency = 1 l.Font = Enum.Font.GothamBold l.TextSize = 12 l.TextColor3 = C.acc l.TextXAlignment = Enum.TextXAlignment.Left l.Text = t l.LayoutOrder = nextOrder() l.Parent = body return l end local function button(t, col, cb) local b = Instance.new("TextButton") b.Size = UDim2.new(1, -6, 0, 30) b.BackgroundColor3 = col or C.panel b.Font = Enum.Font.GothamBold b.TextSize = 13 b.TextColor3 = C.txt b.Text = t b.LayoutOrder = nextOrder() b.Parent = body corner(b) b.MouseButton1Click:Connect(cb) return b end -- sayı satırı: etiket [-] [kutu] [+] local function number(t, key, mn, mx, step, dec) local row = Instance.new("Frame") row.Size = UDim2.new(1, -6, 0, 28) row.BackgroundColor3 = C.panel row.LayoutOrder = nextOrder() row.Parent = body corner(row) local l = Instance.new("TextLabel") l.Size = UDim2.new(1, -120, 1, 0) l.Position = UDim2.fromOffset(8, 0) l.BackgroundTransparency = 1 l.Font = Enum.Font.Gotham l.TextSize = 12 l.TextColor3 = C.txt l.TextXAlignment = Enum.TextXAlignment.Left l.Text = t l.Parent = row local box = Instance.new("TextBox") box.Size = UDim2.fromOffset(52, 22) box.Position = UDim2.new(1, -84, 0, 3) box.BackgroundColor3 = C.bg box.Font = Enum.Font.GothamBold box.TextSize = 12 box.TextColor3 = C.txt box.ClearTextOnFocus = false box.Parent = row corner(box, 4) local fmt = "%." .. (dec or 0) .. "f" local first = true local function set(v) v = math.clamp(tonumber(v) or S[key], mn, mx) S[key] = v box.Text = string.format(fmt, v) if not first then Save.soon() end end local function small(txt, x, d) local b = Instance.new("TextButton") b.Size = UDim2.fromOffset(24, 22) b.Position = UDim2.new(1, x, 0, 3) b.BackgroundColor3 = C.bg b.Font = Enum.Font.GothamBold b.TextSize = 14 b.TextColor3 = C.txt b.Text = txt b.Parent = row corner(b, 4) b.MouseButton1Click:Connect(function() set(S[key] + d) end) end small("-", -112, -step) small("+", -28, step) box.FocusLost:Connect(function() set(box.Text) end) set(S[key]) first = false return row end ---------------------------------------------------------------------- -- İŞLEMLER ---------------------------------------------------------------------- local function aliveBalls() local out = {} for _, b in ipairs(Balls) do if b.model.Parent and b.part.Parent then out[#out + 1] = b end end Balls = out return out end -- yeni konan top: 3 kez yukarı tekme, sonra takibe katılır -- C) YUKARI VURUŞ SEBEP SAYACI: her yukarı vuruşun sebebi sayılır, oyuncu kutusunda yazılır Lock.why = { stuck = 0, newp = 0, newb = 0, lift = 0, death = 0, far = 0 } -- DUVAR ALGILAMA + MESAFE ÖLÇER local FB = { bins = { 10, 20, 30, 50 }, hit = {}, skip = {}, pT = -10, logged = false } FB.FILE = "BYS_Futbol_takilma.txt" function FB.binOf(d) for i, b in ipairs(FB.bins) do if d < b then return i end end return #FB.bins + 1 end function FB.binName(i) local lo = i == 1 and 0 or FB.bins[i - 1] return FB.bins[i] and (lo .. "-" .. FB.bins[i]) or (lo .. "+") end -- ışın: toplar, bütün oyuncuların karakterleri ve önizleme hesaba katılmaz (1 sn'de bir yenilenir) function FB.params() if os.clock() - FB.pT > 1 or not FB.p then FB.pT = os.clock() local ex = {} for _, b in ipairs(Balls) do if b.model.Parent then ex[#ex + 1] = b.model end end for _, p in ipairs(Players:GetPlayers()) do if p.Character then ex[#ex + 1] = p.Character end end local pv = Workspace:FindFirstChild("BYS_Preview") if pv then ex[#ex + 1] = pv end local rp = RaycastParams.new() rp.FilterType = Enum.RaycastFilterType.Exclude rp.FilterDescendantsInstances = ex pcall(function() rp.RespectCanCollide = true end) FB.p = rp end return FB.p end -- topun önünde (hedefe giden YATAY yönde) çarpışan bir parça var mı: varsa adı function FB.blocked(pp, goal) local bp = pp.Position local dirH = Vector3.new(goal.X - bp.X, 0, goal.Z - bp.Z) if dirH.Magnitude < 0.5 then return nil end local len = math.max(pp.Size.X, pp.Size.Y, pp.Size.Z) / 2 + 3 local ok, r = pcall(function() return Workspace:Raycast(bp, dirH.Unit * len, FB.params()) end) if ok and r and r.Instance and r.Instance.CanCollide ~= false then return r.Instance end return nil end function FB.write(line) pcall(function() if not FB.logged and writefile then FB.logged = true writefile(FB.FILE, ("=== BYS Futbol takılma kaydı %s ===\n"):format(os.date("%Y-%m-%d %H:%M:%S"))) end if appendfile then appendfile(FB.FILE, line .. "\n") elseif writefile and readfile and isfile then writefile(FB.FILE, (isfile(FB.FILE) and readfile(FB.FILE) or "") .. line .. "\n") end end) end -- vurulan = yukarı vuruldu; atlanan = takıldı ama 5 sn bekleme yüzünden vurulmadı function FB.record(flat, real, inst, spd, launched) local i = FB.binOf(flat) local t = launched and FB.hit or FB.skip t[i] = (t[i] or 0) + 1 local name = "?" pcall(function() name = inst.Name .. (inst.Parent and inst.Parent ~= Workspace and (" (" .. inst.Parent.Name .. ")") or "") end) FB.write(("[%s] %s | oyuncuya %.1f stud | hedef noktaya %.1f | engel: %s | top hızı %.1f"):format( os.date("%H:%M:%S"), launched and "VURULDU" or "ATLANDI (5 sn bekleme)", flat, real, name, spd)) end function FB.text() local parts = {} for i = 1, #FB.bins + 1 do local h, k = FB.hit[i] or 0, FB.skip[i] or 0 if h + k > 0 then parts[#parts + 1] = FB.binName(i) .. ": " .. h .. (k > 0 and (" (+" .. k .. " atlandı)") or "") end end if #parts == 0 then return "Takılma (oyuncuya, stud): yok" end return "Takılma (oyuncuya, stud): " .. table.concat(parts, " | ") end -- TIRMANMA / YÜKSEKLİK ÖLÇER local CL = { fails = 0 } function CL.text() local now = os.clock() local sum, n, climb, wait = 0, 0, 0, 0 for _, b in ipairs(Balls) do local p = b.tgt local hrp = p and p.Parent and p.Character and p.Character:FindFirstChild("HumanoidRootPart") if hrp and b.part.Parent then sum, n = sum + (hrp.Position.Y - b.part.Position.Y), n + 1 if b.cl then climb = climb + 1 end if b.waitUntil and now < b.waitUntil then wait = wait + 1 end end end if n == 0 then return "Yükseklik: hedef yok" end return ("Hedef toplardan ort. %.1f stud yukarıda • tırmanan %d • ulaşamayıp bekleyen %d • ulaşamadı toplam %d"):format(sum / n, climb, wait, CL.fails) end local function launchUp(b, why) if why and Lock.why[why] then Lock.why[why] = Lock.why[why] + 1 end b.ready = false b.gen = (b.gen or 0) + 1 local my = b.gen task.spawn(function() for _ = 1, math.max(0, math.floor(S.upCount)) do if S.closed or S.abort or not b.model.Parent or b.gen ~= my then break end if not b.part.Anchored then local v = Vector3.new(0, S.upPower, 0) -- aynı anda oyuncunun halkadaki yerine doğru yatay itme (upAim) local p = b.tgt or Targets[1] local hrp = S.upAim > 0 and p and p.Parent and p.Character and p.Character:FindFirstChild("HumanoidRootPart") if hrp then local a = os.clock() * S.orbit + (b.slot or 0) * (2 * math.pi / math.max(1, b.per or 1)) local goal = hrp.Position + Vector3.new(math.cos(a) * S.radius, 0, math.sin(a) * S.radius) local bp = b.part.Position local hd = Vector3.new(goal.X - bp.X, 0, goal.Z - bp.Z) if hd.Magnitude > 0.5 then v = v + hd.Unit * S.upAim * math.clamp(hd.Magnitude / 12, 0.15, 1) end end kick(b.model, v) end task.wait(S.upGap) end if b.gen == my then b.ready = true b.stk = nil end end) end -- yeni hedef seçilince: sadece HEDEFİ DEĞİŞEN toplar önce 3 kez yukarı, sonra yeni hedefe -- (asıl iş tekme döngüsünde, kilit yeniden dağıtılınca yapılır) local function relaunchAll() S.follow = true if not S.busy then S.abort = false end -- koyma DURDUR'la kesildiyse kesik kalsın Lock.relaunch = true Lock.sig = "" -- kilidi hemen yeniden dağıt end -- DURDUR: koymayı hemen keser ve takibi bırakır local function stopAll() S.abort = true S.follow = false for _, b in ipairs(Balls) do b.gen = (b.gen or 0) + 1 b.ready = true end unequipAll() status(S.busy and "Durduruluyor..." or "Durduruldu • takip bırakıldı", C.bad) end local function placeBalls() if S.busy then return end if #Targets == 0 or not (Targets[1] and Targets[1].Parent) then if FB.warn then FB.warn() end return end S.busy, S.abort = true, false S.follow = true -- TOPLARI KOY'a basınca takip başlar task.spawn(function() local placed, tries = 0, 0 local slot0 = #aliveBalls() local anchorFail = false while placed < S.count and not (S.abort or S.closed) do local n = math.min(S.batch, S.count - placed) status(("Konuldu: %d / %d (seferde %d)"):format(placed, S.count, n)) local got, e = placeBatch(slot0 + placed + 1, n) -- ankor aç -> toplar düşer -> 3 kez yukarı tekme -> sonra takip if #got > 0 then tries = 0 if not unanchorList(got) then anchorFail = true end for _, b in ipairs(got) do Balls[#Balls + 1] = b launchUp(b, "newb") end placed = placed + #got end unequipAll() if e and not (S.abort or S.closed) then -- DURMA: aracı bırak-al ve tekrar dene (DURDUR'a basana kadar) tries = tries + 1 status(("Konuldu: %d / %d • %s • tekrar deneniyor (%d)"):format(placed, S.count, e, tries), C.bad) local w0 = os.clock() while os.clock() - w0 < math.min(0.4 + tries * 0.1, 2) and not S.abort do task.wait(0.05) end else task.wait(0.15) end end unequipAll() S.busy = false local msg = (placed >= S.count) and "Bitti" or "Durduruldu" status(("%s • %d top konuldu (istenen %d)%s"):format(msg, placed, S.count, anchorFail and " • bazılarının ankoru açılamadı" or ""), placed >= S.count and C.good or C.bad) end) end local function deleteBalls() if S.busy then return end S.busy = true task.spawn(function() local list = aliveBalls() local rf = getRF("DeleteTool") if rf then for _, b in ipairs(list) do pcall(function() rf:InvokeServer(b.model) end) end end unequipAll() Balls = {} S.busy = false status(rf and ("%d top silindi"):format(#list) or "DeleteTool bulunamadı", rf and C.good or C.bad) end) end -- tek bir test tekmesi: tüm toplar YUKARI (vektör boyu = Tekme gücü) local function testKick() local n = 0 for _, b in ipairs(aliveBalls()) do kick(b.model, Vector3.new(0, 1, 0) * S.upPower) n = n + 1 end status(("%d topa yukarı tekme (güç %.2f)"):format(n, S.upPower)) end ---------------------------------------------------------------------- -- TEKME DÖNGÜSÜ: her top halkadaki yerine doğru, hızı frenlenerek tekmelenir ---------------------------------------------------------------------- ---------------------------------------------------------------------- -- KİLİT: her topun SABİT bir hedefi ve halkada SABİT bir yeri var. -- Hedef listesi / top sayısı değişince sadece GEREKEN toplar yer değiştirir -- (eski hedefinde kalabilen kalır, yeni hedefe en yakın toplar gider). ---------------------------------------------------------------------- ---------------------------------------------------------------------- -- TEKME DÖNGÜSÜ (hız kontrollü): topa "olması gereken hız" verilir. -- istenen hız = hedefin hızı + (hedefe uzaklık / frenleme), Maks hız ile sınırlı. -- Tekme, istenen hız ile şu anki hız ARASINDAKİ farka göre atılır -> tekmeler -- birikip topu fırlatmaz, hedef koşsa da kilit bozulmaz, düşerken de toparlar. ---------------------------------------------------------------------- task.spawn(function() while not S.closed do -- yukarı çıkan top varsa döngü hızlı döner (her top yine kendi sıklığında tekmelenir) Lock.anyUp, Lock.anyUpNext = Lock.anyUpNext, false local loopRate = Lock.anyUp and math.max(S.kickRate, S.upRate) or S.kickRate task.wait(1 / math.max(1, loopRate)) local tickDt = os.clock() - (Lock.tickT or os.clock()) Lock.tickT = os.clock() local list = aliveBalls() -- TEK HEDEF: her tikte BÜTÜN toplar doğrudan seçili kişiye bağlanır (eski kişide top kalamaz) local tgt = Targets[1] if tgt and not tgt.Parent then tgt = nil end local n = #list -- YENİ KİŞİ: toplar bir an durur (ankor) -> ankor açılır -> her şey sıfırlanır -> yeni kişiyi takip -- ÖLÜM: takip edilen oyuncunun karakteri değişti (öldü, yeniden doğdu) -> yeni kişi gibi baştan if tgt then local ch = tgt.Character local chr = ch and ch:FindFirstChild("HumanoidRootPart") if tgt ~= Lock.charOwner then Lock.charOwner, Lock.trackedChar = tgt, chr and ch or nil elseif chr and Lock.trackedChar and ch ~= Lock.trackedChar then Lock.trackedChar = ch if S.deathRestart and n > 0 then Lock.forceSwitch = true Lock.relaunchWhy = "death" status("Hedef öldü / yeniden doğdu: toplar baştan başlıyor", C.acc) end elseif chr and not Lock.trackedChar then Lock.trackedChar = ch end end if tgt and Lock.last and (tgt ~= Lock.last or Lock.forceSwitch) and n > 0 and not S.busy and not Lock.switching then Lock.forceSwitch = false Lock.relaunchWhy = Lock.relaunchWhy or "newp" Lock.switching = true Lock.swGen += 1 local my = Lock.swGen for _, b in ipairs(list) do b.gen = (b.gen or 0) + 1 -- süren yukarı vuruşları iptal b.ready = false -- tekme atılmasın end status("Yeni kişi: toplar durduruluyor...", C.acc) task.spawn(function() anchorList(list) if my ~= Lock.swGen then return end task.wait(0.15) status("Yeni kişi: ankor açılıyor...", C.acc) unanchorList(list) if my ~= Lock.swGen then return end -- bütün istekler / ölçümler sıfırlanır Lock.ty = setmetatable({}, { __mode = "k" }) Diag.yes, Diag.no = {}, {} for _, b in ipairs(list) do b.dk = nil b.stk = nil b.tgt = nil -- bir sonraki tikte yeni kişiye bağlanır b.ready = true end Lock.relaunch = true -- yeni kişi: önce yukarı vuruş Lock.switching = false status("Yeni kişi takip ediliyor: " .. tostring(Targets[1] and Targets[1].Name or "-"), C.good) end) end if tgt then Lock.last = tgt elseif #Targets == 0 then Lock.last = nil end if Lock.switching then continue end -- BEKÇİ: takip sırasında ankorlu kalmış top varsa (geç gelen istek vs.) ankoru tekrar aç if S.follow and not S.busy and os.clock() - (Lock.wdT or 0) > 1 then Lock.wdT = os.clock() local stuck = {} for _, b in ipairs(list) do if b.part.Parent and b.part.Anchored and pendOk(b.model) then stuck[#stuck + 1] = b end end if #stuck > 0 then task.spawn(function() unanchorList(stuck) for _, b in ipairs(stuck) do b.stk = nil end end) end end for i, b in ipairs(list) do if b.tgt ~= tgt then b.tgt = tgt b.gen = (b.gen or 0) + 1 -- eski hedefe dair süren yukarı vuruşu iptal b.ready = true if tgt and Lock.relaunch then launchUp(b, Lock.relaunchWhy or "newp") end -- yeni kişi / ölüm: önce yukarı vur end b.slot, b.per = i - 1, n end if Lock.relaunch then Lock.relaunchWhy = nil end Lock.relaunch = false -- hedef yüksekliğini yumuşat (her hedef için tikte bir kez) for _, p in ipairs(Targets) do local r = p.Parent and p.Character and p.Character:FindFirstChild("HumanoidRootPart") if r then local ty = Lock.ty[p] -- yumuşatma eskisi gibi "Saniyede tekme"ye göre (döngü hızlanınca yumuşatma değişmesin) Lock.ty[p] = ty and (ty + (r.Position.Y - ty) * math.min(1, 2.5 * math.max(tickDt, 1 / math.max(1, S.kickRate)))) or r.Position.Y end end if S.follow and #list > 0 then local t = os.clock() * S.orbit local myR = LP.Character and LP.Character:FindFirstChild("HumanoidRootPart") -- tekme bütçesi: sınır varsa her tikte sıra kayar, her top sırayla tekme alır local budget = S.maxKps > 0 and math.max(1, math.floor(S.maxKps / math.max(1, loopRate))) or math.huge local nb = #list Lock.rr = ((Lock.rr or 0) % math.max(1, nb)) + 1 local start = budget < nb and Lock.rr or 1 for ii = 1, nb do if budget <= 0 then break end local b = list[((start + ii - 2) % nb) + 1] local pp = b.part diagCheck(b) local dMe = myR and (pp.Position - myR.Position).Magnitude or 0 local p = b.tgt local hrp = p and p.Parent and p.Character and p.Character:FindFirstChild("HumanoidRootPart") if hrp and not pp.Anchored and b.ready ~= false then local a = t + (b.slot or 0) * (2 * math.pi / math.max(1, b.per or 1)) -- hedefin yüksekliği yumuşatılır (zıplayınca / inip çıkınca toplar sallanmasın) local ty = Lock.ty[p] or hrp.Position.Y local goal = Vector3.new(hrp.Position.X + math.cos(a) * S.radius, ty + S.height, hrp.Position.Z + math.sin(a) * S.radius) -- yerçekimi tahmini: bir sonraki tekmeye kadar düşeceği hesaba katılır -- YUKARI ÇIKARKEN SIK TEKME: hedef nokta toptan upThr'den fazla yukarıdaysa bu top upRate ile, -- değilse kickRate ile tekmelenir (topun son tekme zamanı tutulur) local goingUp = S.upRate > S.kickRate and (goal.Y - pp.Position.Y) > S.upThr if goingUp then Lock.anyUpNext = true end local rate = goingUp and S.upRate or S.kickRate local nowK = os.clock() if b.lastK and nowK - b.lastK < 0.9 / math.max(1, rate) then continue end b.lastK = nowK local dt = 1 / math.max(1, rate) local g = Vector3.new(0, -Workspace.Gravity, 0) local vel = pp.AssemblyLinearVelocity + g * dt local d = goal - (pp.Position + pp.AssemblyLinearVelocity * dt + g * (0.5 * dt * dt)) local dist = d.Magnitude -- UZAK TOP: oyuncuya farR stud'dan uzaksa yukarı tekmelenip oyuncuya yönelir (top başına 5 sn'de bir) if S.farR > 0 and (pp.Position - hrp.Position).Magnitude > S.farR and os.clock() > (b.farCd or 0) then b.farCd = os.clock() + 5 status(("Uzak top (%.0f stud) yukarı tekmelenip oyuncuya yöneliyor"):format((pp.Position - hrp.Position).Magnitude), C.acc) launchUp(b, "far") continue end -- TAKILMA (duvar algılama): topun önünde, hedefe giden yatay yönde çarpışan bir parça varsa -- ve top S.stuckT sn hedefe S.stuckGain stud yaklaşamadıysa yukarı vurulur. Önü açık top hiç vurulmaz. if S.stuckT > 0 then local now = os.clock() local bp, hp = pp.Position, hrp.Position local flat = Vector3.new(bp.X - hp.X, 0, bp.Z - hp.Z).Magnitude local real = (goal - bp).Magnitude local wall = FB.blocked(pp, goal) local k = b.stk if not wall then b.stk = nil elseif not k or real < k.best - S.stuckGain then b.stk = { t = now, best = real } elseif now - k.t > S.stuckT then b.stk = { t = now, best = real } local spd = pp.AssemblyLinearVelocity.Magnitude if now < (b.upCd or 0) then FB.record(flat, real, wall, spd, false) else b.upCd = now + 5 FB.record(flat, real, wall, spd, true) Lock.stuckN = (Lock.stuckN or 0) + 1 status(("Duvara takılan top yukarı vuruldu (%d. kez, oyuncuya %.0f stud, engel %s)"):format(Lock.stuckN, flat, wall.Name), C.acc) launchUp(b, "stuck") continue end end end -- TIRMANMA: hedef nokta toptan 8 stud'dan fazla yukarıdaysa yatay kısım kickPower ile, -- dikey kısım "Tırmanma gücü" ile (düşerken artar, yükselirken azalır) atılır. -- climbT sn içinde en az 3 stud yükselemezse climbWait sn altında sakin bekler (zıplamaz). do local now2 = os.clock() local bp2 = pp.Position local bv2 = pp.AssemblyLinearVelocity local hd = Vector3.new(goal.X - bp2.X, 0, goal.Z - bp2.Z) local hsteer = hd - Vector3.new(bv2.X, 0, bv2.Z) * S.kickDamp local hk = hsteer.Magnitude > 1e-3 and hsteer.Unit * S.kickPower * math.clamp(hsteer.Magnitude / 12, 0.15, 1) or Vector3.zero if b.waitUntil and now2 < b.waitUntil then -- bekleme: yukarı tekme yok, sadece yatayda altında dur if hsteer.Magnitude > 1 then kick(b.model, hk) budget = budget - 1 end continue end local dy = goal.Y - bp2.Y if S.climbPower > 0 and dy > 8 then local cl = b.cl if not cl then cl = { t = now2, best = bp2.Y, y0 = bp2.Y } b.cl = cl end if bp2.Y > cl.best + 3 then cl.best, cl.t = bp2.Y, now2 end if bp2.Y > cl.best then cl.top = bp2.Y end if now2 - cl.t > S.climbT then b.waitUntil = now2 + S.climbWait b.cl = nil CL.fails = CL.fails + 1 local top = math.max(cl.top or cl.best, cl.best) FB.write(("[%s] ULAŞAMADI | hedef toptan %.1f stud yukarıda | topun çıktığı en yüksek Y %.1f (başlangıçtan +%.1f) | tırmanma gücü %.1f | %.0f sn bekleyecek"):format( os.date("%H:%M:%S"), dy, top, top - cl.y0, S.climbPower, S.climbWait)) status(("Top hedefe ulaşamadı (%.0f stud yukarıda), %.0f sn altında bekliyor"):format(dy, S.climbWait), C.acc) continue end local up = math.clamp(S.climbPower * (1 - bv2.Y / 40), S.climbPower * 0.3, S.climbPower * 2) kick(b.model, Vector3.new(hk.X, up, hk.Z)) budget -= 1 continue else b.cl = nil end end local tv = hrp.AssemblyLinearVelocity tv = Vector3.new(tv.X, 0, tv.Z) -- sadece yatay (zıplama topları oynatmasın) if dist > S.nearR then -- UZAK: eski hızlı yöntem -> hedefe doğru TAM güç (frenleme ile) local raw = (hrp.Position + Vector3.new(math.cos(a) * S.radius, S.height, math.sin(a) * S.radius)) - pp.Position local steer = raw - pp.AssemblyLinearVelocity * S.kickDamp if steer.Magnitude > 1e-3 then local v = steer.Unit * S.kickPower b.dk = { t = os.clock(), vel = pp.AssemblyLinearVelocity, dir = v.Unit, dme = dMe } kick(b.model, v) budget -= 1 end else -- YAKIN: hız kontrollü kilit (sallanmasın, hedefle birlikte gitsin) local want = d / math.max(0.05, S.kickDamp) if want.Magnitude > S.maxSpeed then want = want.Unit * S.maxSpeed end want = want + tv local err = want - vel local em = err.Magnitude if not (dist <= S.kickDead and (vel - tv).Magnitude < 4) and em > 0.5 then -- boy = Tekme gücü (fark büyükse tam, küçükse orantılı) local v = err.Unit * S.kickPower * math.clamp(em / 20, 0.1, 1) -- güçlü ve çoğu yukarı doğru tekme = "yükseklik düzeltme" (sayaç) if v.Y > S.kickPower * 0.6 and v.Unit.Y > 0.7 and os.clock() - (b.liftT or 0) > 1 then b.liftT = os.clock() Lock.why.lift = Lock.why.lift + 1 end if v.Magnitude >= 0.5 then b.dk = { t = os.clock(), vel = pp.AssemblyLinearVelocity, dir = v.Unit, dme = dMe } end kick(b.model, v) budget -= 1 end end end end end end end) ---------------------------------------------------------------------- -- ARAYÜZ İÇERİĞİ ---------------------------------------------------------------------- ---------------------------------------------------------------------- -- İZLEME: kamerayı seçilen oyuncuya bağla (ölüp doğunca da devam eder) ---------------------------------------------------------------------- local function camSubject(plr) local cam = Workspace.CurrentCamera local h = plr and plr.Character and plr.Character:FindFirstChildOfClass("Humanoid") if cam and h and cam.CameraSubject ~= h then cam.CameraSubject = h end end local function setSpec(plr) Spec.plr = plr camSubject(plr or LP) end ---------------------------------------------------------------------- -- HEDEF PARLAMA: seçili oyuncular beyaz parlar (ölüp doğunca da) ---------------------------------------------------------------------- local HL = {} local function syncHighlights() local want = {} if not S.closed then for _, p in ipairs(Targets) do if p.Parent and p.Character then want[p] = p.Character end end end for p, h in pairs(HL) do if want[p] ~= h.Adornee or not h.Parent then pcall(function() h:Destroy() end) HL[p] = nil end end for p, ch in pairs(want) do if not HL[p] then local h = Instance.new("Highlight") h.Name = "BYS_Hedef" h.FillColor = Color3.new(1, 1, 1) h.OutlineColor = Color3.new(1, 1, 1) h.FillTransparency = 0.55 h.OutlineTransparency = 0 h.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop h.Adornee = ch h.Parent = gui HL[p] = h end end end task.spawn(function() while not S.closed do task.wait(0.25) pcall(syncHighlights) if Spec.plr then if Spec.plr.Parent then camSubject(Spec.plr) else setSpec(nil) end end end camSubject(LP) end) local function isTarget(p) for i, q in ipairs(Targets) do if q == p then return i end end return nil end local HDR = {} local SHOW = {} -- ekranda kalacaklar HDR[1] = header("TOP KOY") SHOW[number("Top sayısı", "count", 1, 1000, 1, 0)] = true number("Seferde kaç top", "batch", 1, 1000, 1, 0) number("Konma yüksekliği (alan üstü)", "dropH", -20, 500, 1, 0) FB.startB = button("BAŞLA", Color3.fromRGB(40, 90, 160), placeBalls) SHOW[FB.startB] = true -- oyuncu seçilmemişse: düğme 2 sn kırmızı "OYUNCU SEÇ" yazar function FB.warn() local b = FB.startB FB.warnId = (FB.warnId or 0) + 1 local id = FB.warnId if not FB.warnOld then FB.warnOld = { b.Text, b.BackgroundColor3 } end b.Text = "OYUNCU SEÇ" b.BackgroundColor3 = Color3.fromRGB(170, 40, 40) task.delay(2, function() if FB.warnId ~= id or not FB.warnOld then return end b.Text, b.BackgroundColor3 = FB.warnOld[1], FB.warnOld[2] FB.warnOld = nil end) end SHOW[button("DURDUR", Color3.fromRGB(150, 110, 30), stopAll)] = true SHOW[button("TOPLARI SİL", Color3.fromRGB(120, 45, 45), deleteBalls)] = true header("FUTBOL TOPU (TEKME)") number("Tekme gücü (vektör boyu)", "kickPower", 0.01, 100, 0.1, 2) number("Saniyede tekme", "kickRate", 1, 30, 1, 0) number("Yukarı çıkarken saniyede tekme", "upRate", 1, 60, 1, 0) number("Yukarı sayılma farkı (stud)", "upThr", 0, 50, 0.5, 1) number("Frenleme", "kickDamp", 0, 2, 0.05, 2) number("Ölü bölge (stud)", "kickDead", 0, 20, 0.5, 1) number("Maks hız (yakında)", "maxSpeed", 5, 500, 5, 0) number("Hızlı mod mesafesi", "nearR", 0, 500, 1, 0) number("Saniyede en çok toplam tekme (0=sınırsız)", "maxKps", 0, 2000, 20, 0) header("BAŞLANGIÇ YUKARI VURUŞU (yeni top / yeni kişi)") number("Kaç kez yukarı vursun", "upCount", 0, 20, 1, 0) number("Vuruşlar arası (sn)", "upGap", 0, 3, 0.05, 2) number("Yukarı vuruş gücü", "upPower", 0, 100, 0.5, 1) number("Yukarı vururken yönelme gücü (0=sadece yukarı)", "upAim", 0, 100, 0.5, 1) do local b = button("", nil, function() end) local function draw() b.Text = "Oyuncu ölünce yeniden başlat: " .. (S.deathRestart and "AÇIK" or "KAPALI") b.BackgroundColor3 = S.deathRestart and Color3.fromRGB(40, 90, 60) or C.panel end b.MouseButton1Click:Connect(function() S.deathRestart = not S.deathRestart draw() Save.soon() end) draw() end number("Uzak top sınırı (stud, 0=kapalı)", "farR", 0, 5000, 50, 0) number("Duvara takılınca yukarı vur (sn, 0=kapalı)", "stuckT", 0, 60, 0.5, 1) number("Takılma için yaklaşma eşiği (stud)", "stuckGain", 0.5, 100, 0.5, 1) header("YÜKSEKTEKİ OYUNCU (tırmanma)") number("Tırmanma gücü (0=kapalı)", "climbPower", 0, 100, 0.5, 1) number("Ulaşamadı sayılma süresi (sn)", "climbT", 0.5, 30, 0.5, 1) number("Ulaşamayınca bekleme (sn)", "climbWait", 0, 30, 0.5, 1) HDR[2] = header("OYUNCU (tek kişi seç = takip, 👁 = izle)") local tgtInfo do local l = Instance.new("TextLabel") l.Size = UDim2.new(1, -6, 0, 94) l.BackgroundTransparency = 1 l.Font = Enum.Font.Gotham l.TextSize = 11 l.TextColor3 = C.dim l.TextWrapped = true l.TextXAlignment = Enum.TextXAlignment.Left l.LayoutOrder = nextOrder() l.Parent = body tgtInfo = l end local listBox = Instance.new("Frame") SHOW[listBox] = true listBox.Size = UDim2.new(1, -6, 0, 0) listBox.AutomaticSize = Enum.AutomaticSize.Y listBox.BackgroundTransparency = 1 listBox.LayoutOrder = nextOrder() listBox.Parent = body local listLay = Instance.new("UIListLayout") listLay.Padding = UDim.new(0, 3) listLay.SortOrder = Enum.SortOrder.LayoutOrder listLay.Parent = listBox -- BYS FUTBOL • EKLER (son hali): 1) ENGEL KAYDI 2) MESAFE ÖLÇER -- İkisini birlikte, Futbol kısmında 'local function updInfo()' satırının HEMEN ÜSTÜNE yapıştır. -- (FB tablosu ve duvar algılama BYS_HEPSI.lua'nın son sürümünde zaten var; bunlar onun üstüne eklenir.) ---------------------------------------------------------------------- -- 1) ENGEL KAYDI: top takıldığında önündeki bloğun kimliği, konumu, adı ve sahibi kaydedilir -- her takılma -> BYS_Futbol_takilma.txt (ayrıntılı satır) -- bütün engellerin özeti -> BYS_Futbol_engeller.txt (her takılmada yeniden yazılır) ---------------------------------------------------------------------- FB.obs = {} -- kimlik -> { bilgi, sayı } FB.obsN = 0 local oldBlocked = FB.blocked function FB.blocked(pp, goal) local w = oldBlocked(pp, goal) if w then FB.lastPP = pp end -- hangi top takıldı (hemen ardından aynı topun kaydı gelir) return w end -- kimlik: GetDebugId yoksa (çoğu executor izin vermez) ad + yuvarlanmış konum -- (sadece ad olursa haritadaki bütün "Part"lar tek engel sayılırdı) function FB.idOf(inst) local ok, id = pcall(function() return inst:GetDebugId() end) if ok and id then return id end local ok2, p = pcall(function() return inst.Position end) if ok2 and p then return ("%s@%d,%d,%d"):format(inst.Name, math.floor(p.X + 0.5), math.floor(p.Y + 0.5), math.floor(p.Z + 0.5)) end return tostring(inst.Name) end function FB.v3(v) return ("(%.1f, %.1f, %.1f)"):format(v.X, v.Y, v.Z) end function FB.ownerOf(inst) if inst:IsA("Terrain") then return "zemin (Terrain)" end local blocks = Workspace:FindFirstChild("Blocks") if blocks and inst:IsDescendantOf(blocks) then local cur = inst while cur.Parent and cur.Parent ~= blocks do cur = cur.Parent end return "blok sahibi " .. cur.Name end return "harita" end function FB.writeSummary() local list = {} for _, o in pairs(FB.obs) do list[#list + 1] = o end table.sort(list, function(a, b) return a.n > b.n end) local out = { ("=== BYS Futbol engeller (%s) • %d farklı engel ==="):format(os.date("%Y-%m-%d %H:%M:%S"), #list) } for i, o in ipairs(list) do out[#out + 1] = ("%d) %dx takılma | %s | kimlik %s | %s"):format(i, o.n, o.name, o.id, o.owner) out[#out + 1] = (" yol: %s"):format(o.path) out[#out + 1] = (" konum %s | boyut %s | malzeme %s | Anchored=%s"):format(o.pos, o.size, o.mat, o.anch) out[#out + 1] = (" son: %s | top %s | oyuncuya %.1f stud"):format(o.last, o.ball, o.flat) end pcall(function() if writefile then writefile("BYS_Futbol_engeller.txt", table.concat(out, "\n") .. "\n") end end) end function FB.record(flat, real, inst, spd, launched) local i = FB.binOf(flat) local t = launched and FB.hit or FB.skip t[i] = (t[i] or 0) + 1 local id = FB.idOf(inst) local o = FB.obs[id] if not o then FB.obsN = FB.obsN + 1 o = { id = id, n = 0 } pcall(function() o.name = inst.Name o.path = inst:GetFullName() o.owner = FB.ownerOf(inst) o.pos = FB.v3(inst.Position) o.size = FB.v3(inst.Size) o.mat = (tostring(inst.Material):gsub("^Enum%.Material%.", "")) o.anch = tostring(inst.Anchored) end) o.name, o.path, o.owner = o.name or "?", o.path or "?", o.owner or "?" o.pos, o.size, o.mat, o.anch = o.pos or "?", o.size or "?", o.mat or "?", o.anch or "?" FB.obs[id] = o end o.n = o.n + 1 o.last = os.date("%H:%M:%S") o.flat = flat local pp = FB.lastPP o.ball = (pp and pp.Parent) and FB.v3(pp.Position) or "?" FB.write(("[%s] %s | ENGEL %s | kimlik %s | %s | engel konumu %s | boyut %s | top %s | oyuncuya %.1f stud | hedef noktaya %.1f | top hızı %.1f"):format( o.last, launched and "VURULDU" or "ATLANDI (5 sn bekleme)", o.name, o.id, o.owner, o.pos, o.size, o.ball, flat, real, spd)) FB.writeSummary() end local oldText = FB.text function FB.text() return oldText() .. (FB.obsN > 0 and (" • farklı engel: " .. FB.obsN) or "") end ---------------------------------------------------------------------- -- 2) MESAFE ÖLÇER: topların hedef oyuncuya uzaklığı (kutuda yazı + topların üstünde sayı) -- Topların üstündeki sayı sadece senin ekranında (sunucuya istek gitmez). ---------------------------------------------------------------------- local DIST = { tags = setmetatable({}, { __mode = "k" }), show = true } function DIST.hrp() local p = Targets[1] return p and p.Parent and p.Character and p.Character:FindFirstChild("HumanoidRootPart") end -- halkadaki yerinin hedefe uzaklığı (yarıçap + yükseklik) function DIST.ring() return math.sqrt(S.radius * S.radius + S.height * S.height) end function DIST.color(d) local off = math.abs(d - DIST.ring()) if off <= 3 then return Color3.fromRGB(90, 220, 120) end -- halkada if off <= 15 then return Color3.fromRGB(240, 200, 70) end -- yakın return Color3.fromRGB(240, 90, 90) -- uzak end local distL = Instance.new("TextLabel") distL.Size = UDim2.new(1, -6, 0, 34) distL.BackgroundColor3 = Color3.fromRGB(28, 50, 80) distL.Font = Enum.Font.GothamBold distL.TextSize = 11 distL.TextColor3 = C.txt distL.TextWrapped = true distL.TextXAlignment = Enum.TextXAlignment.Left distL.Text = " Mesafe: ölçülüyor..." distL.LayoutOrder = nextOrder() distL.Parent = body corner(distL, 6) local distB = button("", nil, function() end) local function distDraw() distB.Text = "Topların üstünde mesafe yazsın: " .. (DIST.show and "AÇIK" or "KAPALI") end distB.MouseButton1Click:Connect(function() DIST.show = not DIST.show distDraw() end) distDraw() local function distTag(b) local t = DIST.tags[b.part] if t and t.Parent then return t end t = Instance.new("BillboardGui") t.Name = "BYS_Mesafe" t.Size = UDim2.fromOffset(60, 20) t.StudsOffset = Vector3.new(0, 2.2, 0) t.AlwaysOnTop = true t.Adornee = b.part local l = Instance.new("TextLabel") l.Name = "Sayi" l.Size = UDim2.fromScale(1, 1) l.BackgroundTransparency = 1 l.Font = Enum.Font.GothamBold l.TextScaled = true l.TextStrokeTransparency = 0.3 l.Parent = t -- topun içine değil arayüze konur: topun modeline yabancı nesne girmez, top silinince de etiket kalmaz t.Parent = gui DIST.tags[b.part] = t return t end task.spawn(function() while not S.closed do task.wait(0.2) pcall(function() local hrp = DIST.hrp() local list = aliveBalls() local mn, mx, sum, ring, n = math.huge, 0, 0, 0, #list local alive = {} for _, b in ipairs(list) do alive[b.part] = true local d = hrp and (b.part.Position - hrp.Position).Magnitude if d then mn, mx, sum = math.min(mn, d), math.max(mx, d), sum + d if math.abs(d - DIST.ring()) <= 3 then ring = ring + 1 end end if DIST.show and d then local t = distTag(b) t.Enabled = true t.Sayi.Text = ("%.0f"):format(d) t.Sayi.TextColor3 = DIST.color(d) elseif DIST.tags[b.part] then DIST.tags[b.part].Enabled = false end end -- silinen topların etiketlerini kaldır for part, t in pairs(DIST.tags) do if not alive[part] then pcall(function() t:Destroy() end) DIST.tags[part] = nil end end if not hrp then distL.Text = " Mesafe: hedef seçili değil" elseif n == 0 then distL.Text = " Mesafe: top yok" else distL.Text = (" Hedefe uzaklık (stud): en yakın %.1f • ortalama %.1f • en uzak %.1f\n Halkada (±3 stud): %d / %d top"):format(mn, sum / n, mx, ring, n) end end) end for _, t in pairs(DIST.tags) do pcall(function() t:Destroy() end) end end) local refreshPlayers local function whyText() local w = Lock.why return ("Yukarı vuruş: takılma %d • yeni kişi %d • ölüm %d • uzak top %d • yeni top %d • yükseklik düzeltme %d"):format(w.stuck, w.newp, w.death or 0, w.far or 0, w.newb, w.lift) end local function updInfo() local names = {} for _, p in ipairs(Targets) do names[#names + 1] = p.Name end local n = #aliveBalls() if #names == 0 then tgtInfo.Text = ("Hedef yok • takip bırakıldı • %d top\n%s\n%s\n%s\n%s"):format(n, diagText(), whyText(), FB.text(), CL.text()) else tgtInfo.Text = ("Hedef: %s • %d top\n%s\n%s\n%s\n%s"):format(table.concat(names, ", "), n, diagText(), whyText(), FB.text(), CL.text()) end end refreshPlayers = function() for _, c in ipairs(listBox:GetChildren()) do if c:IsA("Frame") then c:Destroy() end end -- ayrılan oyuncuları hedeften çıkar for i = #Targets, 1, -1 do if not Targets[i].Parent then table.remove(Targets, i) end end -- en fazla 1 hedef while #Targets > 1 do table.remove(Targets) end local plist = Players:GetPlayers() table.sort(plist, function(a, b) if a == LP then return true elseif b == LP then return false end return a.Name:lower() < b.Name:lower() end) for i, p in ipairs(plist) do local row = Instance.new("Frame") row.Size = UDim2.new(1, 0, 0, 26) row.BackgroundColor3 = isTarget(p) and Color3.fromRGB(40, 90, 60) or C.panel row.LayoutOrder = i row.Parent = listBox corner(row, 5) local sel = Instance.new("TextButton") sel.Size = UDim2.new(1, -40, 1, 0) sel.BackgroundTransparency = 1 sel.Font = Enum.Font.Gotham sel.TextSize = 12 sel.TextColor3 = C.txt sel.TextXAlignment = Enum.TextXAlignment.Left sel.TextTruncate = Enum.TextTruncate.AtEnd local mark = isTarget(p) and "✔ " or " " local nm = (p.DisplayName ~= p.Name) and (p.DisplayName .. " (@" .. p.Name .. ")") or p.Name sel.Text = " " .. mark .. nm .. (p == LP and " [ben]" or "") sel.Parent = row sel.MouseButton1Click:Connect(function() -- TEK KİŞİ: en fazla 1 hedef; başka birini seçince eski seçim bırakılır if isTarget(p) then Targets = {} else Targets = { p } relaunchAll() -- yeni hedef: önce yukarı vur end refreshPlayers() end) local eye = Instance.new("TextButton") eye.Size = UDim2.fromOffset(34, 22) eye.Position = UDim2.new(1, -37, 0, 2) eye.BackgroundColor3 = (Spec.plr == p) and C.acc or C.bg eye.Font = Enum.Font.GothamBold eye.TextSize = 13 eye.TextColor3 = C.txt eye.Text = "👁" eye.Parent = row corner(eye, 4) eye.MouseButton1Click:Connect(function() if Spec.plr == p or p == LP then setSpec(nil) else setSpec(p) end status(Spec.plr and ("İzleniyor: " .. Spec.plr.Name) or "İzleme kapalı") refreshPlayers() end) end updInfo() pcall(syncHighlights) end button("Seçimi temizle (takibi bırak)", nil, function() Targets = {} refreshPlayers() end) button("İzlemeyi bırak", nil, function() setSpec(nil) status("İzleme kapalı") refreshPlayers() end) button("Tepki ölçümünü / yukarı vuruş sayacını sıfırla", nil, function() Diag.yes, Diag.no = {}, {} Lock.why = { stuck = 0, newp = 0, newb = 0, lift = 0, death = 0, far = 0 } FB.hit, FB.skip = {}, {} CL.fails = 0 if FB.obs then FB.obs, FB.obsN = {}, 0 end pcall(updInfo) end) Players.PlayerAdded:Connect(function() if not S.closed then refreshPlayers() end end) Players.PlayerRemoving:Connect(function(p) if S.closed then return end if Spec.plr == p then setSpec(nil) end task.defer(refreshPlayers) end) refreshPlayers() task.spawn(function() while not S.closed do task.wait(1) pcall(updInfo) end end) header("HALKA") number("Yarıçap", "radius", 0, 200, 0.25, 2) number("Yükseklik", "height", -50, 200, 0.25, 2) number("Dönme hızı", "orbit", -20, 20, 0.25, 2) ---------------------------------------------------------------------- -- GÖKKUŞAĞI: yazı kısmındaki gökkuşağının aynısı. Her top halkadaki sırasına göre renk alır, -- "akan" modda renkler toptan topa kayar. Senin ekranında her karede (pürüzsüz), herkes için -- belli aralıkla sadece rengi değişen toplar PaintingTool ile boyanır. Top koyma sürerken boyanmaz. ---------------------------------------------------------------------- HDR[3] = header("RGB") local RB = { last = setmetatable({}, { __mode = "k" }) } function RB.color(i) local shift = S.rbAnim and os.clock() * S.rbSpeed or 0 return Color3.fromHSV((((i - 1) * S.rbStep) + shift) % 1, 0.9, 1) end function RB.close(a, b) return a and b and math.abs(a.R - b.R) + math.abs(a.G - b.G) + math.abs(a.B - b.B) < 0.03 end function RB.toggle(t, key) local b = button("", nil, function() end) local function draw() b.Text = t .. ": " .. (S[key] and "AÇIK" or "KAPALI") b.BackgroundColor3 = S[key] and Color3.fromRGB(40, 90, 60) or C.panel end b.MouseButton1Click:Connect(function() S[key] = not S[key] if key == "rbAnim" then S.rb = S.rbAnim end draw() Save.soon() end) draw() SHOW[b] = true end -- tek düğme: Akan gökkuşağı açıkken gökkuşağı da açık S.rb = S.rbAnim and true or false RB.toggle("RGB", "rbAnim") number("Akış hızı (tur/sn)", "rbSpeed", 0, 5, 0.05, 2) number("Toplar arası renk farkı", "rbStep", 0, 1, 0.01, 2) number("Boyama aralığı (sn, herkes görsün)", "rbEvery", 0.2, 5, 0.1, 1) -- senin ekranında: her karede RB.conn = game:GetService("RunService").RenderStepped:Connect(function() if S.closed then RB.conn:Disconnect() return end if not S.rb then return end for i, b in ipairs(Balls) do if b.part.Parent then b.part.Color = RB.color(i) end end end) -- herkes için: aralıkla, sadece rengi değişen toplar tek istekle boyanır task.spawn(function() while not S.closed do task.wait(math.max(0.2, S.rbEvery)) if S.rb and not S.busy and not Lock.switching then local list = aliveBalls() local batch = {} for i, b in ipairs(list) do local c = RB.color(i) if not RB.close(RB.last[b.model], c) then batch[#batch + 1] = { b.model, c } end end if #batch > 0 then S.busy = true local ok = pcall(function() local rf = getRF("PaintingTool") if rf then rf:InvokeServer(batch) for _, w in ipairs(batch) do RB.last[w[1]] = w[2] end end end) unequipAll() S.busy = false if not ok then status("Gökkuşağı boyama hatası", C.bad) end end end end end) -- EKRANDA SADECE: başlıklar, TOPLARI KOY / DURDUR / TOPLARI SİL, oyuncu listesi, Gökkuşağı / Akan gökkuşağı for _, h in ipairs(HDR) do SHOW[h] = true end for _, c in ipairs(body:GetChildren()) do if c:IsA("GuiObject") and not SHOW[c] then c.Visible = false end end -- sürükleme do local drag, start, startPos top.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then drag, start, startPos = true, i.Position, main.Position end end) UIS.InputChanged:Connect(function(i) if drag and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then local d = i.Position - start main.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + d.X, startPos.Y.Scale, startPos.Y.Offset + d.Y) end end) UIS.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then drag = false end end) end local mini = false topBtn("–", -60, function() mini = not mini body.Visible, statusL.Visible = not mini, not mini main.Size = mini and UDim2.fromOffset(300, 32) or UDim2.fromOffset(300, 500) end) topBtn("X", -30, function() HOST.closeAll() end) status("Hazır • envanterde " .. tostring(ballValue() and ballValue().Value or 0) .. " top" .. (Save.loaded and " • ayarlar yüklendi" or (writefile and "" or " • kayıt desteklenmiyor"))) return { main = main, close = function() pcall(Save.write) S.closed, S.abort = true, true end } end local function APP_KOYSIL(HOST) --[[ BYS • Koy + Sil (BABFT) - izleme kaydındaki işlemin BİREBİR aynısı Kayıt 2 (10:42, asıl işlem) = SERİ MOD: BuildingTool.RF:InvokeServer("WoodBlock", , HumanoidRootPart, CFrame(0, Y, 0), true) x3 -> 0.37 sn arayla, Y: -2 -> -1.65 -> -1.3 (her blok +0.35) son koymadan 0.59 sn sonra 3 DeleteTool.RF:InvokeServer() AYNI ANDA Kayıt 1 (10:38) = TEK TEK MOD: koy -> ~0.65 sn -> sil, turlar arası bekleme Bu script aynı 5 argümanı, aynı sırayla, aynı aletlerle gönderir. ]] local Players = game:GetService("Players") local UIS = game:GetService("UserInputService") local Workspace = game:GetService("Workspace") local CoreGui = game:GetService("CoreGui") local LP = Players.LocalPlayer local S = { block = "WoodBlock", -- kayıttaki blok y0 = -2, -- ilk Y (Otomatik Y KAPALIYKEN kullanılır) yStep = 0.35, -- her blok Y artışı (kayıt: hep 0.35) autoY = true, -- OTOMATİK Y: ilk Y = -(kök parça boyu / 2 + blok boyu / 2) -- orijinal kayıt: normal (kök 2) -> -2 | büyük (kök 4) -> -3 | küçük (kök 1) -> -1.5 blockHalf = 1, -- blok boyunun yarısı (WoodBlock 2 stud -> 1) yFix = 0, -- ince ayar (ilk Y'ye eklenir) yMax = -1.01, -- Y üst sınırı (orijinal: hiçbir boyda -1.01'in üstüne çıkmıyor) useYMax = true, exactRot = true, -- kayıttaki CFrame dönüş sayılarının AYNISI (1,0,0, 0,0,0, 0,1,0) wrap = true, -- Y belli adımdan sonra başa sarsın (kafanın üstüne çıkmasın) wrapN = 6, -- kaç adımda başa sarsın (kayıtta en fazla 6 adım görüldü: -3 ... -1.25) lastBase = nil, -- boy değişince sayaç sıfırlansın diye others = false, -- DİĞER OYUNCULAR modu: ben hariç seçili oyunculara yapar delDelay = 0, -- koyduktan kaç sn sonra silinsin (0 = blok görünür görünmez) autoShrink = false, -- ALANA GİRİNCE OTOMATİK BLOK KOY (BEN HARİÇ: alana giren oyuncuya) autoMode = "team", -- "team" = sadece takım arkadaşları | "all" = herkes (ben hariç) autoRounds = 3, -- otomatikte her oyuncuya kaç blok konsun watchBody = false, -- vücut parçası izleme: her turdan sonra hangi parça nereye kaydı / boyutu ne oldu rounds = 3, -- kaç tur (kayıt: 3) gap = 0.05, -- turlar arası bekleme sn doDelete = true, -- silme adımı açık/kapalı burstGap = 0.37, -- SERİ: koymalar arası (kayıt 2: 0.37-0.40 sn, istek başlangıcından) burstDel = 0.59, -- SERİ: son koymadan kaç sn sonra hepsi birden silinsin (kayıt 2: 0.59) busy = false, abort = false, closed = false, round = 0, } ---------------------------------------------------------------------- -- YARDIMCILAR ---------------------------------------------------------------------- local function hum() return LP.Character and LP.Character:FindFirstChildOfClass("Humanoid") end local function unequipAll() local h = hum() if h then pcall(function() h:UnequipTools() end) end end local function equip(name) local ch = LP.Character if not ch then return nil end local t = ch:FindFirstChild(name) if t then return t end local bp = LP:FindFirstChildOfClass("Backpack") t = bp and bp:FindFirstChild(name) if not t then return nil end local h = hum() if h then pcall(function() h:EquipTool(t) end) local t0 = os.clock() while t.Parent ~= ch and os.clock() - t0 < 0.3 do task.wait() end end return ch:FindFirstChild(name) or t end local function getRF(name) local t = equip(name) return t and (t:FindFirstChild("RF") or t:FindFirstChildWhichIsA("RemoteFunction")) end -- ilk Y: otomatikse karakterin boyuna göre -- ilk Y: tahtanın üstü tam kök parçanın altına gelsin (ölçüm yok -> zıplama/itilme bozmaz) local function baseY(hrp) if S.autoY and hrp then return -(hrp.Size.Y / 2 + S.blockHalf) + S.yFix end return S.y0 end -- k. blok için Y (k = 0, 1, 2, ...) local function yFor(hrp, k) local y = baseY(hrp) + k * S.yStep if S.useYMax and y > S.yMax then y = S.yMax end return y end -- 4. argüman: kayıttaki CFrame bileşenleri birebir -- CFrame(0, Y, 0, 1,0,0, 0,0,0, 0,1,0) local function relCF(y) if S.exactRot then return CFrame.new(0, y, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0) end return CFrame.new(0, y, 0) end -- sıradaki adım (kayıtta sayaç devam ediyor; istenirse tur sayısında başa sarar) local function nextK() -- boy değiştiyse (şeker yedin) sayaç baştan local hrp = LP.Character and LP.Character:FindFirstChild("HumanoidRootPart") local b = baseY(hrp) if S.lastBase and math.abs(b - S.lastBase) > 0.01 then S.round = 0 end S.lastBase = b if S.wrap then return S.round % math.max(1, math.floor(S.wrapN)) end return S.round end -- oyuncu başına sayaç (diğer oyuncular modu için) local KS = setmetatable({}, { __mode = "k" }) local function kOf(plr, hrp) local st = KS[plr] if not st then st = { round = 0 } KS[plr] = st end local b = baseY(hrp) if st.base and math.abs(b - st.base) > 0.01 then st.round = 0 end -- boyu değişti st.base = b if S.wrap then return st.round % math.max(1, math.floor(S.wrapN)), st end return st.round, st end local Targets = {} -- seçili diğer oyuncular (sadece BENİM TAKIMIMDAKİLER) -- aynı takımda mı (TeamColor.Name aynı): diğer takımlara koyulamıyor local function sameTeam(p) if p == LP then return false end local a, b = LP.TeamColor, p.TeamColor return a ~= nil and b ~= nil and a.Name == b.Name end local function myHrp() return LP.Character and LP.Character:FindFirstChild("HumanoidRootPart") end local function blocksFolder() local b = Workspace:FindFirstChild("Blocks") return b and b:FindFirstChild(LP.Name) end ---------------------------------------------------------------------- -- ARAYÜZ ---------------------------------------------------------------------- local gui = HOST.gui local C = { bg = Color3.fromRGB(22, 24, 30), panel = Color3.fromRGB(32, 35, 44), acc = Color3.fromRGB(80, 160, 255), txt = Color3.fromRGB(235, 238, 245), dim = Color3.fromRGB(150, 156, 170), good = Color3.fromRGB(90, 210, 120), bad = Color3.fromRGB(240, 90, 90), } local function corner(o, r) local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, r or 6) c.Parent = o end local main = Instance.new("Frame") main.Size = UDim2.fromOffset(300, 500) main.Position = HOST.pos main.BackgroundColor3 = C.bg main.BorderSizePixel = 0 main.Parent = gui corner(main, 10) local top = Instance.new("TextLabel") top.Size = UDim2.new(1, 0, 0, 32) top.BackgroundColor3 = C.panel top.Text = "" top.TextXAlignment = Enum.TextXAlignment.Left top.Font = Enum.Font.GothamBold top.TextSize = 14 top.TextColor3 = C.txt top.Active = true top.Parent = main corner(top, 10) HOST.tabs(top, "koysil") local body = Instance.new("ScrollingFrame") body.Size = UDim2.new(1, -12, 1, -44) body.Position = UDim2.fromOffset(6, 38) body.BackgroundTransparency = 1 body.BorderSizePixel = 0 body.ScrollBarThickness = 4 body.AutomaticCanvasSize = Enum.AutomaticSize.Y body.CanvasSize = UDim2.new() body.Parent = main local lay = Instance.new("UIListLayout") lay.Padding = UDim.new(0, 5) lay.SortOrder = Enum.SortOrder.LayoutOrder lay.Parent = body -- kayıt kutusu: her adım zamanıyla yazılır (kayıttakiyle karşılaştır) local logL = Instance.new("TextLabel") logL.Size = UDim2.new(1, -12, 0, 76) logL.Position = UDim2.new(0, 6, 1, -80) logL.BackgroundColor3 = C.panel logL.Font = Enum.Font.Code logL.TextSize = 11 logL.TextColor3 = C.dim logL.TextXAlignment = Enum.TextXAlignment.Left logL.TextYAlignment = Enum.TextYAlignment.Bottom logL.TextWrapped = true logL.Text = "" logL.Visible = false -- kayıt kutusu kaldırıldı (mesajlar sadece konsola yazılır) corner(logL, 6) local lines = {} local t00 = os.clock() local function log(t, col) lines[#lines + 1] = ("[%6.2f] %s"):format(os.clock() - t00, t) while #lines > 5 do table.remove(lines, 1) end logL.Text = table.concat(lines, "\n") logL.TextColor3 = col or C.dim print("[BYS KoySil] " .. lines[#lines]) end local order = 1 local function nextOrder() order = order + 1 return order end -- CANLI GÖSTERGE: o an kullanılacak ilk Y ve sıradaki Y local liveL = Instance.new("TextLabel") liveL.Size = UDim2.new(1, -6, 0, 44) liveL.BackgroundColor3 = Color3.fromRGB(28, 50, 80) liveL.Font = Enum.Font.GothamBold liveL.TextSize = 12 liveL.TextColor3 = Color3.fromRGB(235, 238, 245) liveL.TextWrapped = true liveL.TextXAlignment = Enum.TextXAlignment.Left liveL.Text = " ölçülüyor..." liveL.LayoutOrder = 1 liveL.Visible = false -- mavi gösterge kaldırıldı do local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 6) c.Parent = liveL end local function header(t) local l = Instance.new("TextLabel") l.Size = UDim2.new(1, -6, 0, 18) l.BackgroundTransparency = 1 l.Font = Enum.Font.GothamBold l.TextSize = 12 l.TextColor3 = C.acc l.TextXAlignment = Enum.TextXAlignment.Left l.Text = t l.LayoutOrder = nextOrder() l.Parent = body end local function button(t, col, cb) local b = Instance.new("TextButton") b.Size = UDim2.new(1, -6, 0, 30) b.BackgroundColor3 = col or C.panel b.Font = Enum.Font.GothamBold b.TextSize = 13 b.TextColor3 = C.txt b.Text = t b.LayoutOrder = nextOrder() b.Parent = body corner(b) b.MouseButton1Click:Connect(cb) return b end local function row(t) local r = Instance.new("Frame") r.Size = UDim2.new(1, -6, 0, 28) r.BackgroundColor3 = C.panel r.LayoutOrder = nextOrder() r.Parent = body corner(r) local l = Instance.new("TextLabel") l.Size = UDim2.new(1, -120, 1, 0) l.Position = UDim2.fromOffset(8, 0) l.BackgroundTransparency = 1 l.Font = Enum.Font.Gotham l.TextSize = 12 l.TextColor3 = C.txt l.TextXAlignment = Enum.TextXAlignment.Left l.Text = t l.Parent = r return r end local function number(t, key, mn, mx, step, dec) local r = row(t) local box = Instance.new("TextBox") box.Size = UDim2.fromOffset(52, 22) box.Position = UDim2.new(1, -84, 0, 3) box.BackgroundColor3 = C.bg box.Font = Enum.Font.GothamBold box.TextSize = 12 box.TextColor3 = C.txt box.ClearTextOnFocus = false box.Parent = r corner(box, 4) local fmt = "%." .. (dec or 0) .. "f" local function set(v) v = math.clamp(tonumber(v) or S[key], mn, mx) S[key] = v box.Text = string.format(fmt, v) end local function small(txt, x, d) local b = Instance.new("TextButton") b.Size = UDim2.fromOffset(24, 22) b.Position = UDim2.new(1, x, 0, 3) b.BackgroundColor3 = C.bg b.Font = Enum.Font.GothamBold b.TextSize = 14 b.TextColor3 = C.txt b.Text = txt b.Parent = r corner(b, 4) b.MouseButton1Click:Connect(function() set(S[key] + d) end) end small("-", -112, -step) small("+", -28, step) box.FocusLost:Connect(function() set(box.Text) end) set(S[key]) end local function textField(t, key) local r = row(t) local box = Instance.new("TextBox") box.Size = UDim2.fromOffset(108, 22) box.Position = UDim2.new(1, -112, 0, 3) box.BackgroundColor3 = C.bg box.Font = Enum.Font.GothamBold box.TextSize = 12 box.TextColor3 = C.txt box.ClearTextOnFocus = false box.Text = S[key] box.Parent = r corner(box, 4) box.FocusLost:Connect(function() local v = box.Text:gsub("^%s+", ""):gsub("%s+$", "") if v ~= "" then S[key] = v end box.Text = S[key] end) end local function toggle(t, key) local b = button("", nil, function() end) local function draw() b.Text = t .. ": " .. (S[key] and "AÇIK" or "KAPALI") b.BackgroundColor3 = S[key] and Color3.fromRGB(40, 90, 60) or C.panel end b.MouseButton1Click:Connect(function() S[key] = not S[key] draw() end) draw() end ---------------------------------------------------------------------- -- TEK TUR: koy (5 argüman, kayıttakiyle aynı) -> bekle -> sil ---------------------------------------------------------------------- ---------------------------------------------------------------------- -- VÜCUT PARÇASI İZLEME: tur öncesi/sonrası her parçanın kök parçaya göre yeri ve boyutu -- değişenler kutuya + BYS_vucut_kayit.txt dosyasına yazılır ---------------------------------------------------------------------- local BODY_FILE = "BYS_vucut_kayit.txt" local function bodySnap(hrp) local ch = hrp and hrp.Parent if not ch then return nil end local t = {} for _, d in ipairs(ch:GetDescendants()) do if d:IsA("BasePart") and d ~= hrp then t[d] = { name = d.Name, rel = hrp.CFrame:PointToObjectSpace(d.Position), size = d.Size } end end return { hrpPos = hrp.Position, hrpSize = hrp.Size, parts = t } end local function fileLog(line) if appendfile then pcall(function() appendfile(BODY_FILE, line .. "\n") end) elseif writefile and readfile and isfile then pcall(function() local old = isfile(BODY_FILE) and readfile(BODY_FILE) or "" writefile(BODY_FILE, old .. line .. "\n") end) end end local function v3s(v) return ("%.2f,%.2f,%.2f"):format(v.X, v.Y, v.Z) end local function bodyDiff(a, hrp, tag) if not (a and hrp and hrp.Parent) then return end local b = bodySnap(hrp) if not b then return end local lines = {} local moved = (b.hrpPos - a.hrpPos).Magnitude if moved > 0.3 then lines[#lines + 1] = ("Kök (HumanoidRootPart) %.2f stud gitti: %s -> %s"):format(moved, v3s(a.hrpPos), v3s(b.hrpPos)) end if (b.hrpSize - a.hrpSize).Magnitude > 0.01 then lines[#lines + 1] = ("Kök boyutu: %s -> %s"):format(v3s(a.hrpSize), v3s(b.hrpSize)) end for part, old in pairs(a.parts) do local new = b.parts[part] if not new then lines[#lines + 1] = ("%s: KAYBOLDU"):format(old.name) else local dr = (new.rel - old.rel).Magnitude local ds = (new.size - old.size).Magnitude if dr > 0.2 or ds > 0.01 then local s1 = dr > 0.2 and ("yer %s -> %s (%.2f stud)"):format(v3s(old.rel), v3s(new.rel), dr) or "" local s2 = ds > 0.01 and ("boyut %s -> %s"):format(v3s(old.size), v3s(new.size)) or "" lines[#lines + 1] = ("%s: %s %s"):format(old.name, s1, s2) end end end for part, new in pairs(b.parts) do if not a.parts[part] then lines[#lines + 1] = ("%s: YENİ parça (%s)"):format(new.name, v3s(new.rel)) end end local stamp = os.date("%H:%M:%S") if #lines == 0 then fileLog(("[%s] %s: vücutta değişiklik yok"):format(stamp, tag)) return 0 end fileLog(("[%s] %s: %d değişiklik"):format(stamp, tag, #lines)) for _, l in ipairs(lines) do fileLog(" " .. l) print("[BYS Vücut] " .. l) end return #lines, lines[1] end local function oneRoundRaw(y, hrpArg) local ch = LP.Character local hrp = hrpArg or (ch and ch:FindFirstChild("HumanoidRootPart")) if not hrp or not hrp.Parent then log("Karakter yok", C.bad) return false end local snap = S.watchBody and bodySnap(hrp) or nil local function reportBody(tag) if not snap then return end task.delay(0.35, function() -- sunucu değişikliği yansısın local n, first = bodyDiff(snap, hrp, tag) if n and n > 0 then log(("VÜCUT: %d parça değişti • %s"):format(n, first), Color3.fromRGB(255, 200, 80)) elseif n == 0 then log("VÜCUT: değişiklik yok") end end) end local d = LP:FindFirstChild("Data") local dv = d and d:FindFirstChild(S.block) if not dv then log(S.block .. " envanterde yok", C.bad) return false end local folder = blocksFolder() local seen = {} if folder then for _, c in ipairs(folder:GetChildren()) do seen[c] = true end end -- 1) KOY: BuildingTool.RF:InvokeServer(isim, sayı, HumanoidRootPart, CFrame(0,Y,0), true) local rf = getRF("BuildingTool") if not rf then log("BuildingTool yok", C.bad) return false end local cnt = dv.Value -- araç alındıktan sonra güncel sayı (kayıtta 11171) local tSend = os.clock() local ok, err = pcall(function() rf:InvokeServer(S.block, cnt, hrp, relCF(y), true) end) local tAns = os.clock() - tSend if not ok then log("Koyma hatası: " .. tostring(err), C.bad) return false end log(("KOY %s Y=%.2f sayı=%s cevap %.2f sn"):format(S.block, y, tostring(cnt), tAns)) -- konan bloğu bul (kayıtta ~0.22 sn'de göründü) local blk local t0 = os.clock() while not blk and os.clock() - t0 < 3 do folder = folder or blocksFolder() if folder then for _, c in ipairs(folder:GetChildren()) do if not seen[c] and c:IsA("Model") and c.Name == S.block then blk = c break end end end if not blk then task.wait() end end if not blk then log("Blok görünmedi (3 sn)", C.bad) return false end log(("Blok göründü %.2f sn"):format(os.clock() - tSend)) if not S.doDelete then unequipAll() reportBody(("Y=%.2f koy"):format(y)) return true end -- 2) SİL: koyma isteğinden S.delDelay sn sonra (kayıtta 0.57-0.75 sn) local left = S.delDelay - (os.clock() - tSend) if left > 0 then task.wait(left) end if S.abort then return false end local drf = getRF("DeleteTool") if not drf then log("DeleteTool yok", C.bad) return false end local tDel = os.clock() pcall(function() drf:InvokeServer(blk) end) unequipAll() -- her silmeden sonra aracı bırak reportBody(("Y=%.2f koy+sil"):format(y)) log(("SİL (koymadan %.2f sn sonra) cevap %.2f sn"):format(tDel - tSend, os.clock() - tDel), C.good) return true end ---------------------------------------------------------------------- -- SERİ MOD (kayıt 2): N blok arka arkaya (0.37 sn arayla, Y +0.35) -> 0.59 sn -> hepsi AYNI ANDA silinir ---------------------------------------------------------------------- -- hata olsa bile "meşgul" takılı kalmasın local function oneRound(y, hrp) local ok, res = pcall(oneRoundRaw, y, hrp) if not ok then log("Hata: " .. tostring(res), C.bad) unequipAll() return false end return res end -- (canlı gösterge kaldırıldı) local function busyMsg() log("Meşgul: önceki işlem bitmedi (gerekirse DURDUR)", C.bad) end local function runBurst() if S.busy then busyMsg() return end S.busy, S.abort = true, false task.spawn(function() local ch = LP.Character local hrp = ch and ch:FindFirstChild("HumanoidRootPart") local d = LP:FindFirstChild("Data") local dv = d and d:FindFirstChild(S.block) local rf = hrp and dv and getRF("BuildingTool") if not rf then log(not hrp and "Karakter yok" or not dv and (S.block .. " envanterde yok") or "BuildingTool yok", C.bad) S.busy = false return end local folder = blocksFolder() local seen = {} if folder then for _, c in ipairs(folder:GetChildren()) do seen[c] = true end end local n = math.floor(S.rounds) local lastSend = 0 for i = 1, n do if S.abort or S.closed then break end -- bir önceki koyma İSTEĞİNİN başından burstGap sn sonra gönder if i > 1 then local left = S.burstGap - (os.clock() - lastSend) if left > 0 then task.wait(left) end end local y = yFor(hrp, nextK()) S.round = S.round + 1 local cnt = dv.Value lastSend = os.clock() local t1 = lastSend pcall(function() rf:InvokeServer(S.block, cnt, hrp, relCF(y), true) end) log(("KOY %d/%d Y=%.2f sayı=%s cevap %.2f sn"):format(i, n, y, tostring(cnt), os.clock() - t1)) end -- konan blokları topla (kayıtta ~0.24 sn'de görünüyor) local blocks = {} local t0 = os.clock() while os.clock() - t0 < 3 do blocks = {} folder = folder or blocksFolder() if folder then for _, c in ipairs(folder:GetChildren()) do if not seen[c] and c:IsA("Model") and c.Name == S.block then blocks[#blocks + 1] = c end end end if #blocks >= n then break end task.wait() end log(("%d / %d blok göründü"):format(#blocks, n), #blocks >= n and C.good or C.bad) if S.doDelete and #blocks > 0 and not S.abort then -- son koymadan burstDel sn sonra local left = S.burstDel - (os.clock() - lastSend) if left > 0 then task.wait(left) end local drf = getRF("DeleteTool") if not drf then log("DeleteTool yok", C.bad) S.busy = false return end local tDel = os.clock() local pending = #blocks for _, b in ipairs(blocks) do task.spawn(function() -- HEPSİ AYNI ANDA pcall(function() drf:InvokeServer(b) end) pending = pending - 1 end) end local w0 = os.clock() while pending > 0 and os.clock() - w0 < 5 do task.wait() end unequipAll() -- silmeden sonra aracı bırak log(("SİL %d blok aynı anda (son koymadan %.2f sn sonra) cevap %.2f sn"):format(#blocks, tDel - lastSend, os.clock() - tDel), C.good) end S.busy = false end) end -- bu tur kime yapılacak: ben, ya da (mod açıksa) seçili diğer oyuncular local function victims(team) local out = {} if team then for _, p in ipairs(Targets) do local r = p.Parent and sameTeam(p) and p.Character and p.Character:FindFirstChild("HumanoidRootPart") if r then out[#out + 1] = { plr = p, hrp = r } end end else local r = myHrp() if r then out[1] = { plr = LP, hrp = r, me = true } end end return out end -- tek bir kişiye bir tur (koy + sil); sayaç o kişiye ait local function roundFor(v, tag) local k, st if v.me then k = nextK() else k, st = kOf(v.plr, v.hrp) end local y = yFor(v.hrp, k) log(("%s • %s • adım %d • Y=%.2f"):format(tag, v.me and "ben" or v.plr.Name, k + 1, y), C.acc) local ok = oneRound(y, v.hrp) if ok then if v.me then S.round = k + 1 else st.round = k + 1 end else unequipAll() end return ok end local function runOnce(team) if S.busy then busyMsg() return end S.busy, S.abort = true, false task.spawn(function() local list = victims(team) if #list == 0 then log(team and "Seçili takım arkadaşı yok" or "Karakter yok", C.bad) end for _, v in ipairs(list) do if S.abort or S.closed then break end roundFor(v, "1 TUR") end S.busy = false end) end local function runSeq(team) if S.busy then busyMsg() return end S.busy, S.abort = true, false task.spawn(function() for i = 1, S.rounds do if S.abort or S.closed then break end local list = victims(team) if #list == 0 then log(team and "Seçili takım arkadaşı yok" or "Karakter yok", C.bad) break end local anyOk = false for _, v in ipairs(list) do if S.abort or S.closed then break end if roundFor(v, ("Tur %d/%d"):format(i, S.rounds)) then anyOk = true end end if not anyOk then break end if i < S.rounds then local w0 = os.clock() while os.clock() - w0 < S.gap and not S.abort and not S.closed do task.wait(0.05) end end end log(S.abort and "Durduruldu" or "Bitti", S.abort and C.bad or C.good) S.busy = false end) end ---------------------------------------------------------------------- -- İÇERİK ---------------------------------------------------------------------- ---------------------------------------------------------------------- -- ALANA GİRİNCE OTOMATİK KÜÇÜLT: takım alanına (blok koyma alanı) girdiğin an SIRAYLA: KENDİME ---------------------------------------------------------------------- local ZONE_BY_TEAM = { ["White"] = "WhiteZone", ["Really blue"] = "Really blueZone", ["Camo"] = "CamoZone", ["New Yeller"] = "New YellerZone", ["Black"] = "BlackZone", ["Magenta"] = "MagentaZone", ["Really red"] = "Really redZone", } local function myZone() local tc = LP.TeamColor and LP.TeamColor.Name if not tc then return nil end return Workspace:FindFirstChild(ZONE_BY_TEAM[tc] or (tc .. "Zone")) end local function inZone(hrp) local z = myZone() if not (z and z:IsA("BasePart") and hrp) then return false end local r = z.CFrame:PointToObjectSpace(hrp.Position) return math.abs(r.X) <= z.Size.X / 2 and math.abs(r.Z) <= z.Size.Z / 2 and r.Y > -20 and r.Y < 400 end -- BEN HARİÇ: mod TAKIM = sadece takım arkadaşları, HERKES = bütün oyuncular local function autoEligible(p) if p == LP or not p.Parent then return false end if S.autoMode == "all" then return true end return sameTeam(p) end local AutoQ, AutoIn = {}, {} -- sıra (alana girenler) local AutoWas = setmetatable({}, { __mode = "k" }) -- oyuncu son kontrolde alanda mıydı local function autoRun() if S.busy or #AutoQ == 0 then return end S.busy, S.abort = true, false task.spawn(function() while #AutoQ > 0 and S.autoShrink and not (S.abort or S.closed) do local p = table.remove(AutoQ, 1) AutoIn[p] = nil local n = math.max(1, math.floor(S.autoRounds)) for i = 1, n do if S.abort or S.closed or not S.autoShrink or not autoEligible(p) then break end local r = p.Character and p.Character:FindFirstChild("HumanoidRootPart") if not r then break end if not roundFor({ plr = p, hrp = r }, ("OTO %d/%d"):format(i, n)) then break end if i < n then local w0 = os.clock() while os.clock() - w0 < S.gap and not S.abort and not S.closed do task.wait(0.05) end end end end if S.abort then AutoQ, AutoIn = {}, {} end S.busy = false end) end task.spawn(function() while not S.closed do task.wait(0.25) for _, p in ipairs(Players:GetPlayers()) do local r = p.Character and p.Character:FindFirstChild("HumanoidRootPart") local now = (r and autoEligible(p) and inZone(r)) or false if S.autoShrink and AutoWas[p] == false and now and not AutoIn[p] then AutoIn[p] = true AutoQ[#AutoQ + 1] = p log(p.Name .. " alana girdi • " .. math.floor(S.autoRounds) .. " blok konacak", Color3.fromRGB(120, 200, 255)) end AutoWas[p] = now end if S.autoShrink then autoRun() end end end) header("KAÇ BLOK (SIRAYLA düğmeleri bu kadar koyar)") number("Kaç blok koyulsun", "rounds", 1, 1000, 1, 0) -- kaç blok ayarı kaydedilsin do local FILE = "BYS_Kucultucu_ayar.json" local Http = game:GetService("HttpService") pcall(function() if isfile and isfile(FILE) then local t = Http:JSONDecode(readfile(FILE)) if type(t.rounds) == "number" then S.rounds = math.clamp(math.floor(t.rounds), 1, 1000) end if type(t.autoRounds) == "number" then S.autoRounds = math.clamp(math.floor(t.autoRounds), 1, 1000) end if t.autoMode == "all" or t.autoMode == "team" then S.autoMode = t.autoMode end end end) task.spawn(function() local function sig() return S.rounds .. "|" .. S.autoRounds .. "|" .. S.autoMode end local last = sig() while not S.closed do task.wait(1) if sig() ~= last and writefile then last = sig() pcall(function() writefile(FILE, Http:JSONEncode({ rounds = S.rounds, autoRounds = S.autoRounds, autoMode = S.autoMode })) end) end end end) end header("1 TUR (koy -> sil)") button("KENDİME", Color3.fromRGB(40, 90, 160), function() runOnce(false) end) button("TAKIM ARKADAŞLARINA", Color3.fromRGB(40, 110, 70), function() runOnce(true) end) header("SIRAYLA (yukarıdaki blok sayısı kadar)") button("SIRAYLA: KENDİME", nil, function() runSeq(false) end) button("SIRAYLA: TAKIM ARKADAŞLARINA", nil, function() runSeq(true) end) button("DURDUR", Color3.fromRGB(150, 110, 30), function() S.abort = true log("Durduruluyor...") end) header("OTOMATİK (alana giren oyuncuya, BEN HARİÇ)") toggle("OTOMATİK KÜÇÜLTME", "autoShrink") do local b = button("", nil, function() end) local function draw() local all = S.autoMode == "all" b.Text = "MOD: " .. (all and "HERKES (ben hariç)" or "TAKIM ARKADAŞLARI") b.BackgroundColor3 = all and Color3.fromRGB(120, 70, 150) or Color3.fromRGB(40, 110, 70) end b.MouseButton1Click:Connect(function() S.autoMode = (S.autoMode == "all") and "team" or "all" draw() log("Otomatik mod: " .. (S.autoMode == "all" and "HERKES" or "TAKIM")) end) draw() end number("Otomatikte kaç blok konsun", "autoRounds", 1, 1000, 1, 0) header("TAKIM ARKADAŞLARI (seç)") local plBox = Instance.new("Frame") plBox.Size = UDim2.new(1, -6, 0, 0) plBox.AutomaticSize = Enum.AutomaticSize.Y plBox.BackgroundTransparency = 1 plBox.LayoutOrder = nextOrder() plBox.Parent = body do local l = Instance.new("UIListLayout") l.Padding = UDim.new(0, 3) l.SortOrder = Enum.SortOrder.LayoutOrder l.Parent = plBox end local function isT(p) for i, q in ipairs(Targets) do if q == p then return i end end return nil end local refreshPl refreshPl = function() for _, c in ipairs(plBox:GetChildren()) do if c:IsA("TextButton") then c:Destroy() end end -- ayrılan / takım değiştiren oyuncular seçimden çıkar for i = #Targets, 1, -1 do if not Targets[i].Parent or not sameTeam(Targets[i]) then table.remove(Targets, i) end end local list = Players:GetPlayers() table.sort(list, function(a, b) return a.Name:lower() < b.Name:lower() end) local n = 0 for _, p in ipairs(list) do if sameTeam(p) then n = n + 1 local b = Instance.new("TextButton") b.Size = UDim2.new(1, 0, 0, 24) b.BackgroundColor3 = isT(p) and Color3.fromRGB(40, 90, 60) or C.panel b.Font = Enum.Font.Gotham b.TextSize = 12 b.TextColor3 = C.txt b.TextXAlignment = Enum.TextXAlignment.Left b.TextTruncate = Enum.TextTruncate.AtEnd local nm = (p.DisplayName ~= p.Name) and (p.DisplayName .. " (@" .. p.Name .. ")") or p.Name b.Text = " " .. (isT(p) and "✔ " or " ") .. nm b.LayoutOrder = n b.Parent = plBox corner(b, 5) b.MouseButton1Click:Connect(function() local k = isT(p) if k then table.remove(Targets, k) else Targets[#Targets + 1] = p end refreshPl() end) end end end button("Herkesi seç", nil, function() Targets = {} for _, p in ipairs(Players:GetPlayers()) do if sameTeam(p) then Targets[#Targets + 1] = p end end refreshPl() end) button("Seçimi temizle", nil, function() Targets = {} refreshPl() end) -- takım değişince liste yenilensin (ben ya da onlar) local function watchTeam(p) p:GetPropertyChangedSignal("TeamColor"):Connect(function() if not S.closed then refreshPl() end end) end for _, p in ipairs(Players:GetPlayers()) do watchTeam(p) end Players.PlayerAdded:Connect(function(p) watchTeam(p) if not S.closed then refreshPl() end end) Players.PlayerRemoving:Connect(function() if not S.closed then task.defer(refreshPl) end end) refreshPl() -- AYARLAR: varsayılan GİZLİ (otomatik ayarlar yeterli) local setStart = order -- ayarlar bölümü tamamen gizli (otomatik ayarlar kullanılır) local function setVisible(v) for _, c in ipairs(body:GetChildren()) do if c:IsA("GuiObject") and (tonumber(c.LayoutOrder) or 0) > setStart then c.Visible = v end end end button("Y'yi başa al (sıfırla)", nil, function() S.round = 0 for p in pairs(KS) do KS[p] = nil end log(("Sıradaki Y = %.2f"):format(baseY(myHrp()))) end) button("SERİ BAŞLAT (3 koy -> hepsi birden sil, sadece bana)", nil, runBurst) textField("Blok adı", "block") number("İlk Y (Otomatik Y kapalıyken)", "y0", -50, 50, 0.05, 2) number("Her tur Y artışı", "yStep", -10, 10, 0.05, 2) number("TEK TEK: silme gecikmesi (sn)", "delDelay", 0, 10, 0.05, 2) number("SERİ: koymalar arası (sn)", "burstGap", 0, 10, 0.01, 2) number("SERİ: silme gecikmesi (sn)", "burstDel", 0, 10, 0.01, 2) number("TEK TEK: turlar arası (sn)", "gap", 0, 120, 0.5, 1) toggle("Silme adımı", "doDelete") toggle("Otomatik Y (karakter boyuna göre)", "autoY") number("Otomatik Y ince ayar", "yFix", -5, 5, 0.05, 2) toggle("Y üst sınırı", "useYMax") number("Y üst sınırı", "yMax", -20, 20, 0.01, 2) toggle("Kayıttaki dönüş sayıları (birebir)", "exactRot") toggle("Y başa sarsın", "wrap") number("Kaç adımda başa sarsın", "wrapN", 1, 100, 1, 0) setVisible(false) -- ayarlar başta gizli -- sürükleme do local drag, start, startPos top.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then drag, start, startPos = true, i.Position, main.Position end end) UIS.InputChanged:Connect(function(i) if drag and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then local dd = i.Position - start main.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + dd.X, startPos.Y.Scale, startPos.Y.Offset + dd.Y) end end) UIS.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then drag = false end end) end do local b = Instance.new("TextButton") b.Size = UDim2.fromOffset(26, 22) b.Position = UDim2.new(1, -30, 0, 5) b.BackgroundColor3 = C.bg b.Text = "X" b.Font = Enum.Font.GothamBold b.TextSize = 14 b.TextColor3 = C.txt b.Parent = top corner(b, 5) b.MouseButton1Click:Connect(function() HOST.closeAll() end) end -- KÜÇÜLTME: başlıktaki "–" ile sadece başlık kalır do local mini = false local full = main.Size local b = Instance.new("TextButton") b.Size = UDim2.fromOffset(26, 22) b.Position = UDim2.new(1, -60, 0, 5) b.BackgroundColor3 = C.bg b.Text = "–" b.Font = Enum.Font.GothamBold b.TextSize = 14 b.TextColor3 = C.txt b.Parent = top corner(b, 5) b.MouseButton1Click:Connect(function() mini = not mini body.Visible, logL.Visible = not mini, not mini main.Size = mini and UDim2.fromOffset(full.X.Offset, 32) or full b.Text = mini and "+" or "–" end) end do local hrp = myHrp() local h = hrp and hrp.Parent:FindFirstChildOfClass("Humanoid") log(("Hazır • kök boyu %.2f • HipHeight %.2f • ilk Y %.2f"):format( hrp and hrp.Size.Y or 0, h and h.HipHeight or 0, baseY(hrp))) end return { main = main, close = function() S.closed, S.abort = true, true end } end local function APP_DEGDIR(HOST) -- BYS DEĞDİR v7 (sade) -- Kırmızı düğme: içinde RockScript olan kayaları bulur, seçili parçayı -- (LowerTorso / HumanoidRootPart) onlara sahte değdirir. Işınlama yok. -- Her deneme BYS_Degdir_kayit.txt dosyasına yazılır. local Players = game:GetService("Players") local Http = game:GetService("HttpService") local LP = Players.LocalPlayer local VERSION = "v8" local HOLD = 0.15 -- değme kaç sn sürsün local PARTS = { "LowerTorso", "HumanoidRootPart" } local S = { part = "LowerTorso" } local SAVE = "BYS_Degdir_ayar.json" pcall(function() if isfile and isfile(SAVE) then local t = Http:JSONDecode(readfile(SAVE)) if table.find(PARTS, t.part) then S.part = t.part end end end) local function save() pcall(function() if writefile then writefile(SAVE, Http:JSONEncode({ part = S.part })) end end) end local function dbg(o) local ok, v = pcall(function() return o:GetDebugId() end) return ok and v or "?" end local function v3(v) return string.format("(%.2f, %.2f, %.2f)", v.X, v.Y, v.Z) end ---------------------------------------------------------------- kayıt local LOG = "BYS_Degdir_kayit.txt" local T0 = os.clock() local buf = {} local function log(s) buf[#buf + 1] = string.format("[%8.3f] %s", os.clock() - T0, s) end local function flush() if #buf == 0 then return end local txt = table.concat(buf, "\n") .. "\n" buf = {} pcall(function() if appendfile and isfile and isfile(LOG) then appendfile(LOG, txt) elseif writefile then writefile(LOG, ((isfile and isfile(LOG) and readfile(LOG)) or "") .. txt) end end) end pcall(function() if writefile then writefile(LOG, string.format("=== BYS Degdir %s %s | oyuncu %s ===\n", VERSION, os.date("%Y-%m-%d %H:%M:%S"), LP.Name)) end end) local alive = true task.spawn(function() while alive do task.wait(1) flush() end end) ---------------------------------------------------------------- UI local gui = HOST.gui local W, H = 300, 116 local main = Instance.new("Frame", gui) main.Size = UDim2.fromOffset(W, H) main.Position = HOST.pos main.BackgroundColor3 = Color3.fromRGB(25, 25, 30) main.Active = true main.Draggable = true Instance.new("UICorner", main).CornerRadius = UDim.new(0, 8) local title = Instance.new("TextLabel", main) title.Size = UDim2.new(1, -60, 0, 28) title.Position = UDim2.fromOffset(10, 0) title.BackgroundTransparency = 1 title.Text = " GÖZÜKMEZ" HOST.tabs(title, "degdir") title.TextColor3 = Color3.new(1, 1, 1) title.Font = Enum.Font.GothamBold title.TextSize = 14 title.TextXAlignment = Enum.TextXAlignment.Left local function topBtn(txt, x, col) local b = Instance.new("TextButton", main) b.Size = UDim2.fromOffset(24, 22) b.Position = UDim2.new(1, x, 0, 3) b.Text = txt b.BackgroundColor3 = col b.TextColor3 = Color3.new(1, 1, 1) Instance.new("UICorner", b).CornerRadius = UDim.new(0, 5) return b end local mini = topBtn("–", -56, Color3.fromRGB(60, 60, 70)) local close = topBtn("X", -28, Color3.fromRGB(150, 40, 40)) local body = Instance.new("Frame", main) body.Size = UDim2.new(1, -16, 1, -34) body.Position = UDim2.fromOffset(8, 30) body.BackgroundTransparency = 1 local lay = Instance.new("UIListLayout", body) lay.Padding = UDim.new(0, 6) lay.SortOrder = Enum.SortOrder.LayoutOrder local function item(cls, h, order) local o = Instance.new(cls, body) o.Size = UDim2.new(1, 0, 0, h) o.LayoutOrder = order o.BackgroundColor3 = Color3.fromRGB(45, 45, 55) o.TextColor3 = Color3.new(1, 1, 1) o.Font = Enum.Font.Gotham o.TextSize = 12 o.TextWrapped = true Instance.new("UICorner", o).CornerRadius = UDim.new(0, 5) return o end -- CANLI YAZI: o anki durum, sürekli güncellenir local liveL = item("TextLabel", 48, 0) liveL.BackgroundColor3 = Color3.fromRGB(28, 50, 80) liveL.Font = Enum.Font.GothamBold liveL.TextXAlignment = Enum.TextXAlignment.Left liveL.Text = "" liveL.Visible = false -- bilgi kutusu kaldırıldı local stat = item("TextLabel", 40, 1) stat.Text = "" stat.Visible = false -- durum yazısı kaldırıldı local goB = item("TextButton", 44, 2) goB.Text = "GÖZÜKMEZ" goB.Font = Enum.Font.GothamBold goB.TextSize = 16 goB.BackgroundColor3 = Color3.fromRGB(170, 60, 40) local partB = item("TextButton", 26, 3) local function partText() partB.Text = "Değen parça: " .. S.part end partText() partB.MouseButton1Click:Connect(function() S.part = S.part == PARTS[1] and PARTS[2] or PARTS[1] partText() save() end) ---------------------------------------------------------------- iş local function findRocks() local out, n = {}, 0 local char = LP.Character for _, d in ipairs(workspace:GetDescendants()) do n += 1 if n % 3000 == 0 then task.wait() end if d:IsA("BasePart") and not (char and d:IsDescendantOf(char)) and d:FindFirstChild("RockScript") and d:FindFirstChildOfClass("TouchTransmitter") then out[#out + 1] = d end end return out end local function fti(a, b, on) local ok = pcall(firetouchinterest, a, b, on and 0 or 1) if not ok then ok = pcall(firetouchinterest, a, b, on) end return ok end -- parça <-> kaya, iki yönlü, HOLD sn local function touch(p, rock) local ok1 = fti(p, rock, true) local ok2 = fti(rock, p, true) task.wait(HOLD) fti(p, rock, false) fti(rock, p, false) return ok1 or ok2 end local busy = false goB.MouseButton1Click:Connect(function() if busy then return end if not firetouchinterest then stat.Text = "Executor firetouchinterest desteklemiyor" return end local c = LP.Character local p = c and c:FindFirstChild(S.part) if not p then stat.Text = S.part .. " yok" return end busy = true stat.Text = "Kayalar aranıyor..." local rocks = findRocks() if #rocks == 0 then stat.Text = "RockScript'li kaya bulunamadı" busy = false return end log(string.format("######## KOPAR: %s | %d RockScript'li kaya ########", p.Name, #rocks)) local hum = c:FindFirstChildOfClass("Humanoid") log(string.format(" once: %s %s | can %s", p.Name, v3(p.Position), hum and string.format("%.0f", hum.Health) or "-")) local t0 = os.clock() local gone = false local con = p.AncestryChanged:Connect(function() if not p:IsDescendantOf(workspace) then gone = true end end) for i, r in ipairs(rocks) do if gone then break end stat.Text = string.format("Değdiriliyor %d/%d: %s", i, #rocks, r.Name) local ok = touch(p, r) log(string.format(" #%d %s [%s] %s | mesafe %.0f stud | %s", i, r:GetFullName(), dbg(r), v3(r.Position), (p.Position - r.Position).Magnitude, ok and "gonderildi" or "HATA")) -- sunucunun cevabı için biraz bekle local w = os.clock() while not gone and os.clock() - w < 0.6 do task.wait() end if gone then log(string.format(" SONUC: KOPTU, %s %.2f sn sonra yok edildi (kaya #%d %s)", p.Name, os.clock() - t0, i, r.Name)) stat.Text = string.format("✅ KOPTU (%s, %d. kayada)", r.Name, i) end end con:Disconnect() if not gone then log(" SONUC: KOPMADI (" .. #rocks .. " kaya denendi)") stat.Text = "❌ Kopmadı (" .. #rocks .. " kaya denendi)" end flush() busy = false end) -- kaya sayısı arada bir sayılır (ağır), canlı yazı 0.25 sn'de bir local rockCount, rockT = nil, -100 local function countRocks() local n = 0 for _, d in ipairs(workspace:GetDescendants()) do if d:IsA("BasePart") and d:FindFirstChild("RockScript") then n += 1 end end return n end local liveOn = false -- bilgi kutusu kaldırıldı: canlı güncelleme çalışmaz task.spawn(function() while liveOn and liveL.Parent do pcall(function() if os.clock() - rockT > 10 and not busy then rockT = os.clock() rockCount = countRocks() end local c = LP.Character local hum = c and c:FindFirstChildOfClass("Humanoid") local hrp = c and c:FindFirstChild("HumanoidRootPart") local lt = c and c:FindFirstChild("LowerTorso") if not c then liveL.Text = " Karakter yok" return end liveL.Text = string.format(" LowerTorso: %s • kök: %s • can %s\n kök konum %s • kaya %s", lt and "VAR" or "YOK (kopuk)", hrp and "VAR" or "YOK", hum and string.format("%.0f", hum.Health) or "-", hrp and string.format("(%.0f, %.0f, %.0f)", hrp.Position.X, hrp.Position.Y, hrp.Position.Z) or "-", rockCount and tostring(rockCount) or "?") end) task.wait(0.25) end end) local minimized = false mini.MouseButton1Click:Connect(function() minimized = not minimized body.Visible = not minimized main.Size = UDim2.fromOffset(W, minimized and 28 or H) end) close.MouseButton1Click:Connect(function() HOST.closeAll() end) return { main = main, close = function() alive = false liveOn = false pcall(flush) end } end local function APP_YAZI(HOST) --[[ BYS • Yazı & Resim Yapıcı (BABFT) - Dışarıdan HİÇBİR script / raw dosya / UI kütüphanesi çekmez. Arayüz tamamen içinde. - Resim sekmesinde LİNK girersen resmi indirir (wsrv.nl ile PNG'ye çevrilir). Executor workspace içindeki bir dosya adı/yolu girersen (örn. resim.png) hiç internet kullanmaz. - Sekmeler: YAZI (otomatik yazı yazma) | RESİM (resim builder) | AYAR (blok, konum, önizleme) - Önizle -> ayarla -> "Önizlemeden Yap" veya "Otomatik" (önizlemesiz direkt yapar) - CANLI YAZI: "ANLIK YAZ" açıkken yazdıkça SADECE yeni kısım yapılır (eski harfler tekrar yazılmaz), yazı kendini yeniden dizer ve kafanın tam üstünde takip eder. - Yeni harf önce takım alanında düzgünce yazılır + kontrol edilir, sonra kafaya uçar. - Silinen harf: takip bırakılır (düşer) veya DeleteTool ile silinir (seçmeli). - PÜRÜZSÜZ YAZI: Hershey Simplex çizgi fontu (piksel piksel değil), gökkuşağı modu. ]] local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UIS = game:GetService("UserInputService") local AssetService = game:GetService("AssetService") local HttpService = game:GetService("HttpService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Workspace = game:GetService("Workspace") local CoreGui = game:GetService("CoreGui") local LP = Players.LocalPlayer -- executor fonksiyonları (yoksa nil kalır) local _writefile, _isfile, _delfile = writefile, isfile, delfile local _gca = getcustomasset or getsynasset local _req = (syn and syn.request) or http_request or request or (http and http.request) or (fluxus and fluxus.request) ---------------------------------------------------------------------- -- DURUM ---------------------------------------------------------------------- local S = { block = "PlasticBlock", offX = 0, offY = 15, offZ = 0, rot = 0, prevTransp = 0.4, noCollide = true, -- takip fDist = 0, fHeight = 1, fSpeed = 100, fYaw = 0, fRotate = true, fHead = true, fFaceCam = true, busy = false, gen = false, abort = false, closed = false, -- canlı yazı liveDelay = 0.6, liveCenter = true, delTool = false, flyTime = 0.6, textSmooth = true, textSize = 3, strokeW = 0.25, rainbow = false, curveDetail = 2, minBlock = 0.2, rainbowStep = 0.05, speed = 2, letterSpace = 1, spaceW = 9, lineSpace = 1.25, autoHeal = false, autoFix = false, onlyOwned = false, guardText = true, rejoinDist = 25, netless = true, simRadius = true, tpFetch = false, tpFetchDist = 60, tpHops = 3, wave = false, waveAmp = 0.6, waveSpeed = 4, waveFreq = 0.5, rbAnim = false, rbSpeed = 3, rbEvery = 0.6, -- akan gökkuşağı hideToolGui = true, -- boyama / blok koyma araçlarının menülerini gizle target = nil, nameMode = false, useUserName = false, -- hedef oyuncu (nil = kendim) fFwd = 0, fSide = 0, -- oyuncunun gövdesine göre: + göğsünün önü / - sırtı, + sağı / - solu enterAnim = "drop", dropH = 2.5, slideTime = 0.3, -- yeni harf: yerinin üstünden süzülerek gelir; eski harfler kayarak yer değiştirir -- harf aralığı / kelime boşluğu (font birimi), satır aralığı (kat) -- yazı text = "MERHABA", textCell = 0.35, textDepth = 0.4, textColor = Color3.new(1, 1, 1), textMerge = true, -- resim imgSrc = "", imgRes = 80, imgCell = 0.25, imgDepth = 0.5, imgLevels = 24, imgMerge = true, -- INF blok: envanter yetmezse yapmadan önce üret infOn = true, infDelSeed = false, hideBuild = true, -- resim yapılırken yeni bloklar gizli, ölçekleme cevabı gelince görünür } local MAXS = Vector3.new(251.799, 2047.9, 298.999) -- oyunun izin verdiği en küçük blok boyutu (AYAR'dan; sunucu daha büyüğünü dayatırsa kendini yükseltir) local function clampSize(v) local m = math.max(0.05, S.minBlock or 0.2) return Vector3.new(math.clamp(v.X, m, MAXS.X), math.clamp(v.Y, m, MAXS.Y), math.clamp(v.Z, m, MAXS.Z)) end -- GEÇİŞLİ ARAÇ KORUMASI: PropertiesTool "Anchored"/"Collision" her istekte değeri TERSİNE çevirir. -- Sunucunun cevabı gelmeden aynı bloğa 2. istek gidince değer geri açılıyordu (sabitleme / çarpışma). -- Bir bloğa istek gönderilince 5 sn boyunca aynı özellik için tekrar gönderilmez. local Pend = { t = setmetatable({}, { __mode = "k" }) } function Pend.ok(m, prop) local r = Pend.t[m] return not (r and r[prop] and os.clock() - r[prop] < 5) end function Pend.mark(m, prop) local r = Pend.t[m] or {} Pend.t[m] = r r[prop] = os.clock() end ---------------------------------------------------------------------- -- OYUN YARDIMCILARI ---------------------------------------------------------------------- local ZONE_BY_TEAM = { black = "BlackZone", blue = "Really blueZone", green = "CamoZone", red = "Really redZone", white = "WhiteZone", yellow = "New YellerZone", magenta = "MagentaZone", } local function getZone() local tc = LP.TeamColor local z = tc and Workspace:FindFirstChild(tc.Name .. "Zone") if z then return z end local t = LP.Team local n = t and ZONE_BY_TEAM[string.lower(t.Name)] return n and Workspace:FindFirstChild(n) end local function getBlocksFolder() local b = Workspace:FindFirstChild("Blocks") local f = b and b:FindFirstChild(LP.Name) if f then return f end local pf = Workspace:FindFirstChild(LP.Name) return (pf and pf:FindFirstChild("Blocks")) or b end local function dataFolder() return LP:FindFirstChild("Data") end local function inventoryList() local out = {} local d = dataFolder() if d then local bp = ReplicatedStorage:FindFirstChild("BuildingParts") for _, v in ipairs(d:GetChildren()) do if v:IsA("ValueBase") then local n = tonumber(v.Value) if n and n > 0 and (not bp or bp:FindFirstChild(v.Name)) then out[#out + 1] = { name = v.Name, count = n } end end end end table.sort(out, function(a, b) return a.count > b.count end) if #out == 0 then out[1] = { name = "PlasticBlock", count = 0 } end return out end local function equip(name) local ch = LP.Character if not ch then return nil end local t = ch:FindFirstChild(name) if t then return t end local bp = LP:FindFirstChildOfClass("Backpack") t = bp and bp:FindFirstChild(name) if not t then return nil end local hum = ch:FindFirstChildOfClass("Humanoid") if hum then pcall(function() hum:EquipTool(t) end) task.wait(0.12) end return ch:FindFirstChild(name) or t end local function getRF(name) local t = equip(name) return t and (t:FindFirstChild("RF") or t:FindFirstChildWhichIsA("RemoteFunction")) end local function baseName(n) return (n:gsub("%d+$", "")) end local function unitsFor(name, size) if not (name:match("Block$") or name == "Truss" or name == "Step" or name == "Steel I-Beam") then return 1 end return math.max(1, math.floor(size.X * size.Y * size.Z / 8 + 0.5)) end ---------------------------------------------------------------------- -- ARAÇ MENÜSÜ GİZLEME: script blok koyarken / boyarken aracın açtığı menüleri -- (Hepsini Seç vb.) gizler; iş bitince eski hallerine döndürür. Oyunun diğer menülerine dokunmaz. ---------------------------------------------------------------------- local ToolGui = { depth = 0, snap = nil, changed = {}, conn = nil } local function tgList() local pg = LP:FindFirstChild("PlayerGui") local t = {} if not pg then return t end for _, sg in ipairs(pg:GetChildren()) do if sg:IsA("ScreenGui") and sg.Name ~= "BYS_GUI" and sg ~= HOST.gui then t[#t + 1] = sg for _, c in ipairs(sg:GetChildren()) do if c:IsA("GuiObject") then t[#t + 1] = c for _, c2 in ipairs(c:GetChildren()) do if c2:IsA("GuiObject") then t[#t + 1] = c2 end end end end end end return t end local function tgShown(o) if o:IsA("ScreenGui") then return o.Enabled end return o.Visible end local function tgSet(o, v) pcall(function() if o:IsA("ScreenGui") then o.Enabled = v else o.Visible = v end end) end local function beginToolGui() ToolGui.depth = ToolGui.depth + 1 if ToolGui.depth > 1 or not S.hideToolGui then return end -- araç ele alınmadan ÖNCEKİ hal: bundan sonra açılan menüler araca aittir ToolGui.snap, ToolGui.changed = {}, {} for _, o in ipairs(tgList()) do ToolGui.snap[o] = tgShown(o) end ToolGui.conn = RunService.Heartbeat:Connect(function() for _, o in ipairs(tgList()) do if ToolGui.snap[o] ~= true and tgShown(o) then if ToolGui.changed[o] == nil then ToolGui.changed[o] = ToolGui.snap[o] or false end tgSet(o, false) end end end) end -- araç elde değilken ekranda unutulmuş araç menüsü ("Hepsini Seç" / "Select All") varsa kapat local function cleanupStuckToolGui() if not S.hideToolGui then return end local ch = LP.Character if ch and ch:FindFirstChildOfClass("Tool") then return end for _, o in ipairs(tgList()) do if o:IsA("GuiObject") and o.Visible then for _, d in ipairs(o:GetDescendants()) do if (d:IsA("TextButton") or d:IsA("TextLabel")) then local tx = string.lower(d.Text or "") if tx:find("hepsini se") or tx:find("select all") then tgSet(o, false) break end end end end end end local function endToolGui() ToolGui.depth = math.max(0, ToolGui.depth - 1) if ToolGui.depth > 0 then return end local conn, changed = ToolGui.conn, ToolGui.changed ToolGui.conn, ToolGui.changed, ToolGui.snap = nil, {}, nil if conn then -- araç bırakılırken menü bir an daha açılabilir: kısa süre gizlemeye devam, sonra eski hale dön task.delay(0.3, function() conn:Disconnect() for o, v in pairs(changed) do if o.Parent then tgSet(o, v) end end cleanupStuckToolGui() end) end end ---------------------------------------------------------------------- -- ÖNİZLEME ---------------------------------------------------------------------- do local old = Workspace:FindFirstChild("BYS_Preview") if old then old:Destroy() end end local PrevFolder = Instance.new("Folder") PrevFolder.Name = "BYS_Preview" PrevFolder.Parent = Workspace local Cur = { items = {}, parts = {}, serial = 0 } local function baseCF() local z = getZone() if not z then return nil end return z.CFrame * CFrame.new(S.offX, S.offY, S.offZ) * CFrame.Angles(0, math.rad(S.rot), 0) end local function clearPreview() Cur.serial = Cur.serial + 1 PrevFolder:ClearAllChildren() Cur.items, Cur.parts = {}, {} end local function setPreview(items) clearPreview() local base = baseCF() if not base then return false end local my = Cur.serial Cur.items = items local t0 = os.clock() for i, it in ipairs(items) do if my ~= Cur.serial then return false end local p = Instance.new("Part") p.Anchored = true p.CanCollide = false p.CanTouch = false p.CanQuery = false p.CastShadow = false p.Material = Enum.Material.SmoothPlastic p.Size = it.size p.Color = it.color p.Transparency = S.prevTransp p.CFrame = base * it.cf p.Parent = PrevFolder Cur.parts[i] = p if os.clock() - t0 > 0.012 then task.wait() t0 = os.clock() end end return true end local pendingRefresh = false local function refreshTransform() if pendingRefresh then return end pendingRefresh = true task.defer(function() pendingRefresh = false local base = baseCF() if not base then return end for i, p in ipairs(Cur.parts) do local it = Cur.items[i] if p.Parent and it then p.CFrame = base * it.cf end end end) end local function refreshTransparency() for _, p in ipairs(Cur.parts) do if p.Parent then p.Transparency = S.prevTransp end end end ---------------------------------------------------------------------- -- ORTAK: ızgara -> dikdörtgen birleştirme -> parça listesi ---------------------------------------------------------------------- local function mergeGrid(grid, W, H, doMerge) local rects, used = {}, {} for r = 0, H - 1 do used[r] = {} end local t0 = os.clock() for r = 0, H - 1 do local row = grid[r] for c = 0, W - 1 do local key = row[c] if key and not used[r][c] then local w, h = 1, 1 if doMerge then while c + w < W and row[c + w] == key and not used[r][c + w] do w = w + 1 end local grow = true while grow and r + h < H do local nr = grid[r + h] for k = 0, w - 1 do if nr[c + k] ~= key or used[r + h][c + k] then grow = false break end end if grow then h = h + 1 end end end for dr = 0, h - 1 do for dc = 0, w - 1 do used[r + dr][c + dc] = true end end rects[#rects + 1] = { c = c, r = r, w = w, h = h, key = key } end end if os.clock() - t0 > 0.012 then task.wait() t0 = os.clock() end end return rects end local function rectsToItems(rects, W, H, cell, depth, keyColor) local items = {} for _, rc in ipairs(rects) do items[#items + 1] = { cf = CFrame.new((rc.c + rc.w / 2 - W / 2) * cell, (H / 2 - rc.r - rc.h / 2) * cell, 0), size = clampSize(Vector3.new(rc.w * cell, rc.h * cell, depth)), color = keyColor(rc.key), } end return items end ---------------------------------------------------------------------- -- RESİM ---------------------------------------------------------------------- local function httpGet(url) if _req then local ok, res = pcall(_req, { Url = url, Method = "GET", Headers = { ["User-Agent"] = "Mozilla/5.0" } }) if ok and res then local code = tonumber(res.StatusCode or res.Status) local body = res.Body or res.body if (not code or (code >= 200 and code < 300)) and type(body) == "string" and #body > 0 then return body end return nil, "HTTP " .. tostring(code) end return nil, "istek başarısız" end local ok, body = pcall(function() return game:HttpGet(url) end) if ok and type(body) == "string" and #body > 0 then return body end return nil, "HttpGet başarısız" end local function loadImageGrid(src, resH, levels, status) src = tostring(src or ""):match("^%s*(.-)%s*$") if src == "" then return nil, "Resim linki / dosya yolu boş" end local tmp = "bys_tmp_image.png" local path if src:match("^https?://") then status("Resim indiriliyor...") local body, err = httpGet("https://wsrv.nl/?url=" .. HttpService:UrlEncode(src) .. "&output=png") if not body then return nil, "İndirme hatası: " .. tostring(err) end if body:sub(1, 8) ~= (string.char(137) .. "PNG\r\n" .. string.char(26) .. "\n") then return nil, "PNG'ye çevrilemedi (doğrudan resim linki ver)" end if not _writefile then return nil, "writefile desteklenmiyor" end local ok, e = pcall(_writefile, tmp, body) if not ok then return nil, "Dosya yazma hatası: " .. tostring(e) end path = tmp else if _isfile and not _isfile(src) then return nil, "Dosya bulunamadı: " .. src end path = src end if not _gca then return nil, "getcustomasset desteklenmiyor" end local okA, asset = pcall(_gca, path) if not okA or not asset then return nil, "Asset oluşturulamadı: " .. tostring(asset) end local img local okI, eI = pcall(function() img = AssetService:CreateEditableImageAsync(asset) end) if path == tmp and _delfile then pcall(_delfile, tmp) end if not okI or not img then return nil, "Resim çözülemedi: " .. tostring(eI) end local sx, sy = math.floor(img.Size.X), math.floor(img.Size.Y) local okB, buf = pcall(function() return img:ReadPixelsBuffer(Vector2.zero, img.Size) end) img:Destroy() if not okB or not buf then return nil, "Pikseller okunamadı" end local H = math.clamp(math.floor(resH), 8, 400) local W = math.clamp(math.floor(sx * H / sy + 0.5), 1, 600) local L = levels local function q(v) if L and L >= 2 and L < 256 then return math.floor(math.floor(v / 255 * (L - 1) + 0.5) * 255 / (L - 1) + 0.5) end return v end local grid = {} local t0 = os.clock() for r = 0, H - 1 do grid[r] = {} local py = math.min(sy - 1, math.floor((r + 0.5) * sy / H)) for c = 0, W - 1 do local px = math.min(sx - 1, math.floor((c + 0.5) * sx / W)) local o = (py * sx + px) * 4 if buffer.readu8(buf, o + 3) > 30 then grid[r][c] = q(buffer.readu8(buf, o)) * 65536 + q(buffer.readu8(buf, o + 1)) * 256 + q(buffer.readu8(buf, o + 2)) end end if os.clock() - t0 > 0.012 then task.wait() t0 = os.clock() end end return grid, W, H end local status -- UI bölümünde atanır local function makeImageItems() local grid, W, H = loadImageGrid(S.imgSrc, S.imgRes, S.imgLevels, function(t) status(t) end) if not grid then return nil, W end -- W = hata mesajı status("Parçalar birleştiriliyor...") local rects = mergeGrid(grid, W, H, S.imgMerge) return rectsToItems(rects, W, H, S.imgCell, S.imgDepth, function(key) return Color3.fromRGB(math.floor(key / 65536), math.floor(key / 256) % 256, key % 256) end) end ---------------------------------------------------------------------- -- YAPIM (BuildingTool -> boyama -> çarpışma -> ScalingTool) ---------------------------------------------------------------------- local setProgress -- UI bölümünde atanır local startFollow, stopFollow, followClassicSync -- takip bölümünde atanır local Last = { blocks = nil, base = nil, kind = nil } -- son yapılan blokların listesi -- ÇARPIŞMAYI KAPAT ve gerçekten kapandığını kontrol et (kapanmayana 3 kez tekrar gönder) local function partOf(m) return m:FindFirstChild("PPart") or m.PrimaryPart or m:FindFirstChildWhichIsA("BasePart", true) end local function setNoCollide(models) local tool = equip("PropertiesTool") local prop = tool and (tool:FindFirstChild("SetPropertieRF") or tool:FindFirstChildWhichIsA("RemoteFunction")) if not prop then return false end -- tek sefer gönder (sadece çarpışması AÇIK olan ve yakında istek gitmemiş bloklara) local list = {} for _, m in ipairs(models) do local pp = m.Parent and partOf(m) if pp and pp.CanCollide and Pend.ok(m, "Collision") then list[#list + 1] = m Pend.mark(m, "Collision") end end for i = 1, #list, 1000 do local chunk = table.move(list, i, math.min(i + 999, #list), 1, {}) pcall(function() prop:InvokeServer("Collision", chunk) end) task.wait() end -- kapanmasını bekle (tekrar GÖNDERME: geri açılır) local t0 = os.clock() while os.clock() - t0 < 3 do local left = false for _, m in ipairs(list) do local pp = m.Parent and partOf(m) if pp and pp.CanCollide then left = true break end end if not left then return true end task.wait(0.15) end return false end -- hız seviyesine göre aynı anda kaç istek (1 = güvenli, 2 = normal, 3 = hızlı) local SPEED = { { place = 12, scale = 6, fix = 4, gap = 0.03 }, { place = 30, scale = 12, fix = 6, gap = 0 }, { place = 60, scale = 24, fix = 8, gap = 0 }, } local function runBuild(useAll, name, value) local SP = SPEED[math.clamp(math.floor(S.speed + 0.5), 1, 3)] local folder = getBlocksFolder() local seen = {} for _, c in ipairs(folder:GetChildren()) do seen[c] = true end -- yerleşen bloğu KONUMUNA göre doğru parçayla eşleştir (sıraya göre eşleşince -- geç gelen bloklar başka harfe karışıp harfler birbirine giriyordu) local grid = {} local function gkey(x, y, z) return x .. "," .. y .. "," .. z end for i, it in ipairs(useAll) do local p = it.cf.Position local k = gkey(math.floor(p.X), math.floor(p.Y), math.floor(p.Z)) grid[k] = grid[k] or {} table.insert(grid[k], i) end local assigned, count, orphans = {}, 0, {} local function match(pp) local p = pp.Position local fx, fy, fz = math.floor(p.X), math.floor(p.Y), math.floor(p.Z) local best, bi = 1.0, nil for dx = -1, 1 do for dy = -1, 1 do for dz = -1, 1 do local cellT = grid[gkey(fx + dx, fy + dy, fz + dz)] if cellT then for _, i in ipairs(cellT) do if not assigned[i] then local d = (useAll[i].cf.Position - p).Magnitude if d < best then best, bi = d, i end end end end end end end return bi end local function collect() for _, c in ipairs(folder:GetChildren()) do if not seen[c] and c:IsA("Model") and baseName(c.Name) == name then local pp = c:FindFirstChild("PPart") if pp then seen[c] = true local i = match(pp) if i then assigned[i] = c count = count + 1 else orphans[#orphans + 1] = c end end end end end -- 1) yerleştir local rf = getRF("BuildingTool") if not rf then error("BuildingTool bulunamadı", 0) end local active, sent = 0, 0 for i, it in ipairs(useAll) do if S.abort then break end while active >= SP.place and not S.abort do task.wait() end if SP.gap > 0 then task.wait(SP.gap) end active = active + 1 task.spawn(function() pcall(function() rf:InvokeServer(name, value, nil, nil, true, it.cf, false) end) active = active - 1 sent = sent + 1 end) if i % 25 == 0 then setProgress(sent, #useAll, "Yerleştiriliyor") collect() task.wait() end end while active > 0 do task.wait() end if S.abort then return end -- 2) hepsi gelene kadar bekle (12 sn hiç yeni blok gelmezse bırak). -- geç gelen blok "eksik" sayılıp yeniden yapılmasın diye bekleme uzun tutulur local deadline = os.clock() + math.clamp(#useAll * 0.1, 20, 300) local lastCount, lastChange = -1, os.clock() while os.clock() < deadline and not S.abort do collect() if count >= #useAll then break end local got = count + #orphans if got ~= lastCount then lastCount, lastChange = got, os.clock() end if got > 0 and os.clock() - lastChange > 12 then break end setProgress(count, #useAll, "Bloklar bekleniyor") task.wait(0.1) end if S.abort then return end if count == 0 and #orphans > 0 then -- oyun bloğu başka konuma koyduysa eski usul sırayla eşle for i = 1, math.min(#useAll, #orphans) do assigned[i] = orphans[i] count = count + 1 end end -- hiç blok gelmediyse bile hata verip baştan başlatma: geç gelenler AKILLI TAKİP ile yerine oturur -- eşleşenleri sıkıştır: newBlocks[k] <-> use[k] local use, newBlocks = {}, {} for i = 1, #useAll do if assigned[i] then use[#use + 1] = useAll[i] newBlocks[#newBlocks + 1] = assigned[i] end end local total = #use -- 3) boya local prf = getRF("PaintingTool") if prf then setProgress(0, total, "Boyanıyor") local batch = {} for i = 1, total do batch[#batch + 1] = { newBlocks[i], use[i].color } end for i = 1, #batch, 1000 do if S.abort then return end local chunk = table.move(batch, i, math.min(i + 999, #batch), 1, {}) pcall(function() prf:InvokeServer(chunk) end) task.wait() end end -- 4) çarpışmayı kapat (isteğe bağlı) if S.noCollide then setNoCollide(newBlocks) if S.abort then return end end -- 5) ölçekle + konumlandır local srf = getRF("ScalingTool") if not srf then error("ScalingTool bulunamadı") end local idx, done, workers = 0, 0, 0 local function worker() while not S.abort do idx = idx + 1 local i = idx if i > total then break end local blk, it = newBlocks[i], use[i] if blk.Parent then pcall(function() srf:InvokeServer(blk, it.size, it.cf) end) if S._scaled then S._scaled(blk) end -- ölçekleme cevabı geldi: görünür end done = done + 1 if i % 8 == 0 then task.wait() end end workers = workers - 1 end for _ = 1, math.min(SP.scale, total) do workers = workers + 1 task.spawn(worker) end while workers > 0 do setProgress(done, total, "Ölçekleniyor") task.wait(0.05) end if S.abort then return end -- 6) KONTROL: her blok doğru boyut/konumda mı? Olmayanı tekrar ölçekle. -- (sunucu bazı istekleri yutarsa bloklar 2x2 kalıp harfler birbirine giriyordu) local learned local function isBad(i) local blk, it = newBlocks[i], use[i] local pp = blk.Parent and blk:FindFirstChild("PPart") if not pp then return false end -- oyun boyutu biraz yuvarlayabilir: küçük farklar SORUN DEĞİL, sadece hiç -- ölçeklenmemiş (2x2 kalmış) ya da çok yanlış yerdeki bloklar yakalanır local function axisOk(real, want) if math.abs(real - want) <= math.max(0.15, want * 0.2) then return true end if want < 0.6 and real > want and real < 0.6 then if real > (S.minBlock or 0) + 0.01 then S.minBlock = math.floor(real * 100 + 0.99) / 100 learned = S.minBlock end return true end return false end local sz = pp.Size if not (axisOk(sz.X, it.size.X) and axisOk(sz.Y, it.size.Y) and axisOk(sz.Z, it.size.Z)) then return true end return (pp.Position - it.cf.Position).Magnitude > 0.6 end local bad = {} -- OTO DÜZELT kapalıysa kontrol turu hiç yapılmaz (bloklar zaten doğru geliyor) for round = 1, (S.autoFix and 3 or 0) do task.wait(round == 1 and 1.0 or 1.2) -- sunucunun yeni boyutu bize ulaşsın bad = {} for i = 1, total do if isBad(i) then bad[#bad + 1] = i end end if #bad == 0 or S.abort or round == 3 then break end setProgress(0, #bad, "Düzeltiliyor (" .. round .. ". tur)") local act, fixed = 0, 0 for _, i in ipairs(bad) do while act >= SP.fix and not S.abort do task.wait() end act = act + 1 task.spawn(function() pcall(function() srf:InvokeServer(newBlocks[i], use[i].size, use[i].cf) end) if S._scaled then S._scaled(newBlocks[i]) end act = act - 1 fixed = fixed + 1 end) end while act > 0 do setProgress(fixed, #bad, "Düzeltiliyor (" .. round .. ". tur)") task.wait(0.05) end end local warn if #bad > 0 then warn = #bad .. " blok yerine oturmadı" end if count < #useAll then warn = (warn and warn .. " | " or "") .. (#useAll - count) .. " parça henüz gelmedi (gelince yerine oturur)" end if learned then warn = (warn and warn .. " | " or "") .. "oyunun en küçük blok boyutu ~" .. learned .. " (otomatik ayarlandı)" end -- AKILLI TAKİP: süre dolduktan sonra GEÇ GELEN blokları da kendi parçasıyla eşleştirir -- (eksik deyip aynı harfi yeniden yapmak yerine gelen bloğu kullanır) local function late(cb) task.spawn(function() local t0 = os.clock() while not S.closed and os.clock() - t0 < 60 do local left = false for i = 1, #useAll do if not assigned[i] then left = true break end end if not left then return end for _, c in ipairs(folder:GetChildren()) do if not seen[c] and c:IsA("Model") and baseName(c.Name) == name then local pp = c:FindFirstChild("PPart") if pp then seen[c] = true local i = match(pp) if i then assigned[i] = c pcall(cb, i, c) end end end end task.wait(0.25) end end) end -- assigned[i] = useAll[i] için yapılan blok (yoksa nil) return total, assigned, warn, late end ---------------------------------------------------------------------- -- INF BLOK: envanter yetmezse üretim bloğu arsanın çok altına konur, ScalingTool ile -- büyütme istekleri gönderilir (her istek ~4 blok). Mr.Luk otobuild'deki yöntemin aynısı. ---------------------------------------------------------------------- -- (bu fonksiyonda local sınırı (200) dolu: INF ile ilgili her şey tek tabloda) local INF = { Y = -3.0000000054978e38, labels = {} } INF.UI = { begin = function() end, set = function() end, finish = function() end } -- UI bölümünde atanır function INF.able(name) return type(name) == "string" and name:match("Block$") ~= nil end function INF.need(name, items) -- Mr.Luk ile aynı (calcSlots): ...Block bloklarında hacim / 8 YUKARI yuvarlanır local n = 0 for _, it in ipairs(items) do if INF.able(name) and it.size then n = n + math.max(1, math.ceil(it.size.X * it.size.Y * it.size.Z / 8)) else n = n + unitsFor(name, it.size) end end return n end -- ARSA SIĞMA KONTROLÜ: her parça arsanın kendi eksenine çevrilir, dönüşü hesaba katılarak -- arsanın yarı ölçüsüyle karşılaştırılır (Mr.Luk otobuild'deki taşma kontrolüyle aynı yöntem). Sadece yatay (X/Z). function INF.zoneHalf(z) local sx, sz = 251.79899597168, 298.99996948242 pcall(function() if z.Size.X > 20 and z.Size.Z > 20 then sx, sz = z.Size.X, z.Size.Z end end) return sx / 2, sz / 2 end -- dönüş: en çok taşma (stud, 0 = sığıyor) function INF.overflow(items, rotDeg, f) local z = getZone() if not z or not items then return 0 end f = f or 1 local hx, hz = INF.zoneHalf(z) local base = z.CFrame * CFrame.new(S.offX, S.offY, S.offZ) * CFrame.Angles(0, math.rad(rotDeg), 0) local worst = 0 local c0 = os.clock() for _, it in ipairs(items) do local p = it.cf.Position * f local w = base * (CFrame.new(p) * (it.cf - it.cf.Position)) local lc = z.CFrame:ToObjectSpace(w) local _, _, _, r00, r01, r02, _, _, _, r20, r21, r22 = lc:GetComponents() local sz = it.size * f local ex = math.abs(r00) * sz.X / 2 + math.abs(r01) * sz.Y / 2 + math.abs(r02) * sz.Z / 2 local ez = math.abs(r20) * sz.X / 2 + math.abs(r21) * sz.Y / 2 + math.abs(r22) * sz.Z / 2 local lp = lc.Position local o = math.max(math.abs(lp.X) + ex - hx, math.abs(lp.Z) + ez - hz, 0) if o > worst then worst = o end if os.clock() - c0 > 0.008 and coroutine.isyieldable() then task.wait() c0 = os.clock() end end return worst end -- sonuç: { ok, over, rot90ok, shrink } ; shrink = sığması için boyut katsayısı (döndürmeden / döndürerek en iyisi) function INF.zoneCheck(items) local r = { ok = true, over = 0 } if not items or #items == 0 or not getZone() then return r end r.over = INF.overflow(items, S.rot) if r.over <= 0.01 then return r end r.ok = false r.rot90 = (S.rot + 90) % 360 r.rot90ok = INF.overflow(items, r.rot90) <= 0.01 if not r.rot90ok then -- en küçük katsayı araması (iki yönde de), en büyüğü seçilir local best = nil for _, rd in ipairs({ S.rot, r.rot90 }) do local lo, hi = 0.02, 1 if INF.overflow(items, rd, lo) <= 0.01 then for _ = 1, 10 do local mid = (lo + hi) / 2 if INF.overflow(items, rd, mid) <= 0.01 then lo = mid else hi = mid end end if not best or lo > best.f then best = { f = lo, rot = rd } end end end r.shrink = best end return r end function INF.zoneText(r, cell) if r.ok then return "Arsaya sığıyor", true end local t = string.format("Arsa dışına %.1f stud taşıyor: yapılmaz.", r.over) if r.rot90ok then t = t .. " 90° döndürünce sığıyor -> 90° DÖNDÜR" elseif r.shrink then t = t .. string.format(" Hücre boyutunu %.2f'e düşür%s", math.floor((cell or 1) * r.shrink.f * 100) / 100, r.shrink.rot ~= S.rot and " ve 90° döndür" or "") else t = t .. " Konumu (AYAR) arsanın ortasına al" end return t, false end -- RESİM YAPILIRKEN GİZLEME: yeni gelen bloklar sadece senin ekranında görünmez; -- ölçekleme (ScalingTool) isteğinin cevabı gelince o blok görünür olur. function INF.hideBegin(folder) INF.hideEnd() if not S.hideBuild or not folder then return end local H = { folder = folder, old = {}, shown = {}, list = {} } for _, c in ipairs(folder:GetChildren()) do H.old[c] = true end H.conn = folder.DescendantAdded:Connect(function(d) if not d:IsA("BasePart") then return end local b = d while b and b.Parent ~= folder do b = b.Parent end if b and not H.old[b] and not H.shown[b] then pcall(function() d.LocalTransparencyModifier = 1 end) H.list[#H.list + 1] = d end end) INF.hid = H S._scaled = INF.show end function INF.show(blk) local H = INF.hid if not H or not blk or H.shown[blk] then return end H.shown[blk] = true pcall(function() for _, d in ipairs(blk:GetDescendants()) do if d:IsA("BasePart") then d.LocalTransparencyModifier = 0 end end end) end -- bitince / durunca / hata olunca: hâlâ gizli kalan (hiç ölçeklenmemiş) bloklar da görünür olur function INF.hideEnd() local H = INF.hid if not H then return end INF.hid, S._scaled = nil, nil if H.conn then pcall(function() H.conn:Disconnect() end) end local c0 = os.clock() for _, p in ipairs(H.list) do if p.Parent and p.LocalTransparencyModifier ~= 0 then pcall(function() p.LocalTransparencyModifier = 0 end) end if os.clock() - c0 > 0.004 then task.wait() c0 = os.clock() end end end function INF.unequip() local hum = LP.Character and LP.Character:FindFirstChildOfClass("Humanoid") if hum then pcall(function() hum:UnequipTools() end) end end -- dönüş: üretim yapıldı mı, mesaj function INF.fill(name, need) local zone, folder = getZone(), getBlocksFolder() local d = dataFolder() local dv = d and d:FindFirstChild(name) if not (zone and folder and dv) then return false, "takım alanı / blok klasörü / envanter yok" end local function cur() return tonumber(dv.Value) or 0 end local have0 = cur() local missing = need - have0 if missing <= 0 then return true, nil end local calls = math.max(1, math.ceil(missing / 4) + 1) local t0 = os.clock() INF.UI.begin(name, missing, calls) -- 1) üretim bloğu (seed): arsanın çok altına INF.UI.set("Üretim bloğu konuyor...", 0, calls) local seen = {} for _, c in ipairs(folder:GetChildren()) do seen[c] = true end local rf = getRF("BuildingTool") if not rf then INF.UI.finish(false, "BuildingTool bulunamadı") INF.unequip() return false, "BuildingTool bulunamadı" end do local answered = false task.spawn(function() pcall(function() rf:InvokeServer(name, dv.Value, zone, CFrame.new(0, INF.Y, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), true) end) answered = true end) local ta = os.clock() while not answered and os.clock() - ta < 4 and not S.abort do INF.UI.set(string.format("Üretim bloğu isteği gönderildi, cevap bekleniyor... %.1f sn", os.clock() - ta), 0, calls) task.wait(0.03) end end local seed local ts = os.clock() while not seed and os.clock() - ts < 8 and not S.abort do for _, c in ipairs(folder:GetChildren()) do if not seen[c] and c:IsA("Model") and baseName(c.Name) == name then seed = c break end end if not seed then INF.UI.set(string.format("Üretim bloğu bekleniyor... %.1f sn", os.clock() - ts), 0, calls) task.wait(0.1) end end if S.abort then INF.UI.finish(false, "Durduruldu") INF.unequip() return false, "durduruldu" end if not seed then INF.UI.finish(false, "Üretim bloğu 8 sn içinde gelmedi") INF.unequip() return false, "üretim bloğu gelmedi" end -- 2) büyütme istekleri (süre sınırlı gönderme: FPS düşmesin) local srf = getRF("ScalingTool") if not srf then INF.UI.finish(false, "ScalingTool bulunamadı") INF.unequip() return false, "ScalingTool bulunamadı" end local size = Vector3.new(251.79899597168, 1.1754999560161e-38, 298.99996948242) if math.abs(zone.CFrame.LookVector.X) > 0.5 then size = Vector3.new(298.99996948242, 1.1754999560161e-38, 251.79899597168) end local cf = CFrame.new(zone.Position.X, INF.Y, zone.Position.Z, 1, 0, 0, 0, 1, 0, 0, 0, 1) local done, inflight = 0, 0 local c0 = os.clock() for _ = 1, calls do if S.abort then break end inflight = inflight + 1 task.spawn(function() pcall(function() srf:InvokeServer(seed, size, cf) end) inflight = inflight - 1 done = done + 1 end) if os.clock() - c0 > 0.008 then INF.UI.set("İstekler gönderiliyor...", done, calls) task.wait() c0 = os.clock() end end -- 3) cevapları bekle (en fazla 60 sn) local tw = os.clock() while inflight > 0 and os.clock() - tw < 60 and not S.abort do INF.UI.set("Cevap bekleniyor...", done, calls) task.wait(0.1) end local timeout = inflight > 0 -- 5) istenirse üretim bloğunu sil if S.infDelSeed and seed.Parent and not S.abort then local drf = getRF("DeleteTool") if drf then pcall(function() drf:InvokeServer(seed) end) end end INF.unequip() if S.abort then INF.UI.finish(false, "Durduruldu") return false, "durduruldu" end local msg = string.format("%d istek, %d cevap, %.1f sn | envanter %d -> %d (gereken %d)%s", calls, done, os.clock() - t0, have0, cur(), need, timeout and " | 60 sn doldu, bazı cevaplar gelmedi" or "") INF.UI.finish(not timeout, timeout and ("Sorun var: " .. msg) or ("Tamamlandı: " .. msg)) return true, msg end local function build(items) if S.busy then status("Başka bir işlem sürüyor...", Color3.fromRGB(220, 80, 90)) return end if not items or #items == 0 then status("Önce önizle / parça yok", Color3.fromRGB(220, 80, 90)) return end local zone, folder = getZone(), getBlocksFolder() if not zone or not folder then status("Takım alanı / blok klasörü bulunamadı", Color3.fromRGB(220, 80, 90)) return end local name = S.block local d = dataFolder() local dv = d and d:FindFirstChild(name) if not dv then status(name .. " envanterde yok", Color3.fromRGB(220, 80, 90)) return end local base = baseCF() local zr = INF.zoneCheck(items) if INF.zoneUI then pcall(INF.zoneUI, zr) end if not zr.ok then status((INF.zoneText(zr, S.imgCell)), Color3.fromRGB(220, 80, 90)) return end local need = INF.need(name, items) S.busy, S.abort = true, false task.spawn(function() beginToolGui() pcall(INF.hideBegin, folder) -- INF: envanter yetmiyorsa önce üret local have = tonumber(dv.Value) or 0 local infDone, infMsg = false, nil if need > have and S.infOn and INF.able(name) then status("INF: " .. (need - have) .. " " .. name .. " üretiliyor...", Color3.fromRGB(90, 170, 255)) local okI, a, b = pcall(INF.fill, name, need) if okI then infDone, infMsg = a, b else infMsg = tostring(a) end elseif need > have and S.infOn then infMsg = name .. " için INF yok (sadece ...Block bloklarında çalışır)" end if S.abort then endToolGui() status("Durduruldu", Color3.fromRGB(220, 160, 60)) pcall(INF.hideEnd) S.busy = false return end -- INF yapıldıysa sayıya göre kesilmez (sayı geç güncellenir); yapılmadıysa eskisi gibi envanter kadar have = tonumber(dv.Value) or 0 local use, used = {}, 0 for _, it in ipairs(items) do local u = unitsFor(name, it.size) if not infDone and used + u > have then break end used = used + u use[#use + 1] = { cf = base * it.cf, size = it.size, color = it.color } end if #use == 0 then endToolGui() status("Envanter yetersiz (" .. have .. " " .. name .. ")" .. (infMsg and (" | INF: " .. infMsg) or ""), Color3.fromRGB(220, 80, 90)) pcall(INF.hideEnd) S.busy = false return end local skipped = #items - #use local ok, res, blocks, warn = pcall(runBuild, use, name, dv.Value) local hum = LP.Character and LP.Character:FindFirstChildOfClass("Humanoid") if hum then pcall(function() hum:UnequipTools() end) end endToolGui() if S.abort then status("Durduruldu", Color3.fromRGB(220, 160, 60)) elseif not ok then status("Hata: " .. tostring(res), Color3.fromRGB(220, 80, 90)) else Last.blocks = {} for i = 1, #use do if blocks[i] then Last.blocks[#Last.blocks + 1] = blocks[i] end end Last.base, Last.kind = base, "classic" local msg = "Bitti: " .. tostring(res) .. " parça" if infDone then msg = msg .. " (INF ile)" end if skipped > 0 then msg = msg .. " (envanter yüzünden " .. skipped .. " atlandı)" end if infMsg and not infDone then msg = msg .. " | INF: " .. infMsg end if warn then msg = msg .. " | UYARI: " .. warn end status(msg, (warn or skipped > 0) and Color3.fromRGB(220, 160, 60) or Color3.fromRGB(70, 190, 120)) end pcall(INF.hideEnd) S.busy = false end) end local C = { bg = Color3.fromRGB(18, 20, 28), panel = Color3.fromRGB(28, 32, 44), item = Color3.fromRGB(38, 44, 60), accent = Color3.fromRGB(80, 150, 255), text = Color3.fromRGB(235, 240, 250), muted = Color3.fromRGB(150, 160, 180), good = Color3.fromRGB(70, 190, 120), bad = Color3.fromRGB(220, 80, 90), warn = Color3.fromRGB(220, 160, 60), } ---------------------------------------------------------------------- -- TAKİP: blokları karakterin (kafasının) üstünde formasyon bozulmadan taşır -- Mantık (physics gun'daki gibi): bloklar çözülür (unanchor), her karede hedef -- konuma taşınır. Kamera güncellendikten hemen sonra (render öncesi) taşındığı için -- titremeden kafanın tam üstünde durur. ---------------------------------------------------------------------- local Follow = { on = false, freeze = false, bound = false, src = nil, entries = {}, bottom = 0, cur = nil, rot = CFrame.new(), hoChar = nil, headOff = 2.5 } local Live = { auto = false, sync = false, tokens = {}, cfg = nil, changed = 0, failText = nil } local setAutoToggle -- UI bölümünde atanır (ANLIK YAZ düğmesini açar/kapatır) local FOLLOW_BIND = "BYS_Follow_" .. HttpService:GenerateGUID(false) -- tek seferde tek iş: S.busy kilidi local function locked(fn) if S.busy then status("Meşgul, bekle...", C.warn) return false end S.busy = true task.spawn(function() local ok, err = pcall(fn) S.busy = false if not ok then status("Hata: " .. tostring(err), C.bad) end end) return true end local function propRF() local tool = equip("PropertiesTool") return tool and (tool:FindFirstChild("SetPropertieRF") or tool:FindFirstChildWhichIsA("RemoteFunction")) end local function blocksOf(entries) local t = {} for i, e in ipairs(entries) do t[i] = e.blk end return t end local function setAnchoredList(blocks, want) local list, parts = {}, {} for _, blk in ipairs(blocks) do local pp = blk.Parent and blk:FindFirstChild("PPart") if pp then parts[#parts + 1] = pp if pp.Anchored ~= want and Pend.ok(blk, "Anchored") then list[#list + 1] = blk Pend.mark(blk, "Anchored") end end end if #list == 0 then return true end beginToolGui() local rf = propRF() if not rf then endToolGui() return false, "PropertiesTool bulunamadı" end for i = 1, #list, 1000 do local chunk = table.move(list, i, math.min(i + 999, #list), 1, {}) pcall(function() rf:InvokeServer("Anchored", chunk) end) task.wait() end endToolGui() local t0 = os.clock() while os.clock() - t0 < 2.5 do local bad = false for _, pp in ipairs(parts) do if pp.Parent and pp.Anchored ~= want then bad = true break end end if not bad then return true end task.wait(0.1) end return false, "Sunucu bazı blokların Anchored durumunu değiştirmedi" end -- blokları siler (DeleteTool). Silinemeyen kalırsa false döner. local function deleteBlocks(blocks) local list = {} for _, b in ipairs(blocks) do if b.Parent then list[#list + 1] = b end end if #list == 0 then return true end local rf = getRF("DeleteTool") if not rf then return false end local active = 0 for _, blk in ipairs(list) do while active >= 40 do task.wait() end active = active + 1 task.spawn(function() pcall(function() rf:InvokeServer(blk) end) active = active - 1 end) end while active > 0 do task.wait() end local t0 = os.clock() while os.clock() - t0 < 2 do local left = false for _, b in ipairs(list) do if b.Parent then left = true break end end if not left then return true end task.wait(0.1) end return false end -- silinen harfin blokları: varsayılan olarak takip bırakılır, bloklar düşüp gider. -- "DeleteTool ile sil" açıksa silinir; silinemeyen kalırsa olduğu yerde sabitlenir. local function deleteOrPark(blocks) if not S.delTool then -- takipten çıkarılınca (çağıran harfleri listeden atar) çözülmüş bloklar düşer for _, b in ipairs(blocks) do local pp = b.Parent and b:FindFirstChild("PPart") if pp then pp.CanCollide = false end end setAnchoredList(blocks, false) return true end if deleteBlocks(blocks) then return true end local left = {} for _, b in ipairs(blocks) do if b.Parent then left[#left + 1] = b end end setAnchoredList(left, true) return false end local function unequipAll() local hum = LP.Character and LP.Character:FindFirstChildOfClass("Humanoid") if hum then pcall(function() hum:UnequipTools() end) end end -- HumanoidRootPart merkezinden kafanın tepesine olan yükseklik (karakter başına bir kez ölçülür) local function headOffset(char, hrp) if Follow.hoChar ~= char then local head = char:FindFirstChild("Head") if not (head and head:IsA("BasePart")) then return Follow.headOff end local off = hrp.CFrame:PointToObjectSpace(head.Position).Y + head.Size.Y / 2 if off < 0.5 or off > 12 then off = 2.5 end Follow.hoChar, Follow.headOff = char, off end return Follow.headOff end local function followStep(dt) -- hedef oyuncu seçiliyse yazı onun kafasının üstüne gider local tp = S.target if tp and tp.Parent ~= Players then S.target, tp = nil, nil end local char = (tp and tp.Character) or LP.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") if not Follow.freeze and hrp then local rot local cam = Workspace.CurrentCamera if S.fFaceCam and cam then -- yazı her zaman kameraya dönük: soldan sağa okunur local lv = cam.CFrame.LookVector local flat = Vector3.new(lv.X, 0, lv.Z) if flat.Magnitude < 1e-3 then local hl = hrp.CFrame.LookVector flat = Vector3.new(hl.X, 0, hl.Z) end if flat.Magnitude < 1e-3 then flat = Vector3.new(0, 0, -1) end rot = CFrame.lookAt(Vector3.zero, flat.Unit) elseif S.fRotate then local _, ry = hrp.CFrame:ToOrientation() rot = CFrame.Angles(0, ry, 0) else rot = Follow.rot end rot = rot * CFrame.Angles(0, math.rad(S.fYaw), 0) local up = S.fHeight if S.fHead then -- yazının alt kenarı kafanın tepesinden S.fHeight kadar yukarıda up = headOffset(char, hrp) + S.fHeight - Follow.bottom end -- konum oyuncunun GÖVDESİNE göre: önü/arkası ve sağı/solu oyuncunun baktığı yöne göre local look = hrp.CFrame.LookVector local flat = Vector3.new(look.X, 0, look.Z) flat = flat.Magnitude > 1e-3 and flat.Unit or Vector3.new(0, 0, -1) local right = Vector3.new(-flat.Z, 0, flat.X) local pos = hrp.Position + Vector3.new(0, up, 0) + flat * S.fFwd + right * S.fSide local tgt = CFrame.new(pos) * rot * CFrame.new(0, 0, S.fDist) if not Follow.cur or S.fSpeed >= 100 then Follow.cur = tgt else Follow.cur = Follow.cur:Lerp(tgt, 1 - math.exp(-S.fSpeed * dt * 0.5)) end end local cur = Follow.cur if not cur then return end local ps, cfs, n = {}, {}, 0 local now = os.clock() local own = S.onlyOwned and Follow.own or nil for _, e in ipairs(Follow.entries) do local pp = e.part -- SABİT (anchored) blok sunucuda yerinden oynamaz: sende de taşınmaz, olduğu yerde görünür. -- (açıksa) kontrolü sende olmayan blok da diğerlerinde taşınmadığı için taşınmaz. if pp.Parent and not pp.Anchored and not (own and own[pp] == false) then n = n + 1 ps[n] = pp local src = e.src local rel = e.rel -- dizilim değişince (yeni satır, silinen harf) eski harfler zıplamaz, kayarak gider local sl = src and src.slide if sl then local a = S.slideTime > 0 and (now - sl.t0) / S.slideTime or 1 if a >= 1 then src.slide = nil else a = a * a * (3 - 2 * a) rel = sl.from:Lerp(rel, a) end end -- kayma için sadece DİZİLİM konumu saklanır (süzülme yüksekliği karışmasın, harf zıplamasın) if src then src.shownRel = rel end -- DALGA: harfler yazı boyunca dalga gibi aşağı yukarı oynar (soldan sağa akar) if S.wave then local x = rel.Position.X rel = CFrame.new(0, S.waveAmp * math.sin(now * S.waveSpeed - x * S.waveFreq), 0) * rel end -- yeni harf: başka harflerin içinden geçmesin diye kendi yerinin ÜSTÜNDE belirip süzülür local ap = src and src.appear if ap then local a = S.flyTime > 0 and (now - ap) / S.flyTime or 1 if a >= 1 then src.appear = nil pp.LocalTransparencyModifier = 0 else local k = a * a * (3 - 2 * a) rel = CFrame.new(0, S.dropH * (1 - k), 0) * rel pp.LocalTransparencyModifier = 1 - k end end local cf = cur * rel local fly = src and src.fly if fly then local a = S.flyTime > 0 and (now - fly.t0) / S.flyTime or 1 if a >= 1 then src.fly = nil elseif a > 0 then a = a * a * (3 - 2 * a) cf = fly.from:Lerp(cf, a) else cf = fly.from end end cfs[n] = cf e.cmd, e.cmdT = cf, now -- bekçi: komut verdiğimiz yer (blok başka yerdeyse kontrol bizde değil) end end if n == 0 then return end Workspace:BulkMoveTo(ps, cfs, Enum.BulkMoveMode.FireCFrameChanged) -- akan gökkuşağı: senin ekranında her karede pürüzsüz akar (diğerleri boyama ile görür) if S.rainbow and S.rbAnim and Follow.src == "live" then local shift = now * S.rbSpeed for _, e in ipairs(Follow.entries) do local src = e.src if src and src.hueT and e.part.Parent then e.part.Color = Color3.fromHSV(((src.hueT - shift) * S.rainbowStep) % 1, 0.9, 1) end end end -- KONTROLÜ TUT (açık kaynak "netless / RetainPart" yöntemi): hız SIFIR olursa blok "duruyor" -- sayılır ve sunucu kontrolü kolayca başkasına verir. Sabit ~25 boyunda (y'si hafif değişen) -- bir hız verilince sunucu bloğu "hareketli ve bende" sayar. Konum yine her karede bizden gelir. local nv = S.netless and Vector3.new(14.46262424, 14.46262424 + math.cos(now * 10) / 100, 14.46262424) or Vector3.zero for k = 1, n do ps[k].AssemblyLinearVelocity = nv ps[k].AssemblyAngularVelocity = Vector3.zero end Follow.lastPs, Follow.lastCfs = ps, cfs end -- fizik adımından SONRA blokları tam yerine geri koy (verilen hız onları ~0.4 stud kaydırmasın) RunService.Heartbeat:Connect(function() if S.closed or not (S.netless and Follow.on and Follow.bound and not Follow.freeze) then return end local ps, cfs = Follow.lastPs, Follow.lastCfs if not ps or #ps == 0 then return end local ps2, cfs2, m = {}, {}, 0 for k = 1, #ps do local pp = ps[k] if pp.Parent and not pp.Anchored and cfs[k] then m = m + 1 ps2[m], cfs2[m] = pp, cfs[k] end end if m == 0 then return end pcall(function() Workspace:BulkMoveTo(ps2, cfs2, Enum.BulkMoveMode.FireCFrameChanged) end) local nv = Vector3.new(14.46262424, 14.46262424 + math.cos(os.clock() * 10) / 100, 14.46262424) for k = 1, m do ps2[k].AssemblyLinearVelocity = nv end end) -- UZAKTAN GETİR: bloklar çözülürken sen uzaktaysan kontrol sana geçmez, yazı gelmez. -- Açıksa karakter bir anlığına blokların yanına gider, çözme yapılır, kontrol SANA geçene kadar -- beklenir (süre kendiliğinden: isnetworkowner varsa geçtiği an, yoksa ping'e göre), sonra geri döner. local function pingSec() local ms pcall(function() ms = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValue() end) if not ms then pcall(function() ms = LP:GetNetworkPing() * 2000 end) end return math.clamp((tonumber(ms) or 150) / 1000, 0.03, 1.5) end local function unanchorNear(blocks) local char = LP.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") local parts, sum = {}, Vector3.zero for _, b in ipairs(blocks) do local pp = b.Parent and b:FindFirstChild("PPart") if pp then parts[#parts + 1] = pp sum = sum + pp.Position end end if not (S.tpFetch and hrp and #parts > 0) then return setAnchoredList(blocks, false) end local center = sum / #parts if (hrp.Position - center).Magnitude <= S.tpFetchDist then return setAnchoredList(blocks, false) end local back = hrp.CFrame local t0 = os.clock() -- blokların biraz yanına ve üstüne (içine değil) hrp.CFrame = CFrame.new(center + Vector3.new(0, 6, 8)) hrp.AssemblyLinearVelocity = Vector3.zero task.wait(pingSec()) -- yeni konumumuz sunucuya ulaşsın local ok, err = setAnchoredList(blocks, false) -- kontrol bize geçene kadar bekle (en fazla 2 sn) local need = math.max(0.4, pingSec() * 3) local deadline = os.clock() + 2 local canCheck = type(isnetworkowner) == "function" while os.clock() < deadline do if canCheck then local mine, total = 0, 0 for i = 1, #parts, math.max(1, math.floor(#parts / 12)) do -- örnek bloklar local pp = parts[i] if pp.Parent then total = total + 1 local okc, m = pcall(isnetworkowner, pp) if okc and m then mine = mine + 1 end end end if total > 0 and mine >= total * 0.8 then break end elseif os.clock() - t0 >= need then break end hrp.CFrame = CFrame.new(center + Vector3.new(0, 6, 8)) hrp.AssemblyLinearVelocity = Vector3.zero task.wait(0.03) end -- DÖNÜŞ PARÇA PARÇA: tek atlayışta dönünce bloklar geride kalıp düşüyordu. -- Yol S.tpHops parçaya bölünür, hızlı hızlı atlayarak dönülür; bloklar her atlayışta yetişir. local stay = os.clock() - t0 local from = hrp.CFrame local hops = math.max(1, math.floor(S.tpHops + 0.5)) local hopWait = math.clamp(pingSec(), 0.08, 0.3) for h = 1, hops do if not hrp.Parent then break end local a = h / hops local p = from.Position:Lerp(back.Position, a) hrp.CFrame = (h == hops) and back or (CFrame.new(p) * (back - back.Position)) hrp.AssemblyLinearVelocity = Vector3.zero if h < hops then local w0 = os.clock() while os.clock() - w0 < hopWait do hrp.CFrame = CFrame.new(p) * (back - back.Position) -- atlayış noktasında dur hrp.AssemblyLinearVelocity = Vector3.zero task.wait() end end end status(string.format("Uzaktan getirildi (%.2f sn yanında, %d atlayışta dönüldü)", stay, hops), C.good) return ok, err end local function farFrom(blocks) local char = LP.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") local sum, n = Vector3.zero, 0 for _, b in ipairs(blocks) do local pp = b.Parent and b:FindFirstChild("PPart") if pp then sum = sum + pp.Position n = n + 1 end end return hrp and n > 0 and (hrp.Position - sum / n).Magnitude > S.tpFetchDist end local function followConnect(src, entries, bottom, rot) Follow.src, Follow.entries, Follow.bottom, Follow.rot = src, entries, bottom, rot or CFrame.new() Follow.cur, Follow.freeze, Follow.on = nil, false, true if not Follow.bound then RunService:BindToRenderStep(FOLLOW_BIND, Enum.RenderPriority.Camera.Value + 1, followStep) Follow.bound = true end end local function followDisconnect() if Follow.bound then pcall(function() RunService:UnbindFromRenderStep(FOLLOW_BIND) end) Follow.bound = false end Follow.on, Follow.freeze, Follow.src, Follow.entries, Follow.cur = false, false, nil, {}, nil Follow.lastPs, Follow.lastCfs = nil, nil end -- takibi bitirir, blokları bulundukları yerde (veya eski konumda) sabitler. (bekletir) local function followStopSync(returnHome) if not Follow.on then return true end Follow.freeze = true if returnHome then local base = (Follow.src == "live") and baseCF() or nil local es = {} for i, e in ipairs(Follow.entries) do es[i] = { blk = e.blk, part = e.part, rel = base and (base * e.rel) or e.orig or e.part.CFrame } end Follow.entries = es Follow.cur = CFrame.new() end task.wait(0.1) local ok, err = setAnchoredList(blocksOf(Follow.entries), true) task.wait(0.1) followDisconnect() return ok, err end -- son yapılan SABİT yazı/resmi takibe alır (bekletir) followClassicSync = function() if not Last.blocks or #Last.blocks == 0 then error("Önce bir yazı/resim yap", 0) end if Follow.on then followStopSync(false) end local entries, sum = {}, Vector3.zero for _, blk in ipairs(Last.blocks) do local pp = blk.Parent and blk:FindFirstChild("PPart") if pp then entries[#entries + 1] = { blk = blk, part = pp } sum = sum + pp.Position end end if #entries == 0 then error("Takip edilecek blok kalmadı", 0) end local rot = Last.base and (Last.base - Last.base.Position) or CFrame.new() local C0 = CFrame.new(sum / #entries) * rot local bottom = math.huge local now = os.clock() for _, e in ipairs(entries) do e.rel = C0:ToObjectSpace(e.part.CFrame) e.orig = e.part.CFrame e.src = e e.fly = { from = e.part.CFrame, t0 = now } e.part.CanCollide = false local b = e.rel.Position.Y - e.part.Size.Y / 2 if b < bottom then bottom = b end end -- önce taşımaya başla (düşmesinler), sonra çöz followConnect("last", entries, bottom, rot) status("Bloklar çözülüyor...", C.muted) local ok, err = unanchorNear(blocksOf(entries)) if not ok then followDisconnect() for _, e in ipairs(entries) do if e.part.Parent then e.part.CFrame = e.orig end end setAnchoredList(blocksOf(entries), true) error("Takip başlamadı: " .. tostring(err), 0) end status("Takip AÇIK: " .. #entries .. " blok (kafanın üstünde)", C.good) end -- kontrol (sahiplik) önbelleği: yarım saniyede bir hangi blokların bizde olduğunu öğrenir local function ownerCache() local check = isnetworkowner while not S.closed do task.wait(0.5) if S.onlyOwned and type(check) == "function" and Follow.on then local t = {} for _, e in ipairs(Follow.entries) do local pp = e.part if pp.Parent then local ok, mine = pcall(check, pp) if ok then t[pp] = mine and true or false end end end Follow.own = t else Follow.own = nil end end end -- BEKÇİ: takip koptuysa yeniden bağlar, sabit (anchored) kalan blokları çözer -- YAZI BEKÇİSİ: takip ederken bir bloğun kontrolü senden giderse (uzaklık / başka oyuncu yakın) -- sunucu onu kendi fiziğiyle uçurur ya da düşürür (yok olur). Bekçi bunu hemen fark eder ve -- bloğu OLDUĞU YERDE sabitler. Yanına (rejoinDist) gelince sabit açılır, kontrol sana geçer, takip devam eder. Follow.parked = setmetatable({}, { __mode = "k" }) local function textGuard() while not S.closed do task.wait(0.15) if S.guardText and Follow.on and not S.busy and not Follow.freeze then local lost, back = {}, {} local char = LP.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") local now = os.clock() for _, e in ipairs(Follow.entries) do local pp = e.part local blk = pp and pp.Parent if blk and blk.Parent then if not pp.Anchored then local gone = false if type(isnetworkowner) == "function" then local ok, mine = pcall(isnetworkowner, pp) if ok and mine == false then gone = true end end -- komut verdiğimiz yerden 4 stud'dan fazla uzaktaysa sunucu onu başka yere götürüyor if not gone and e.cmd and e.cmdT and now - e.cmdT < 0.5 and (pp.Position - e.cmd.Position).Magnitude > 4 then e.far = (e.far or 0) + 1 gone = e.far >= 2 else e.far = 0 end if gone then lost[#lost + 1] = blk end elseif Follow.parked[blk] and hrp and (pp.Position - hrp.Position).Magnitude <= S.rejoinDist then back[#back + 1] = blk end end end if #lost > 0 or #back > 0 then S.busy = true if #lost > 0 then pcall(setAnchoredList, lost, true) for _, b in ipairs(lost) do Follow.parked[b] = true end status(#lost .. " bloğun kontrolü gitti: uçmasın/düşmesin diye OLDUĞU YERDE sabitlendi (yanına gidince takibe döner)", C.warn) end if #back > 0 then pcall(setAnchoredList, back, false) for _, b in ipairs(back) do Follow.parked[b] = nil end -- kaldığı yerden süzülerek yerine gelsin local set = {} for _, b in ipairs(back) do set[b] = true end for _, e in ipairs(Follow.entries) do if e.part and set[e.part.Parent] and e.src then e.src.fly = { from = e.part.CFrame, t0 = os.clock() } end end status(#back .. " sabitlenmiş blok yanına geldin diye takibe döndü", C.good) end unequipAll() S.busy = false end end end end -- SİMÜLASYON YARIÇAPI: oyuncunun kontrol edebildiği alanı büyütmeye çalışır (executor destekliyorsa). -- Yeni Roblox'ta etkisi sınırlı olabilir; zararı yok, desteklenmiyorsa hiçbir şey yapmaz. local SimR = { ok = nil } local function simRadiusLoop() local function apply() local done = false if type(sethiddenproperty) == "function" then local a = pcall(sethiddenproperty, LP, "SimulationRadius", 1e9) local b = pcall(sethiddenproperty, LP, "MaximumSimulationRadius", 1e9) done = a or b end if not done and type(setsimulationradius) == "function" then done = pcall(setsimulationradius, 1e9, 1e9) end if not done then done = pcall(function() LP.MaximumSimulationRadius = 1e9 LP.SimulationRadius = 1e9 end) end return done end while not S.closed do if S.simRadius then local ok = apply() if SimR.ok == nil then SimR.ok = ok if not ok then status("Executor SimulationRadius değiştirmeyi desteklemiyor", C.warn) end end end RunService.Heartbeat:Wait() end end -- düğmeler için startFollow = function() if Follow.on then status("Takip zaten açık", C.warn) return end locked(function() followClassicSync() end) end stopFollow = function(returnHome) if not Follow.on then status("Takip zaten kapalı", C.warn) return end if S.busy then status("Meşgul, bekle...", C.warn) return end if Follow.src == "live" and setAutoToggle then setAutoToggle(false) end locked(function() local ok, err = followStopSync(returnHome) if ok then status(returnHome and "Bloklar eski konuma döndü" or "Takip kapandı, bloklar sabitlendi", C.good) else status("Takip kapandı ama: " .. tostring(err), C.bad) end end) end ---------------------------------------------------------------------- -- ARAYÜZ ---------------------------------------------------------------------- local function new(class, props, parent) local o = Instance.new(class) for k, v in pairs(props or {}) do o[k] = v end o.Parent = parent return o end local function round(o, r) new("UICorner", { CornerRadius = UDim.new(0, r or 8) }, o) end local function stroke(o, col) new("UIStroke", { Color = col or Color3.fromRGB(60, 70, 95), Thickness = 1 }, o) end local ORD = 0 local function nord() ORD = ORD + 1 return ORD end local parentGui = gethui and gethui() or nil if not parentGui then local ok = pcall(function() local _ = CoreGui.Name end) parentGui = ok and CoreGui or LP:WaitForChild("PlayerGui") end for _, p in ipairs({ parentGui, LP:FindFirstChild("PlayerGui") }) do local o = p and p:FindFirstChild("BYS_GUI") if o then o:Destroy() end end local gui = HOST.gui local main = new("Frame", { Name = "Main", Position = HOST.pos, Size = UDim2.fromOffset(360, 520), BackgroundColor3 = C.bg, BorderSizePixel = 0, Active = true }, gui) round(main, 12) stroke(main) local uiscale = new("UIScale", {}, main) local function fit() local cam = Workspace.CurrentCamera local v = cam and cam.ViewportSize or Vector2.new(800, 600) uiscale.Scale = math.clamp(math.min(v.X * 0.92 / 360, v.Y * 0.92 / 520), 0.4, 1) end fit() if Workspace.CurrentCamera then Workspace.CurrentCamera:GetPropertyChangedSignal("ViewportSize"):Connect(fit) end -- başlık local header = new("Frame", { Size = UDim2.new(1, 0, 0, 38), BackgroundColor3 = C.panel, BorderSizePixel = 0 }, main) round(header, 12) new("Frame", { Position = UDim2.new(0, 0, 1, -12), Size = UDim2.new(1, 0, 0, 12), BackgroundColor3 = C.panel, BorderSizePixel = 0 }, header) new("TextLabel", { BackgroundTransparency = 1, Position = UDim2.fromOffset(12, 0), Size = UDim2.new(1, -170, 1, 0), Text = "BYS • Resim", TextColor3 = C.text, Font = Enum.Font.GothamBold, TextSize = 14, TextXAlignment = Enum.TextXAlignment.Left }, header) local function headBtn(text, xOff, col, cb) local b = new("TextButton", { Text = text, Size = UDim2.fromOffset(28, 26), Position = UDim2.new(1, xOff, 0, 6), BackgroundColor3 = col, TextColor3 = C.text, Font = Enum.Font.GothamBold, TextSize = 16, AutoButtonColor = true, BorderSizePixel = 0 }, header) round(b, 7) b.MouseButton1Click:Connect(cb) return b end local dragging, dStart, dPos = false, nil, nil header.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then dragging, dStart, dPos = true, i.Position, main.Position end end) header.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then dragging = false end end) UIS.InputChanged:Connect(function(i) if dragging and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then local d = (i.Position - dStart) / uiscale.Scale main.Position = UDim2.new(dPos.X.Scale, dPos.X.Offset + d.X, dPos.Y.Scale, dPos.Y.Offset + d.Y) end end) -- gövde (küçültülebilir) local body = new("Frame", { Position = UDim2.fromOffset(0, 38), Size = UDim2.new(1, 0, 1, -38), BackgroundTransparency = 1 }, main) local minimized = false headBtn("–", -66, C.item, function() minimized = not minimized body.Visible = not minimized main.Size = minimized and UDim2.fromOffset(360, 38) or UDim2.fromOffset(360, 520) end) -- arayüz kapanınca (× veya script tekrar çalıştırılınca) her şeyi durdur gui.Destroying:Connect(function() if S.closed then return end S.closed, S.abort, Live.auto, Live.sync = true, true, false, false task.spawn(function() -- süren iş bitsin, sonra takip edilen blokları düşmesinler diye sabitle local t0 = os.clock() while S.busy and os.clock() - t0 < 10 do task.wait(0.1) end if Follow.on then pcall(followStopSync, false) end end) end) headBtn("×", -34, C.bad, function() S.abort = true clearPreview() PrevFolder:Destroy() HOST.closeAll() end) -- alt durum çubuğu local footer = new("Frame", { Position = UDim2.new(0, 8, 1, -74), Size = UDim2.new(1, -16, 0, 66), BackgroundColor3 = C.panel, BorderSizePixel = 0 }, body) round(footer, 10) local statusLabel = new("TextLabel", { BackgroundTransparency = 1, Position = UDim2.fromOffset(10, 4), Size = UDim2.new(1, -86, 0, 40), Text = "Hazır", TextColor3 = C.text, Font = Enum.Font.Gotham, TextSize = 12, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top }, footer) local progTrack = new("Frame", { Position = UDim2.fromOffset(10, 50), Size = UDim2.new(1, -20, 0, 8), BackgroundColor3 = C.item, BorderSizePixel = 0 }, footer) round(progTrack, 4) local progFill = new("Frame", { Size = UDim2.new(0, 0, 1, 0), BackgroundColor3 = C.accent, BorderSizePixel = 0 }, progTrack) round(progFill, 4) local abortBtn = new("TextButton", { Text = "DURDUR", Position = UDim2.new(1, -72, 0, 8), Size = UDim2.fromOffset(62, 28), BackgroundColor3 = C.bad, TextColor3 = C.text, Font = Enum.Font.GothamBold, TextSize = 11, BorderSizePixel = 0 }, footer) round(abortBtn, 7) abortBtn.MouseButton1Click:Connect(function() S.abort = true status("Durduruluyor...", C.warn) end) -- INF kartı: üretim sırasında pencerenin üstünde do local card = new("Frame", { Name = "InfCard", Position = UDim2.fromOffset(8, 40), Size = UDim2.new(1, -16, 0, 92), BackgroundColor3 = C.panel, BorderSizePixel = 0, Visible = false, ZIndex = 20 }, body) round(card, 10) stroke(card, C.accent) local title = new("TextLabel", { BackgroundTransparency = 1, Position = UDim2.fromOffset(12, 6), Size = UDim2.new(1, -110, 0, 20), Text = "INF Blok Üretimi", TextColor3 = C.text, Font = Enum.Font.GothamBold, TextSize = 13, TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd, ZIndex = 21 }, card) local head = new("TextLabel", { BackgroundTransparency = 1, Position = UDim2.new(1, -100, 0, 6), Size = UDim2.fromOffset(88, 20), Text = "", TextColor3 = C.muted, Font = Enum.Font.Code, TextSize = 12, TextXAlignment = Enum.TextXAlignment.Right, ZIndex = 21 }, card) local info = new("TextLabel", { BackgroundTransparency = 1, Position = UDim2.fromOffset(12, 28), Size = UDim2.new(1, -24, 0, 16), Text = "", TextColor3 = C.muted, Font = Enum.Font.Gotham, TextSize = 11, TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd, ZIndex = 21 }, card) local st = new("TextLabel", { BackgroundTransparency = 1, Position = UDim2.fromOffset(12, 46), Size = UDim2.new(1, -24, 0, 26), Text = "", TextColor3 = C.text, Font = Enum.Font.Gotham, TextSize = 11, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top, ZIndex = 21 }, card) local track = new("Frame", { Position = UDim2.new(0, 12, 1, -14), Size = UDim2.new(1, -24, 0, 6), BackgroundColor3 = C.item, BorderSizePixel = 0, ZIndex = 21 }, card) round(track, 3) local fill = new("Frame", { Size = UDim2.new(0, 0, 1, 0), BackgroundColor3 = Color3.fromRGB(90, 170, 255), BorderSizePixel = 0, ZIndex = 22 }, track) round(fill, 3) local T = { t0 = 0, gen = 0 } INF.UI.begin = function(name, missing, calls) T.gen = T.gen + 1 T.t0 = os.clock() title.Text = "INF Blok Üretimi • " .. tostring(name) title.TextColor3 = C.text info.Text = string.format("+%d blok gerekiyor • %d istek", missing, calls) st.Text = "Başlıyor..." st.TextColor3 = C.text fill.Size = UDim2.new(0, 0, 1, 0) fill.BackgroundColor3 = Color3.fromRGB(90, 170, 255) card.Visible = true end INF.UI.set = function(text, done, total) st.Text = tostring(text) local f = (total and total > 0) and math.clamp((done or 0) / total, 0, 1) or 0 fill.Size = UDim2.new(f, 0, 1, 0) head.Text = string.format("%%%d • %.1f sn", math.floor(f * 100 + 0.5), os.clock() - T.t0) progFill.Size = UDim2.new(f, 0, 1, 0) statusLabel.Text = string.format("INF: %s (%d/%d)", tostring(text), done or 0, total or 0) end INF.UI.finish = function(ok, text) local my = T.gen title.Text = ok and "INF Blok Üretimi • tamamlandı" or "INF Blok Üretimi • sorun var" title.TextColor3 = ok and C.good or C.bad st.Text = tostring(text or "") st.TextColor3 = ok and C.good or C.warn fill.BackgroundColor3 = ok and C.good or C.bad if ok then fill.Size = UDim2.new(1, 0, 1, 0) end head.Text = string.format("%.1f sn", os.clock() - T.t0) task.delay(ok and 4 or 8, function() if T.gen == my then card.Visible = false end end) end end status = function(t, col) statusLabel.Text = tostring(t) statusLabel.TextColor3 = col or C.text end setProgress = function(a, b, label) local f = b > 0 and math.clamp(a / b, 0, 1) or 0 progFill.Size = UDim2.new(f, 0, 1, 0) status(string.format("%s: %d/%d", label, a, b), C.text) end -- sekmeler local pages, tabBtns = {}, {} local function showTab(n) for i, p in ipairs(pages) do p.Visible = (i == n) end for i, b in ipairs(tabBtns) do b.BackgroundColor3 = (i == n) and C.accent or C.item end end local function makePage() local sf = new("ScrollingFrame", { Position = UDim2.fromOffset(8, 40), Size = UDim2.new(1, -16, 1, -40 - 82), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 4, AutomaticCanvasSize = Enum.AutomaticSize.Y, CanvasSize = UDim2.new(), Visible = false, }, body) new("UIListLayout", { Padding = UDim.new(0, 6), SortOrder = Enum.SortOrder.LayoutOrder }, sf) pages[#pages + 1] = sf return sf end local tabNames = { "YAZI", "RESİM", "TAKİP", "AYAR" } for i, n in ipairs(tabNames) do local b = new("TextButton", { Text = n, Position = UDim2.new((i - 1) / #tabNames, 2, 0, 6), Size = UDim2.new(1 / #tabNames, -4, 0, 28), BackgroundColor3 = C.item, TextColor3 = C.text, Font = Enum.Font.GothamBold, TextSize = 12, BorderSizePixel = 0 }, body) round(b, 7) b.MouseButton1Click:Connect(function() showTab(i) end) tabBtns[i] = b end local pText, pImg, pFol, pSet = makePage(), makePage(), makePage(), makePage() -- bileşenler local function addLabel(parent, text, col) return new("TextLabel", { LayoutOrder = nord(), BackgroundTransparency = 1, Size = UDim2.new(1, -6, 0, 18), Text = text, TextColor3 = col or C.muted, Font = Enum.Font.GothamBold, TextSize = 11, TextXAlignment = Enum.TextXAlignment.Left, TextWrapped = true }, parent) end local function addButtons(parent, defs) local row = new("Frame", { LayoutOrder = nord(), BackgroundTransparency = 1, Size = UDim2.new(1, -6, 0, 34) }, parent) local n = #defs for i, d in ipairs(defs) do local b = new("TextButton", { Text = d[1], Position = UDim2.new((i - 1) / n, 2, 0, 0), Size = UDim2.new(1 / n, -4, 1, 0), BackgroundColor3 = d[2], TextColor3 = C.text, Font = Enum.Font.GothamBold, TextSize = 12, BorderSizePixel = 0, TextWrapped = true }, row) round(b, 8) b.MouseButton1Click:Connect(d[3]) end end local function addTextBox(parent, label, default, placeholder, multiline, cb) local h = multiline and 104 or 58 local f = new("Frame", { LayoutOrder = nord(), BackgroundColor3 = C.item, Size = UDim2.new(1, -6, 0, h), BorderSizePixel = 0 }, parent) round(f, 8) new("TextLabel", { BackgroundTransparency = 1, Position = UDim2.fromOffset(10, 4), Size = UDim2.new(1, -20, 0, 16), Text = label, TextColor3 = C.text, Font = Enum.Font.GothamMedium, TextSize = 12, TextXAlignment = Enum.TextXAlignment.Left }, f) local box = new("TextBox", { Position = UDim2.fromOffset(10, 24), Size = UDim2.new(1, -20, 0, h - 32), BackgroundColor3 = C.panel, TextColor3 = C.text, PlaceholderText = placeholder or "", PlaceholderColor3 = C.muted, Font = Enum.Font.Gotham, TextSize = 12, Text = default or "", ClearTextOnFocus = false, MultiLine = multiline or false, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = multiline and Enum.TextYAlignment.Top or Enum.TextYAlignment.Center, BorderSizePixel = 0, }, f) round(box, 6) box:GetPropertyChangedSignal("Text"):Connect(function() cb(box.Text) end) return box end local function addToggle(parent, label, def, cb) local f = new("Frame", { LayoutOrder = nord(), BackgroundColor3 = C.item, Size = UDim2.new(1, -6, 0, 36), BorderSizePixel = 0 }, parent) round(f, 8) new("TextLabel", { BackgroundTransparency = 1, Position = UDim2.fromOffset(10, 0), Size = UDim2.new(1, -90, 1, 0), Text = label, TextColor3 = C.text, Font = Enum.Font.GothamMedium, TextSize = 12, TextXAlignment = Enum.TextXAlignment.Left, TextWrapped = true }, f) local state = def local b = new("TextButton", { Position = UDim2.new(1, -70, 0, 6), Size = UDim2.fromOffset(60, 24), TextColor3 = C.text, Font = Enum.Font.GothamBold, TextSize = 11, BorderSizePixel = 0 }, f) round(b, 6) local function paint() b.Text = state and "AÇIK" or "KAPALI" b.BackgroundColor3 = state and C.good or C.panel end paint() b.MouseButton1Click:Connect(function() state = not state paint() cb(state) end) return function(v) if state == v then return end state = v paint() cb(v) end end local function addSlider(parent, label, min, max, def, step, cb) local holder = new("Frame", { LayoutOrder = nord(), BackgroundColor3 = C.item, Size = UDim2.new(1, -6, 0, 52), BorderSizePixel = 0 }, parent) round(holder, 8) new("TextLabel", { BackgroundTransparency = 1, Position = UDim2.fromOffset(10, 4), Size = UDim2.new(1, -90, 0, 18), Text = label, TextColor3 = C.text, Font = Enum.Font.GothamMedium, TextSize = 12, TextXAlignment = Enum.TextXAlignment.Left }, holder) local box = new("TextBox", { Position = UDim2.new(1, -74, 0, 4), Size = UDim2.fromOffset(64, 20), BackgroundColor3 = C.panel, TextColor3 = C.text, Font = Enum.Font.Gotham, TextSize = 12, Text = "", ClearTextOnFocus = false, BorderSizePixel = 0 }, holder) round(box, 5) local track = new("Frame", { Position = UDim2.new(0, 12, 0, 36), Size = UDim2.new(1, -24, 0, 6), BackgroundColor3 = C.panel, BorderSizePixel = 0 }, holder) round(track, 3) local fill = new("Frame", { Size = UDim2.new(0, 0, 1, 0), BackgroundColor3 = C.accent, BorderSizePixel = 0 }, track) round(fill, 3) local knob = new("Frame", { AnchorPoint = Vector2.new(0.5, 0.5), Size = UDim2.fromOffset(18, 18), Position = UDim2.new(0, 0, 0.5, 0), BackgroundColor3 = Color3.new(1, 1, 1), BorderSizePixel = 0 }, track) round(knob, 9) local hit = new("TextButton", { Text = "", BackgroundTransparency = 1, Position = UDim2.fromOffset(0, 26), Size = UDim2.new(1, 0, 0, 26) }, holder) local function setV(v, fire) v = math.clamp(v, min, max) if step and step > 0 then v = math.floor((v - min) / step + 0.5) * step + min end v = math.clamp(v, min, max) local a = (v - min) / (max - min) fill.Size = UDim2.new(a, 0, 1, 0) knob.Position = UDim2.new(a, 0, 0.5, 0) box.Text = tostring(math.floor(v * 1000 + 0.5) / 1000) if fire then cb(v) end end local sliding = false local function fromX(x) local a = math.clamp((x - track.AbsolutePosition.X) / math.max(1, track.AbsoluteSize.X), 0, 1) setV(min + (max - min) * a, true) end hit.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then sliding = true parent.ScrollingEnabled = false fromX(i.Position.X) end end) UIS.InputChanged:Connect(function(i) if sliding and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then fromX(i.Position.X) end end) UIS.InputEnded:Connect(function(i) if sliding and (i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch) then sliding = false parent.ScrollingEnabled = true end end) box.FocusLost:Connect(function() local n = tonumber(box.Text) if n then setV(n, true) else setV(def, false) end end) setV(def, false) cb(def) return function(v) setV(v, true) end end local function parseColor(s) s = tostring(s or ""):gsub("%s", "") local hex = s:gsub("^#", ""):gsub("^0[xX]", "") if #hex == 6 and hex:match("^%x+$") then return Color3.fromRGB(tonumber(hex:sub(1, 2), 16), tonumber(hex:sub(3, 4), 16), tonumber(hex:sub(5, 6), 16)) end local r, g, b = s:match("^(%d+),(%d+),(%d+)$") if r then return Color3.fromRGB(math.clamp(tonumber(r), 0, 255), math.clamp(tonumber(g), 0, 255), math.clamp(tonumber(b), 0, 255)) end return nil end local function toHex(c) return string.format("#%02X%02X%02X", math.floor(c.R * 255 + 0.5), math.floor(c.G * 255 + 0.5), math.floor(c.B * 255 + 0.5)) end local function addColorRow(parent, label, def, cb) local f = new("Frame", { LayoutOrder = nord(), BackgroundColor3 = C.item, Size = UDim2.new(1, -6, 0, 66), BorderSizePixel = 0 }, parent) round(f, 8) new("TextLabel", { BackgroundTransparency = 1, Position = UDim2.fromOffset(10, 4), Size = UDim2.new(1, -20, 0, 16), Text = label .. " (#RRGGBB veya R,G,B)", TextColor3 = C.text, Font = Enum.Font.GothamMedium, TextSize = 12, TextXAlignment = Enum.TextXAlignment.Left }, f) local box = new("TextBox", { Position = UDim2.fromOffset(10, 28), Size = UDim2.fromOffset(88, 28), BackgroundColor3 = C.panel, TextColor3 = C.text, Font = Enum.Font.Gotham, TextSize = 12, Text = toHex(def), ClearTextOnFocus = false, BorderSizePixel = 0 }, f) round(box, 6) local preview = new("Frame", { Position = UDim2.fromOffset(104, 28), Size = UDim2.fromOffset(28, 28), BackgroundColor3 = def, BorderSizePixel = 0 }, f) round(preview, 6) local function apply(c) preview.BackgroundColor3 = c box.Text = toHex(c) cb(c) end box.FocusLost:Connect(function() local c = parseColor(box.Text) if c then apply(c) else box.Text = toHex(preview.BackgroundColor3) end end) local sw = { Color3.fromRGB(255, 255, 255), Color3.fromRGB(0, 0, 0), Color3.fromRGB(255, 70, 70), Color3.fromRGB(255, 160, 40), Color3.fromRGB(255, 225, 60), Color3.fromRGB(80, 210, 120), Color3.fromRGB(60, 190, 230), Color3.fromRGB(80, 120, 255), Color3.fromRGB(200, 90, 230), } for i, c in ipairs(sw) do local b = new("TextButton", { Text = "", Position = UDim2.fromOffset(138 + (i - 1) * 24, 32), Size = UDim2.fromOffset(20, 20), BackgroundColor3 = c, BorderSizePixel = 0 }, f) round(b, 5) b.MouseButton1Click:Connect(function() apply(c) end) end end ---------------------------------------------------------------------- -- Üretim / önizleme / yapım akışı ---------------------------------------------------------------------- local countLabels = {} local function setCount(n) for _, l in ipairs(countLabels) do l.Text = "Parça sayısı: " .. tostring(n) end end function INF.info(items) local t = "Gereken: -" local col = C.muted if items and #items > 0 then local name = S.block local need = INF.need(name, items) local d = dataFolder() local dv = d and d:FindFirstChild(name) local have = dv and (tonumber(dv.Value) or 0) or 0 t = string.format("Gereken %d %s • envanter %d • ", need, name, have) if have >= need then t, col = t .. "yeterli", C.good elseif S.infOn and INF.able(name) then t, col = t .. "INF +" .. (need - have) .. " üretilecek", C.accent elseif S.infOn then t, col = t .. (need - have) .. " eksik (bu blokta INF yok)", C.warn else t, col = t .. (need - have) .. " eksik (INF kapalı)", C.warn end end for _, l in ipairs(INF.labels) do l.Text = t l.TextColor3 = col end end local function generate(kind, mode) if S.busy or S.gen then status("Meşgul, bekle...", C.warn) return end S.gen = true task.spawn(function() status("Hazırlanıyor...", C.muted) local ok, items, err = pcall(function() return makeImageItems() end) S.gen = false if not ok then status("Hata: " .. tostring(items), C.bad) return end if not items then status(tostring(err), C.bad) return end if #items == 0 then status("Üretilecek parça çıkmadı", C.bad) return end setCount(#items) pcall(INF.info, items) INF.lastItems = items if mode ~= "direct" then pcall(function() INF.zoneUI(INF.zoneCheck(items)) end) end if mode == "direct" then status(#items .. " parça hazır, yapılıyor...", C.text) build(items) return end if not getZone() then status("Takım alanı bulunamadı", C.bad) return end status("Önizleme çiziliyor (" .. #items .. " parça)...", C.muted) if setPreview(items) then status("Önizleme hazır: " .. #items .. " parça. AYAR sekmesinden konumlandırabilirsin.", C.good) end end) end local function buildFromPreview() if #Cur.items == 0 then status("Önce önizleme oluştur", C.bad) return end build(Cur.items) end ---------------------------------------------------------------------- -- RESİM sekmesi ---------------------------------------------------------------------- addLabel(pImg, "RESİM BUILDER") addTextBox(pImg, "Resim linki veya workspace dosya adı", S.imgSrc, "https://... veya resim.png", false, function(t) S.imgSrc = t end) addSlider(pImg, "Çözünürlük (yükseklik, piksel)", 16, 300, S.imgRes, 1, function(v) S.imgRes = v end) addSlider(pImg, "Hücre boyutu", 0.05, 3, S.imgCell, 0.05, function(v) S.imgCell = v end) addSlider(pImg, "Kalınlık", 0.05, 10, S.imgDepth, 0.05, function(v) S.imgDepth = v end) addSlider(pImg, "Renk seviyesi (düşük = daha az parça)", 2, 64, S.imgLevels, 1, function(v) S.imgLevels = v end) addToggle(pImg, "Parçaları birleştir (az blok)", S.imgMerge, function(v) S.imgMerge = v end) countLabels[#countLabels + 1] = addLabel(pImg, "Parça sayısı: -", C.accent) INF.labels[#INF.labels + 1] = addLabel(pImg, "Gereken: -", C.muted) do local zl = addLabel(pImg, "Arsa: -", C.muted) zl.Size = UDim2.new(1, -6, 0, 32) local rb = new("TextButton", { LayoutOrder = nord(), Text = "90° DÖNDÜR", Size = UDim2.new(1, -6, 0, 30), BackgroundColor3 = C.warn, TextColor3 = C.text, Font = Enum.Font.GothamBold, TextSize = 12, BorderSizePixel = 0, Visible = false }, pImg) round(rb, 8) INF.zoneUI = function(r) local t, ok = INF.zoneText(r, S.imgCell) zl.Text = "Arsa: " .. t zl.TextColor3 = ok and C.good or C.bad rb.Visible = (not r.ok) and (r.rot90ok or (r.shrink and r.shrink.rot ~= S.rot)) or false INF.zoneLast = r end rb.MouseButton1Click:Connect(function() local nr = (S.rot + 90) % 360 if INF.setRot then INF.setRot(nr) else S.rot = nr refreshTransform() end status("Dönüş " .. nr .. "° yapıldı", C.good) local its = (#Cur.items > 0 and Cur.items) or INF.lastItems if its then task.spawn(function() pcall(function() INF.zoneUI(INF.zoneCheck(its)) end) end) end end) end addButtons(pImg, { { "ÖNİZLE", C.accent, function() generate("image", "preview") end }, { "ÖNİZLEMEDEN YAP", C.good, buildFromPreview }, }) addButtons(pImg, { { "OTOMATİK YAP (direkt)", Color3.fromRGB(150, 90, 220), function() generate("image", "direct") end }, { "ÖNİZLEMEYİ SİL", C.item, function() clearPreview() status("Önizleme silindi") end }, }) ---------------------------------------------------------------------- -- TAKİP sekmesi ---------------------------------------------------------------------- do addLabel(pFol, "HEDEF OYUNCU (yazı kimin kafasının üstünde dursun)") local targetRow = new("Frame", { LayoutOrder = nord(), BackgroundColor3 = C.item, Size = UDim2.new(1, -6, 0, 40), BorderSizePixel = 0 }, pFol) round(targetRow, 8) local targetLabel = new("TextLabel", { BackgroundTransparency = 1, Position = UDim2.fromOffset(10, 0), Size = UDim2.new(1, -110, 1, 0), Text = "Hedef: Ben", TextColor3 = C.text, Font = Enum.Font.GothamMedium, TextSize = 12, TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd }, targetRow) local targetBtn = new("TextButton", { Text = "OYUNCU SEÇ", Position = UDim2.new(1, -100, 0, 6), Size = UDim2.fromOffset(90, 28), BackgroundColor3 = C.accent, TextColor3 = C.text, Font = Enum.Font.GothamBold, TextSize = 11, BorderSizePixel = 0 }, targetRow) round(targetBtn, 7) local function setTarget(pl) S.target = (pl and pl ~= LP) and pl or nil targetLabel.Text = "Hedef: " .. (S.target and (S.target.DisplayName .. " (@" .. S.target.Name .. ")") or "Ben") status(S.target and ("Yazı artık " .. S.target.DisplayName .. " oyuncusunu takip ediyor") or "Yazı artık seni takip ediyor", C.good) end -- hedef oyundan çıkarsa kendine dön Players.PlayerRemoving:Connect(function(pl) if pl == S.target then setTarget(nil) end end) targetBtn.MouseButton1Click:Connect(function() if main:FindFirstChild("PlayerPicker") then main.PlayerPicker:Destroy() end local pop = new("Frame", { Name = "PlayerPicker", Position = UDim2.fromOffset(12, 50), Size = UDim2.new(1, -24, 1, -64), BackgroundColor3 = C.panel, BorderSizePixel = 0 }, main) round(pop, 10) stroke(pop, C.accent) new("TextLabel", { BackgroundTransparency = 1, Position = UDim2.fromOffset(10, 6), Size = UDim2.new(1, -60, 0, 22), Text = "Oyuncu seç", TextColor3 = C.text, Font = Enum.Font.GothamBold, TextSize = 13, TextXAlignment = Enum.TextXAlignment.Left }, pop) local closeB = new("TextButton", { Text = "×", Position = UDim2.new(1, -36, 0, 4), Size = UDim2.fromOffset(28, 26), BackgroundColor3 = C.bad, TextColor3 = C.text, Font = Enum.Font.GothamBold, TextSize = 16, BorderSizePixel = 0 }, pop) round(closeB, 6) closeB.MouseButton1Click:Connect(function() pop:Destroy() end) local search = new("TextBox", { Position = UDim2.fromOffset(10, 34), Size = UDim2.new(1, -20, 0, 28), BackgroundColor3 = C.item, TextColor3 = C.text, PlaceholderText = "Ara...", PlaceholderColor3 = C.muted, Font = Enum.Font.Gotham, TextSize = 12, Text = "", ClearTextOnFocus = false, BorderSizePixel = 0 }, pop) round(search, 6) local list = new("ScrollingFrame", { Position = UDim2.fromOffset(10, 68), Size = UDim2.new(1, -20, 1, -78), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 4, AutomaticCanvasSize = Enum.AutomaticSize.Y, CanvasSize = UDim2.new() }, pop) new("UIListLayout", { Padding = UDim.new(0, 4), SortOrder = Enum.SortOrder.LayoutOrder }, list) local entries = {} local function addEntry(order, text, pl) local selected = (pl == nil and S.target == nil) or (pl ~= nil and pl == S.target) local b = new("TextButton", { LayoutOrder = order, Text = text, Size = UDim2.new(1, -6, 0, 30), BackgroundColor3 = selected and C.accent or C.item, TextColor3 = C.text, Font = Enum.Font.GothamMedium, TextSize = 12, BorderSizePixel = 0, TextTruncate = Enum.TextTruncate.AtEnd }, list) round(b, 6) b.MouseButton1Click:Connect(function() setTarget(pl) pop:Destroy() end) entries[#entries + 1] = { btn = b, name = string.lower(text) } end addEntry(0, "Ben (" .. LP.DisplayName .. ")", nil) local others = Players:GetPlayers() table.sort(others, function(a, b) return a.DisplayName:lower() < b.DisplayName:lower() end) local i = 0 for _, pl in ipairs(others) do if pl ~= LP then i = i + 1 addEntry(i, pl.DisplayName .. " (@" .. pl.Name .. ")", pl) end end search:GetPropertyChangedSignal("Text"):Connect(function() local q = string.lower(search.Text) for _, e in ipairs(entries) do e.btn.Visible = (q == "" or e.name:find(q, 1, true) ~= nil) end end) end) end addLabel(pFol, "BLOK TAKİP (son yaptığın yazı/resmi izler)") addToggle(pFol, "Kafanın tam üstünde dur", S.fHead, function(v) S.fHead = v end) addToggle(pFol, "Bekçi: kontrolü giden bloğu sabitle (uçmasın / kaybolmasın)", S.guardText, function(v) S.guardText = v end) addToggle(pFol, "Kontrolü tut (netless hızı, açık kaynak yöntem)", S.netless, function(v) S.netless = v end) addToggle(pFol, "Simülasyon yarıçapını büyüt (SimulationRadius)", S.simRadius, function(v) S.simRadius = v SimR.ok = nil end) addToggle(pFol, "Uzaktaysam bir anlığına yazının yanına git, sonra geri dön", S.tpFetch, function(v) S.tpFetch = v end) addSlider(pFol, "Bundan uzaktaysam git (stud)", 10, 500, S.tpFetchDist, 5, function(v) S.tpFetchDist = v end) addSlider(pFol, "Dönüş kaç atlayışta olsun", 1, 10, S.tpHops, 1, function(v) S.tpHops = v end) addLabel(pFol, "DALGA • harfler dalga gibi aşağı yukarı oynar", C.text) addToggle(pFol, "Dalga efekti", S.wave, function(v) S.wave = v end) addSlider(pFol, "Dalga yüksekliği (stud)", 0.1, 5, S.waveAmp, 0.1, function(v) S.waveAmp = v end) addSlider(pFol, "Dalga hızı", 0.5, 15, S.waveSpeed, 0.5, function(v) S.waveSpeed = v end) addSlider(pFol, "Dalga sıklığı (kısa = sık)", 0.05, 3, S.waveFreq, 0.05, function(v) S.waveFreq = v end) addSlider(pFol, "Sabitlenen blok kaç stud yakına gelince takibe dönsün", 5, 200, S.rejoinDist, 1, function(v) S.rejoinDist = v end) addToggle(pFol, "Kameraya dönük (hep düz okunur)", S.fFaceCam, function(v) S.fFaceCam = v end) addToggle(pFol, "Karakterle dön (kamera kapalıyken)", S.fRotate, function(v) S.fRotate = v end) addToggle(pFol, "Kontrolü bende olmayan blokları da taşıma (gerçeği göster)", S.onlyOwned, function(v) S.onlyOwned = v if v and type(isnetworkowner) ~= "function" then status("Executor isnetworkowner desteklemiyor: sadece sabit bloklar gizlenir", C.warn) end end) local setSpeed = addSlider(pFol, "Takip hızı (100 = anında)", 1, 100, S.fSpeed, 1, function(v) S.fSpeed = v end) addLabel(pFol, "KONUM (oyuncunun kafasına / gövdesine göre)") addSlider(pFol, "Yukarı / aşağı (+ kafanın üstü, - altı)", -15, 50, S.fHeight, 0.25, function(v) S.fHeight = v end) addSlider(pFol, "Öne / arkaya (+ göğsünün önü, - sırtı)", -30, 30, S.fFwd, 0.25, function(v) S.fFwd = v end) addSlider(pFol, "Sağa / sola (+ sağı, - solu)", -30, 30, S.fSide, 0.25, function(v) S.fSide = v end) addSlider(pFol, "Kameraya göre ileri / geri", -100, 100, S.fDist, 0.5, function(v) S.fDist = v end) addSlider(pFol, "Yön (derece)", -180, 180, S.fYaw, 1, function(v) S.fYaw = v end) addButtons(pFol, { { "SABİT TAKİP", C.item, function() setSpeed(100) end }, { "YUMUŞAK TAKİP", C.item, function() setSpeed(25) end }, }) addButtons(pFol, { { "TAKİBİ AÇ", C.good, function() startFollow() end }, { "TAKİBİ DURDUR", C.bad, function() stopFollow(false) end }, }) addButtons(pFol, { { "ESKİ KONUMA DÖNDÜR", C.warn, function() stopFollow(true) end }, }) ---------------------------------------------------------------------- -- AYAR sekmesi ---------------------------------------------------------------------- addLabel(pSet, "BLOK") local blockRow = new("Frame", { LayoutOrder = nord(), BackgroundColor3 = C.item, Size = UDim2.new(1, -6, 0, 40), BorderSizePixel = 0 }, pSet) round(blockRow, 8) local blockLabel = new("TextLabel", { BackgroundTransparency = 1, Position = UDim2.fromOffset(10, 0), Size = UDim2.new(1, -100, 1, 0), Text = "Blok: " .. S.block, TextColor3 = C.text, Font = Enum.Font.GothamMedium, TextSize = 12, TextXAlignment = Enum.TextXAlignment.Left }, blockRow) local pickBtn = new("TextButton", { Text = "SEÇ", Position = UDim2.new(1, -80, 0, 6), Size = UDim2.fromOffset(70, 28), BackgroundColor3 = C.accent, TextColor3 = C.text, Font = Enum.Font.GothamBold, TextSize = 12, BorderSizePixel = 0 }, blockRow) round(pickBtn, 7) pickBtn.MouseButton1Click:Connect(function() if main:FindFirstChild("BlockPicker") then main.BlockPicker:Destroy() end local pop = new("Frame", { Name = "BlockPicker", Position = UDim2.fromOffset(12, 50), Size = UDim2.new(1, -24, 1, -64), BackgroundColor3 = C.panel, BorderSizePixel = 0 }, main) round(pop, 10) stroke(pop, C.accent) new("TextLabel", { BackgroundTransparency = 1, Position = UDim2.fromOffset(10, 6), Size = UDim2.new(1, -60, 0, 22), Text = "Envanterden blok seç", TextColor3 = C.text, Font = Enum.Font.GothamBold, TextSize = 13, TextXAlignment = Enum.TextXAlignment.Left }, pop) local closeB = new("TextButton", { Text = "×", Position = UDim2.new(1, -36, 0, 4), Size = UDim2.fromOffset(28, 26), BackgroundColor3 = C.bad, TextColor3 = C.text, Font = Enum.Font.GothamBold, TextSize = 16, BorderSizePixel = 0 }, pop) round(closeB, 6) closeB.MouseButton1Click:Connect(function() pop:Destroy() end) local search = new("TextBox", { Position = UDim2.fromOffset(10, 34), Size = UDim2.new(1, -20, 0, 28), BackgroundColor3 = C.item, TextColor3 = C.text, PlaceholderText = "Ara...", PlaceholderColor3 = C.muted, Font = Enum.Font.Gotham, TextSize = 12, Text = "", ClearTextOnFocus = false, BorderSizePixel = 0 }, pop) round(search, 6) local list = new("ScrollingFrame", { Position = UDim2.fromOffset(10, 68), Size = UDim2.new(1, -20, 1, -78), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 4, AutomaticCanvasSize = Enum.AutomaticSize.Y, CanvasSize = UDim2.new() }, pop) new("UIListLayout", { Padding = UDim.new(0, 4), SortOrder = Enum.SortOrder.LayoutOrder }, list) local entries = {} for i, it in ipairs(inventoryList()) do local b = new("TextButton", { LayoutOrder = i, Text = it.name .. " (" .. it.count .. ")" .. (INF.able(it.name) and " • INF" or " • INF yok"), Size = UDim2.new(1, -6, 0, 30), BackgroundColor3 = (it.name == S.block) and C.accent or C.item, TextColor3 = C.text, Font = Enum.Font.GothamMedium, TextSize = 12, BorderSizePixel = 0 }, list) round(b, 6) b.MouseButton1Click:Connect(function() S.block = it.name blockLabel.Text = "Blok: " .. S.block pop:Destroy() pcall(INF.info, Cur.items) end) entries[#entries + 1] = { btn = b, name = it.name:lower() } end search:GetPropertyChangedSignal("Text"):Connect(function() local q = search.Text:lower() for _, e in ipairs(entries) do e.btn.Visible = (q == "" or e.name:find(q, 1, true) ~= nil) end end) end) addLabel(pSet, "KONUM (takım alanına göre)") addSlider(pSet, "Sağ / Sol (X)", -300, 300, S.offX, 0.5, function(v) S.offX = v refreshTransform() end) addSlider(pSet, "Yükseklik (Y)", -50, 500, S.offY, 0.5, function(v) S.offY = v refreshTransform() end) addSlider(pSet, "İleri / Geri (Z)", -300, 300, S.offZ, 0.5, function(v) S.offZ = v refreshTransform() end) INF.setRot = addSlider(pSet, "Dönüş (derece)", 0, 360, S.rot, 1, function(v) S.rot = v refreshTransform() -- konum / dönüş değişince arsa kontrolü yenilenir if INF.zoneUI and #Cur.items > 0 and not INF.zBusy then INF.zBusy = true task.delay(0.3, function() pcall(function() INF.zoneUI(INF.zoneCheck(Cur.items)) end) INF.zBusy = false end) end end) addSlider(pSet, "Önizleme şeffaflığı", 0, 0.95, S.prevTransp, 0.05, function(v) S.prevTransp = v refreshTransparency() end) addToggle(pSet, "Yapınca çarpışmayı kapat", S.noCollide, function(v) S.noCollide = v end) addSlider(pSet, "En küçük blok boyutu (oyun sınırı)", 0.05, 1, S.minBlock, 0.05, function(v) S.minBlock = v end) addSlider(pSet, "Yapım hızı (1 güvenli, 2 normal, 3 hızlı)", 1, 3, S.speed, 1, function(v) S.speed = v end) addLabel(pSet, "INF BLOK (envanter yetmezse yapmadan önce üretir)") addToggle(pSet, "INF Blok", S.infOn, function(v) S.infOn = v pcall(INF.info, Cur.items) status(v and "INF açık: blok yetmezse önce üretilecek" or "INF kapalı: envanter kadar yapılır", C.muted) end) addToggle(pSet, "INF bitince üretim bloğunu sil", S.infDelSeed, function(v) S.infDelSeed = v end) addToggle(pSet, "Resim yapılırken bloklarımı gizle (ölçeklenen görünür)", S.hideBuild, function(v) S.hideBuild = v end) addLabel(pSet, "INF sadece ...Block bloklarında çalışır (Mr.Luk otobuild ile aynı yöntem).") addToggle(pSet, "Boyama / blok koyma aracının menüsünü gizle", S.hideToolGui, function(v) S.hideToolGui = v if v then cleanupStuckToolGui() end end) addLabel(pSet, "İpucu: yazı/resim ters görünürse Dönüş = 180 yap.") -- SADECE RESİM: YAZI / TAKİP sekmeleri ve ANLIK düğmesi gizli do local keep = { 2, 4 } for _, b in ipairs(tabBtns) do b.Visible = false end for k, i in ipairs(keep) do local b = tabBtns[i] b.Visible = true b.Position = UDim2.new((k - 1) / #keep, 2, 0, 6) b.Size = UDim2.new(1 / #keep, -4, 0, 28) end end showTab(2) status("Hazır. AYAR'dan blok seç, sonra RESİM'de resmini yap.", C.text) task.defer(cleanupStuckToolGui) task.spawn(textGuard) task.spawn(simRadiusLoop) task.spawn(ownerCache) return { main = main, tab = showTab, close = function() S.abort = true pcall(clearPreview) pcall(function() PrevFolder:Destroy() end) end } end ---------------------------------------------------------------------- -- ANA PENCERE: tek ScreenGui, üstte sekme şeridi + ORTAK TEMA (bütün sekmeler aynı görünür) ---------------------------------------------------------------------- do local LP = game:GetService("Players").LocalPlayer local RS = game:GetService("RunService") local TS = game:GetService("TweenService") local guiParent = (gethui and gethui()) or game:GetService("CoreGui") pcall(function() for _, n in ipairs({ "BYS_HEPSI", "BYS_BIRLESIK", "BYS_FUTBOL", "BYS_KOYSIL", "BYS_KUCULTUCU", "BYS_DEGDIR", "BYS_KUCULTUCU_DEGDIR", "BYS_GUI" }) do local o = guiParent:FindFirstChild(n) if o then o:Destroy() end end end) ------------------------------------------------------------------ -- DİL: ilk açılışta seçilir, BYS_dil.json dosyasına kaydedilir. -- Arayüz Türkçe yazılır; seçilen dil TR değilse ekrandaki yazılar -- sözlükten çevrilir (yazı değiştikçe de çevrilir). İşlevlere dokunmaz. ------------------------------------------------------------------ local I18N = { lang = "tr", file = "BYS_dil.json", D = {}, P = {}, F = {} } do local D, P, F = I18N.D, I18N.P, I18N.F local function w(tr, en, es) D[tr] = { en, es } end local function p(pat, en, es) P[#P + 1] = { pat, en, es } end local function f(pat, en, es) F[#F + 1] = { pat, en, es } end -- ORTAK w("AÇIK", "ON", "ACTIVO") w("KAPALI", "OFF", "INACTIVO") w("Hazır", "Ready", "Listo") w("DURDUR", "STOP", "DETENER") w("Durduruldu", "Stopped", "Detenido") w("durduruldu", "stopped", "detenido") w("Durduruluyor...", "Stopping...", "Deteniendo...") w("Hata", "Error", "Error") w("UYARI", "WARNING", "AVISO") w("Seçimi temizle", "Clear selection", "Borrar selección") w("Ara...", "Search...", "Buscar...") w("Meşgul, bekle...", "Busy, wait...", "Ocupado, espera...") w("VAR", "YES", "SÍ") w("YOK", "NO", "NO") w("YOK (kopuk)", "NO (detached)", "NO (separado)") w("ölçülüyor...", "measuring...", "midiendo...") w("Karakter yok", "No character", "Sin personaje") w("Blok", "Block", "Bloque") w("Hedef", "Target", "Objetivo") w("Ben", "Me", "Yo") -- SEKMELER w("KÜÇÜLTÜCÜ", "SHRINKER", "REDUCTOR") w("GÖZÜKMEZ", "INVISIBLE", "INVISIBLE") w("🖼 RESİM", "🖼 IMAGE", "🖼 IMAGEN") -- ⚽ w("TOP KOY", "PLACE BALLS", "COLOCAR BALONES") w("Top sayısı", "Ball count", "Cantidad de balones") w("BAŞLA", "START", "INICIAR") w("TOPLARI SİL", "DELETE BALLS", "BORRAR BALONES") w("OYUNCU (tek kişi seç = takip, 👁 = izle)", "PLAYER (pick one = follow, 👁 = spectate)", "JUGADOR (elige uno = seguir, 👁 = observar)") w("OYUNCU SEÇ", "SELECT PLAYER", "ELIGE JUGADOR") p("^(.+) %[ben%]$", "{1} [me]", "{1} [yo]") -- KÜÇÜLTÜCÜ w("KAÇ BLOK (SIRAYLA düğmeleri bu kadar koyar)", "HOW MANY BLOCKS (SEQUENCE buttons place this many)", "CUÁNTOS BLOQUES (los botones SECUENCIA colocan esta cantidad)") w("Kaç blok koyulsun", "Blocks to place", "Bloques a colocar") w("1 TUR (koy -> sil)", "1 ROUND (place -> delete)", "1 RONDA (colocar -> borrar)") w("KENDİME", "ON ME", "EN MÍ") w("TAKIM ARKADAŞLARINA", "ON TEAMMATES", "EN COMPAÑEROS") w("SIRAYLA (yukarıdaki blok sayısı kadar)", "SEQUENCE (as many as the block count above)", "SECUENCIA (tantos como los bloques de arriba)") w("SIRAYLA", "SEQUENCE", "SECUENCIA") w("OTOMATİK (alana giren oyuncuya, BEN HARİÇ)", "AUTO (player entering the zone, EXCEPT ME)", "AUTOMÁTICO (jugador que entra en la zona, EXCEPTO YO)") w("OTOMATİK KÜÇÜLTME", "AUTO SHRINK", "REDUCCIÓN AUTOMÁTICA") w("MOD", "MODE", "MODO") w("HERKES (ben hariç)", "EVERYONE (except me)", "TODOS (excepto yo)") w("TAKIM ARKADAŞLARI", "TEAMMATES", "COMPAÑEROS") w("Otomatikte kaç blok konsun", "Blocks to place in auto", "Bloques en automático") w("TAKIM ARKADAŞLARI (seç)", "TEAMMATES (select)", "COMPAÑEROS (elegir)") w("Herkesi seç", "Select all", "Seleccionar todos") w("Y'yi başa al (sıfırla)", "Reset Y", "Reiniciar Y") w("SERİ BAŞLAT (3 koy -> hepsi birden sil, sadece bana)", "START BURST (place 3 -> delete all at once, only me)", "INICIAR RÁFAGA (colocar 3 -> borrar todos, solo yo)") w("Blok adı", "Block name", "Nombre del bloque") w("İlk Y (Otomatik Y kapalıyken)", "First Y (when Auto Y is off)", "Y inicial (con Y automática desactivada)") w("Her tur Y artışı", "Y increase per round", "Aumento de Y por ronda") w("TEK TEK: silme gecikmesi (sn)", "ONE BY ONE: delete delay (s)", "UNO A UNO: retraso de borrado (s)") w("SERİ: koymalar arası (sn)", "BURST: between places (s)", "RÁFAGA: entre colocaciones (s)") w("SERİ: silme gecikmesi (sn)", "BURST: delete delay (s)", "RÁFAGA: retraso de borrado (s)") w("TEK TEK: turlar arası (sn)", "ONE BY ONE: between rounds (s)", "UNO A UNO: entre rondas (s)") w("Silme adımı", "Delete step", "Paso de borrado") w("Otomatik Y (karakter boyuna göre)", "Auto Y (by character height)", "Y automática (según la altura del personaje)") w("Otomatik Y ince ayar", "Auto Y fine tune", "Ajuste fino de Y automática") w("Y üst sınırı", "Y upper limit", "Límite superior de Y") w("Kayıttaki dönüş sayıları (birebir)", "Recorded rotation values (exact)", "Valores de rotación grabados (exactos)") w("Y başa sarsın", "Wrap Y back", "Reiniciar Y en ciclo") w("Kaç adımda başa sarsın", "Wrap after steps", "Pasos antes de reiniciar") -- GÖZÜKMEZ w("Değen parça", "Touching part", "Parte que toca") w("Executor firetouchinterest desteklemiyor", "Executor does not support firetouchinterest", "El executor no soporta firetouchinterest") w("Kayalar aranıyor...", "Searching rocks...", "Buscando rocas...") w("RockScript'li kaya bulunamadı", "No rock with RockScript found", "No se encontró roca con RockScript") p("^Değdiriliyor (%d+)/(%d+): (.+)$", "Touching {1}/{2}: {3}", "Tocando {1}/{2}: {3}") p("^✅ KOPTU %((.+), (%d+)%. kayada%)$", "✅ BROKE ({1}, rock #{2})", "✅ SE ROMPIÓ ({1}, roca n.º {2})") p("^❌ Kopmadı %((%d+) kaya denendi%)$", "❌ Did not break ({1} rocks tried)", "❌ No se rompió ({1} rocas probadas)") p("^LowerTorso: (.-) • kök: (.-) • can (.+)$", "LowerTorso: {t1} • root: {t2} • health {3}", "LowerTorso: {t1} • raíz: {t2} • vida {3}") p("^kök konum (.-) • kaya (.+)$", "root pos {1} • rocks {2}", "pos. raíz {1} • rocas {2}") p("^(%w+) yok$", "{1} missing", "falta {1}") -- RESİM: pencere / sekmeler w("BYS • Resim", "BYS • Image", "BYS • Imagen") w("RESİM", "IMAGE", "IMAGEN") w("AYAR", "SETTINGS", "AJUSTES") w("YAZI", "TEXT", "TEXTO") w("TAKİP", "FOLLOW", "SEGUIR") w("RESİM BUILDER", "IMAGE BUILDER", "CONSTRUCTOR DE IMAGEN") w("Resim linki veya workspace dosya adı", "Image link or workspace file name", "Enlace de imagen o archivo del workspace") w("https://... veya resim.png", "https://... or image.png", "https://... o imagen.png") w("Çözünürlük (yükseklik, piksel)", "Resolution (height, pixels)", "Resolución (altura, píxeles)") w("Hücre boyutu", "Cell size", "Tamaño de celda") w("Kalınlık", "Thickness", "Grosor") w("Renk seviyesi (düşük = daha az parça)", "Color levels (low = fewer parts)", "Niveles de color (bajo = menos piezas)") w("Parçaları birleştir (az blok)", "Merge parts (fewer blocks)", "Unir piezas (menos bloques)") w("Parça sayısı", "Part count", "Piezas") w("Gereken", "Required", "Necesario") w("Arsa", "Plot", "Parcela") w("90° DÖNDÜR", "ROTATE 90°", "GIRAR 90°") w("ÖNİZLE", "PREVIEW", "VISTA PREVIA") w("ÖNİZLEMEDEN YAP", "BUILD FROM PREVIEW", "CONSTRUIR DESDE VISTA PREVIA") w("OTOMATİK YAP (direkt)", "AUTO BUILD (direct)", "CONSTRUIR AUTO (directo)") w("ÖNİZLEMEYİ SİL", "DELETE PREVIEW", "BORRAR VISTA PREVIA") -- AYAR sekmesi w("BLOK", "BLOCK", "BLOQUE") w("SEÇ", "SELECT", "ELEGIR") w("Envanterden blok seç", "Select a block from inventory", "Elige un bloque del inventario") p("^(.-) %((%d+)%) • INF yok$", "{1} ({2}) • no INF", "{1} ({2}) • sin INF") w("KONUM (takım alanına göre)", "POSITION (relative to team zone)", "POSICIÓN (según la zona del equipo)") w("Sağ / Sol (X)", "Right / Left (X)", "Derecha / Izquierda (X)") w("Yükseklik (Y)", "Height (Y)", "Altura (Y)") w("İleri / Geri (Z)", "Forward / Back (Z)", "Adelante / Atrás (Z)") w("Dönüş (derece)", "Rotation (degrees)", "Rotación (grados)") w("Önizleme şeffaflığı", "Preview transparency", "Transparencia de vista previa") w("Yapınca çarpışmayı kapat", "Turn off collision after building", "Desactivar colisión al construir") w("En küçük blok boyutu (oyun sınırı)", "Smallest block size (game limit)", "Tamaño mínimo de bloque (límite del juego)") w("Yapım hızı (1 güvenli, 2 normal, 3 hızlı)", "Build speed (1 safe, 2 normal, 3 fast)", "Velocidad (1 segura, 2 normal, 3 rápida)") w("INF BLOK (envanter yetmezse yapmadan önce üretir)", "INF BLOCK (produces first if inventory is short)", "BLOQUE INF (produce antes si falta inventario)") w("INF Blok", "INF Block", "Bloque INF") w("INF bitince üretim bloğunu sil", "Delete production block when INF ends", "Borrar bloque de producción al terminar INF") w("Resim yapılırken bloklarımı gizle (ölçeklenen görünür)", "Hide my blocks while building (scaled ones show)", "Ocultar mis bloques al construir (los escalados se ven)") w("INF sadece ...Block bloklarında çalışır (Mr.Luk otobuild ile aynı yöntem).", "INF works only with ...Block blocks (same method as Mr.Luk otobuild).", "INF solo funciona con bloques ...Block (mismo método que Mr.Luk otobuild).") w("Boyama / blok koyma aracının menüsünü gizle", "Hide the paint / build tool menu", "Ocultar el menú de la herramienta de pintar / construir") w("İpucu: yazı/resim ters görünürse Dönüş = 180 yap.", "Tip: if the image looks reversed, set Rotation = 180.", "Consejo: si la imagen se ve al revés, pon Rotación = 180.") -- RESİM: durum mesajları w("Hazır. AYAR'dan blok seç, sonra RESİM'de resmini yap.", "Ready. Pick a block in SETTINGS, then build your image in IMAGE.", "Listo. Elige un bloque en AJUSTES y luego construye tu imagen en IMAGEN.") w("Resim indiriliyor...", "Downloading image...", "Descargando imagen...") w("Parçalar birleştiriliyor...", "Merging parts...", "Uniendo piezas...") w("Yerleştiriliyor", "Placing", "Colocando") w("Bloklar bekleniyor", "Waiting for blocks", "Esperando bloques") w("Boyanıyor", "Painting", "Pintando") w("Ölçekleniyor", "Scaling", "Escalando") p("^Düzeltiliyor %((%d+)%. tur%)$", "Fixing (round {1})", "Corrigiendo (ronda {1})") w("Başka bir işlem sürüyor...", "Another task is running...", "Otra tarea en curso...") w("Önce önizle / parça yok", "Preview first / no parts", "Primero vista previa / sin piezas") w("Takım alanı / blok klasörü bulunamadı", "Team zone / block folder not found", "No se encontró la zona del equipo / carpeta de bloques") w("takım alanı / blok klasörü / envanter yok", "no team zone / block folder / inventory", "sin zona del equipo / carpeta de bloques / inventario") w("Takım alanı bulunamadı", "Team zone not found", "No se encontró la zona del equipo") p("^(.+) envanterde yok$", "{1} not in inventory", "{1} no está en el inventario") p("^INF: (%d+) (.-) üretiliyor%.%.%.$", "INF: producing {1} {2}...", "INF: produciendo {1} {2}...") p("^Envanter yetersiz %((%d+) (.-)%)$", "Not enough inventory ({1} {2})", "Inventario insuficiente ({1} {2})") w("Hazırlanıyor...", "Preparing...", "Preparando...") w("Üretilecek parça çıkmadı", "No parts were produced", "No se generaron piezas") p("^(%d+) parça hazır, yapılıyor%.%.%.$", "{1} parts ready, building...", "{1} piezas listas, construyendo...") p("^Önizleme çiziliyor %((%d+) parça%)%.%.%.$", "Drawing preview ({1} parts)...", "Dibujando vista previa ({1} piezas)...") p("^Önizleme hazır: (%d+) parça%. AYAR sekmesinden konumlandırabilirsin%.$", "Preview ready: {1} parts. You can position it in the SETTINGS tab.", "Vista previa lista: {1} piezas. Puedes posicionarla en la pestaña AJUSTES.") w("Önce önizleme oluştur", "Create a preview first", "Primero crea una vista previa") p("^Dönüş (%d+)° yapıldı$", "Rotation set to {1}°", "Rotación fijada a {1}°") w("Önizleme silindi", "Preview deleted", "Vista previa borrada") w("INF açık: blok yetmezse önce üretilecek", "INF on: blocks are produced first if not enough", "INF activado: si faltan bloques se producen primero") w("INF kapalı: envanter kadar yapılır", "INF off: builds as much as the inventory allows", "INF desactivado: se construye según el inventario") p("^Bitti: (%d+) parça(.*)$", "Done: {1} parts{t2}", "Listo: {1} piezas{t2}") f(" %(INF ile%)", " (with INF)", " (con INF)") f(" %(envanter yüzünden (%d+) atlandı%)", " ({1} skipped due to inventory)", " ({1} omitidas por inventario)") -- RESİM: resim yükleme hataları w("Resim linki / dosya yolu boş", "Image link / file path is empty", "El enlace / ruta de la imagen está vacío") w("İndirme hatası", "Download error", "Error de descarga") w("PNG'ye çevrilemedi (doğrudan resim linki ver)", "Could not convert to PNG (give a direct image link)", "No se pudo convertir a PNG (usa un enlace directo)") w("writefile desteklenmiyor", "writefile not supported", "writefile no soportado") w("Dosya yazma hatası", "File write error", "Error al escribir el archivo") w("Dosya bulunamadı", "File not found", "Archivo no encontrado") w("getcustomasset desteklenmiyor", "getcustomasset not supported", "getcustomasset no soportado") w("Asset oluşturulamadı", "Could not create asset", "No se pudo crear el asset") w("Resim çözülemedi", "Could not decode image", "No se pudo decodificar la imagen") w("Pikseller okunamadı", "Could not read pixels", "No se pudieron leer los píxeles") w("HttpGet başarısız", "HttpGet failed", "HttpGet falló") w("istek başarısız", "request failed", "solicitud fallida") w("Sunucu bazı blokların Anchored durumunu değiştirmedi", "Server did not change Anchored on some blocks", "El servidor no cambió Anchored en algunos bloques") p("^(%w+) bulunamadı$", "{1} not found", "{1} no encontrado") p("^HTTP (%d+)$", "HTTP {1}", "HTTP {1}") -- RESİM: arsa kontrolü w("Arsaya sığıyor", "Fits in the plot", "Cabe en la parcela") p("^Arsa dışına ([%d%.%-]+) stud taşıyor: yapılmaz%.(.*)$", "Exceeds the plot by {1} studs: will not build.{t2}", "Sale de la parcela por {1} studs: no se construye.{t2}") f(" 90° döndürünce sığıyor %-> 90° DÖNDÜR", " Fits if rotated 90° -> ROTATE 90°", " Cabe si giras 90° -> GIRAR 90°") f(" Hücre boyutunu ([%d%.]+)'e düşür", " Lower cell size to {1}", " Baja el tamaño de celda a {1}") f(" ve 90° döndür", " and rotate 90°", " y gira 90°") f(" Konumu %(AYAR%) arsanın ortasına al", " Move the position (SETTINGS) to the plot center", " Mueve la posición (AJUSTES) al centro de la parcela") -- RESİM: gereken blok satırı p("^Gereken (%d+) (.-) • envanter (%d+) • (.*)$", "Required {1} {2} • inventory {3} • {t4}", "Necesario {1} {2} • inventario {3} • {t4}") w("yeterli", "enough", "suficiente") p("^INF %+(%d+) üretilecek$", "INF +{1} will be produced", "INF +{1} se producirán") p("^(%d+) eksik %(bu blokta INF yok%)$", "{1} missing (no INF for this block)", "faltan {1} (sin INF para este bloque)") p("^(%d+) eksik %(INF kapalı%)$", "{1} missing (INF off)", "faltan {1} (INF desactivado)") -- RESİM: INF penceresi w("INF Blok Üretimi", "INF Block Production", "Producción de bloques INF") p("^INF Blok Üretimi • (.+)$", "INF Block Production • {t1}", "Producción de bloques INF • {t1}") w("tamamlandı", "completed", "completado") w("sorun var", "there is a problem", "hay un problema") w("Tamamlandı", "Completed", "Completado") w("Sorun var", "Problem", "Problema") p("^%+(%d+) blok gerekiyor • (%d+) istek$", "+{1} blocks needed • {2} requests", "+{1} bloques necesarios • {2} solicitudes") w("Başlıyor...", "Starting...", "Iniciando...") w("Üretim bloğu konuyor...", "Placing production block...", "Colocando bloque de producción...") w("İstekler gönderiliyor...", "Sending requests...", "Enviando solicitudes...") w("Cevap bekleniyor...", "Waiting for replies...", "Esperando respuestas...") w("Üretim bloğu 8 sn içinde gelmedi", "Production block did not arrive within 8 s", "El bloque de producción no llegó en 8 s") w("üretim bloğu gelmedi", "production block did not arrive", "el bloque de producción no llegó") p("^(%d+) istek, (%d+) cevap, ([%d%.]+) sn$", "{1} requests, {2} replies, {3} s", "{1} solicitudes, {2} respuestas, {3} s") p("^envanter (%d+) %-> (%d+) %(gereken (%d+)%)$", "inventory {1} -> {2} (required {3})", "inventario {1} -> {2} (necesario {3})") w("60 sn doldu, bazı cevaplar gelmedi", "60 s passed, some replies did not arrive", "pasaron 60 s, faltan algunas respuestas") p("^(%%%d+) • ([%d%.]+) sn$", "{1} • {2} s", "{1} • {2} s") p("^([%d%.]+) sn$", "{1} s", "{1} s") -- genel: sonda (3/10) gibi sayaç p("^(.-) (%(%d+/%d+%))$", "{t1} {2}", "{t1} {2}") end local LI = { en = 1, es = 2 } function I18N.tr(s, depth) local li = LI[I18N.lang] if not li or type(s) ~= "string" or s == "" then return s end depth = (depth or 0) + 1 if depth > 6 then return s end -- çok satırlı: her satır ayrı çevrilir if s:find("\n", 1, true) then local out = {} for line in (s .. "\n"):gmatch("(.-)\n") do out[#out + 1] = I18N.tr(line, depth) end return table.concat(out, "\n") end -- baştaki / sondaki boşluk korunur local lead, core, trail = s:match("^(%s*)(.-)(%s*)$") if core == "" then return s end local function done(x) return lead .. x .. trail end local d = I18N.D[core] if d then return done(d[li]) end -- " | " ile ayrılmış parçalar if core:find(" | ", 1, true) then local parts = {} for seg in (core .. " | "):gmatch("(.-) | ") do parts[#parts + 1] = I18N.tr(seg, depth) end return done(table.concat(parts, " | ")) end -- kalıplar for _, r in ipairs(I18N.P) do local caps = { core:match(r[1]) } if #caps > 0 then local out = r[li + 1]:gsub("{(t?)(%d)}", function(t, n) local c = caps[tonumber(n)] or "" if t == "t" then return I18N.tr(c, depth) end return c end) return done(out) end end -- "Sol: Sağ" (ör. "Blok: PlasticBlock", "Hata: ...", "MOD: HERKES") local l, rgt = core:match("^(.-): (.+)$") if l and l ~= "" then local tl, trr = I18N.tr(l, depth), I18N.tr(rgt, depth) if tl ~= l or trr ~= rgt then return done(tl .. ": " .. trr) end end -- parça değiştirme (sondaki ekler) local x, changed = s, false for _, r in ipairs(I18N.F) do local nx, n = x:gsub(r[1], function(...) local caps = { ... } return (r[li + 1]:gsub("{(%d)}", function(k) return tostring(caps[tonumber(k)] or "") end)) end) if n > 0 then x, changed = nx, true end end if changed then return x end return s end -- dil dosyası do local Http = game:GetService("HttpService") pcall(function() if isfile and readfile and isfile(I18N.file) then local t = Http:JSONDecode(readfile(I18N.file)) if type(t) == "table" and (t.lang == "tr" or t.lang == "en" or t.lang == "es") then I18N.saved = t.lang end end end) function I18N.save(l) pcall(function() if writefile then writefile(I18N.file, Http:JSONEncode({ lang = l })) end end) end end -- İLK AÇILIŞ: dil seçme penceresi (arayüz yüklenmeden önce, bir kez) if I18N.saved then I18N.lang = I18N.saved else local pick local sg = Instance.new("ScreenGui") sg.Name = "BYS_DIL" sg.ResetOnSpawn = false sg.DisplayOrder = 600 if not pcall(function() sg.Parent = guiParent end) then sg.Parent = LP:WaitForChild("PlayerGui") end local fr = Instance.new("Frame") fr.Size = UDim2.fromOffset(300, 196) fr.Position = UDim2.new(0.5, -150, 0.5, -98) fr.BackgroundColor3 = Color3.fromRGB(14, 16, 24) fr.BorderSizePixel = 0 fr.Parent = sg do local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 12) c.Parent = fr local st = Instance.new("UIStroke") st.Color = Color3.fromRGB(91, 124, 255) st.Thickness = 1.5 st.Parent = fr end local ttl = Instance.new("TextLabel") ttl.Size = UDim2.new(1, 0, 0, 40) ttl.BackgroundTransparency = 1 ttl.Font = Enum.Font.GothamBlack ttl.TextSize = 15 ttl.TextColor3 = Color3.new(1, 1, 1) ttl.Text = "Dil • Language • Idioma" ttl.Parent = fr for i, o in ipairs({ { "tr", "Türkçe" }, { "en", "English" }, { "es", "Español" } }) do local b = Instance.new("TextButton") b.Size = UDim2.new(1, -40, 0, 38) b.Position = UDim2.fromOffset(20, 40 + (i - 1) * 48) b.BackgroundColor3 = Color3.fromRGB(36, 42, 62) b.BorderSizePixel = 0 b.Font = Enum.Font.GothamBold b.TextSize = 15 b.TextColor3 = Color3.new(1, 1, 1) b.Text = o[2] b.Parent = fr local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 8) c.Parent = b b.MouseButton1Click:Connect(function() pick = o[1] end) end while not pick and sg.Parent do task.wait(0.05) end pcall(function() sg:Destroy() end) I18N.lang = pick or "tr" I18N.save(I18N.lang) end -- OTOMATİK KÜÇÜLME: sığmayan yazı (her dilde) kendi boyundan büyümeden küçülür function I18N.fit(root) local done = setmetatable({}, { __mode = "k" }) local function check(o) if done[o] or not o.Parent then return end local ok, fits = pcall(function() return o.TextFits end) if not ok or fits ~= false or o.TextScaled then return end done[o] = true pcall(function() local c = Instance.new("UITextSizeConstraint") c.MaxTextSize = math.max(8, math.floor(o.TextSize)) c.MinTextSize = 7 c.Parent = o o.TextScaled = true end) end local function later(o) task.delay(0.1, function() pcall(check, o) end) end local function hook(o) if not (o:IsA("TextLabel") or o:IsA("TextButton")) then return end later(o) o:GetPropertyChangedSignal("Text"):Connect(function() later(o) end) o:GetPropertyChangedSignal("AbsoluteSize"):Connect(function() later(o) end) end for _, d in ipairs(root:GetDescendants()) do pcall(hook, d) end root.DescendantAdded:Connect(function(d) pcall(hook, d) end) end -- yazı çevirici: BYS arayüzündeki her yazıyı (ve sonradan değişenleri) çevirir function I18N.attach(root) if I18N.lang == "tr" then return end local busy = setmetatable({}, { __mode = "k" }) local function fix(o, prop) if busy[o] then return end local ok, cur = pcall(function() return o[prop] end) if not ok or type(cur) ~= "string" or cur == "" then return end local nt = I18N.tr(cur) if nt ~= cur then busy[o] = true pcall(function() o[prop] = nt end) busy[o] = nil end end local function hook(o) local isBox = o:IsA("TextBox") if isBox then fix(o, "PlaceholderText") o:GetPropertyChangedSignal("PlaceholderText"):Connect(function() fix(o, "PlaceholderText") end) elseif o:IsA("TextLabel") or o:IsA("TextButton") then fix(o, "Text") o:GetPropertyChangedSignal("Text"):Connect(function() fix(o, "Text") end) end end for _, d in ipairs(root:GetDescendants()) do pcall(hook, d) end root.DescendantAdded:Connect(function(d) pcall(hook, d) end) end local gui = Instance.new("ScreenGui") gui.Name = "BYS_HEPSI" gui.ResetOnSpawn = false gui.DisplayOrder = 500 gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling if not pcall(function() gui.Parent = guiParent end) then gui.Parent = LP:WaitForChild("PlayerGui") end I18N.attach(gui) I18N.fit(gui) ------------------------------------------------------------------ -- TEMA ------------------------------------------------------------------ local P = { bg = Color3.fromRGB(14, 16, 24), panel = Color3.fromRGB(24, 28, 42), item = Color3.fromRGB(36, 42, 62), stroke = Color3.fromRGB(64, 74, 108), acc = Color3.fromRGB(91, 124, 255), accD = Color3.fromRGB(38, 58, 110), accT = Color3.fromRGB(130, 160, 255), acc2 = Color3.fromRGB(160, 92, 255), good = Color3.fromRGB(46, 184, 114), goodD = Color3.fromRGB(30, 84, 58), bad = Color3.fromRGB(232, 72, 92), badD = Color3.fromRGB(110, 38, 46), warn = Color3.fromRGB(234, 162, 52), warnD = Color3.fromRGB(100, 72, 26), text = Color3.fromRGB(237, 239, 247), dim = Color3.fromRGB(154, 163, 184), } local function lum(c) return 0.299 * c.R + 0.587 * c.G + 0.114 * c.B end local function sat(c) return math.max(c.R, c.G, c.B) - math.min(c.R, c.G, c.B) end -- eski renkleri temaya çevir (aynı rengi tekrar verirse aynısı çıkar -> döngü olmaz) local function mapBg(c) if sat(c) < 0.12 then local l = lum(c) if l < 0.095 then return P.bg elseif l < 0.15 then return P.panel elseif l < 0.25 then return P.item end return c end local h, _, v = c:ToHSV() local dark = v < 0.45 if h >= 0.55 and h <= 0.72 then return dark and P.accD or P.acc end if h >= 0.22 and h <= 0.47 then return dark and P.goodD or P.good end if h <= 0.04 or h >= 0.93 then return dark and P.badD or P.bad end if h > 0.04 and h < 0.18 then return dark and P.warnD or P.warn end return c end local function mapText(c) if sat(c) < 0.12 then local l = lum(c) if l > 0.75 then return P.text elseif l > 0.45 then return P.dim end return c end local h, _, v = c:ToHSV() if h >= 0.55 and h <= 0.72 and v > 0.6 then return P.accT end return c end local skinned = setmetatable({}, { __mode = "k" }) local mains = setmetatable({}, { __mode = "k" }) local function addStroke(o, col, tr, th) local s = o:FindFirstChildOfClass("UIStroke") if not s then s = Instance.new("UIStroke") s.ApplyStrokeMode = Enum.ApplyStrokeMode.Border s.Parent = o end s.Color, s.Transparency, s.Thickness = col, tr, th return s end local function skin(o) if skinned[o] or not o:IsA("GuiObject") then return end skinned[o] = true pcall(function() if o.BackgroundTransparency < 1 then o.BackgroundColor3 = mapBg(o.BackgroundColor3) o:GetPropertyChangedSignal("BackgroundColor3"):Connect(function() local m = mapBg(o.BackgroundColor3) if m ~= o.BackgroundColor3 then o.BackgroundColor3 = m end end) o.BorderSizePixel = 0 if not o:FindFirstChildOfClass("UICorner") and not mains[o] then local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 6) c.Parent = o end if not mains[o] and (o:IsA("TextButton") or o:IsA("TextBox") or o:IsA("Frame")) and o.AbsoluteSize.Y < 80 then local st = addStroke(o, P.stroke, 0.6, 1) if o:IsA("TextButton") then o.AutoButtonColor = true o.MouseEnter:Connect(function() TS:Create(st, TweenInfo.new(0.12), { Transparency = 0.1, Color = P.acc }):Play() end) o.MouseLeave:Connect(function() TS:Create(st, TweenInfo.new(0.2), { Transparency = 0.6, Color = P.stroke }):Play() end) elseif o:IsA("TextBox") then o.Focused:Connect(function() st.Color, st.Transparency = P.acc, 0 end) o.FocusLost:Connect(function() st.Color, st.Transparency = P.stroke, 0.6 end) end end end if o:IsA("TextLabel") or o:IsA("TextButton") or o:IsA("TextBox") then o.TextColor3 = mapText(o.TextColor3) o:GetPropertyChangedSignal("TextColor3"):Connect(function() local m = mapText(o.TextColor3) if m ~= o.TextColor3 then o.TextColor3 = m end end) if o.Font == Enum.Font.Gotham or o.Font == Enum.Font.SourceSans or o.Font == Enum.Font.Legacy then o.Font = Enum.Font.GothamMedium end end if o:IsA("ScrollingFrame") then o.ScrollBarImageColor3 = P.acc o.ScrollBarImageTransparency = 0.3 end end) end -- pencerenin kendisi: koyu zemin, renkli (mavi -> mor) ince kenar, yuvarlak köşe local function skinMain(m) mains[m] = true pcall(function() m.BackgroundColor3 = P.bg m.BorderSizePixel = 0 local c = m:FindFirstChildOfClass("UICorner") or Instance.new("UICorner") c.CornerRadius = UDim.new(0, 12) c.Parent = m local st = addStroke(m, Color3.new(1, 1, 1), 0, 1.5) local g = st:FindFirstChildOfClass("UIGradient") or Instance.new("UIGradient") g.Color = ColorSequence.new(P.acc, P.acc2) g.Rotation = 45 g.Parent = st end) end local function skinTree(root) skin(root) for _, d in ipairs(root:GetDescendants()) do skin(d) end root.DescendantAdded:Connect(function(d) task.defer(skin, d) end) end ------------------------------------------------------------------ -- SEKMELER ------------------------------------------------------------------ local HOST = { gui = gui, pos = UDim2.new(0, 30, 0.5, -250), apps = {}, btns = {}, cur = "futbol" } local DEFS = { { "futbol", "⚽", " ⚽" }, { "koysil", "KÜÇÜLTÜCÜ", " KÜÇÜLTÜCÜ" }, { "degdir", "GÖZÜKMEZ", " GÖZÜKMEZ" }, { "resim", "🖼 RESİM", nil, app = "yazi", sub = 2 }, } local function appOf(name) for _, d in ipairs(DEFS) do if d[1] == name then return HOST.apps[d.app or d[1]], d end end end local TW, GAP = 96, 4 local bar = Instance.new("Frame") bar.Size = UDim2.fromOffset(46 + #DEFS * (TW + GAP) + GAP, 32) bar.BackgroundColor3 = P.bg bar.BorderSizePixel = 0 bar.ZIndex = 50 bar.Parent = gui do local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 10) c.Parent = bar local st = addStroke(bar, Color3.new(1, 1, 1), 0, 1.5) local g = Instance.new("UIGradient") g.Color = ColorSequence.new(P.acc, P.acc2) g.Rotation = 0 g.Parent = st local logo = Instance.new("TextLabel") logo.Size = UDim2.fromOffset(42, 32) logo.BackgroundTransparency = 1 logo.Font = Enum.Font.GothamBlack logo.TextSize = 14 logo.Text = "BYS" logo.TextColor3 = Color3.new(1, 1, 1) logo.ZIndex = 51 logo.Parent = bar local lg = Instance.new("UIGradient") lg.Color = ColorSequence.new(P.accT, P.acc2) lg.Parent = logo end -- (geçiş rengi sadece zemindeki çerçevede; yazı ayrı katmanda -> açık sekmede yazı kaybolmaz) local function paint() for _, t in ipairs(HOST.btns) do local on = t.name == HOST.cur t.bg.BackgroundColor3 = on and Color3.new(1, 1, 1) or P.item t.g.Enabled = on t.l.TextColor3 = on and Color3.new(1, 1, 1) or P.dim end end function HOST.show(name) local fromApp = appOf(HOST.cur) local toApp, def = appOf(name) if not toApp then return end if fromApp and fromApp ~= toApp and fromApp.main and fromApp.main.Parent then local a = fromApp.main.AbsolutePosition local ap = toApp.main.AnchorPoint local sz = toApp.main.AbsoluteSize toApp.main.Position = UDim2.fromOffset(a.X + ap.X * sz.X, a.Y + ap.Y * sz.Y) end for _, a in pairs(HOST.apps) do a.main.Visible = (a == toApp) end if def.sub and toApp.tab then pcall(toApp.tab, def.sub) end HOST.cur = name paint() end for i, d in ipairs(DEFS) do local b = Instance.new("TextButton") b.Size = UDim2.fromOffset(TW, 24) b.Position = UDim2.fromOffset(46 + GAP + (i - 1) * (TW + GAP), 4) b.Text = "" b.BackgroundTransparency = 1 b.ZIndex = 51 b.AutoButtonColor = false b.BorderSizePixel = 0 b.Parent = bar local bg = Instance.new("Frame") bg.Size = UDim2.fromScale(1, 1) bg.BorderSizePixel = 0 bg.ZIndex = 51 bg.Parent = b local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 7) c.Parent = bg local g = Instance.new("UIGradient") g.Color = ColorSequence.new(P.acc, P.acc2) g.Rotation = 20 g.Enabled = false g.Parent = bg local l = Instance.new("TextLabel") l.Size = UDim2.fromScale(1, 1) l.BackgroundTransparency = 1 l.Font = Enum.Font.GothamBold l.TextSize = 11 l.Text = d[2] l.ZIndex = 52 l.Parent = b pcall(function() b.MouseEnter:Connect(function() if d[1] ~= HOST.cur then bg.BackgroundColor3 = P.stroke end end) b.MouseLeave:Connect(function() if d[1] ~= HOST.cur then bg.BackgroundColor3 = P.item end end) end) HOST.btns[#HOST.btns + 1] = { b = b, bg = bg, l = l, g = g, name = d[1] } b.MouseButton1Click:Connect(function() HOST.show(d[1]) end) end function HOST.tabs(top, mine) for _, d in ipairs(DEFS) do if d[1] == mine and d[3] then pcall(function() top.Text = d[3] end) end end end function HOST.closeAll() for _, a in pairs(HOST.apps) do pcall(a.close) end pcall(function() gui:Destroy() end) end -- şerit açık pencerenin hemen üstünde local follow follow = RS.RenderStepped:Connect(function() if not gui.Parent then follow:Disconnect() return end local a = appOf(HOST.cur) local m = a and a.main if m and m.Parent then local p = m.AbsolutePosition bar.Position = UDim2.fromOffset(p.X, p.Y - 38) end end) local function start(name, fn) local ok, r = pcall(fn, HOST) if ok and type(r) == "table" and r.main then HOST.apps[name] = r skinMain(r.main) skinTree(r.main) else warn("[BYS HEPSİ] " .. name .. " açılamadı: " .. tostring(r)) end end start("futbol", APP_FUTBOL) start("koysil", APP_KOYSIL) start("degdir", APP_DEGDIR) start("yazi", APP_YAZI) for _, t in ipairs(HOST.btns) do if not appOf(t.name) then t.l.Text = t.l.Text .. " ✖" end end HOST.cur = HOST.apps.futbol and "futbol" or "resim" for _, a in pairs(HOST.apps) do a.main.Visible = false end HOST.show(HOST.cur) end