diff --git a/Fishing.rbxlx b/Fishing.rbxlx
index 22f7bfc..09240a7 100644
--- a/Fishing.rbxlx
+++ b/Fishing.rbxlx
@@ -127,6 +127,108 @@
yuZpQdnvvUBOTYh1jqZ2cA==
5241aa4869bd12870afb1bfc00000002
+ -
+
+ 1
+ 1
+ true
+ true
+ -0.5
+ 0.5
+ 0
+ 0
+ -0.5
+ 0.5
+ 0
+ 0
+
+ -5.80000019
+ 14.1499996
+ 1561.01501
+ 1
+ 0
+ 0
+ 0
+ 1
+ 0
+ 0
+ 0
+ 1
+
+ true
+ true
+ true
+ true
+ Default
+ 0
+ 4282399017
+
+ false
+
+ true
+ -0.5
+ 0.5
+ 0
+ 0
+ -0.5
+ 0.5
+ 0
+ 0
+ false
+ false
+ 1088
+
+
+ 0
+ 0
+ 0
+ 1
+ 0
+ 0
+ 0
+ 1
+ 0
+ 0
+ 0
+ 1
+
+ 0
+ -0.5
+ 0.5
+ 0
+ 0
+ 0
+
+ 0
+ 0
+ 0
+
+ -0.5
+ 0.5
+ 0
+ 0
+ 0
+
+ 0
+ 0
+ 0
+
+
+ 1.5
+ 0.300000012
+ 1.5
+
+
+ 0
+ false
+ 00000000000000000000000000000000
+ LanternCap
+
+ -1
+ yuZpQdnvvUBOTYh1jqZ2cA==
+ 593ba5d2841d14f80afbdf11000094cb
+
+
-
0
@@ -59164,27 +59266,27 @@ gReA/4D/gP+A54EXgP+A/4D/gOeBF4D/gP+A/4DngReA/4D/gP+A5w==]]>
-
- 45.1410828
- 9.86957645
- 11.3241625
- -0.191271946
- -0.0767916068
- 0.978528619
- 1.86264515e-09
- 0.99693495
- 0.0782360733
- -0.981537104
- 0.0149643682
- -0.190685675
+ 47.2727432
+ 41.9268837
+ -32.9533653
+ -0.371816188
+ -0.395115107
+ 0.840021908
+ -0
+ 0.904897392
+ 0.425630033
+ -0.92830646
+ 0.158256143
+ -0.336455464
[null]
0
70
0
- 43.1840248
- 9.71310425
- 11.705534
+ 45.5927048
+ 41.0756264
+ -32.2804565
1
0
0
@@ -824574,18 +824676,18 @@ gReA/4D/gP+A54EXgP+A/4D/gOeBF4D/gP+A/4DngReA/4D/gP+A5w==]]>
0
- -5.9120636
- 13.5201721
- 61.0541649
- 0.105101645
- -0.00800853409
- -0.994429231
- 0.0182325132
- 0.999814928
- -0.00612490624
- 0.994294226
- -0.0174872056
- 0.105228238
+ -3.18729401
+ 14.9516335
+ 55.5543213
+ -0.0330417752
+ -1.72991399e-10
+ -0.99956274
+ 0
+ 0.99999994
+ -1.28056854e-09
+ 0.999562144
+ 1.8584414e-09
+ -0.0330423415
yuZpQdnvvUBOTYh1jqZ2cA==
@@ -824600,18 +824702,18 @@ gReA/4D/gP+A54EXgP+A/4D/gOeBF4D/gP+A/4DngReA/4D/gP+A5w==]]>
yuZpQdnvvUBOTYh1jqZ2cA==
- 46.2298737
- 21.6579094
- 66.7582245
- 0.105101645
- -0.00800853409
- -0.994429231
- 0.0182325132
- 0.999814987
- -0.00612490624
- 0.994294286
- -0.0174872074
- 0.105228215
+ 47.7179413
+ 22.5705357
+ 68.5446548
+ -0.033038646
+ 0
+ -0.999454021
+ 0
+ 1
+ 0
+ 0.999454021
+ 0
+ -0.033038646
@@ -824675,18 +824777,18 @@ gReA/4D/gP+A54EXgP+A/4D/gOeBF4D/gP+A/4DngReA/4D/gP+A5w==]]>
0
0
- 46.7225494
- 18.5166588
- 67.142189
- 0.105101645
- -0.00800853409
- -0.994429231
- 0.0182325132
- 0.999814987
- -0.00612490624
- 0.994294286
- -0.0174872074
- 0.105228215
+ 48.1355591
+ 19.4192066
+ 68.9349442
+ -0.0330386348
+ 9.92353311e-10
+ -0.999454021
+ -1.86264515e-09
+ 1
+ -9.31322575e-10
+ 0.999453902
+ -1.83085858e-09
+ -0.0330386534
true
true
@@ -824813,18 +824915,18 @@ gReA/4D/gP+A54EXgP+A/4D/gOeBF4D/gP+A/4DngReA/4D/gP+A5w==]]>
0
0
- 45.8873215
- 25.9213238
- 67.5625
- 0.105101645
- -0.00800853409
- -0.994429231
- 0.0182325132
- 0.999814987
- -0.00612490624
- 0.994294286
- -0.0174872074
- 0.105228215
+ 47.2911987
+ 26.8218403
+ 69.3724213
+ -0.0330386348
+ 9.92353311e-10
+ -0.999454021
+ -1.86264515e-09
+ 1
+ -9.31322575e-10
+ 0.999453902
+ -1.83085858e-09
+ -0.0330386534
true
true
@@ -824951,18 +825053,18 @@ gReA/4D/gP+A54EXgP+A/4D/gOeBF4D/gP+A/4DngReA/4D/gP+A5w==]]>
0
0
- 46.0903015
- 28.0218697
- 65.8102798
- 0.105101645
- -0.00800853409
- -0.994429231
- 0.0182325132
- 0.999814987
- -0.00612490624
- 0.994294286
- -0.0174872074
- 0.105228215
+ 47.7456665
+ 28.9510136
+ 67.7039337
+ -0.0330386348
+ 9.92353311e-10
+ -0.999454021
+ -1.86264515e-09
+ 1
+ -9.31322575e-10
+ 0.999453902
+ -1.83085858e-09
+ -0.0330386534
true
true
@@ -854725,18 +854827,18 @@ gReA/4D/gP+A54EXgP+A/4D/gOeBF4D/gP+A/4DngReA/4D/gP+A5w==]]>
0
- -60.1146049
- 17.6046791
- 90.5039673
- 0.518627703
- 0.0668599382
- -0.852382004
- -0.0223709568
- 0.997657657
- 0.064643696
- 0.854707778
- -0.0144574009
- 0.518908501
+ -62.2992477
+ 15.2551842
+ 80.8110962
+ 0.290593088
+ 1.00118331e-08
+ -0.95686084
+ 3.72528985e-09
+ 0.999999881
+ -1.39698364e-09
+ 0.956897318
+ 3.72548836e-09
+ 0.290603906
yuZpQdnvvUBOTYh1jqZ2cA==
@@ -854751,18 +854853,18 @@ gReA/4D/gP+A54EXgP+A/4D/gOeBF4D/gP+A/4DngReA/4D/gP+A5w==]]>
yuZpQdnvvUBOTYh1jqZ2cA==
- -13.4031219
- 21.7914429
- 79.6211853
- 0.518627644
- 0.0668599382
- -0.852382064
- -0.0223709568
- 0.997657657
- 0.064643696
- 0.854707599
- -0.0144574028
- 0.518908501
+ -14.7463799
+ 22.7126045
+ 81.8695221
+ 0.290589035
+ 0
+ -0.956848025
+ 0
+ 1
+ 0
+ 0.956848264
+ 0
+ 0.290589124
@@ -854826,18 +854928,18 @@ gReA/4D/gP+A54EXgP+A/4D/gOeBF4D/gP+A/4DngReA/4D/gP+A5w==]]>
0
0
- -13.2195244
- 19.6437988
- 79.6296158
- 0.518627644
- 0.0668599382
- -0.852382064
- -0.0223709568
- 0.997657657
- 0.064643696
- 0.854707599
- -0.0144574028
- 0.518908501
+ -14.4242611
+ 20.5821438
+ 81.9289474
+ 0.290589094
+ 5.71313441e-09
+ -0.956848025
+ 2.79396772e-09
+ 1
+ -5.12227416e-09
+ 0.956848502
+ 1.18492616e-09
+ 0.290589124
true
true
@@ -854964,18 +855066,18 @@ gReA/4D/gP+A54EXgP+A/4D/gOeBF4D/gP+A/4DngReA/4D/gP+A5w==]]>
0
0
- -13.2606792
- 23.916914
- 79.5903854
- 0.518627644
- 0.0668599382
- -0.852382064
- -0.0223709568
- 0.997657657
- 0.064643696
- 0.854707599
- -0.0144574028
- 0.518908501
+ -14.7463846
+ 24.8430653
+ 81.8695221
+ 0.290589094
+ 5.71313441e-09
+ -0.956848025
+ 2.79396772e-09
+ 1
+ -5.12227416e-09
+ 0.956848502
+ 1.18492616e-09
+ 0.290589124
true
true
@@ -2753995,108 +2754097,6 @@ AAAAU2hpcnRDb2xvcg/n5mY/8fDwPvHw8D0JAAAAU2tpbkNvbG9yD+fmZj+/vj4/oaAgPw==]]>
- -
-
- 1
- 1
- true
- true
- -0.5
- 0.5
- 0
- 0
- -0.5
- 0.5
- 0
- 0
-
- -5.80000019
- 14.1499996
- 1561.01501
- 1
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 1
-
- true
- true
- true
- true
- Default
- 0
- 4282399017
-
- false
-
- true
- -0.5
- 0.5
- 0
- 0
- -0.5
- 0.5
- 0
- 0
- false
- false
- 1088
-
-
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 1
-
- 0
- -0.5
- 0.5
- 0
- 0
- 0
-
- 0
- 0
- 0
-
- -0.5
- 0.5
- 0
- 0
- 0
-
- 0
- 0
- 0
-
-
- 1.5
- 0.300000012
- 1.5
-
-
- 0
- false
- 00000000000000000000000000000000
- LanternCap
-
- -1
- yuZpQdnvvUBOTYh1jqZ2cA==
- 593ba5d2841d14f80afbdf11000094cb
-
-
-
@@ -2754299,13 +2754299,16 @@ local gui = new("ScreenGui", {
Name = "LoadingScreen", ResetOnSpawn = false, IgnoreGuiInset = true, DisplayOrder = 200,
ZIndexBehavior = Enum.ZIndexBehavior.Sibling, Parent = player:WaitForChild("PlayerGui"),
})
--- фон: арт лобби (временная заглушка); пока картинка грузится, виден тёплый закатный градиент
-local BG_IMAGE = "rbxassetid://118616665961176"
-local root = new("CanvasGroup", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = Color3.fromRGB(255, 190, 120), BorderSizePixel = 0, Parent = gui })
+-- фон: заставка «Рыболовная лихорадка»; пока картинка грузится, виден голубой градиент.
+-- Градиент — на отдельной подложке: UIGradient на самой CanvasGroup тонирует всё содержимое и затемнял картинку.
+-- Свет и цветокоррекция сцены на экранный интерфейс не действуют, их не трогаем.
+local BG_IMAGE = "rbxassetid://82266337853896" -- осветлённая и более насыщенная версия заставки
+local root = new("CanvasGroup", { Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, BorderSizePixel = 0, Parent = gui })
+local backdrop = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = Color3.new(1, 1, 1), BorderSizePixel = 0, Parent = root })
new("UIGradient", {
Rotation = 90,
- Color = ColorSequence.new(Color3.fromRGB(120, 200, 255), Color3.fromRGB(255, 170, 110)),
- Parent = root,
+ Color = ColorSequence.new(Color3.fromRGB(70, 140, 230), Color3.fromRGB(40, 70, 150)),
+ Parent = backdrop,
})
local bg = new("ImageLabel", {
Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, Image = BG_IMAGE,
@@ -2754318,13 +2754321,14 @@ end)
-- плашка снизу: куда идём, полоска загрузки, совет
local panel = new("Frame", {
AnchorPoint = Vector2.new(0.5, 1), Position = UDim2.new(0.5, 0, 1, -28), Size = UDim2.fromOffset(560, 118),
- BackgroundColor3 = Color3.fromRGB(70, 40, 22), BackgroundTransparency = 0.18, BorderSizePixel = 0, Parent = root,
+ BackgroundColor3 = Color3.new(1, 1, 1), BackgroundTransparency = 0.12, BorderSizePixel = 0, Parent = root,
})
new("UICorner", { CornerRadius = UDim.new(0, 18), Parent = panel })
new("UIStroke", { Color = GOLD, Thickness = 3, Transparency = 0.1, Parent = panel })
+-- тёмно-синяя плашка под ночное небо заставки, золотая обводка — как у заголовка
new("UIGradient", {
Rotation = 90,
- Color = ColorSequence.new(Color3.fromRGB(150, 95, 50), Color3.fromRGB(95, 55, 28)),
+ Color = ColorSequence.new(Color3.fromRGB(40, 66, 140), Color3.fromRGB(20, 32, 78)),
Parent = panel,
})
local float = new("TextLabel", {
@@ -2754336,10 +2754340,10 @@ local title = new("TextLabel", {
Text = "", TextColor3 = Color3.fromRGB(255, 240, 200), TextScaled = true, TextXAlignment = Enum.TextXAlignment.Left,
Font = Enum.Font.FredokaOne, Parent = panel,
})
-new("UIStroke", { Color = Color3.fromRGB(60, 30, 10), Thickness = 2, Parent = title })
+new("UIStroke", { Color = Color3.fromRGB(15, 22, 55), Thickness = 2, Parent = title })
local barBack = new("Frame", {
AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 62), Size = UDim2.new(1, -36, 0, 16),
- BackgroundColor3 = Color3.fromRGB(40, 22, 10), BackgroundTransparency = 0.15, BorderSizePixel = 0, Parent = panel,
+ BackgroundColor3 = Color3.fromRGB(10, 16, 40), BackgroundTransparency = 0.15, BorderSizePixel = 0, Parent = panel,
})
new("UICorner", { CornerRadius = UDim.new(1, 0), Parent = barBack })
local bar = new("Frame", { Size = UDim2.fromScale(0, 1), BackgroundColor3 = GOLD, BorderSizePixel = 0, Parent = barBack })
@@ -2754347,7 +2754351,7 @@ new("UICorner", { CornerRadius = UDim.new(1, 0), Parent = bar })
new("UIGradient", { Color = ColorSequence.new(Color3.fromRGB(255, 230, 120), Color3.fromRGB(255, 160, 60)), Parent = bar })
local tip = new("TextLabel", {
Position = UDim2.fromOffset(18, 86), Size = UDim2.new(1, -36, 0, 22), BackgroundTransparency = 1,
- Text = "", TextColor3 = Color3.fromRGB(255, 228, 185), TextScaled = true,
+ Text = "", TextColor3 = Color3.fromRGB(205, 222, 255), TextScaled = true,
Font = Enum.Font.GothamMedium, Parent = panel,
})
@@ -2754378,7 +2754382,7 @@ end)
local hiding = false
gui:GetAttributeChangedSignal("Visible"):Connect(function()
-- новый телепорт мог прийти, пока экран ещё уходил: тогда возвращаем его
- if gui:GetAttribute("Visible") and (hiding or not gui.Enabled) then
+ if gui:GetAttribute("Visible") then
hiding = false
showTip()
gui.Enabled = true
@@ -2757584,6 +2757588,361 @@ remote:FireServer("RequestInventory")
5241aa4869bd12870afb1bfc000003e6
+ -
+
+ StarterPlayer > StarterPlayerScripts
+-- Атмосфера у этого игрока: время суток, ночной свет, тучи, дождь/снег, молнии, музыка и звуки окружения,
+-- плашка «погода и время» на экране. Время и погоду задаёт сервер (WeatherServer) атрибутами workspace.
+-- Свет локации (Config.Worlds[*].look) ставит FishingClient; здесь всё накладывается поверх:
+-- свои эффекты цвета живут в камере, поэтому не мешают настройкам локаций.
+
+local Players = game:GetService("Players")
+local ReplicatedStorage = game:GetService("ReplicatedStorage")
+local RunService = game:GetService("RunService")
+local TweenService = game:GetService("TweenService")
+local Lighting = game:GetService("Lighting")
+
+local Config = require(ReplicatedStorage:WaitForChild("FishConfig"))
+local Audio = require(script.Parent:WaitForChild("Audio"))
+
+local player = Players.LocalPlayer
+local terrain = workspace.Terrain
+local rng = Random.new()
+local WHITE = Color3.new(1, 1, 1)
+
+local function new(class, props)
+ local o = Instance.new(class)
+ for k, v in pairs(props) do
+ if k ~= "Parent" then
+ o[k] = v
+ end
+ end
+ o.Parent = props.Parent
+ return o
+end
+
+local function clockNow()
+ return Config.ClockAt(workspace:GetServerTimeNow(), workspace:GetAttribute("DayStart"))
+end
+
+local function currentPlace()
+ local hrp = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
+ if not hrp then
+ return nil, "Lobby"
+ end
+ local w = Config.WorldAt(hrp.Position)
+ return w, w and w.id or "Lobby"
+end
+
+local function currentWeather()
+ return Config.WeatherById(workspace:GetAttribute("Weather"))
+end
+
+---------------------------------------------------------------- вид погоды
+
+-- cc — поправка цвета поверх света локации; cover/density/cloud — облака; rain — частиц в секунду
+local LOOK = {
+ Clear = { cover = 0.4, density = 0.45, cloud = Color3.fromRGB(255, 255, 255), rain = 0,
+ cc = { Brightness = 0, Saturation = 0, Contrast = 0, TintColor = WHITE } },
+ Cloudy = { cover = 0.78, density = 0.6, cloud = Color3.fromRGB(215, 218, 226), rain = 0,
+ cc = { Brightness = -0.03, Saturation = -0.1, Contrast = 0, TintColor = Color3.fromRGB(236, 239, 246) } },
+ Rain = { cover = 0.88, density = 0.75, cloud = Color3.fromRGB(165, 170, 182), rain = 350, rainSound = "rainLight",
+ cc = { Brightness = -0.06, Saturation = -0.18, Contrast = 0.02, TintColor = Color3.fromRGB(214, 224, 240) } },
+ Storm = { cover = 0.96, density = 0.9, cloud = Color3.fromRGB(105, 110, 124), rain = 900, rainSound = "rainHeavy", lightning = true,
+ cc = { Brightness = -0.12, Saturation = -0.3, Contrast = 0.06, TintColor = Color3.fromRGB(190, 200, 226) } },
+ Fog = { cover = 0.6, density = 0.5, cloud = Color3.fromRGB(232, 232, 238), rain = 0,
+ cc = { Brightness = 0.02, Saturation = -0.22, Contrast = -0.05, TintColor = Color3.fromRGB(234, 238, 242) } },
+}
+
+-- эффекты в камере: действуют только у этого игрока и не путаются с эффектами Lighting
+local camera = workspace.CurrentCamera
+local weatherCC = new("ColorCorrectionEffect", { Name = "WeatherCC", Parent = camera })
+local nightCC = new("ColorCorrectionEffect", { Name = "NightCC", Parent = camera })
+-- цветокоррекция действует только на 3D-сцену, экран загрузки она не затемняет — выключать её на время загрузки не нужно
+workspace:GetPropertyChangedSignal("CurrentCamera"):Connect(function()
+ camera = workspace.CurrentCamera
+ weatherCC.Parent = camera
+ nightCC.Parent = camera
+end)
+
+local clouds = terrain:FindFirstChildOfClass("Clouds") or new("Clouds", { Parent = terrain })
+
+-- дождь (а во фьорде — снег) сыплется из невидимой плиты над камерой
+local rainPart = new("Part", {
+ Name = "RainFX", Anchored = true, CanCollide = false, CanQuery = false, CanTouch = false,
+ Transparency = 1, Size = Vector3.new(110, 1, 110), Parent = workspace,
+})
+local rain = new("ParticleEmitter", {
+ Texture = "rbxasset://textures/SelfView/whiteRect.png",
+ Rate = 0, Lifetime = NumberRange.new(1.1, 1.4), Speed = NumberRange.new(55, 70),
+ EmissionDirection = Enum.NormalId.Bottom, SpreadAngle = Vector2.new(4, 4),
+ Orientation = Enum.ParticleOrientation.VelocityParallel,
+ Size = NumberSequence.new(0.07), Squash = NumberSequence.new(2.5),
+ Color = ColorSequence.new(Color3.fromRGB(200, 215, 235)), Transparency = NumberSequence.new(0.45),
+ LightInfluence = 1,
+ Parent = rainPart,
+})
+
+local function rainStyle(snowy)
+ if snowy then
+ rain.Speed = NumberRange.new(6, 10)
+ rain.Lifetime = NumberRange.new(5, 7)
+ rain.Size = NumberSequence.new(0.22)
+ rain.Squash = NumberSequence.new(0)
+ rain.SpreadAngle = Vector2.new(25, 25)
+ rain.Orientation = Enum.ParticleOrientation.FacingCamera
+ rain.Color = ColorSequence.new(WHITE)
+ rain.Transparency = NumberSequence.new(0.1)
+ else
+ rain.Speed = NumberRange.new(55, 70)
+ rain.Lifetime = NumberRange.new(1.1, 1.4)
+ rain.Size = NumberSequence.new(0.07)
+ rain.Squash = NumberSequence.new(2.5)
+ rain.SpreadAngle = Vector2.new(4, 4)
+ rain.Orientation = Enum.ParticleOrientation.VelocityParallel
+ rain.Color = ColorSequence.new(Color3.fromRGB(200, 215, 235))
+ rain.Transparency = NumberSequence.new(0.45)
+ end
+end
+
+local appliedWeather, appliedPlace = nil, nil
+local function applyWeather(instant)
+ local w = currentWeather()
+ local _, placeId = currentPlace()
+ if appliedWeather == w.id and appliedPlace == placeId and not instant then
+ return
+ end
+ appliedWeather, appliedPlace = w.id, placeId
+ local look = LOOK[w.id] or LOOK.Clear
+ local info = TweenInfo.new(instant and 0 or 6)
+ TweenService:Create(weatherCC, info, look.cc):Play()
+ TweenService:Create(clouds, info, { Cover = look.cover, Density = look.density }):Play() -- цвет туч ставит главный цикл (с учётом ночи)
+ local snowy = placeId == "World3"
+ rainStyle(snowy)
+ rain.Rate = snowy and look.rain * 0.35 or look.rain
+end
+
+---------------------------------------------------------------- молнии
+
+task.spawn(function()
+ while true do
+ task.wait(rng:NextNumber(6, 16))
+ local w = currentWeather()
+ local _, placeId = currentPlace()
+ if LOOK[w.id] and LOOK[w.id].lightning and placeId ~= "World3" then
+ -- двойная вспышка, гром приходит чуть позже (молния далеко)
+ local base = weatherCC.Brightness
+ for _ = 1, 2 do
+ weatherCC.Brightness = base + 0.45
+ task.wait(0.06)
+ weatherCC.Brightness = base
+ task.wait(0.09)
+ end
+ local far = rng:NextNumber()
+ task.delay(0.2 + far * 1.4, function()
+ local list = Config.Sounds.thunder
+ Audio.playId(list[rng:NextInteger(1, #list)], 0.9 - far * 0.5, "ambient")
+ end)
+ end
+ end
+end)
+
+---------------------------------------------------------------- музыка
+
+local tracks = {}
+local function track(name)
+ if not tracks[name] then
+ tracks[name] = Audio.loop(name, "music")
+ end
+ return tracks[name]
+end
+
+local currentTrack = nil
+local function musicFor(placeId, night)
+ if night and placeId ~= "World2" then
+ return "musicNight"
+ end
+ if placeId == "Lobby" then
+ return (math.floor(workspace:GetServerTimeNow() / 600) % 2 == 0) and "musicLobby" or "musicLobby2"
+ elseif placeId == "World1" then
+ return (math.floor(workspace:GetServerTimeNow() / 600) % 2 == 0) and "musicLake" or "musicLake2"
+ elseif placeId == "World3" then
+ return "musicNight"
+ end
+ return "musicLake2"
+end
+
+---------------------------------------------------------------- звуки окружения
+
+local ambient = {}
+for _, name in ipairs({ "birdsLake", "birdsPark", "birdsJungle", "crickets", "lakeWater", "wind", "rainLight", "rainHeavy" }) do
+ ambient[name] = Audio.loop(name, "ambient")
+end
+
+-- какие петли и насколько громко звучат сейчас
+local function ambientMix(placeId, night, w)
+ local mix = {}
+ local day = not night
+ mix.birdsLake = (day and placeId == "World1") and 1 or 0
+ mix.birdsPark = (day and placeId == "Lobby") and 1 or 0
+ mix.birdsJungle = (day and placeId == "World2") and 1 or 0
+ mix.crickets = (night and placeId ~= "World3") and 1 or 0
+ mix.lakeWater = (placeId == "World1" or placeId == "World2") and 1 or 0
+ local wind = 1
+ if placeId == "World3" then
+ wind = 2.5
+ end
+ if w.id == "Storm" then
+ wind *= 2
+ end
+ mix.wind = wind
+ local wet = placeId ~= "World3"
+ mix.rainLight = (wet and w.id == "Rain") and 1 or 0
+ mix.rainHeavy = (wet and w.id == "Storm") and 1 or 0
+ -- в дождь птицы прячутся
+ if w.id == "Rain" or w.id == "Storm" then
+ mix.birdsLake, mix.birdsPark, mix.birdsJungle = 0, 0, 0
+ end
+ return mix
+end
+
+-- треск у каждого костра на карте (звук в самом костре: слышно только рядом)
+task.spawn(function()
+ local map = workspace:WaitForChild("FishingMap", 60)
+ if not map then
+ return
+ end
+ task.wait(3)
+ local def = Config.Sounds.fire
+ for _, d in ipairs(map:GetDescendants()) do
+ if d:IsA("Fire") and d.Parent and d.Parent:IsA("BasePart") then
+ new("Sound", {
+ Name = "FireCrackle", SoundId = def.id, Volume = def.volume, Looped = true, Playing = true,
+ RollOffMode = Enum.RollOffMode.InverseTapered, RollOffMinDistance = 6, RollOffMaxDistance = def.roll or 30,
+ SoundGroup = Audio.groups.ambient, Parent = d.Parent,
+ })
+ end
+ end
+end)
+
+---------------------------------------------------------------- плашка «погода и время»
+
+-- в стиле интерфейса (UiTheme): тёмное дерево с золотой рамкой; масштаб — как у основного интерфейса
+local Theme = require(script.Parent:WaitForChild("UiTheme"))
+local hud = new("ScreenGui", { Name = "WeatherHud", ResetOnSpawn = false, IgnoreGuiInset = false, Parent = player:WaitForChild("PlayerGui") })
+local pill = new("Frame", {
+ Size = UDim2.fromOffset(230, 48), AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -12, 0, 74),
+ BackgroundColor3 = Theme.C.woodDark, BackgroundTransparency = 0.08, Parent = Theme.followScale(hud),
+})
+new("UICorner", { CornerRadius = UDim.new(0, 8), Parent = pill })
+local pillStroke = new("UIStroke", { Color = Theme.C.goldDark, Thickness = 2, Transparency = 0, Parent = pill })
+local line1 = new("TextLabel", {
+ Size = UDim2.new(1, -16, 0, 24), Position = UDim2.fromOffset(10, 3), BackgroundTransparency = 1,
+ FontFace = Theme.TITLE_FACE, TextSize = 16, TextColor3 = Theme.C.parchment, TextXAlignment = Enum.TextXAlignment.Left,
+ Text = "", Parent = pill,
+})
+local line2 = new("TextLabel", {
+ Size = UDim2.new(1, -16, 0, 16), Position = UDim2.fromOffset(10, 27), BackgroundTransparency = 1,
+ FontFace = Theme.BODY2_FACE, TextSize = 12, TextColor3 = Color3.fromRGB(170, 215, 140), TextXAlignment = Enum.TextXAlignment.Left,
+ Text = "", Parent = pill,
+})
+
+local function weatherName(w, placeId)
+ return (w.names and w.names[placeId]) or w.name
+end
+
+local lastShownWeather = nil
+local function refreshPill(clock, night, w, placeId)
+ local h = math.floor(clock)
+ local m = math.floor((clock - h) * 60)
+ line1.Text = ("%s %s · %s %02d:%02d"):format(w.icon, weatherName(w, placeId), night and "🌙" or "☀", h, m)
+ local bonus = {}
+ if w.desc then
+ table.insert(bonus, w.desc)
+ end
+ if night then
+ table.insert(bonus, ("Ночь: удача +%d%%"):format(math.floor(Config.DayNight.nightLuck * 100 + 0.5)))
+ end
+ line2.Text = #bonus > 0 and table.concat(bonus, " · ") or "Спокойная погода"
+ if lastShownWeather ~= w.id then
+ -- погода сменилась: плашка вспыхивает
+ if lastShownWeather ~= nil then
+ pillStroke.Color = Color3.fromRGB(255, 220, 120)
+ pillStroke.Transparency = 0
+ TweenService:Create(pillStroke, TweenInfo.new(2.5), { Color = Theme.C.goldDark, Transparency = 0 }):Play()
+ end
+ lastShownWeather = w.id
+ end
+end
+
+---------------------------------------------------------------- главный цикл
+
+-- часы двигаются каждый кадр (плавно), остальное проверяется раз в полсекунды
+RunService.RenderStepped:Connect(function()
+ if Config.DayNight.enabled then
+ Lighting.ClockTime = clockNow()
+ end
+ if camera then
+ rainPart.CFrame = CFrame.new(camera.CFrame.Position + Vector3.new(0, 35, 0))
+ end
+end)
+
+workspace:GetAttributeChangedSignal("Weather"):Connect(function()
+ applyWeather(false)
+end)
+applyWeather(true)
+
+task.spawn(function()
+ while true do
+ local clock = clockNow()
+ local nightness = Config.DayNight.enabled and Config.Nightness(clock) or 0
+ local night = nightness >= 0.5
+ local w = currentWeather()
+ local _, placeId = currentPlace()
+
+ -- ночь: темнее, холоднее, менее насыщенно
+ nightCC.Brightness = -0.1 * nightness
+ nightCC.Saturation = -0.18 * nightness
+ nightCC.TintColor = WHITE:Lerp(Color3.fromRGB(165, 185, 255), nightness)
+ clouds.Color = (LOOK[w.id] or LOOK.Clear).cloud:Lerp(Color3.fromRGB(40, 45, 60), nightness * 0.8)
+
+ applyWeather(false) -- смена локации меняет дождь на снег и обратно
+
+ -- музыка: плавная смена трека, в грозу тише
+ local want = musicFor(placeId, night)
+ local duck = (w.id == "Storm") and 0.5 or 1
+ if currentTrack ~= want then
+ if currentTrack then
+ Audio.fade(track(currentTrack), 0, 3)
+ end
+ currentTrack = want
+ end
+ Audio.fade(track(want), duck, 3)
+
+ for name, factor in pairs(ambientMix(placeId, night, w)) do
+ Audio.fade(ambient[name], factor, 3)
+ end
+
+ refreshPill(clock, night, w, placeId)
+ task.wait(0.5)
+ end
+end)
+]]>
+ false
+
+ 0
+ {15F1BDC7-1541-4C1E-BB78-A86DE23B7533}
+
+ 0
+ false
+ 00000000000000000000000000000000
+ Ambience
+
+ -1
+ yuZpQdnvvUBOTYh1jqZ2cA==
+ 7d5633f4c280c36c0afca57d00001884
+
+
-
@@ -2757868,21 +2758227,6 @@ remote:FireServer("RequestInventory")
5241aa4869bd12870afb1bfc000003b7
- -
-
- AAAAAA==
- AAAAAA==
-
- 0
- false
- 00000000000000000000000000000000
- ServiceVisibilityService
-
- -1
- yuZpQdnvvUBOTYh1jqZ2cA==
- 5241aa4869bd12870afb1bfc000003b9
-
-
-
@@ -3670004,6 +3670348,21 @@ gP+A/4D/gP+A/4D/gP+A/4D/gP+A/4D/gP+A/4D/gP+AHg==]]>
+ -
+
+ AAAAAA==
+ AAAAAA==
+
+ 0
+ false
+ 00000000000000000000000000000000
+ ServiceVisibilityService
+
+ -1
+ yuZpQdnvvUBOTYh1jqZ2cA==
+ 5241aa4869bd12870afb1bfc000003b9
+
+
-
diff --git a/RobloxPageRenders/loading-screen-no-text.png b/RobloxPageRenders/loading-screen-no-text.png
new file mode 100644
index 0000000..d221083
Binary files /dev/null and b/RobloxPageRenders/loading-screen-no-text.png differ
diff --git a/RobloxPageRenders/loading-screen-portal-no-loading-text.png b/RobloxPageRenders/loading-screen-portal-no-loading-text.png
new file mode 100644
index 0000000..5fb03c8
Binary files /dev/null and b/RobloxPageRenders/loading-screen-portal-no-loading-text.png differ
diff --git a/RobloxPageRenders/loading-screen.png b/RobloxPageRenders/loading-screen.png
new file mode 100644
index 0000000..7e5d205
Binary files /dev/null and b/RobloxPageRenders/loading-screen.png differ
diff --git a/install/1_FishConfig_ReplicatedStorage.rbxmx b/install/1_FishConfig_ReplicatedStorage.rbxmx
index 06669c1..e5ef4b7 100644
--- a/install/1_FishConfig_ReplicatedStorage.rbxmx
+++ b/install/1_FishConfig_ReplicatedStorage.rbxmx
@@ -365,6 +365,20 @@ Config.QuestKinds = {
perfectCast = { text = "Забрось в зелёную зону %d %s", forms = TIMES, coins = 8, xp = 6 },
combo = { text = "Набери серию из %d рыб", coins = 12, xp = 10, max = 15 },
sell = { text = "Продай %d %s", forms = FISH, coins = 3, xp = 3 },
+<<<<<<< HEAD
+ earn = { text = "Заработай %d ⚪ на продаже", coins = 0.25, xp = 0.2, byLevel = true },
+ buy = { text = "Купи что-нибудь в магазине", coins = 40, xp = 30, max = 1 },
+ boss = { text = "Нанеси боссу %d урона", coins = 15, xp = 12 },
+}
+Config.QuestChains = {
+ { name = "🎣 Утренний клёв", steps = { { "catch", 3 }, { "perfectCast", 2 }, { "sell", 3 }, { "catch", 5 }, { "uncommon", 1 } } },
+ { name = "🔥 Без промаха", steps = { { "perfect", 3 }, { "combo", 3 }, { "catch", 6 }, { "earn", 80 }, { "combo", 5 } } },
+ { name = "💎 Охота за редкостью", steps = { { "uncommon", 3 }, { "perfectCast", 3 }, { "rare", 1 }, { "sell", 8 }, { "buy", 1 } } },
+ { name = "🏆 Мастер озера", steps = { { "combo", 6 }, { "catch", 10 }, { "perfect", 6 }, { "rare", 2 }, { "earn", 300 } } },
+}
+Config.QuestTierGrowth = 0.5 -- каждый следующий круг цепочек: цели ×(1 + 0.5 · номер круга)
+Config.ChainBonus = { coins = 120, xp = 100, potion = "Luck1" } -- за всю цепочку (растёт с уровнем и кругом)
+=======
earn = { text = "Заработай %d 💰 на продаже", coins = 0.25, xp = 0.2, byLevel = true },
buy = { text = "Купи что-нибудь в магазине", coins = 40, xp = 30, max = 1 },
boss = { text = "Нанеси боссу %d урона", coins = 15, xp = 12 },
@@ -397,8 +411,29 @@ Config.Boss = {
World3 = { name = "Ледяной левиафан", fish = "Leviathan", mutation = "Rainbow", scale = 2.5 },
},
}
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
--- ежедневная награда (7 дней по кругу), монеты растут с уровнем
+---------------------------------------------------------------- серия улова
+-- каждая рыба подряд без срыва: +10% к цене и опыту следующей, до ×2;
+-- срыв, ушедшая рыба или timeout секунд без улова — серия сгорает
+Config.Combo = { step = 0.1, max = 2.0, timeout = 90 }
+
+---------------------------------------------------------------- босс озера
+-- раз в interval секунд в мир, где больше всего игроков, приплывает босс. Его ловят всем сервером:
+-- каждая пойманная там рыба наносит урон = ранг редкости (+1 за подсечку без промаха).
+-- Если за duration секунд урона хватило — награда всем, кто помог (× mult мира, минимум 40% за малый вклад)
+Config.Boss = {
+ firstDelay = 240, interval = 600, duration = 180,
+ hpPerPlayer = 12,
+ reward = { coins = 300, xp = 250, potion = "Luck1" },
+ worlds = {
+ World1 = { name = "Сом-великан", fish = "Som", mutation = "Golden", scale = 5 },
+ World2 = { name = "Королевская акула", fish = "Shark", mutation = "Golden", scale = 3 },
+ World3 = { name = "Ледяной левиафан", fish = "Leviathan", mutation = "Rainbow", scale = 2.5 },
+ },
+}
+
+-- ежедневная награда (7 дней по кругу), серебро растёт с уровнем
Config.DailyRewards = {
{ coins = 100 },
{ coins = 200 },
@@ -414,25 +449,124 @@ Config.Events = {
{ id = "Bite", name = "⚡ Клёвый час", desc = "Рыба клюёт в 2 раза быстрее", duration = 180, speed = 0.5 },
{ id = "Luck", name = "🍀 Удачный ветер", desc = "Удача +50% для всех", duration = 180, luck = 0.5 },
{ id = "Stars", name = "🌟 Звездопад", desc = "Мутации в 3 раза чаще", duration = 180, mutation = 3 },
- { id = "Fair", name = "💰 Рыбная ярмарка", desc = "Рыба продаётся на 50% дороже", duration = 180, sell = 1.5 },
+ { id = "Fair", name = "🐟 Рыбная ярмарка", desc = "Рыба продаётся на 50% дороже", duration = 180, sell = 1.5 },
}
Config.EventFirstDelay = 120
Config.EventGapMin = 420
Config.EventGapMax = 720
+---------------------------------------------------------------- время суток
+-- одни сутки длятся length секунд реального времени; время общее для всего сервера
+Config.DayNight = {
+ enabled = true,
+ length = 1200, -- 20 минут на сутки
+ startClock = 9, -- во сколько начинается день при запуске сервера
+ nightLuck = 0.10, -- ночью удача +10%
+}
+
+-- время на часах в момент serverTime (workspace:GetServerTimeNow()), dayStart — атрибут workspace "DayStart"
+function Config.ClockAt(serverTime, dayStart)
+ local d = Config.DayNight
+ return (d.startClock + (serverTime - (dayStart or serverTime)) / d.length * 24) % 24
+end
+
+-- 0 днём, 1 глубокой ночью, плавно на рассвете и закате
+function Config.Nightness(clock)
+ if clock >= 7 and clock <= 17.5 then
+ return 0
+ elseif clock > 17.5 and clock < 20 then
+ return (clock - 17.5) / 2.5
+ elseif clock >= 5 and clock < 7 then
+ return 1 - (clock - 5) / 2
+ end
+ return 1
+end
+
+function Config.IsNight(clock)
+ return Config.Nightness(clock) >= 0.5
+end
+
+---------------------------------------------------------------- погода
+-- меняется на всём сервере; weight — как часто выпадает, duration — сколько длится (секунды)
+-- luck / speed / mutation — бонусы к рыбалке, пока погода держится
+-- names — как погода называется в отдельных мирах (во фьорде вместо дождя снег)
+Config.Weathers = {
+ { id = "Clear", name = "Ясно", icon = "☀", weight = 40, duration = { 240, 420 } },
+ { id = "Cloudy", name = "Пасмурно", icon = "☁", weight = 25, duration = { 180, 360 }, luck = 0.05, desc = "Удача +5%" },
+ { id = "Rain", name = "Дождь", icon = "🌧", weight = 20, duration = { 150, 300 }, speed = 0.85, desc = "Клюёт на 15% быстрее",
+ names = { World3 = "Снегопад" } },
+ { id = "Storm", name = "Гроза", icon = "⛈", weight = 8, duration = { 120, 240 }, luck = 0.25, speed = 0.9, desc = "Удача +25%",
+ names = { World3 = "Метель" } },
+ { id = "Fog", name = "Туман", icon = "🌫", weight = 7, duration = { 150, 300 }, mutation = 1.5, desc = "Мутации ×1.5" },
+}
+
+function Config.WeatherById(id)
+ for _, w in ipairs(Config.Weathers) do
+ if w.id == id then
+ return w
+ end
+ end
+ return Config.Weathers[1]
+end
+
+---------------------------------------------------------------- звуки
+-- ID из Creator Store: эффекты — Pro Sound Effects (официальная библиотека Roblox),
+-- музыка — APM и DistroKid (лицензированы для Roblox). volume — громкость, pitch — разброс высоты
+local function S(id, volume, extra)
+ local t = extra or {}
+ t.id = "rbxassetid://" .. id
+ t.volume = volume
+ return t
+end
+Config.Sounds = {
+ -- музыка
+ musicLobby = S(137023744071437, 0.35), -- The Ancient Lutes | Medieval Tavern Music
+ musicLobby2 = S(116079409060113, 0.35), -- The Lute Lament | Medieval Tavern Music
+ musicLake = S(1838853377, 0.3), -- Harp Fantasy
+ musicLake2 = S(86472274853159, 0.3), -- Calm Fantasy Atmosphere
+ musicNight = S(140195397978848, 0.3), -- Moonlit Meadow Whisper
+ -- окружение (петли)
+ birdsLake = S(9112877174, 0.35), -- Squam Lake 1
+ birdsPark = S(9113444360, 0.25), -- Birds Park 2
+ birdsJungle = S(9114892930, 0.3), -- Jungle Birds Ambience 3
+ crickets = S(9112764573, 0.3), -- Crickets Night 3
+ lakeWater = S(9116203162, 0.25), -- Lake Lap Water Movement 2
+ wind = S(9113286782, 0.18), -- Barstow Wind Light Blustery Low Howl 1
+ rainLight = S(9112852668, 0.45), -- Rain Continuous Drizzle 1
+ rainHeavy = S(9112853287, 0.55), -- Rain Heavy 1
+ fire = S(9112780193, 0.6, { roll = 30 }), -- Fireplace Constant Burning Flame 1 (слышно у костра)
+ thunder = { "rbxassetid://9116282875", "rbxassetid://9116282646", "rbxassetid://9116282791", "rbxassetid://9116282544" },
+ -- рыбалка
+ cast = S(9120718279, 0.5, { pitch = { 0.9, 1.1 } }), -- Whoosh Fast Swish By 1
+ bite = S(9112751536, 0.7, { pitch = { 0.9, 1.15 } }), -- Bubble Bloop High Pitched Cute 1
+ reel = S(9114454019, 0.4), -- Fishing Reel 4 (петля, пока тянешь)
+ catchSplash = S(9119293555, 0.6), -- Small Splash Shallow Water
+ catch = S(9126073001, 0.5), -- Bell Tone Ding
+ fanfare = S(1836473422, 0.45), -- Victory Fanfare Sting (редкая рыба)
+ sparkle = S(9114369623, 0.5), -- Fairy Dust 1 (мутация)
+ escape = S(9117944976, 0.5), -- Puddle Splash 2 (сорвалась)
+ -- интерфейс
+ click = S(15675032796, 0.5), -- Roblox_UI_Small_Click
+ open = S(9117231552, 0.45), -- Paper Scroll Unroll Handle 4
+ coins = S(9113849306, 0.6), -- Coins Or Keys Jingle 1
+ levelUp = S(1840525342, 0.5), -- Harp Glissando (A)
+ quest = S(9126073318, 0.5), -- Bell Tone Ding 2
+}
+Config.DefaultVolume = { music = 0.6, sfx = 0.8 }
+
---------------------------------------------------------------- донат (Robux)
-- ВАЖНО: впиши сюда ID своих пропусков и товаров с create.roblox.com.
-- Пока id = 0, кнопка покупки покажет подсказку, что товар не настроен.
Config.GamePasses = {
- { key = "VIP", id = 0, robux = 199, icon = "👑", name = "VIP", desc = "+25% удачи и монет, корона над головой" },
- { key = "DoubleCoins", id = 0, robux = 299, icon = "💰", name = "x2 Монеты", desc = "Вся рыба продаётся в 2 раза дороже" },
+ { key = "VIP", id = 0, robux = 199, icon = "👑", name = "VIP", desc = "+25% удачи и серебра, корона над головой" },
+ { key = "DoubleCoins", id = 0, robux = 299, icon = "⚪", name = "x2 Серебро", desc = "Вся рыба продаётся в 2 раза дороже" },
{ key = "LuckyCharm", id = 0, robux = 349, icon = "🍀", name = "Талисман удачи", desc = "+50% удачи навсегда" },
{ key = "BigBag", id = 0, robux = 149, icon = "🎒", name = "Бездонная сумка", desc = "+100 мест в любой сумке" },
}
Config.Products = {
- { key = "Coins1", id = 0, robux = 49, icon = "🪙", name = "Мешок монет", desc = "+1 000 монет (больше с уровнем)", coins = 1000 },
- { key = "Coins2", id = 0, robux = 199, icon = "💰", name = "Сундук монет", desc = "+5 000 монет (больше с уровнем)", coins = 5000 },
- { key = "Coins3", id = 0, robux = 599, icon = "🏆", name = "Гора золота", desc = "+20 000 монет (больше с уровнем)", coins = 20000 },
+ { key = "Coins1", id = 0, robux = 49, icon = "👝", name = "Кошель серебра", desc = "+1 000 серебра (больше с уровнем)", coins = 1000 },
+ { key = "Coins2", id = 0, robux = 199, icon = "⚪", name = "Сундук серебра", desc = "+5 000 серебра (больше с уровнем)", coins = 5000 },
+ { key = "Coins3", id = 0, robux = 599, icon = "🏆", name = "Гора золота", desc = "+20 000 серебра (больше с уровнем)", coins = 20000 },
{ key = "Luck", id = 0, robux = 99, icon = "🧪", name = "Супер-зелье удачи", desc = "+200% удачи на 15 минут", boost = 2.0, duration = 900 },
}
@@ -454,8 +588,105 @@ Config.TutorialDone = 4
function Config.HitsNeeded(rank)
return math.ceil(rank / 2)
end
+-- опыт до следующего уровня: до 8-го ≈ 3 600 (1,5–2 часа вместе с заказами гильдии);
+-- у старых сохранений уровень не понижается — копится только опыт внутри уровня
function Config.XPForLevel(level)
- return 60 + level * 60
+ return math.floor(50 * level ^ 1.6)
+end
+
+---------------------------------------------------------------- гильдия рыбаков
+-- три валюты: серебро (coins в данных), жемчуг (pearls), печати гильдии (seals — копятся для ранга)
+Config.Pearls = {
+ mutation = { Shiny = 1, Golden = 3, Rainbow = 10 }, -- за пойманную рыбу с мутацией
+ boss = 5, -- за победу над боссом
+ daily7 = 5, -- 7-й день ежедневной награды
+ rankUp = 10, -- за новый ранг
+}
+
+-- ранги: seals — сколько печатей нужно накопить, trial — испытание у Старейшины,
+-- orders — заказов на доске, traps — ловушек, discount — скидка у торговцев
+-- trial.kind: deliver (сдать рыбу из сумки), catch (поймать с условием), bossWin (участие в победе над боссом),
+-- dex (собрать коллекцию мира)
+Config.Guild = {
+ elder = "Старейшина Ворон",
+ ranks = {
+ { id = "F", name = "Ученик", seals = 0, orders = 3, color = Color3.fromRGB(150, 150, 150),
+ unlocks = "Мир 1, доска заказов" },
+ { id = "E", name = "Подмастерье", seals = 30, orders = 4, color = Color3.fromRGB(90, 190, 90), auto = true,
+ trial = { kind = "deliver", fish = "Okun", count = 5, text = "Сдать 5 окуней" },
+ unlocks = "🎣 Автоловля, 4-й заказ на доске" },
+ { id = "D", name = "Рыбак", seals = 120, orders = 4, color = Color3.fromRGB(70, 130, 230), auto = true, traps = 1,
+ trial = { kind = "catch", minRank = 3, weathers = { Rain = true, Storm = true }, count = 1, text = "Поймать «Редкую» рыбу в дождь или грозу" },
+ unlocks = "🏝 Мир 2 (и ур. 8), 🧺 ловушка" },
+ { id = "C", name = "Опытный рыбак", seals = 350, orders = 4, color = Color3.fromRGB(150, 80, 200), auto = true, traps = 2, discount = 0.05,
+ trial = { kind = "bossWin", count = 1, text = "Помочь одолеть босса озера" },
+ unlocks = "🧺 2 ловушки, скидка у торговцев 5%" },
+ { id = "B", name = "Мастер", seals = 900, orders = 4, color = Color3.fromRGB(200, 50, 45), auto = true, traps = 3, discount = 0.05,
+ trial = { kind = "dex", world = "World1", text = "Собрать всю коллекцию «Тихого озера»" },
+ unlocks = "❄ Мир 3 (и ур. 18), 🧺 3 ловушки" },
+ { id = "A", name = "Магистр", seals = 2000, orders = 4, color = Color3.fromRGB(230, 180, 60), auto = true, traps = 3, discount = 0.10,
+ trial = { kind = "catch", minRank = 4, night = true, count = 1, text = "Поймать «Эпическую» рыбу ночью" },
+ unlocks = "Титул «Магистр», скидка 10%" },
+ { id = "S", name = "Легенда", seals = 4500, orders = 4, color = Color3.fromRGB(255, 120, 200), auto = true, traps = 3, discount = 0.10, autoNoCap = true,
+ trial = { kind = "catch", minRank = 6, count = 1, text = "Поймать «Мифическую» рыбу" },
+ unlocks = "Золотой жетон, автоловля без ограничения редкости" },
+ },
+ -- миры требуют и уровень, и ранг (номер в списке ranks)
+ worldRank = { World2 = 3, World3 = 5 },
+ elderDistance = 22, -- взять испытание / сдать рыбу — рядом со Старейшиной или доской
+}
+
+-- заказы гильдии: личные, обновляются каждые period секунд (окно floor(os.time()/period)),
+-- один заказ можно перебросить за rerollPearls жемчуга. Награда растёт с рангом
+Config.Orders = {
+ period = 10800,
+ rerollPearls = 2,
+ pearlChance = 0.2, pearlsMin = 1, pearlsMax = 3,
+ coinsPerSeal = 12, -- серебро за заказ = печати × это × (1 + 0.5 · (ранг − 1))
+ -- weight — как часто выпадает; seals — печати {мин, макс}
+ kinds = {
+ deliver = { weight = 3, seals = { 5, 12 } },
+ heavy = { weight = 2, seals = { 8, 16 } },
+ weather = { weight = 1, seals = { 10, 20 } },
+ night = { weight = 1, seals = { 10, 22 } },
+ combo = { weight = 2, seals = { 8, 18 } },
+ perfect = { weight = 2, seals = { 6, 14 } },
+ },
+}
+
+-- наживка: 1 слот, 1 штука тратится на заброс. price — за пачку из pack штук; currency = "pearls" — за жемчуг
+Config.Baits = {
+ { id = "Worm", name = "Червь", icon = "🐛", price = 40, pack = 10, speed = 0.9, desc = "Клюёт на 10% быстрее" },
+ { id = "Larva", name = "Мотыль", icon = "🦐", price = 90, pack = 10, luck = 0.15, desc = "Удача +15%" },
+ { id = "Firefly", name = "Светлячок", icon = "✨", price = 120, pack = 10, nightLuck = 0.30, desc = "Ночью удача +30% (вместо +10%)" },
+ { id = "Blood", name = "Кровавая приманка", icon = "🩸", price = 400, pack = 10, rareWeight = 1.5, rank = 3, desc = "Редкие и выше попадаются в 1,5 раза чаще" },
+ { id = "Pearl", name = "Жемчужная блесна", icon = "🦪", price = 5, pack = 5, mutation = 2, currency = "pearls", desc = "Шанс мутаций ×2" },
+}
+
+-- автоловля (с ранга E): сервер сам забрасывает и вытаскивает, но со штрафами
+Config.AutoFish = {
+ luck = 0.6, -- удача ×0.6
+ maxRarity = 3, -- не выше «Редкой» (ранг S снимает)
+ slower = 1.5, -- каждая поимка на 50% дольше
+ reel = 2.5, -- секунд «вываживания» вместо мини-игры
+}
+
+-- ловушки-вентери (с ранга D): 1 рыба Мира 1 каждые every секунд, не больше max, копятся и офлайн
+Config.Traps = {
+ every = 900, max = 16,
+ world = "World1", rarities = { Common = 3, Uncommon = 1 }, -- вес редкостей
+}
+
+-- отдых: пока игрока нет, копится двойной опыт — 1 минута за каждые perOffline минут офлайн, не больше max
+Config.Rest = { perOffline = 4, max = 3600, mult = 2 }
+
+function Config.RankById(id)
+ for i, r in ipairs(Config.Guild.ranks) do
+ if r.id == id then
+ return r, i
+ end
+ end
+ return nil
end
---------------------------------------------------------------- помощники
diff --git a/install/4_GameServer_ServerScriptService.rbxmx b/install/4_GameServer_ServerScriptService.rbxmx
index bacf498..bc41010 100644
--- a/install/4_GameServer_ServerScriptService.rbxmx
+++ b/install/4_GameServer_ServerScriptService.rbxmx
@@ -14,6 +14,7 @@ local Debris = game:GetService("Debris")
local Config = require(ReplicatedStorage:WaitForChild("FishConfig"))
local Models = require(ReplicatedStorage:WaitForChild("GameModels"))
+local Guild = require(script.Parent:WaitForChild("Guild"))
local remote = ReplicatedStorage:FindFirstChild("GameEvent") or Instance.new("RemoteEvent")
remote.Name = "GameEvent"
@@ -45,6 +46,9 @@ local function defaultData()
chain = { index = 1, step = 1, progress = 0, tier = 0 }, daily = { last = 0, streak = 0 },
boostUntil = 0, boostBonus = 0,
totalCaught = 0, nextUid = 1, receipts = {},
+ settings = { music = Config.DefaultVolume.music, sfx = Config.DefaultVolume.sfx },
+ -- гильдия: жемчуг, печати, отдых (ранг, заказы, наживку, ловушки дополняет Guild.defaults)
+ pearls = 0, seals = 0, rest = 0,
}
end
@@ -106,6 +110,17 @@ local function ev(field, default)
return (currentEvent and currentEvent[field]) or default
end
+-- погода и время суток (их ведёт WeatherServer через атрибуты workspace)
+local function weather()
+ return Config.WeatherById(workspace:GetAttribute("Weather"))
+end
+local function isNight()
+ if not Config.DayNight.enabled then
+ return false
+ end
+ return Config.IsNight(Config.ClockAt(workspace:GetServerTimeNow(), workspace:GetAttribute("DayStart")))
+end
+
---------------------------------------------------------------- расчёты
local function rodLevel(data, rodId)
@@ -135,7 +150,7 @@ local function totalLuck(player, data)
if hasPass(player, "LuckyCharm") then
l += 0.5
end
- return l + ev("luck", 0)
+ return l + ev("luck", 0) + (weather().luck or 0) + (isNight() and Config.DayNight.nightLuck or 0)
end
local function bagCapacity(player, data)
@@ -269,10 +284,11 @@ local function updateStats(player)
player:SetAttribute("Tutorial", data.tutorial or (data.totalCaught > 0 and Config.TutorialDone or 0))
player:SetAttribute("Mastery", masteryCount(data))
player:SetAttribute("Passes", table.concat(ps, ","))
+ Guild.attrs(player, data)
local ls = player:FindFirstChild("leaderstats")
if ls then
- ls["Монеты"].Value = data.coins
+ ls["Серебро"].Value = data.coins
ls["Уровень"].Value = data.level
ls["Улов"].Value = data.totalCaught
end
@@ -296,6 +312,11 @@ local function addXp(player, data, amount)
end
end
+Guild.init({
+ profiles = profiles, notify = notify, updateStats = updateStats, addXp = addXp, sendInventory = sendInventory,
+ bagCapacity = bagCapacity, isNight = isNight, weather = weather, remote = remote,
+})
+
local function applyPotion(data, bonus, duration)
data.boostBonus = math.max(boostActive(data), bonus)
data.boostUntil = math.max(os.time(), data.boostUntil) + duration
@@ -374,9 +395,13 @@ local function claimDaily(player)
end
end
data.daily = { last = t, streak = streak }
+ if streak == 7 then
+ data.pearls += Config.Pearls.daily7
+ extra ..= (" + %d 🦪"):format(Config.Pearls.daily7)
+ end
updateStats(player)
sendQuests(player)
- notify(player, ("🎁 День %d: +%d 💰%s"):format(streak, coins, extra), GOLD)
+ notify(player, ("🎁 День %d: +%d ⚪%s"):format(streak, coins, extra), GOLD)
end
---------------------------------------------------------------- коллекция
@@ -402,7 +427,11 @@ local function claimCollection(player, worldId, rarity)
if rarity == "Master" then
local coins = Config.MasteryCoins * world.mult
data.coins += coins
+<<<<<<< HEAD
+ notify(player, ("🏆 «%s» собран! +%d ⚪"):format(world.name, coins), GOLD)
+=======
notify(player, ("🏆 «%s» собран! +%d 💰"):format(world.name, coins), GOLD)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
else
local r = Config.CollectionRewards[rarity]
if not r then
@@ -410,7 +439,11 @@ local function claimCollection(player, worldId, rarity)
end
data.coins += r.coins * world.mult
addXp(player, data, r.xp * world.mult)
+<<<<<<< HEAD
+ notify(player, ("📖 +%d ⚪ +%d XP"):format(r.coins * world.mult, r.xp * world.mult), GREEN)
+=======
notify(player, ("📖 +%d 💰 +%d XP"):format(r.coins * world.mult, r.xp * world.mult), GREEN)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
updateStats(player)
sendInventory(player)
@@ -734,12 +767,27 @@ local function stopFishing(player, tellClient)
end
end
+<<<<<<< HEAD
+-- mods: { bait = наживка из Config.Baits, maxRank = потолок редкости (автоловля) }
+local function rollFish(player, data, worldId, luckMult, mods)
+=======
local function rollFish(player, data, worldId, luckMult)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local zone = Config.Zones[worldId]
if not zone then
return nil
end
+<<<<<<< HEAD
+ mods = mods or {}
+ local bait = mods.bait
+ local base = totalLuck(player, data) + (bait and bait.luck or 0)
+ if bait and bait.nightLuck and isNight() then
+ base += bait.nightLuck - Config.DayNight.nightLuck -- светлячок: ночью +30% вместо обычных +10%
+ end
+ local luck = base * (luckMult or 1)
+=======
local luck = totalLuck(player, data) * (luckMult or 1)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local bonus = luck - 1
local weights, total = {}, 0
for i, f in ipairs(zone.fish) do
@@ -748,6 +796,12 @@ local function rollFish(player, data, worldId, luckMult)
if r.rank == 1 then
w = r.weight / math.max(1, luck)
end
+ if bait and bait.rareWeight and r.rank >= 3 then
+ w *= bait.rareWeight
+ end
+ if mods.maxRank and r.rank > mods.maxRank then
+ w = 0
+ end
weights[i] = w
total += w
end
@@ -762,7 +816,7 @@ local function rollFish(player, data, worldId, luckMult)
end
local mutation = nil
for _, m in ipairs(Config.Mutations) do
- if rng:NextNumber() < m.chance * luck * ev("mutation", 1) then
+ if rng:NextNumber() < m.chance * luck * ev("mutation", 1) * (weather().mutation or 1) * (bait and bait.mutation or 1) then
mutation = m
break
end
@@ -818,12 +872,24 @@ local function flyBobber(s, tool, target, dur, arc)
end
end
+<<<<<<< HEAD
+local autoFishing = {} -- [player] = токен работающей автоловли
+local setAutoFish, grantFish -- объявлены ниже
+
+=======
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local function onCast(player, power)
power = math.clamp(tonumber(power) or 0.6, 0, 1)
local data = profiles[player]
if not data then
return
end
+ if autoFishing[player] then
+ -- клик удочкой во время автоловли — выключить её
+ setAutoFish(player, false)
+ remote:FireClient(player, "CastFail")
+ return
+ end
if fishing[player] then
stopFishing(player, true)
return
@@ -856,7 +922,12 @@ local function onCast(player, power)
local stats = Config.RodStats(data.rod, rodLevel(data))
local perfect = power >= Config.CastPerfect[1] and power <= Config.CastPerfect[2]
+<<<<<<< HEAD
+ local bait = Guild.useBait(player, data) -- 1 штука наживки на заброс
+ local fish = rollFish(player, data, world.id, perfect and Config.CastPerfectLuck or 1, { bait = bait })
+=======
local fish = rollFish(player, data, world.id, perfect and Config.CastPerfectLuck or 1)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
if not fish then
remote:FireClient(player, "CastFail")
return
@@ -886,7 +957,7 @@ local function onCast(player, power)
end
s.stage = "waiting"
- local waitTime = rng:NextNumber(Config.BiteTimeMin, Config.BiteTimeMax) * stats.speed * ev("speed", 1)
+ local waitTime = rng:NextNumber(Config.BiteTimeMin, Config.BiteTimeMax) * stats.speed * ev("speed", 1) * (weather().speed or 1) * (bait and bait.speed or 1)
task.wait(waitTime)
if fishing[player] ~= s then
return
@@ -957,7 +1028,24 @@ local function onCatch(player, success, misses)
return
end
gripSequence(tool, { { 85, 0.15 }, { REST_ANGLE, 0.45 } })
+ grantFish(player, data, s.fish, { perfect = s.perfect, misses = misses, fromPos = fromPos })
+end
+<<<<<<< HEAD
+-- рыба поймана (руками или автоловлей): в сумку, опыт, коллекция, задания, гильдия, босс.
+-- ctx: { perfect, misses, fromPos, auto }; у автоловли нет серии и бонусов за точность
+grantFish = function(player, data, fish, ctx)
+ local streak = combo[player] or 0
+ local comboMult = 1
+ if not ctx.auto then
+ -- серия: каждая рыба подряд дороже и даёт больше опыта
+ comboMult = math.min(Config.Combo.max, 1 + Config.Combo.step * streak)
+ fish.value = math.floor(fish.value * comboMult + 0.5)
+ fish.xp = math.floor(fish.xp * comboMult + 0.5)
+ setCombo(player, streak + 1)
+ end
+ fish.xp = math.floor(fish.xp * Guild.xpMult(data)) -- бонус отдыха: двойной опыт
+=======
-- серия: каждая рыба подряд дороже и даёт больше опыта
local fish = s.fish
local streak = combo[player] or 0
@@ -965,6 +1053,7 @@ local function onCatch(player, success, misses)
fish.value = math.floor(fish.value * comboMult + 0.5)
fish.xp = math.floor(fish.xp * comboMult + 0.5)
setCombo(player, streak + 1)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
table.insert(data.items, {
uid = data.nextUid, id = fish.id, name = fish.name, rarity = fish.rarity,
weight = fish.weight, value = fish.value, mutation = fish.mutation,
@@ -987,10 +1076,14 @@ local function onCatch(player, success, misses)
addXp(player, data, fish.xp * (isNew and 2 or 1))
updateStats(player)
sendInventory(player)
- if fromPos then
- showFishFlight(player, fish, fromPos)
+ if ctx.fromPos then
+ showFishFlight(player, fish, ctx.fromPos)
end
+<<<<<<< HEAD
+ remote:FireClient(player, "Caught", fish, { new = isNew, record = isRecord, combo = comboMult, streak = ctx.auto and 0 or streak + 1, auto = ctx.auto })
+=======
remote:FireClient(player, "Caught", fish, { new = isNew, record = isRecord, combo = comboMult, streak = streak + 1 })
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local rank = Config.Rarities[fish.rarity].rank
questProgress(player, "catch", 1)
@@ -1000,8 +1093,164 @@ local function onCatch(player, success, misses)
if rank >= 3 then
questProgress(player, "rare", 1)
end
+<<<<<<< HEAD
+ if not ctx.auto then
+ if ctx.misses == 0 then
+ questProgress(player, "perfect", 1)
+ end
+ if ctx.perfect then
+ questProgress(player, "perfectCast", 1)
+ end
+ questProgress(player, "combo", streak + 1, true)
+ end
+ Guild.onCatch(player, data, fish, {
+ weather = workspace:GetAttribute("Weather"), night = isNight(),
+ perfect = ctx.perfect and not ctx.auto, streak = (not ctx.auto) and streak + 1 or 0,
+ })
+
+ local hrp = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
+ bossHit(player, hrp and Config.WorldAt(hrp.Position), rank + (ctx.misses == 0 and 1 or 0))
+end
+
+---------------------------------------------------------------- автоловля (с ранга E)
+-- сервер сам забрасывает и вытаскивает: удача ×0.6, не выше «Редкой», без серии и бонуса заброса,
+-- каждая поимка на 50% дольше. Стоп — полная сумка, отошёл от места, сменил мир, убрал удочку
+
+local function autoFishLoop(player, token)
+ local A = Config.AutoFish
+ local home = nil -- где включили: отошёл дальше 10 studs или сменил мир — стоп
+ local function stop(reason)
+ if autoFishing[player] == token then
+ setAutoFish(player, false, reason)
+ end
+ end
+ while autoFishing[player] == token do
+ local data = profiles[player]
+ local char = player.Character
+ local hrp = char and char:FindFirstChild("HumanoidRootPart")
+ local tool = char and char:FindFirstChildOfClass("Tool")
+ if not data or not hrp then
+ return stop(nil)
+ end
+ if not tool or not tool:GetAttribute("IsRod") then
+ return stop("🎣 Автоловля: возьми удочку в руки")
+ end
+ local world = Config.WorldAt(hrp.Position)
+ if not world or Config.CanCastFrom(world, hrp.Position) ~= true then
+ return stop("🌊 Автоловля: встань у воды")
+ end
+ home = home or { pos = hrp.Position, world = world.id }
+ if world.id ~= home.world or (hrp.Position - home.pos).Magnitude > 10 then
+ return stop("🎣 Автоловля остановлена: ты отошёл")
+ end
+ if #data.items >= bagCapacity(player, data) then
+ return stop("🎒 Сумка полна — автоловля остановлена")
+ end
+ local target, dist = findWater(hrp, world, 0.6)
+ if not target then
+ return stop("🌊 Автоловля: встань у воды")
+ end
+ if fishing[player] then
+ task.wait(0.5)
+ continue
+ end
+
+ local bait = Guild.useBait(player, data)
+ local fish = rollFish(player, data, world.id, A.luck, { bait = bait, maxRank = (not Guild.rank(data).autoNoCap) and A.maxRarity or nil })
+ local s = { stage = "casting", fish = fish, tool = tool, auto = true }
+ fishing[player] = s
+ local splashAt = target + Vector3.new(0, 0.15, 0)
+ local tw = tweenGrip(tool, 8, 0.15)
+ if tw then
+ tw.Completed:Wait()
+ end
+ if fishing[player] == s then
+ flyBobber(s, tool, splashAt, 0.35 + dist * 0.018, 2 + dist * 0.3)
+ tweenGrip(tool, REST_ANGLE - 5, 0.4)
+ end
+ if fishing[player] ~= s then
+ if s.bobber then
+ s.bobber:Destroy()
+ end
+ continue
+ end
+ s.stage = "waiting"
+ local stats = Config.RodStats(data.rod, rodLevel(data))
+ local waitTime = rng:NextNumber(Config.BiteTimeMin, Config.BiteTimeMax) * stats.speed * ev("speed", 1)
+ * (weather().speed or 1) * (bait and bait.speed or 1) * A.slower
+ local t0, bit = os.clock(), false
+ while fishing[player] == s and autoFishing[player] == token and os.clock() - t0 < waitTime + A.reel do
+ local h = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
+ if not h or (h.Position - home.pos).Magnitude > 10 then
+ break
+ end
+ if not bit and os.clock() - t0 >= waitTime then
+ -- клюёт: всплеск и удочка дёргается до конца «вываживания»
+ bit = true
+ if s.bobber and s.bobber.PrimaryPart then
+ splash(s.bobber.PrimaryPart, 25)
+ playSound(s.bobber.PrimaryPart, SPLASH_SOUND, 0.35)
+ end
+ end
+ if bit then
+ tweenGrip(tool, (math.floor(os.clock() * 8) % 2 == 0) and 38 or 18, 0.12)
+ end
+ task.wait(0.13)
+ end
+ if fishing[player] ~= s or autoFishing[player] ~= token or not bit or os.clock() - t0 < waitTime + A.reel - 0.05 then
+ if fishing[player] == s then
+ stopFishing(player, false)
+ end
+ continue -- наверху цикла проверим, почему прервались (отошёл, выключил)
+ end
+ fishing[player] = nil
+ local fromPos = s.bobber and s.bobber.PrimaryPart and s.bobber.PrimaryPart.Position
+ if s.bobber then
+ s.bobber:Destroy()
+ end
+ gripSequence(tool, { { 85, 0.15 }, { REST_ANGLE, 0.45 } })
+ grantFish(player, data, fish, { auto = true, fromPos = fromPos })
+ task.wait(1.2)
+ end
+end
+
+setAutoFish = function(player, on, reason)
+ local data = profiles[player]
+ if on then
+ if not data then
+ return
+ end
+ if not Guild.rank(data).auto then
+ notify(player, "🔒 Автоловля — с ранга гильдии E", RED)
+ player:SetAttribute("AutoFish", false)
+ return
+ end
+ if autoFishing[player] then
+ return
+ end
+ if fishing[player] then
+ stopFishing(player, true)
+ end
+ local token = {}
+ autoFishing[player] = token
+ player:SetAttribute("AutoFish", true)
+ notify(player, "🎣 Автоловля включена", GREEN)
+ task.spawn(autoFishLoop, player, token)
+ else
+ player:SetAttribute("AutoFish", false)
+ if not autoFishing[player] then
+ return
+ end
+ autoFishing[player] = nil
+ local s = fishing[player]
+ if s and s.auto then
+ stopFishing(player, false)
+ end
+ notify(player, reason or "🎣 Автоловля выключена", Color3.fromRGB(255, 200, 120))
+=======
if misses == 0 then
questProgress(player, "perfect", 1)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
if s.perfect then
questProgress(player, "perfectCast", 1)
@@ -1086,9 +1335,13 @@ local function buy(player, kind, id)
notify(player, "★★★★★ Максимум", GOLD)
return
end
- local cost = Config.UpgradeCost(rod, lvl)
+ local cost = Guild.price(data, Config.UpgradeCost(rod, lvl)) -- скидка ранга гильдии
if data.coins < cost then
+<<<<<<< HEAD
+ notify(player, "Нужно " .. cost .. " ⚪", RED)
+=======
notify(player, "Нужно " .. cost .. " 💰", RED)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
return
end
data.coins -= cost
@@ -1111,11 +1364,17 @@ local function buy(player, kind, id)
notify(player, "🔒 Нужен ур. " .. potion.level, RED)
return
end
+<<<<<<< HEAD
+ local price = Guild.price(data, potion.price)
+ if data.coins < price then
+ notify(player, "Нужно " .. price .. " ⚪", RED)
+=======
if data.coins < potion.price then
notify(player, "Нужно " .. potion.price .. " 💰", RED)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
return
end
- data.coins -= potion.price
+ data.coins -= price
applyPotion(data, potion.bonus, potion.duration)
updateStats(player)
notify(player, ("🍀 +%d%% удачи, %d мин"):format(potion.bonus * 100, potion.duration / 60), GREEN)
@@ -1140,11 +1399,17 @@ local function buy(player, kind, id)
notify(player, "🔒 Нужен ур. " .. item.level, RED)
return
end
+<<<<<<< HEAD
+ local price = Guild.price(data, item.price)
+ if data.coins < price then
+ notify(player, "Нужно " .. price .. " ⚪", RED)
+=======
if data.coins < item.price then
notify(player, "Нужно " .. item.price .. " 💰", RED)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
return
end
- data.coins -= item.price
+ data.coins -= price
owned[id] = true
bought = true
notify(player, "✅ " .. item.name, GREEN)
@@ -1191,6 +1456,14 @@ local function teleportTo(player, worldId)
end
if data.level < world.level then
notify(player, ("🔒 %s: ур. %d"):format(world.name, world.level), RED)
+<<<<<<< HEAD
+ return
+ end
+ local okRank, why = Guild.canEnter(data, world.id)
+ if not okRank then
+ notify(player, why, RED)
+=======
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
return
end
markerName = world.id .. "Spawn"
@@ -1256,6 +1529,10 @@ ProximityPromptService.PromptTriggered:Connect(function(prompt, player)
remote:FireClient(player, "OpenRobux", "passes")
elseif action == "RobuxProducts" then
remote:FireClient(player, "OpenRobux", "products")
+ elseif action == "Guild" or action == "Orders" or action == "Bait" or action == "Traps" then
+ -- Старейшина, доска заказов, лавка наживки: окно гильдии на нужной вкладке
+ Guild.sendState(player)
+ remote:FireClient(player, "OpenGuild", ({ Guild = "rank", Orders = "orders", Bait = "bait", Traps = "traps" })[action])
end
end)
@@ -1285,13 +1562,21 @@ remote.OnServerEvent:Connect(function(player, action, a, b)
if nearSeller(player) then
sellItems(player, a)
else
+<<<<<<< HEAD
+ notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
+=======
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
elseif action == "SellAll" then
if nearSeller(player) then
sellItems(player, nil)
else
+<<<<<<< HEAD
+ notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
+=======
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
elseif action == "Teleport" then
teleportTo(player, a)
@@ -1302,6 +1587,19 @@ remote.OnServerEvent:Connect(function(player, action, a, b)
elseif action == "RequestInventory" then
sendInventory(player)
sendQuests(player)
+ elseif action == "Settings" then
+ -- громкость музыки и эффектов (0..1), сохраняется вместе с прогрессом
+ local data = profiles[player]
+ local music, sfx = tonumber(a), tonumber(b)
+ if data and music and sfx then
+ data.settings = { music = math.clamp(music, 0, 1), sfx = math.clamp(sfx, 0, 1) }
+ player:SetAttribute("VolMusic", data.settings.music)
+ player:SetAttribute("VolSfx", data.settings.sfx)
+ end
+ elseif action == "AutoFish" then
+ setAutoFish(player, a == true)
+ else
+ Guild.onAction(player, action, a, b)
end
end)
@@ -1347,7 +1645,7 @@ MarketplaceService.ProcessReceipt = function(info)
if product.coins then
local coins = math.floor(product.coins * (1 + (data.level - 1) * 0.15))
data.coins += coins
- notify(player, ("Спасибо! +%d 💰"):format(coins), GOLD)
+ notify(player, ("Спасибо! +%d ⚪"):format(coins), GOLD)
end
if product.boost then
applyPotion(data, product.boost, product.duration)
@@ -1432,6 +1730,10 @@ local function finishBoss(won)
if potion then
applyPotion(data, potion.bonus, potion.duration)
end
+<<<<<<< HEAD
+ Guild.onBossWin(p, data)
+=======
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
updateStats(p)
remote:FireClient(p, "BossReward", coins, xp, potion and potion.name)
end
@@ -1489,7 +1791,7 @@ local function onPlayerAdded(player)
local ls = Instance.new("Folder")
ls.Name = "leaderstats"
ls.Parent = player
- for _, name in ipairs({ "Монеты", "Уровень", "Улов" }) do
+ for _, name in ipairs({ "Серебро", "Уровень", "Улов" }) do
local v = Instance.new("IntValue")
v.Name = name
v.Parent = ls
@@ -1501,11 +1803,20 @@ local function onPlayerAdded(player)
end
loadPasses(player)
ensureChain(data)
+<<<<<<< HEAD
+ Guild.defaults(data)
+ Guild.onJoin(player, data)
+=======
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
profiles[player] = data
loadedOk[player] = ok
+ local settings = type(data.settings) == "table" and data.settings or {}
+ player:SetAttribute("VolMusic", tonumber(settings.music) or Config.DefaultVolume.music)
+ player:SetAttribute("VolSfx", tonumber(settings.sfx) or Config.DefaultVolume.sfx)
updateStats(player)
sendInventory(player)
sendQuests(player)
+ Guild.sendState(player)
local function onCharacter()
stopFishing(player, false)
@@ -1513,6 +1824,7 @@ local function onPlayerAdded(player)
giveRodTool(player)
attachBag(player)
vipTag(player)
+ Guild.badge(player)
end
player.CharacterAdded:Connect(onCharacter)
if player.Character then
@@ -1528,6 +1840,13 @@ end
Players.PlayerRemoving:Connect(function(player)
stopFishing(player, false)
combo[player], comboUntil[player] = nil, nil
+<<<<<<< HEAD
+ autoFishing[player] = nil
+ if profiles[player] then
+ Guild.onLeave(profiles[player])
+ end
+=======
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
saveData(player)
profiles[player] = nil
loadedOk[player] = nil
@@ -1536,21 +1855,45 @@ end)
game:BindToClose(function()
for _, p in ipairs(Players:GetPlayers()) do
+ if profiles[p] then
+ Guild.onLeave(profiles[p])
+ end
saveData(p)
end
end)
+-- погода и ночь меняют удачу: пересчитываем её у всех, когда они меняются
+local function refreshAllStats()
+ for _, p in ipairs(Players:GetPlayers()) do
+ updateStats(p)
+ end
+end
+workspace:GetAttributeChangedSignal("Weather"):Connect(refreshAllStats)
+
-- таймер зелий + автосохранение
task.spawn(function()
local t = 0
+ local wasNight = isNight()
while true do
task.wait(1)
t += 1
+ local night = isNight()
+ if night ~= wasNight then
+ wasNight = night
+ refreshAllStats()
+ end
for _, p in ipairs(Players:GetPlayers()) do
local data = profiles[p]
if data and data.boostUntil > os.time() - 2 then
updateStats(p)
end
+<<<<<<< HEAD
+ -- бонус отдыха тратится, пока игрок рыбачит
+ if data and (fishing[p] or autoFishing[p]) then
+ Guild.spendRest(p, data, 1)
+ end
+=======
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
-- серия сгорает, если долго нет улова (пока рыба на крючке — ждём)
if comboUntil[p] and os.time() > comboUntil[p] and not fishing[p] then
breakCombo(p)
diff --git a/install/5_FishingClient_StarterPlayerScripts.rbxmx b/install/5_FishingClient_StarterPlayerScripts.rbxmx
index 741ca17..354711d 100644
--- a/install/5_FishingClient_StarterPlayerScripts.rbxmx
+++ b/install/5_FishingClient_StarterPlayerScripts.rbxmx
@@ -14,29 +14,19 @@ local Lighting = game:GetService("Lighting")
local player = Players.LocalPlayer
local Config = require(ReplicatedStorage:WaitForChild("FishConfig"))
local Models = require(ReplicatedStorage:WaitForChild("GameModels"))
+local Audio = require(script.Parent:WaitForChild("Audio"))
local remote = ReplicatedStorage:WaitForChild("GameEvent")
+local reelSound = Audio.loop("reel", "sfx") -- трещотка катушки, пока идёт вываживание
---------------------------------------------------------------- стиль
-local C = {
- bg = Color3.fromRGB(18, 24, 40),
- panel = Color3.fromRGB(30, 38, 62),
- panel2 = Color3.fromRGB(44, 56, 90),
- gold = Color3.fromRGB(255, 200, 70),
- green = Color3.fromRGB(60, 190, 95),
- blue = Color3.fromRGB(60, 135, 230),
- red = Color3.fromRGB(215, 65, 65),
- purple = Color3.fromRGB(150, 90, 220),
- grey = Color3.fromRGB(75, 82, 102),
- text = Color3.new(1, 1, 1),
- muted = Color3.fromRGB(170, 180, 205),
- line = Color3.fromRGB(90, 110, 165),
-}
-local TITLE = Enum.Font.FredokaOne
+-- палитра, шрифты и украшения — в модуле UiTheme («средневековая гильдия»)
+local Theme = require(script.Parent:WaitForChild("UiTheme"))
+local C = Theme.C
+local TITLE = Enum.Font.FredokaOne -- в new() подменяется на шрифт с кириллицей (Theme.FACES)
local BODY = Enum.Font.GothamBold
local BODY2 = Enum.Font.GothamMedium
local WHITE, BLACK = Color3.new(1, 1, 1), Color3.new(0, 0, 0)
-local DING = "rbxasset://sounds/electronicpingshort.wav"
---------------------------------------------------------------- помощники UI
@@ -46,6 +36,8 @@ local function new(class, props, children)
for k, v in pairs(props or {}) do
if k == "Parent" then
parent = v
+ elseif k == "Font" and Theme.FACES[v] then
+ obj.FontFace = Theme.FACES[v]
else
obj[k] = v
end
@@ -78,13 +70,20 @@ local function text(props)
return new("TextLabel", d)
end
local function btn(props, onClick)
- local d = { AutoButtonColor = true, Font = TITLE, TextColor3 = C.text, TextSize = 18, BackgroundColor3 = C.blue, Text = "" }
+ -- дерево/сургуч с золотой окантовкой; цвет кнопки задаёт BackgroundColor3, градиент даёт объём
+ local d = { AutoButtonColor = true, Font = TITLE, TextColor3 = C.text, TextSize = 18, BackgroundColor3 = C.blue, Text = "", TextStrokeColor3 = C.ink, TextStrokeTransparency = 0.55 }
for k, v in pairs(props) do
d[k] = v
end
- local b = new("TextButton", d, { corner(10), new("UIGradient", { Color = ColorSequence.new(WHITE, Color3.fromRGB(195, 195, 195)), Rotation = 90 }) })
+ local b = new("TextButton", d, {
+ corner(8), new("UIGradient", { Color = ColorSequence.new(Color3.fromRGB(255, 240, 215), Color3.fromRGB(165, 150, 135)), Rotation = 90 }),
+ new("UIStroke", { Color = C.gold, Thickness = 1.5, Transparency = 0.15, ApplyStrokeMode = Enum.ApplyStrokeMode.Border }),
+ })
if onClick then
- b.MouseButton1Click:Connect(onClick)
+ b.MouseButton1Click:Connect(function(...)
+ Audio.play("click")
+ onClick(...)
+ end)
end
return b
end
@@ -149,9 +148,7 @@ local function viewport(parent, model, dir, zoom)
vf.CurrentCamera = cam
return vf
end
-local FISH_VIEW = Vector3.new(0.12, 0.15, 1)
-local ROD_VIEW = Vector3.new(1, 0.1, 0.05)
-local BAG_VIEW = Vector3.new(0.6, 0.25, 1)
+local VIEW = { fish = Vector3.new(0.12, 0.15, 1), rod = Vector3.new(1, 0.1, 0.05), bag = Vector3.new(0.6, 0.25, 1) }
local function silhouette(model)
for _, p in ipairs(model:GetDescendants()) do
@@ -171,44 +168,56 @@ local gui = new("ScreenGui", {
Name = "FishingUI", ResetOnSpawn = false, IgnoreGuiInset = false,
ZIndexBehavior = Enum.ZIndexBehavior.Sibling, Parent = player:WaitForChild("PlayerGui"),
})
+-- холст с масштабом под экран: всё ниже кладём в него, а не прямо в ScreenGui
+local screen = Theme.scaleRoot(gui)
---------------------------------------------------------------- HUD
+-- hud — содержимое; его родитель — деревянная панель с рамкой и заклёпками (её двигает раскладка)
local hud = new("Frame", {
- Size = UDim2.fromOffset(290, 172), Position = UDim2.fromOffset(12, 10), BackgroundColor3 = WHITE, Parent = gui,
-}, { corner(16), stroke(C.line, 2, 0.35), gradient(C.panel2, C.bg, 90),
- new("UIPadding", { PaddingLeft = UDim.new(0, 14), PaddingRight = UDim.new(0, 14), PaddingTop = UDim.new(0, 10) }) })
-local coinsText = text({ Size = UDim2.new(1, 0, 0, 32), Font = TITLE, TextSize = 30, TextColor3 = C.gold, Text = "💰 0", TextStrokeTransparency = 0.6, Parent = hud })
-local lvlBadge = new("Frame", { Size = UDim2.fromOffset(36, 36), Position = UDim2.fromOffset(0, 38), BackgroundColor3 = WHITE, Parent = hud },
- { corner(18), gradient(Color3.fromRGB(255, 225, 110), Color3.fromRGB(235, 145, 30), 90), stroke(Color3.fromRGB(120, 70, 10), 2, 0.2) })
-local lvlText = text({ Size = UDim2.fromScale(1, 1), Font = TITLE, TextSize = 19, TextXAlignment = Enum.TextXAlignment.Center, TextColor3 = Color3.fromRGB(70, 40, 0), Text = "1", Parent = lvlBadge })
-local xpBack = new("Frame", { Size = UDim2.new(1, -46, 0, 18), Position = UDim2.fromOffset(46, 47), BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = hud }, { corner(9) })
-local xpFill = new("Frame", { Size = UDim2.fromScale(0, 1), BackgroundColor3 = WHITE, Parent = xpBack }, { corner(9), gradient(Color3.fromRGB(110, 225, 255), Color3.fromRGB(60, 110, 255), 0) })
-local xpText = text({ Size = UDim2.fromScale(1, 1), TextSize = 12, TextXAlignment = Enum.TextXAlignment.Center, ZIndex = 2, Text = "", TextStrokeTransparency = 0.5, Parent = xpBack })
-local luckText = text({ Size = UDim2.new(1, 0, 0, 22), Position = UDim2.fromOffset(0, 82), TextSize = 16, RichText = true, TextColor3 = Color3.fromRGB(130, 255, 150), Text = "", Parent = hud })
-local bagText = text({ Size = UDim2.new(1, 0, 0, 20), Position = UDim2.fromOffset(0, 106), TextSize = 14, Font = BODY2, Text = "", Parent = hud })
-local rodText = text({ Size = UDim2.new(1, 0, 0, 20), Position = UDim2.fromOffset(0, 128), TextSize = 14, Font = BODY2, TextColor3 = C.muted, RichText = true, Text = "", Parent = hud })
+ Size = UDim2.new(1, -28, 1, -10), Position = UDim2.fromOffset(14, 10), BackgroundTransparency = 1,
+ Parent = new("Frame", {
+ Name = "Hud", Size = UDim2.fromOffset(290, 172), Position = UDim2.fromOffset(12, 10), BackgroundColor3 = WHITE, Parent = screen,
+ }, { corner(10), stroke(C.goldDark, 2.5, 0), Theme.woodGradient(C.wood, C.woodDark) }),
+})
+Theme.innerBorder(hud.Parent, 5, 7, C.gold, 0.5)
+Theme.rivets(hud.Parent, 8, 6)
+local H = {} -- элементы HUD (в таблице: у скрипта лимит 200 локальных переменных)
+H.coins = text({ Size = UDim2.new(1, 0, 0, 32), Font = TITLE, TextSize = 28, TextColor3 = C.silver, Text = "⚪ 0", TextStrokeColor3 = C.ink, TextStrokeTransparency = 0.3, Parent = hud })
+H.lvlBadge = new("Frame", { Size = UDim2.fromOffset(36, 36), Position = UDim2.fromOffset(0, 38), BackgroundColor3 = WHITE, Rotation = 45, Parent = hud },
+ { corner(6), gradient(C.goldBright, C.goldDark, 90), stroke(C.ink, 2, 0.1) })
+H.lvl = text({ Size = UDim2.fromScale(1, 1), Font = TITLE, TextSize = 17, Rotation = -45, TextXAlignment = Enum.TextXAlignment.Center, TextColor3 = C.ink, Text = "1", Parent = H.lvlBadge })
+H.xpBack = new("Frame", { Size = UDim2.new(1, -46, 0, 18), Position = UDim2.fromOffset(46, 47), BackgroundColor3 = C.dark, Parent = hud }, { corner(4), stroke(C.goldDark, 1.5, 0.2) })
+H.xpFill = new("Frame", { Size = UDim2.fromScale(0, 1), BackgroundColor3 = WHITE, Parent = H.xpBack }, { corner(4), gradient(C.goldBright, Color3.fromRGB(196, 128, 48), 0) })
+H.xpText = text({ Size = UDim2.fromScale(1, 1), TextSize = 12, TextXAlignment = Enum.TextXAlignment.Center, ZIndex = 2, Text = "", TextStrokeTransparency = 0.5, Parent = H.xpBack })
+H.luck = text({ Size = UDim2.new(1, 0, 0, 22), Position = UDim2.fromOffset(0, 82), TextSize = 16, RichText = true, TextColor3 = Color3.fromRGB(130, 255, 150), Text = "", Parent = hud })
+H.bag = text({ Size = UDim2.new(1, 0, 0, 20), Position = UDim2.fromOffset(0, 106), TextSize = 14, Font = BODY2, Text = "", Parent = hud })
+H.rod = text({ Size = UDim2.new(1, 0, 0, 20), Position = UDim2.fromOffset(0, 128), TextSize = 14, Font = BODY2, TextColor3 = C.muted, RichText = true, Text = "", Parent = hud })
-- баннер события (справа сверху)
local eventBanner = new("Frame", {
Size = UDim2.fromOffset(280, 58), AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -12, 0, 10),
- BackgroundColor3 = WHITE, Visible = false, Parent = gui,
+ BackgroundColor3 = WHITE, Visible = false, Parent = screen,
}, { corner(14), stroke(C.gold, 2, 0.1), gradient(Color3.fromRGB(90, 60, 20), C.bg, 90) })
local eventTitle = text({ Size = UDim2.new(1, -20, 0, 26), Position = UDim2.fromOffset(12, 4), Font = TITLE, TextSize = 19, TextColor3 = C.gold, Text = "", Parent = eventBanner })
local eventDesc = text({ Size = UDim2.new(1, -20, 0, 20), Position = UDim2.fromOffset(12, 30), Font = BODY2, TextSize = 13, TextColor3 = C.text, Text = "", Parent = eventBanner })
-- кнопки слева
+-- столбик на компьютере, сетка 2×N на телефоне (раскладка — в applyLayout ниже)
local side = new("Frame", {
Size = UDim2.fromOffset(70, 380), AnchorPoint = Vector2.new(0, 0.5), Position = UDim2.new(0, 12, 0.5, 60),
- BackgroundTransparency = 1, Parent = gui,
-}, { new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }) })
+ BackgroundTransparency = 1, Parent = screen,
+}, { new("UIGridLayout", { CellSize = UDim2.fromOffset(68, 68), CellPadding = UDim2.fromOffset(8, 8), FillDirectionMaxCells = 1, SortOrder = Enum.SortOrder.LayoutOrder }) })
local sideDots = {}
local function sideButton(order, icon, label, key, color, onClick)
- local b = btn({ Size = UDim2.fromOffset(68, 68), BackgroundColor3 = color, LayoutOrder = order, Parent = side }, onClick)
- stroke(color:Lerp(BLACK, 0.45), 3).Parent = b
- text({ Size = UDim2.new(1, 0, 0, 36), Position = UDim2.fromOffset(0, 3), TextSize = 28, TextXAlignment = Enum.TextXAlignment.Center, Text = icon, Parent = b })
- text({ Size = UDim2.new(1, 0, 0, 18), Position = UDim2.fromOffset(0, 44), Font = TITLE, TextSize = 13, TextXAlignment = Enum.TextXAlignment.Center, Text = label, TextStrokeTransparency = 0.5, Parent = b })
+ -- деревянная плитка; цвет раздела — полоска-лента снизу
+ local b = btn({ Size = UDim2.fromOffset(68, 68), BackgroundColor3 = C.woodLight, LayoutOrder = order, Parent = side }, onClick)
+ b:FindFirstChildOfClass("UIStroke").Color = C.goldDark
+ b:FindFirstChildOfClass("UIStroke").Thickness = 2.5
+ new("Frame", { Size = UDim2.new(1, -10, 0, 4), AnchorPoint = Vector2.new(0.5, 1), Position = UDim2.new(0.5, 0, 1, -4), BackgroundColor3 = color, BorderSizePixel = 0, Parent = b }, { corner(2) })
+ text({ Size = UDim2.fromScale(1, 0.5), Position = UDim2.fromScale(0, 0.06), TextScaled = true, TextXAlignment = Enum.TextXAlignment.Center, Text = icon, Parent = b })
+ text({ Size = UDim2.fromScale(1, 0.24), Position = UDim2.fromScale(0, 0.6), Font = TITLE, TextScaled = true, TextXAlignment = Enum.TextXAlignment.Center, Text = label, TextStrokeColor3 = C.ink, TextStrokeTransparency = 0.3, Parent = b })
if key and not UserInputService.TouchEnabled then
local tag = new("Frame", { Size = UDim2.fromOffset(20, 20), Position = UDim2.new(1, -14, 0, -6), BackgroundColor3 = C.bg, Parent = b }, { corner(6), stroke(C.gold, 1.5) })
text({ Size = UDim2.fromScale(1, 1), Font = TITLE, TextSize = 12, TextXAlignment = Enum.TextXAlignment.Center, TextColor3 = C.gold, Text = key, Parent = tag })
@@ -227,11 +236,20 @@ local SOFT_EDGES = NumberSequence.new({
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
})
-- жирный округлый шрифт с кириллицей (у FredokaOne кириллицы нет — Roblox подставляет тонкий шрифт)
+<<<<<<< HEAD
+local HINT_FONT = Theme.HINT_FACE
+-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует.
+-- Цвет — тёмное дерево
+local function softPlate(props, textProps)
+ local plate = new("Frame", props)
+ plate.BackgroundColor3 = C.woodDark
+=======
local HINT_FONT = Font.new("rbxasset://fonts/families/Nunito.json", Enum.FontWeight.Heavy)
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует
local function softPlate(props, textProps)
local plate = new("Frame", props)
plate.BackgroundColor3 = BLACK
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
plate.BackgroundTransparency = 0
corner(30).Parent = plate
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
@@ -257,7 +275,11 @@ end
-- уведомления — под подсказкой обучения, которая стоит в самом верху
local toasts = new("Frame", {
Size = UDim2.new(0, 900, 0, 200), AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 84),
+<<<<<<< HEAD
+ BackgroundTransparency = 1, ZIndex = 30, Parent = screen,
+=======
BackgroundTransparency = 1, Parent = gui,
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
}, { new("UIListLayout", { Padding = UDim.new(0, 6), HorizontalAlignment = Enum.HorizontalAlignment.Center, SortOrder = Enum.SortOrder.LayoutOrder }) })
local toastOrder = 0
local toastTimers = {}
@@ -288,7 +310,11 @@ local function notify(msg, color)
end
local t, l = softPlate(
{ Size = UDim2.new(0, 0, 0, 54), AutomaticSize = Enum.AutomaticSize.X, LayoutOrder = toastOrder, Parent = toasts },
+<<<<<<< HEAD
+ { TextSize = 30, TextColor3 = color or C.text, Text = msg }
+=======
{ TextSize = 30, TextColor3 = color or WHITE, Text = msg }
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
)
popIn(t)
t:SetAttribute("Msg", msg)
@@ -306,8 +332,10 @@ end
-- карточка пойманной рыбы
local catchCard = new("Frame", {
Size = UDim2.fromOffset(400, 128), AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, -220),
- BackgroundColor3 = WHITE, Visible = false, Parent = gui,
-}, { corner(18) })
+ BackgroundColor3 = WHITE, Visible = false, ZIndex = 25, Parent = screen,
+}, { corner(10) })
+Theme.innerBorder(catchCard, 6, 6, C.gold, 0.5)
+Theme.rivets(catchCard, 8, 6)
local catchStroke = stroke(WHITE, 3)
catchStroke.Parent = catchCard
local catchGrad = gradient(C.panel2, C.bg, 90)
@@ -325,7 +353,7 @@ local function showCatch(fish, extra)
local r = Config.Rarities[fish.rarity]
local mut = fish.mutation and Config.Find(Config.Mutations, fish.mutation)
clear(catchView)
- viewport(catchView, Models.buildFish(fish.id, fish.mutation, 1, true), FISH_VIEW, 0.75)
+ viewport(catchView, Models.buildFish(fish.id, fish.mutation, 1, true), VIEW.fish, 0.75)
catchStroke.Color = mut and mut.color or r.color
catchGrad.Color = ColorSequence.new(r.color:Lerp(C.bg, 0.55), C.bg)
catchHeader.Text = extra and extra.new and "🆕 НОВЫЙ ВИД! Опыт x2" or (extra and extra.record and "🏆 НОВЫЙ РЕКОРД!" or "ПОЙМАНА РЫБА")
@@ -334,7 +362,11 @@ local function showCatch(fish, extra)
catchName.TextColor3 = r.color
catchInfo.Text = ("%s%s · %.2f кг"):format(
hex(r.color), r.name, mut and (" · " .. mut.name .. " x" .. mut.mult .. "") or "", fish.weight)
+<<<<<<< HEAD
+ catchValue.Text = ("⚪ %s ⭐ +%d XP%s"):format(fmt(fish.value), fish.xp * ((extra and extra.new) and 2 or 1),
+=======
catchValue.Text = ("💰 %s ⭐ +%d XP%s"):format(fmt(fish.value), fish.xp * ((extra and extra.new) and 2 or 1),
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
(extra and extra.combo and extra.combo > 1.001) and (" 🔥 x%.1f"):format(extra.combo) or "")
catchCard.Visible = true
TweenService:Create(catchCard, TweenInfo.new(0.45, Enum.EasingStyle.Back, Enum.EasingDirection.Out), { Position = UDim2.new(0.5, 0, 0, 120) }):Play()
@@ -354,7 +386,7 @@ local function floatText(msg, color)
local l = text({
Size = UDim2.fromOffset(400, 60), AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromScale(0.5, 0.42),
Font = TITLE, TextSize = 46, TextXAlignment = Enum.TextXAlignment.Center, TextColor3 = color,
- TextStrokeTransparency = 0.2, Text = msg, Parent = gui,
+ TextStrokeTransparency = 0.2, Text = msg, Parent = screen,
})
TweenService:Create(l, TweenInfo.new(1.4, Enum.EasingStyle.Quad), { Position = UDim2.fromScale(0.5, 0.3), TextTransparency = 1, TextStrokeTransparency = 1 }):Play()
task.delay(1.5, function()
@@ -366,22 +398,28 @@ end
-- вверху, на месте подсказки обучения (она во время рыбалки скрыта)
local statusLabel = softPlate(
+<<<<<<< HEAD
+ { Size = UDim2.fromOffset(0, 64), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 12), Visible = false, Parent = screen },
+=======
{ Size = UDim2.fromOffset(0, 64), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 12), Visible = false, Parent = gui },
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
{ TextSize = 36, Text = "🎣 Ждём клёв…" }
)
wobble(statusLabel, 1.2, 1.4)
local mgFrame = new("Frame", {
Size = UDim2.fromOffset(480, 124), AnchorPoint = Vector2.new(0.5, 1), Position = UDim2.new(0.5, 0, 1, -100),
- BackgroundColor3 = WHITE, Visible = false, Parent = gui,
-}, { corner(16), stroke(C.gold, 2.5, 0.1), gradient(C.panel2, C.bg, 90) })
+ BackgroundColor3 = WHITE, Visible = false, Parent = screen,
+}, { corner(10), stroke(C.goldDark, 3, 0), Theme.woodGradient(C.wood, C.woodDark) })
+Theme.innerBorder(mgFrame, 5, 7, C.gold, 0.4)
+Theme.rivets(mgFrame, 9, 6)
text({
- Size = UDim2.new(1, 0, 0, 30), Position = UDim2.fromOffset(0, 6), Font = TITLE, TextSize = 24,
- TextXAlignment = Enum.TextXAlignment.Center, TextColor3 = C.gold, TextStrokeTransparency = 0.5,
- Text = "❗ КЛЮЁТ! Кликай, когда метка в зелёной зоне", Parent = mgFrame,
+ Size = UDim2.new(1, 0, 0, 30), Position = UDim2.fromOffset(0, 6), Font = TITLE, TextSize = 22,
+ TextXAlignment = Enum.TextXAlignment.Center, TextColor3 = C.goldBright, TextStrokeColor3 = C.ink, TextStrokeTransparency = 0.3,
+ Text = UserInputService.TouchEnabled and "❗ КЛЮЁТ! Жми, когда метка в зелёной зоне" or "❗ КЛЮЁТ! Кликай, когда метка в зелёной зоне", Parent = mgFrame,
})
-local bar = new("Frame", { Size = UDim2.new(1, -30, 0, 36), Position = UDim2.fromOffset(15, 42), BackgroundColor3 = Color3.fromRGB(22, 28, 46), ClipsDescendants = true, Parent = mgFrame }, { corner(9), stroke(BLACK, 1.5, 0.4) })
-local zoneF = new("Frame", { Size = UDim2.fromScale(0.25, 1), BackgroundColor3 = WHITE, BorderSizePixel = 0, Parent = bar }, { gradient(Color3.fromRGB(130, 245, 150), Color3.fromRGB(35, 165, 75), 90) })
-local markerF = new("Frame", { Size = UDim2.new(0, 8, 1, 4), AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromScale(0, 0.5), BackgroundColor3 = WHITE, ZIndex = 3, Parent = bar }, { corner(4), stroke(BLACK, 2) })
+local bar = new("Frame", { Size = UDim2.new(1, -30, 0, 36), Position = UDim2.fromOffset(15, 42), BackgroundColor3 = C.dark, ClipsDescendants = true, Parent = mgFrame }, { corner(5), stroke(C.goldDark, 2, 0) })
+local zoneF = new("Frame", { Size = UDim2.fromScale(0.25, 1), BackgroundColor3 = WHITE, BorderSizePixel = 0, Parent = bar }, { gradient(Color3.fromRGB(150, 220, 110), Color3.fromRGB(56, 116, 52), 90) })
+local markerF = new("Frame", { Size = UDim2.new(0, 8, 1, 4), AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromScale(0, 0.5), BackgroundColor3 = C.parchment, ZIndex = 3, Parent = bar }, { corner(3), stroke(C.ink, 2) })
local pipsText = text({ Size = UDim2.new(0.5, -15, 0, 24), Position = UDim2.fromOffset(15, 84), Font = TITLE, TextSize = 19, RichText = true, Text = "", Parent = mgFrame })
local missText = text({ Size = UDim2.new(0.5, -15, 0, 24), Position = UDim2.new(0.5, 0, 0, 84), Font = TITLE, TextSize = 19, TextXAlignment = Enum.TextXAlignment.Right, RichText = true, Text = "", Parent = mgFrame })
local timeBar = new("Frame", { Size = UDim2.new(1, -30, 0, 5), Position = UDim2.fromOffset(15, 112), BackgroundColor3 = C.gold, BorderSizePixel = 0, Parent = mgFrame }, { corner(3) })
@@ -392,31 +430,54 @@ local openWindow = nil
local function makeWindow(title, accent, tabs)
local w = { pages = {}, tabButtons = {}, current = nil }
+ -- деревянная панель, золотая рамка в 2 слоя, ромбики-заклёпки, заголовок на багровой ленте,
+ -- закрытие — круглая багровая печать. accent — цвет раздела: тонкая полоска под лентой
local frame = new("Frame", {
Size = UDim2.fromScale(0.92, 0.82), AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromScale(0.5, 0.53),
- BackgroundColor3 = WHITE, Visible = false, Parent = gui,
- }, { corner(20), stroke(accent, 3, 0.05), gradient(C.panel, C.bg, 90), new("UISizeConstraint", { MaxSize = Vector2.new(760, 540) }) })
+ BackgroundColor3 = WHITE, Visible = false, ZIndex = 20, Parent = screen, -- поверх HUD, целей и подсказок
+ }, { corner(12), stroke(C.goldDark, 4, 0), Theme.woodGradient(C.wood, C.woodDark), new("UISizeConstraint", { MaxSize = Vector2.new(760, 540) }) })
+ Theme.innerBorder(frame, 7, 8, C.gold, 0.2)
+ Theme.rivets(frame, 12, 8)
local scale = new("UIScale", { Parent = frame })
- local header = new("Frame", { Size = UDim2.new(1, 0, 0, 56), BackgroundColor3 = WHITE, Parent = frame }, { corner(20), gradient(accent, accent:Lerp(BLACK, 0.35), 90) })
- new("Frame", { Size = UDim2.new(1, 0, 0, 20), Position = UDim2.new(0, 0, 1, -20), BackgroundColor3 = accent:Lerp(BLACK, 0.3), BorderSizePixel = 0, Parent = header })
- text({ Size = UDim2.new(1, -80, 1, 0), Position = UDim2.fromOffset(20, 0), Font = TITLE, TextSize = 30, Text = title, TextStrokeTransparency = 0.5, ZIndex = 2, Parent = header })
- btn({ Size = UDim2.fromOffset(42, 42), Position = UDim2.new(1, -52, 0, 7), BackgroundColor3 = C.red, Text = "✕", TextSize = 22, ZIndex = 3, Parent = header }, function()
+ local header = new("Frame", { Size = UDim2.new(1, 0, 0, 56), BackgroundTransparency = 1, Parent = frame })
+ -- багровая лента по центру, ширина — по тексту
+ local ribbon = new("Frame", {
+ Size = UDim2.new(0, 0, 0, 44), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 8),
+ BackgroundColor3 = WHITE, ZIndex = 3, Parent = header,
+ }, { corner(4), gradient(Color3.fromRGB(184, 58, 48), Color3.fromRGB(118, 28, 26), 90), stroke(C.gold, 2, 0),
+ new("UIListLayout", { HorizontalAlignment = Enum.HorizontalAlignment.Center, VerticalAlignment = Enum.VerticalAlignment.Center }),
+ new("UIPadding", { PaddingLeft = UDim.new(0, 36), PaddingRight = UDim.new(0, 36) }) })
+ text({ Size = UDim2.fromScale(0, 1), AutomaticSize = Enum.AutomaticSize.X, Font = TITLE, TextSize = 24, TextXAlignment = Enum.TextXAlignment.Center,
+ TextColor3 = C.goldBright, TextStrokeColor3 = C.ink, TextStrokeTransparency = 0.2, Text = title, ZIndex = 4, Parent = ribbon })
+ new("Frame", { Size = UDim2.new(0, 120, 0, 3), AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 1, 2), BackgroundColor3 = accent, BorderSizePixel = 0, Parent = header }, { corner(2) })
+ local closeB = btn({ Size = UDim2.fromOffset(44, 44), AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.new(1, -24, 0, 22), BackgroundColor3 = C.crimson, Text = "×", TextSize = 30, TextColor3 = C.goldBright, ZIndex = 7, Parent = frame }, function()
w.close()
end)
+ closeB:FindFirstChildOfClass("UICorner").CornerRadius = UDim.new(1, 0)
+ closeB:FindFirstChildOfClass("UIStroke").Thickness = 2.5
local hasTabs = #tabs > 1
- local tabBar = new("Frame", { Size = UDim2.new(1, -28, 0, 42), Position = UDim2.fromOffset(14, 66), BackgroundTransparency = 1, Visible = hasTabs, Parent = frame },
+ local tabBar = new("Frame", { Size = UDim2.new(1, -36, 0, 40), Position = UDim2.fromOffset(18, 68), BackgroundTransparency = 1, Visible = hasTabs, Parent = frame },
{ new("UIListLayout", { FillDirection = Enum.FillDirection.Horizontal, Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }) })
- local top = hasTabs and 116 or 68
- local body = new("Frame", { Size = UDim2.new(1, -28, 1, -(top + 12)), Position = UDim2.fromOffset(14, top), BackgroundTransparency = 1, Parent = frame })
+ local top = hasTabs and 118 or 70
+ local body = new("Frame", { Size = UDim2.new(1, -36, 1, -(top + 16)), Position = UDim2.fromOffset(18, top), BackgroundTransparency = 1, Parent = frame })
w.frame = frame
+ -- на телефоне окно почти на весь экран
+ Theme.onLayout(function(compact)
+ frame.Size = compact and UDim2.new(1, -16, 1, -12) or UDim2.fromScale(0.92, 0.82)
+ frame.UISizeConstraint.MaxSize = compact and Vector2.new(1100, 640) or Vector2.new(760, 540)
+ frame.Position = compact and UDim2.fromScale(0.5, 0.5) or UDim2.fromScale(0.5, 0.53)
+ end)
function w.setTab(id)
w.current = id
for k, page in pairs(w.pages) do
page.Visible = (k == id)
end
+ -- выбранная вкладка — золотая с тёмными буквами, остальные — светлое дерево
for k, b in pairs(w.tabButtons) do
- b.BackgroundColor3 = (k == id) and accent or C.panel2
+ b.BackgroundColor3 = (k == id) and C.gold or C.woodLight
+ b.TextColor3 = (k == id) and C.ink or C.text
+ b.TextStrokeTransparency = (k == id) and 1 or 0.55
end
if w.render then
w.render(id)
@@ -433,6 +494,9 @@ local function makeWindow(title, accent, tabs)
openWindow.close()
end
openWindow = w
+ if not frame.Visible then
+ Audio.play("open")
+ end
frame.Visible = true
scale.Scale = 0.85
TweenService:Create(scale, TweenInfo.new(0.25, Enum.EasingStyle.Back, Enum.EasingDirection.Out), { Scale = 1 }):Play()
@@ -498,11 +562,19 @@ local function itemRow(parent, order, o)
end
local function progressBar(parent, pos, size, frac, color)
- local back = new("Frame", { Size = size, Position = pos, BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = parent }, { corner(7) })
+ local back = new("Frame", { Size = size, Position = pos, BackgroundColor3 = C.dark, Parent = parent }, { corner(7) })
new("Frame", { Size = UDim2.fromScale(math.clamp(frac, 0, 1), 1), BackgroundColor3 = color, Parent = back }, { corner(7) })
return back
end
+-- помощники интерфейса для других скриптов (GuildClient): тот же стиль окон, кнопок и уведомлений
+Theme.kit = {
+ new = new, text = text, btn = btn, corner = corner, stroke = stroke, gradient = gradient, clear = clear,
+ makeWindow = makeWindow, scrollArea = scrollArea, itemRow = itemRow, progressBar = progressBar,
+ sideButton = sideButton, notify = notify, popIn = popIn, fmt = fmt, timeStr = timeStr,
+ screen = screen, hud = hud, TITLE = TITLE, BODY = BODY, BODY2 = BODY2,
+}
+
---------------------------------------------------------------- данные с сервера
local inventory, discovered, claimed = {}, {}, {}
@@ -530,7 +602,7 @@ local function buyButton(price, level, myLevel, coins)
if myLevel < level then
return "🔒 Ур. " .. level, C.grey, false
end
- return "💰 " .. fmt(price), coins >= price and C.green or Color3.fromRGB(150, 95, 60), true
+ return "⚪ " .. fmt(price), coins >= price and C.green or Color3.fromRGB(150, 95, 60), true
end
shopWin.render = function(tab)
@@ -557,7 +629,7 @@ shopWin.render = function(tab)
bText, bColor, active = buyButton(rod.price, rod.level, myLevel, coins)
end
itemRow(list, i, {
- model = Models.buildRod(rod.id, lv, true), dir = ROD_VIEW, zoom = 0.6,
+ model = Models.buildRod(rod.id, lv, true), dir = VIEW.rod, zoom = 0.6,
title = rod.name .. (owned[rod.id] and (" " .. stars(lv) .. "") or ""),
lines = statLine(Config.RodStats(rod.id, lv)) .. "\n" .. (owned[rod.id] and "Куплена" or ("Нужен уровень " .. rod.level)),
strokeColor = equipped and C.gold or nil,
@@ -592,7 +664,7 @@ shopWin.render = function(tab)
end
local cost = Config.UpgradeCost(rod, lv)
itemRow(list, order, {
- model = Models.buildRod(rod.id, lv, true), dir = ROD_VIEW, zoom = 0.6,
+ model = Models.buildRod(rod.id, lv, true), dir = VIEW.rod, zoom = 0.6,
title = rod.name .. " " .. stars(lv) .. "",
lines = lines,
strokeColor = player:GetAttribute("Rod") == rod.id and C.gold or nil,
@@ -619,7 +691,7 @@ shopWin.render = function(tab)
bText, bColor, active = buyButton(bag.price, bag.level, myLevel, coins)
end
itemRow(list, i, {
- model = Models.buildBag(bag.id, true), dir = BAG_VIEW, zoom = 0.8,
+ model = Models.buildBag(bag.id, true), dir = VIEW.bag, zoom = 0.8,
title = bag.name,
lines = ("🎒 Вмещает %d рыб%s\n%s"):format(bag.capacity + bonus, bonus > 0 and " (с пропуском)" or "", owned[bag.id] and "Куплена" or ("Нужен уровень " .. bag.level)),
strokeColor = equipped and C.gold or nil,
@@ -642,7 +714,7 @@ shopWin.render = function(tab)
table.insert(mutLine, ("%s %.1f%%"):format(hex(m.color), m.name, math.min(100, m.chance * total / 100 * ((event and event.mutation) or 1) * 100)))
end
local lines = {
- ("🍀 Твоя удача: %d%%"):format(total),
+ ("🍀 Твоя удача: %d%%"):format(total),
("Базовая 100%% · 🎣 Удочка +%d%% · ✨ Улучшения +%d%%"):format(math.floor(rod.luck * 100 + 0.5), math.floor(lv * Config.RodUpgrade.luckPerLevel * 100 + 0.5)),
("⭐ Уровень +%d%% · 🏆 Мастерство миров +%d%%"):format(math.floor(((player:GetAttribute("Level") or 1) - 1) * Config.LuckPerPlayerLevel * 100 + 0.5), math.floor((player:GetAttribute("Mastery") or 0) * Config.MasteryLuck * 100 + 0.5)),
("🧪 Зелье +%d%%%s · 👑 Пропуска +%d%%%s"):format(math.floor(boost * 100 + 0.5), boost > 0 and (" (" .. timeStr(player:GetAttribute("BoostLeft") or 0) .. ")") or "",
@@ -676,7 +748,7 @@ local bagWin = makeWindow("🎒 Сумка", Color3.fromRGB(60, 140, 220), {
local fishHeader = new("Frame", { Size = UDim2.new(1, 0, 0, 50), BackgroundColor3 = WHITE, Parent = bagWin.pages.fish }, { corner(12), gradient(C.panel2, C.panel, 90) })
local fishSummary = text({ Size = UDim2.new(1, -200, 1, 0), Position = UDim2.fromOffset(14, 0), Font = TITLE, TextSize = 19, RichText = true, Text = "", Parent = fishHeader })
-btn({ Size = UDim2.fromOffset(170, 38), AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -8, 0.5, 0), BackgroundColor3 = C.green, Text = "💰 Продать всё", TextSize = 18, Parent = fishHeader }, function()
+btn({ Size = UDim2.fromOffset(170, 38), AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -8, 0.5, 0), BackgroundColor3 = C.green, Text = "⚪ Продать всё", TextSize = 18, Parent = fishHeader }, function()
remote:FireServer("SellAll")
end)
local fishGrid = scrollArea(bagWin.pages.fish, UDim2.fromOffset(132, 176), 60)
@@ -688,8 +760,13 @@ local dexList = scrollArea(bagWin.pages.dex, nil, 46)
local dexTabButtons = {}
local function fishCard(parent, order, rarityColor, strokeColor)
- return new("Frame", { BackgroundColor3 = WHITE, LayoutOrder = order, Parent = parent },
- { corner(14), stroke(strokeColor or rarityColor, 2.5, 0.05), gradient(rarityColor:Lerp(C.bg, 0.55), C.panel, 90) })
+ -- тёмное дерево; редкость — цветная полоса сверху и камень в углу, мутация — цвет рамки
+ local card = new("Frame", { BackgroundColor3 = WHITE, LayoutOrder = order, Parent = parent },
+ { corner(8), stroke(strokeColor or C.goldDark, strokeColor and 2.5 or 2, 0), gradient(rarityColor:Lerp(C.woodDark, 0.78), C.woodDark, 90) })
+ new("Frame", { Size = UDim2.new(1, -16, 0, 4), AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 3), BackgroundColor3 = rarityColor, BorderSizePixel = 0, Parent = card }, { corner(2) })
+ new("Frame", { Size = UDim2.fromOffset(12, 12), AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.new(1, -11, 0, 13), Rotation = 45, BackgroundColor3 = rarityColor, ZIndex = 5, Parent = card },
+ { stroke(C.ink, 1.5), gradient(WHITE, Color3.fromRGB(150, 150, 150), 90) })
+ return card
end
local function rewardButton(parent, state, label, onClick)
@@ -719,7 +796,7 @@ local function renderDex()
{ corner(12), stroke(C.gold, 2, 0.3), gradient(Color3.fromRGB(70, 55, 20), C.panel, 90) })
text({
Size = UDim2.new(1, -180, 1, 0), Position = UDim2.fromOffset(14, 0), Font = TITLE, TextSize = 17, RichText = true, TextWrapped = true,
- Text = ("%s %s — %d / %d\nСобери всех: +%s 💰 и +%d%% удачи навсегда"):format(
+ Text = ("%s %s — %d / %d\nСобери всех: +%s ⚪ и +%d%% удачи навсегда"):format(
world.icon, world.name, found, #all, fmt(Config.MasteryCoins * world.mult), math.floor(Config.MasteryLuck * 100 + 0.5)),
Parent = head,
})
@@ -751,7 +828,7 @@ local function renderDex()
local reward = Config.CollectionRewards[rarity]
text({
Size = UDim2.new(1, -180, 1, 0), Position = UDim2.fromOffset(12, 0), Font = TITLE, TextSize = 17, RichText = true,
- Text = ("%s %d/%d +%s 💰 +%s XP"):format(
+ Text = ("%s %d/%d +%s ⚪ +%s XP"):format(
hex(r.color), r.name, have, #group, fmt(reward.coins * world.mult), fmt(reward.xp * world.mult)),
Parent = hdr,
})
@@ -767,7 +844,7 @@ local function renderDex()
local card = fishCard(grid, i, rec and r.color or C.grey)
local view = new("Frame", { Size = UDim2.new(1, -12, 0, 76), Position = UDim2.fromOffset(6, 6), BackgroundTransparency = 1, Parent = card })
local model = Models.buildFish(f.id, nil, 1, true)
- viewport(view, rec and model or silhouette(model), FISH_VIEW, 0.72)
+ viewport(view, rec and model or silhouette(model), VIEW.fish, 0.72)
text({ Size = UDim2.new(1, -10, 0, 20), Position = UDim2.fromOffset(6, 84), Font = TITLE, TextSize = 15, TextColor3 = rec and r.color or C.muted, Text = rec and f.name or "???", TextTruncate = Enum.TextTruncate.AtEnd, Parent = card })
text({
Size = UDim2.new(1, -10, 0, 40), Position = UDim2.fromOffset(6, 104), Font = BODY2, TextSize = 12, TextColor3 = C.muted, TextWrapped = true,
@@ -795,7 +872,7 @@ bagWin.render = function(tab)
for _, it in ipairs(inventory) do
total += it.value
end
- fishSummary.Text = ("🐟 %d / %d · 💰 ≈%s"):format(#inventory, player:GetAttribute("BagCap") or 0, fmt(player:GetAttribute("BagValue") or total))
+ fishSummary.Text = ("🐟 %d / %d · ⚪ ≈%s"):format(#inventory, player:GetAttribute("BagCap") or 0, fmt(player:GetAttribute("BagValue") or total))
if #inventory == 0 then
text({ Size = UDim2.fromOffset(400, 60), Font = TITLE, TextSize = 20, TextColor3 = C.muted, TextWrapped = true, Text = "Сумка пуста. Иди к воде и поймай рыбу! 🎣", Parent = fishGrid })
return
@@ -809,7 +886,7 @@ bagWin.render = function(tab)
local mut = it.mutation and Config.Find(Config.Mutations, it.mutation)
local card = fishCard(fishGrid, i, r.color, mut and mut.color)
local view = new("Frame", { Size = UDim2.new(1, -12, 0, 84), Position = UDim2.fromOffset(6, 6), BackgroundTransparency = 1, Parent = card })
- viewport(view, Models.buildFish(it.id, it.mutation, 1, true), FISH_VIEW, 0.72)
+ viewport(view, Models.buildFish(it.id, it.mutation, 1, true), VIEW.fish, 0.72)
if mut then
local tag = new("Frame", { Size = UDim2.fromOffset(0, 20), AutomaticSize = Enum.AutomaticSize.X, Position = UDim2.fromOffset(6, 6), BackgroundColor3 = mut.color, ZIndex = 3, Parent = card },
{ corner(6), new("UIPadding", { PaddingLeft = UDim.new(0, 6), PaddingRight = UDim.new(0, 6) }) })
@@ -817,7 +894,7 @@ bagWin.render = function(tab)
end
text({ Size = UDim2.new(1, -10, 0, 20), Position = UDim2.fromOffset(6, 92), Font = TITLE, TextSize = 16, TextColor3 = r.color, Text = it.name, TextTruncate = Enum.TextTruncate.AtEnd, Parent = card })
text({ Size = UDim2.new(1, -10, 0, 16), Position = UDim2.fromOffset(6, 112), Font = BODY2, TextSize = 13, TextColor3 = C.muted, Text = ("%.2f кг · %s"):format(it.weight, r.name), Parent = card })
- btn({ Size = UDim2.new(1, -12, 0, 32), Position = UDim2.fromOffset(6, 136), BackgroundColor3 = C.green, Text = "💰 " .. fmt(it.value), TextSize = 17, Parent = card }, function()
+ btn({ Size = UDim2.new(1, -12, 0, 32), Position = UDim2.fromOffset(6, 136), BackgroundColor3 = C.green, Text = "⚪ " .. fmt(it.value), TextSize = 17, Parent = card }, function()
remote:FireServer("SellOne", it.uid)
end)
end
@@ -866,6 +943,8 @@ worldsWin.render = function()
bText, bColor, active = "Скоро…", C.grey, false
elseif myLevel < w.level then
bText, bColor, active = "🔒 Ур. " .. w.level, C.grey, false
+ elseif (Config.Guild.worldRank[w.id] or 1) > (player:GetAttribute("RankIdx") or 1) then
+ bText, bColor, active = "🔒 Ранг " .. Config.Guild.ranks[Config.Guild.worldRank[w.id]].id, C.grey, false
elseif here and here.id == w.id then
bText, bColor, active = "Вы здесь", C.grey, false
else
@@ -874,7 +953,8 @@ worldsWin.render = function()
itemRow(worldsList, i, {
icon = w.icon, iconBg = w.color:Lerp(C.bg, 0.6),
title = w.name, titleColor = w.color,
- lines = w.desc .. "\n" .. (w.soon and "В разработке" or ("Уровень: %d · Рыб поймано: %d / %d · Награды x%d"):format(w.level, found, total, w.mult)),
+ lines = w.desc .. "\n" .. (w.soon and "В разработке" or ("Уровень: %d%s · Рыб поймано: %d / %d · Награды x%d"):format(w.level,
+ Config.Guild.worldRank[w.id] and (", ранг " .. Config.Guild.ranks[Config.Guild.worldRank[w.id]].id) or "", found, total, w.mult)),
strokeColor = (here and here.id == w.id) and C.gold or nil,
buttonText = bText, buttonColor = bColor, active = active,
onClick = function()
@@ -915,7 +995,11 @@ questWin.render = function(tab)
end
text({
Size = UDim2.new(1, -4, 0, 30), LayoutOrder = 0, Font = TITLE, TextSize = 22, RichText = true,
+<<<<<<< HEAD
+ Text = ("%s круг %d · награда сразу, следующее задание — тоже"):format(chain.name, chain.round), Parent = questList,
+=======
Text = ("%s круг %d · награда сразу, следующее задание — тоже"):format(chain.name, chain.round), Parent = questList,
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
})
for i, st in ipairs(chain.steps) do
local done, cur = i < chain.step, i == chain.step
@@ -928,7 +1012,11 @@ questWin.render = function(tab)
})
text({
Size = UDim2.fromOffset(180, 28), AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -14, 0, cur and 8 or 14), Font = TITLE, TextSize = 17,
+<<<<<<< HEAD
+ TextXAlignment = Enum.TextXAlignment.Right, TextColor3 = done and C.muted or C.gold, Text = ("+%s ⚪ +%s XP"):format(fmt(st.coins), fmt(st.xp)), Parent = row,
+=======
TextXAlignment = Enum.TextXAlignment.Right, TextColor3 = done and C.muted or C.gold, Text = ("+%s 💰 +%s XP"):format(fmt(st.coins), fmt(st.xp)), Parent = row,
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
})
if cur then
progressBar(row, UDim2.fromOffset(16, 44), UDim2.new(1, -110, 0, 16), chain.progress / st.goal, C.gold)
@@ -941,7 +1029,11 @@ questWin.render = function(tab)
{ corner(14), stroke(C.purple, 2, 0.2), gradient(Color3.fromRGB(70, 40, 100), C.panel, 90) })
text({
Size = UDim2.new(1, -32, 1, 0), Position = UDim2.fromOffset(16, 0), Font = TITLE, TextSize = 18, RichText = true,
+<<<<<<< HEAD
+ Text = ("🎁 За всю цепочку: +%s ⚪ +%s XP%s"):format(fmt(b.coins), fmt(b.xp), b.potion and (" + " .. b.potion) or ""), Parent = row,
+=======
Text = ("🎁 За всю цепочку: +%s 💰 +%s XP%s"):format(fmt(b.coins), fmt(b.xp), b.potion and (" + " .. b.potion) or ""), Parent = row,
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
})
elseif tab == "daily" then
clear(dailyPage)
@@ -958,10 +1050,10 @@ questWin.render = function(tab)
local cell = new("Frame", { BackgroundColor3 = WHITE, Parent = row },
{ corner(12), stroke(isNext and C.gold or C.line, isNext and 3 or 2, isNext and 0 or 0.4), gradient(isNext and Color3.fromRGB(90, 70, 20) or C.panel2, C.panel, 90) })
text({ Size = UDim2.new(1, 0, 0, 24), Position = UDim2.fromOffset(0, 6), Font = TITLE, TextSize = 15, TextXAlignment = Enum.TextXAlignment.Center, Text = "День " .. d, Parent = cell })
- text({ Size = UDim2.new(1, 0, 0, 44), Position = UDim2.fromOffset(0, 32), TextSize = 32, TextXAlignment = Enum.TextXAlignment.Center, Text = passed and "✅" or (r.potion and "🧪" or "💰"), Parent = cell })
+ text({ Size = UDim2.new(1, 0, 0, 44), Position = UDim2.fromOffset(0, 32), TextSize = 32, TextXAlignment = Enum.TextXAlignment.Center, Text = passed and "✅" or (r.potion and "🧪" or "⚪"), Parent = cell })
text({
Size = UDim2.new(1, -6, 0, 50), Position = UDim2.fromOffset(3, 80), Font = BODY2, TextSize = 12, TextXAlignment = Enum.TextXAlignment.Center, TextWrapped = true, TextColor3 = C.gold,
- Text = fmt(r.coins * (1 + (myLevel - 1) * 0.2)) .. " 💰" .. (r.potion and "\n+ зелье" or ""), Parent = cell,
+ Text = fmt(r.coins * (1 + (myLevel - 1) * 0.2)) .. " ⚪" .. (r.potion and "\n+ зелье" or ""), Parent = cell,
})
end
btn({
@@ -978,7 +1070,7 @@ end
local robuxWin = makeWindow("💎 Премиум", Color3.fromRGB(150, 80, 210), {
{ id = "passes", label = "👑 Пропуска" },
- { id = "products", label = "🪙 Наборы" },
+ { id = "products", label = "⚪ Наборы" },
})
local robuxLists = { passes = scrollArea(robuxWin.pages.passes), products = scrollArea(robuxWin.pages.products) }
@@ -1010,6 +1102,50 @@ robuxWin.render = function(tab)
end
end
+---------------------------------------------------------------- настройки звука
+
+local settingsWin = makeWindow("⚙ Настройки", Color3.fromRGB(150, 120, 80), { { id = "sound", label = "Звук" } })
+local settingsPage = settingsWin.pages.sound
+local volumes = {
+ music = player:GetAttribute("VolMusic") or Config.DefaultVolume.music,
+ sfx = player:GetAttribute("VolSfx") or Config.DefaultVolume.sfx,
+}
+
+local function setVolume(key, value)
+ volumes[key] = math.clamp(math.floor(value * 10 + 0.5) / 10, 0, 1)
+ -- сразу у себя (слышно без задержки), сервер сохранит и подтвердит
+ player:SetAttribute(key == "music" and "VolMusic" or "VolSfx", volumes[key])
+ remote:FireServer("Settings", volumes.music, volumes.sfx)
+ settingsWin.refresh()
+end
+
+settingsWin.render = function()
+ clear(settingsPage)
+ for i, row in ipairs({ { "music", "🎵 Музыка" }, { "sfx", "🔊 Звуки и окружение" } }) do
+ local key, label = row[1], row[2]
+ local f = new("Frame", { Size = UDim2.new(1, -4, 0, 70), Position = UDim2.fromOffset(0, (i - 1) * 82), BackgroundColor3 = WHITE, Parent = settingsPage },
+ { corner(14), stroke(C.line, 2, 0.45), gradient(C.panel2, C.panel, 90) })
+ text({ Size = UDim2.new(1, -260, 1, 0), Position = UDim2.fromOffset(18, 0), Font = TITLE, TextSize = 21, Text = label, Parent = f })
+ btn({ Size = UDim2.fromOffset(52, 46), AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -170, 0.5, 0), BackgroundColor3 = C.grey, Text = "−", TextSize = 26, Parent = f }, function()
+ setVolume(key, volumes[key] - 0.1)
+ end)
+ text({ Size = UDim2.fromOffset(90, 46), AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -74, 0.5, 0), Font = TITLE, TextSize = 22,
+ TextXAlignment = Enum.TextXAlignment.Center, TextColor3 = C.gold, Text = math.floor(volumes[key] * 100 + 0.5) .. "%", Parent = f })
+ btn({ Size = UDim2.fromOffset(52, 46), AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -14, 0.5, 0), BackgroundColor3 = C.green, Text = "+", TextSize = 26, Parent = f }, function()
+ setVolume(key, volumes[key] + 0.1)
+ end)
+ end
+end
+-- сервер прислал сохранённую громкость
+player:GetAttributeChangedSignal("VolMusic"):Connect(function()
+ volumes.music = player:GetAttribute("VolMusic") or volumes.music
+ settingsWin.refresh()
+end)
+player:GetAttributeChangedSignal("VolSfx"):Connect(function()
+ volumes.sfx = player:GetAttribute("VolSfx") or volumes.sfx
+ settingsWin.refresh()
+end)
+
---------------------------------------------------------------- боковые кнопки
sideButton(1, "🎒", "Сумка", "B", Color3.fromRGB(60, 140, 220), function()
@@ -1027,6 +1163,38 @@ end)
sideButton(5, "💎", "Донат", nil, Color3.fromRGB(150, 80, 210), function()
robuxWin.toggle()
end)
+sideButton(6, "⚙", "Звук", nil, Color3.fromRGB(150, 120, 80), function()
+ settingsWin.toggle()
+end)
+
+-- раскладка: компьютер — как раньше; телефон — HUD и кнопки компактнее, кнопки сеткой 3×N под HUD
+-- (левый низ свободен под джойстик, правый низ — под кнопку прыжка)
+do
+ local function scaleOf(obj)
+ local sc = obj:FindFirstChild("LayoutScale") or new("UIScale", { Name = "LayoutScale", Parent = obj })
+ return sc
+ end
+ local grid = side:FindFirstChildOfClass("UIGridLayout")
+ Theme.onLayout(function(compact)
+ scaleOf(hud.Parent).Scale = compact and 0.82 or 1
+ hud.Parent.Position = compact and UDim2.fromOffset(8, 6) or UDim2.fromOffset(12, 10)
+ grid.CellSize = compact and UDim2.fromOffset(52, 52) or UDim2.fromOffset(62, 62)
+ grid.CellPadding = compact and UDim2.fromOffset(6, 6) or UDim2.fromOffset(6, 6)
+ grid.FillDirectionMaxCells = compact and 3 or 1
+ side.AnchorPoint = Vector2.zero
+ -- под HUD (он выше на строку гильдии — её добавляет GuildClient)
+ side.Position = compact and UDim2.fromOffset(8, 172) or UDim2.fromOffset(12, 216)
+ side.Size = compact and UDim2.fromOffset(170, 240) or UDim2.fromOffset(70, 480)
+ toasts.Size = compact and UDim2.fromOffset(640, 200) or UDim2.fromOffset(900, 200)
+ toasts.Position = compact and UDim2.new(0.5, 0, 0, 66) or UDim2.new(0.5, 0, 0, 84)
+ scaleOf(toasts).Scale = compact and 0.75 or 1
+ scaleOf(catchCard).Scale = compact and 0.8 or 1
+ scaleOf(mgFrame).Scale = compact and 0.85 or 1
+ mgFrame.Position = compact and UDim2.new(0.5, 0, 1, -60) or UDim2.new(0.5, 0, 1, -100)
+ scaleOf(eventBanner).Scale = compact and 0.8 or 1
+ statusLabel:FindFirstChildOfClass("TextLabel").TextSize = compact and 28 or 36
+ end)
+end
local function refreshDots()
-- задания цепочки награждаются сами, точка — только для ежедневной награды
@@ -1059,18 +1227,18 @@ end
local function refreshHud()
local xp = player:GetAttribute("XP") or 0
local need = player:GetAttribute("XPNeed") or 100
- coinsText.Text = "💰 " .. fmt(player:GetAttribute("Coins") or 0)
- lvlText.Text = tostring(player:GetAttribute("Level") or 1)
- xpText.Text = ("%d / %d XP"):format(xp, need)
- TweenService:Create(xpFill, TweenInfo.new(0.3), { Size = UDim2.fromScale(math.clamp(xp / need, 0, 1), 1) }):Play()
+ H.coins.Text = "⚪ " .. fmt(player:GetAttribute("Coins") or 0)
+ H.lvl.Text = tostring(player:GetAttribute("Level") or 1)
+ H.xpText.Text = ("%d / %d XP"):format(xp, need)
+ TweenService:Create(H.xpFill, TweenInfo.new(0.3), { Size = UDim2.fromScale(math.clamp(xp / need, 0, 1), 1) }):Play()
local boost = player:GetAttribute("BoostBonus") or 0
- luckText.Text = ("🍀 Удача %d%%%s"):format(player:GetAttribute("Luck") or 100,
+ H.luck.Text = ("🍀 Удача %d%%%s"):format(player:GetAttribute("Luck") or 100,
boost > 0 and (" 🧪 +%d%% %s"):format(boost * 100, timeStr(player:GetAttribute("BoostLeft") or 0)) or "")
local count, cap = player:GetAttribute("BagCount") or 0, player:GetAttribute("BagCap") or 10
- bagText.Text = ("🎒 %d / %d · ≈ %s 💰"):format(count, cap, fmt(player:GetAttribute("BagValue") or 0))
- bagText.TextColor3 = count >= cap and Color3.fromRGB(255, 120, 120) or C.text
+ H.bag.Text = ("🎒 %d / %d · ≈ %s ⚪"):format(count, cap, fmt(player:GetAttribute("BagValue") or 0))
+ H.bag.TextColor3 = count >= cap and Color3.fromRGB(255, 120, 120) or C.text
local rod = Config.Find(Config.Rods, player:GetAttribute("Rod") or "Basic")
- rodText.Text = ("🎣 %s %s"):format(rod and rod.name or "", stars(player:GetAttribute("RodLevel") or 0))
+ H.rod.Text = ("🎣 %s %s"):format(rod and rod.name or "", stars(player:GetAttribute("RodLevel") or 0))
end
local pending = false
@@ -1173,7 +1341,11 @@ end
local GAUGE_R, GAUGE_DEG, GAUGE_N = 190, 110, 32
local gauge = new("Frame", {
Size = UDim2.fromOffset(150, 280), AnchorPoint = Vector2.new(0, 0.5), Position = UDim2.new(0.57, 0, 0.48, 0),
+<<<<<<< HEAD
+ BackgroundTransparency = 1, Visible = false, Parent = screen,
+=======
BackgroundTransparency = 1, Visible = false, Parent = gui,
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
})
local GAUGE_C = Vector2.new(110 - GAUGE_R, 140) -- центр окружности левее рамки: дуга выгнута вправо
local function arcPoint(v, r)
@@ -1358,6 +1530,7 @@ local function setState(s)
charge = nil
end
state = s
+ Audio.fade(reelSound, s == "bite" and 1 or 0, s == "bite" and 0.2 or 0.4)
statusLabel.Visible = (s == "waiting")
mgFrame.Visible = (s == "bite")
gauge.Visible = (s == "charging")
@@ -1376,12 +1549,12 @@ local function setState(s)
end
end
local function updatePips()
- pipsText.Text = "🎯 " .. string.rep("●", mg.hits) .. string.rep("●", mg.need - mg.hits)
- missText.Text = string.rep("✖", mg.misses) .. string.rep("❤️", mg.maxMisses - mg.misses)
+ pipsText.Text = "🎯 " .. string.rep("●", mg.hits) .. string.rep("●", mg.need - mg.hits)
+ missText.Text = string.rep("✖", mg.misses) .. string.rep("❤️", mg.maxMisses - mg.misses)
end
local function flash(color)
bar.BackgroundColor3 = color
- TweenService:Create(bar, TweenInfo.new(0.35), { BackgroundColor3 = Color3.fromRGB(22, 28, 46) }):Play()
+ TweenService:Create(bar, TweenInfo.new(0.35), { BackgroundColor3 = C.dark }):Play()
end
local function placeZone()
mg.zoneStart = math.random() * (1 - mg.zoneWidth)
@@ -1590,6 +1763,20 @@ local function setLook(obj, goal, instant)
end
end
+<<<<<<< HEAD
+-- погода сгущает дымку поверх настроек локации (туман — сильно, дождь и гроза — слегка)
+local WEATHER_ATMO = {
+ Fog = { Density = 0.22, Haze = 1.5 },
+ Rain = { Density = 0.06, Haze = 0.4 },
+ Storm = { Density = 0.12, Haze = 0.8 },
+}
+local function weatherAtmo(prop)
+ local add = WEATHER_ATMO[workspace:GetAttribute("Weather") or ""]
+ return (add and add[prop]) or 0
+end
+
+=======
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local function applyLook(world, instant)
-- исходные значения запоминаем до первой правки; эффект мог ещё не прийти с сервера, тогда в следующий раз
for _, w in ipairs(lookSources) do
@@ -1613,6 +1800,12 @@ local function applyLook(world, instant)
for prop, def in pairs(defaults) do
local v = look[section] and look[section][prop]
if v == nil then v = def end
+<<<<<<< HEAD
+ if section == "atmosphere" and typeof(v) == "number" then
+ v += weatherAtmo(prop)
+ end
+=======
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
-- плавно меняются только числа и цвета; флаги и режимы (EnumItem) ставим сразу
local kind = typeof(v)
if kind == "number" or kind == "Color3" then goal[prop] = v else obj[prop] = v end
@@ -1629,8 +1822,15 @@ local function applyAmbience(world, instant)
end
table.clear(lookTweens)
world = world or Config.Lobby
+<<<<<<< HEAD
+ -- при смене суток часы двигает Ambience; иначе у каждой локации своё время
+ if not Config.DayNight.enabled then
+ setLook(Lighting, { ClockTime = (world and world.clock) or 14.5 }, instant)
+ end
+=======
local clock = (world and world.clock) or 14.5
setLook(Lighting, { ClockTime = clock }, instant)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local cc = Lighting:FindFirstChildOfClass("ColorCorrectionEffect")
if cc then
setLook(cc, { TintColor = (world and world.tint) or DEFAULT_LOOK.tint }, instant)
@@ -1734,6 +1934,28 @@ local function enterWorld(w, instant)
end
end
+<<<<<<< HEAD
+-- погода сменилась: плавно пересчитываем дымку текущей локации
+workspace:GetAttributeChangedSignal("Weather"):Connect(function()
+ if lastWorldId ~= "none" and not loadingVisible() then
+ applyAmbience(currentWorld(), false)
+ end
+end)
+
+-- новый уровень — арфа
+do
+ local lastLevel = player:GetAttribute("Level")
+ player:GetAttributeChangedSignal("Level"):Connect(function()
+ local lv = player:GetAttribute("Level")
+ if lastLevel and lv and lv > lastLevel then
+ Audio.play("levelUp")
+ end
+ lastLevel = lv
+ end)
+end
+
+=======
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
-- первое появление: ждём персонажа, ставим свет его локации сразу и отпускаем экран загрузки
task.spawn(function()
local char = player.Character or player.CharacterAdded:Wait()
@@ -1811,10 +2033,20 @@ local guideStep = 0 -- шаг, отправленный на сервер (ат
-- крупная мультяшная подсказка под уведомлениями: покачивается, при смене шага «выпрыгивает»
local guideHint, guideHintText = softPlate(
+<<<<<<< HEAD
+ { Size = UDim2.fromOffset(0, 70), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 10), Visible = false, Parent = screen },
+ { TextSize = 42, Text = "" }
+)
+wobble(guideHint, 1.2, 1.6)
+Theme.onLayout(function(compact)
+ guideHintText.TextSize = compact and 30 or 42
+end)
+=======
{ Size = UDim2.fromOffset(0, 70), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 10), Visible = false, Parent = gui },
{ TextSize = 42, Text = "" }
)
wobble(guideHint, 1.2, 1.6)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local lastHint = nil
local guideFolder = new("Folder", { Name = "TutorialGuide", Parent = workspace })
@@ -2015,7 +2247,11 @@ local function guideRoute(step, pos, world)
elseif step == 2 and inW1 then
return { guideMarker("GuideFishSpot") }, "🎣 Зажми ЛКМ у воды", "Pier"
elseif step == 3 and inW1 then
+<<<<<<< HEAD
+ return { sellTargetW1() }, "⚪ Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
+=======
return { sellTargetW1() }, "💰 Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
return nil
end
@@ -2180,11 +2416,19 @@ local FIRE = Color3.fromRGB(255, 150, 60)
-- серия улова — справа от HUD; полоска показывает, сколько осталось до того, как серия сгорит
local comboBox = new("Frame", {
+<<<<<<< HEAD
+ Size = UDim2.fromOffset(140, 66), Position = UDim2.fromOffset(310, 10), BackgroundColor3 = WHITE, Visible = false, Parent = screen,
+}, { corner(14), stroke(FIRE, 2, 0.1), gradient(Color3.fromRGB(110, 50, 20), C.bg, 90) })
+local comboMultText = text({ Size = UDim2.new(1, 0, 0, 34), Position = UDim2.fromOffset(0, 3), Font = TITLE, TextSize = 28, TextXAlignment = CENTER, TextColor3 = Color3.fromRGB(255, 195, 95), TextStrokeTransparency = 0.5, Text = "", Parent = comboBox })
+local comboSub = text({ Size = UDim2.new(1, 0, 0, 16), Position = UDim2.fromOffset(0, 36), Font = BODY2, TextSize = 12, TextXAlignment = CENTER, TextColor3 = C.muted, Text = "", Parent = comboBox })
+local comboBack = new("Frame", { Size = UDim2.new(1, -20, 0, 5), Position = UDim2.new(0, 10, 1, -10), BackgroundColor3 = C.dark, Parent = comboBox }, { corner(3) })
+=======
Size = UDim2.fromOffset(140, 66), Position = UDim2.fromOffset(310, 10), BackgroundColor3 = WHITE, Visible = false, Parent = gui,
}, { corner(14), stroke(FIRE, 2, 0.1), gradient(Color3.fromRGB(110, 50, 20), C.bg, 90) })
local comboMultText = text({ Size = UDim2.new(1, 0, 0, 34), Position = UDim2.fromOffset(0, 3), Font = TITLE, TextSize = 28, TextXAlignment = CENTER, TextColor3 = Color3.fromRGB(255, 195, 95), TextStrokeTransparency = 0.5, Text = "", Parent = comboBox })
local comboSub = text({ Size = UDim2.new(1, 0, 0, 16), Position = UDim2.fromOffset(0, 36), Font = BODY2, TextSize = 12, TextXAlignment = CENTER, TextColor3 = C.muted, Text = "", Parent = comboBox })
local comboBack = new("Frame", { Size = UDim2.new(1, -20, 0, 5), Position = UDim2.new(0, 10, 1, -10), BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = comboBox }, { corner(3) })
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local comboFill = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = FIRE, BorderSizePixel = 0, Parent = comboBack }, { corner(3) })
local function refreshCombo(pop)
@@ -2207,14 +2451,33 @@ refreshCombo(false)
-- правая колонка: босс и цели
local rightCol = new("Frame", {
Size = UDim2.fromOffset(300, 0), AutomaticSize = Enum.AutomaticSize.Y, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -12, 0.5, 10),
+<<<<<<< HEAD
+ BackgroundTransparency = 1, Parent = screen,
+}, { new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }) })
+
+-- на телефоне колонка выше и мельче, чтобы не заходить на кнопку прыжка; серия — правее компактного HUD
+local rightScale = new("UIScale", { Parent = rightCol })
+Theme.onLayout(function(compact)
+ rightScale.Scale = compact and 0.8 or 1
+ rightCol.AnchorPoint = compact and Vector2.new(1, 0) or Vector2.new(1, 0.5)
+ rightCol.Position = compact and UDim2.new(1, -8, 0, 128) or UDim2.new(1, -12, 0.5, 10)
+ comboBox.Position = compact and UDim2.fromOffset(254, 6) or UDim2.fromOffset(310, 10)
+end)
+
+=======
BackgroundTransparency = 1, Parent = gui,
}, { new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }) })
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local bossBox = new("Frame", { Size = UDim2.fromOffset(300, 78), BackgroundColor3 = WHITE, Visible = false, LayoutOrder = 1, Parent = rightCol },
{ corner(14), stroke(C.red, 2.5, 0.05), gradient(Color3.fromRGB(110, 30, 40), C.bg, 90) })
local bossTitle = text({ Size = UDim2.new(1, -80, 0, 24), Position = UDim2.fromOffset(12, 5), Font = TITLE, TextSize = 18, TextColor3 = Color3.fromRGB(255, 205, 120), TextTruncate = Enum.TextTruncate.AtEnd, Text = "", Parent = bossBox })
local bossTime = text({ Size = UDim2.fromOffset(60, 24), AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -12, 0, 5), Font = TITLE, TextSize = 17, TextXAlignment = RIGHT, Text = "", Parent = bossBox })
+<<<<<<< HEAD
+local bossBack = new("Frame", { Size = UDim2.new(1, -24, 0, 18), Position = UDim2.fromOffset(12, 32), BackgroundColor3 = C.dark, Parent = bossBox }, { corner(9) })
+=======
local bossBack = new("Frame", { Size = UDim2.new(1, -24, 0, 18), Position = UDim2.fromOffset(12, 32), BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = bossBox }, { corner(9) })
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local bossFill = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = WHITE, Parent = bossBack }, { corner(9), gradient(Color3.fromRGB(255, 120, 90), Color3.fromRGB(190, 30, 50), 0) })
local bossHpText = text({ Size = UDim2.fromScale(1, 1), TextSize = 12, TextXAlignment = CENTER, ZIndex = 2, TextStrokeTransparency = 0.5, Text = "", Parent = bossBack })
local bossHint = text({ Size = UDim2.new(1, -24, 0, 18), Position = UDim2.fromOffset(12, 54), Font = BODY2, TextSize = 12, TextColor3 = C.muted, Text = "", Parent = bossBox })
@@ -2229,7 +2492,11 @@ text({ Size = UDim2.new(1, 0, 0, 20), LayoutOrder = 0, Font = TITLE, TextSize =
local function trackerLine(order, onClick)
local root = new("TextButton", { Size = UDim2.new(1, 0, 0, 38), BackgroundTransparency = 1, AutoButtonColor = false, Text = "", LayoutOrder = order, Parent = tracker })
local label = text({ Size = UDim2.new(1, 0, 0, 22), Font = BODY, TextSize = 14, RichText = true, TextTruncate = Enum.TextTruncate.AtEnd, Text = "", Parent = root })
+<<<<<<< HEAD
+ local back = new("Frame", { Size = UDim2.new(1, 0, 0, 8), Position = UDim2.fromOffset(0, 26), BackgroundColor3 = C.dark, Parent = root }, { corner(4) })
+=======
local back = new("Frame", { Size = UDim2.new(1, 0, 0, 8), Position = UDim2.fromOffset(0, 26), BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = root }, { corner(4) })
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local fill = new("Frame", { Size = UDim2.fromScale(0, 1), BackgroundColor3 = C.gold, BorderSizePixel = 0, Parent = back }, { corner(4) })
if onClick then
root.MouseButton1Click:Connect(onClick)
@@ -2284,7 +2551,11 @@ local function buyGoal()
elseif coins >= r.price then
return ("🎣 %s — можно купить!"):format(r.name), 1, C.green
end
+<<<<<<< HEAD
+ return ("🎣 До «%s»: ещё %s ⚪"):format(r.name, fmt(r.price - coins)), coins / r.price, C.gold
+=======
return ("🎣 До «%s»: ещё %s 💰"):format(r.name, fmt(r.price - coins)), coins / r.price, C.gold
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
end
local rod = Config.Find(Config.Rods, player:GetAttribute("Rod") or "Basic")
@@ -2294,7 +2565,11 @@ local function buyGoal()
if coins >= cost then
return ("✨ Улучшение до +%d — можно купить!"):format(rl + 1), 1, C.green
end
+<<<<<<< HEAD
+ return ("✨ До улучшения +%d: ещё %s ⚪"):format(rl + 1, fmt(cost - coins)), coins / cost, C.gold
+=======
return ("✨ До улучшения +%d: ещё %s 💰"):format(rl + 1, fmt(cost - coins)), coins / cost, C.gold
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
return nil
end
@@ -2438,7 +2713,11 @@ end)
-- у скупщика после продажи: предложение купить то, на что уже хватает
local offerCard = new("Frame", {
Size = UDim2.fromOffset(440, 96), AnchorPoint = Vector2.new(0.5, 1), Position = UDim2.new(0.5, 0, 1, -110),
+<<<<<<< HEAD
+ BackgroundColor3 = WHITE, Visible = false, Parent = screen,
+=======
BackgroundColor3 = WHITE, Visible = false, Parent = gui,
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
}, { corner(16), stroke(C.green, 2.5, 0.05), gradient(Color3.fromRGB(30, 85, 55), C.bg, 90) })
local offerIcon = text({ Size = UDim2.fromOffset(70, 70), Position = UDim2.fromOffset(12, 13), TextSize = 46, TextXAlignment = CENTER, Text = "", Parent = offerCard })
local offerTitle = text({ Size = UDim2.new(1, -250, 0, 26), Position = UDim2.fromOffset(90, 12), Font = TITLE, TextSize = 19, TextTruncate = Enum.TextTruncate.AtEnd, Text = "", Parent = offerCard })
@@ -2451,11 +2730,19 @@ end
local offerBuy = btn({ Size = UDim2.fromOffset(146, 52), AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -14, 0.5, 0), BackgroundColor3 = C.green, TextSize = 18, Text = "", Parent = offerCard }, function()
if offerItem then
remote:FireServer("Buy", offerItem.kind, offerItem.id)
+<<<<<<< HEAD
+ Audio.play("coins")
+ end
+ hideOffer()
+end)
+btn({ Size = UDim2.fromOffset(26, 26), Position = UDim2.new(1, -18, 0, -8), BackgroundColor3 = C.red, Text = "×", TextSize = 22, Parent = offerCard }, hideOffer)
+=======
playUiSound(DING, 0.5)
end
hideOffer()
end)
btn({ Size = UDim2.fromOffset(26, 26), Position = UDim2.new(1, -18, 0, -8), BackgroundColor3 = C.red, Text = "✕", TextSize = 14, Parent = offerCard }, hideOffer)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
bestOffer = function(bagWasFull)
local coins, lvl = player:GetAttribute("Coins") or 0, player:GetAttribute("Level") or 1
@@ -2507,7 +2794,11 @@ showOffer = function(o)
offerIcon.Text = o.icon
offerTitle.Text = o.title
offerDesc.Text = o.desc
+<<<<<<< HEAD
+ offerBuy.Text = ("Купить · %s ⚪"):format(fmt(o.price))
+=======
offerBuy.Text = ("Купить · %s 💰"):format(fmt(o.price))
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
offerCard.Visible = true
popIn(offerCard, 0.6)
task.delay(9, function()
@@ -2532,9 +2823,16 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
elseif action == "TeleportFade" then
teleportLoading(a, b)
elseif action == "Cast" then
+ Audio.play("cast")
setState("waiting")
startCastCam(a, b)
elseif action == "CastFail" or action == "Cancel" or action == "Escaped" then
+<<<<<<< HEAD
+ if action == "Escaped" then
+ Audio.play("escape")
+ end
+=======
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
if action == "CastFail" and castTool and castTool.Parent then
castTool.Grip = gripCF(REST_ANGLE) -- сервер удочку не трогал, а у нас она в замахе
end
@@ -2551,17 +2849,32 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
mg.pos, mg.dir = 0, 1
placeZone()
updatePips()
+ Audio.play("bite")
setState("bite")
elseif action == "Caught" then
setState("idle")
showCatch(a, b)
- playUiSound(DING, 0.5)
+ Audio.play("catchSplash")
+ local r = Config.Rarities[a.rarity]
+ Audio.play((r and r.rank >= 4) and "fanfare" or "catch")
+ if a.mutation then
+ Audio.play("sparkle")
+ end
elseif action == "Sold" then
+<<<<<<< HEAD
+ Audio.play("coins")
+ if tutorialStep() == 3 then
+ advanceTutorial(Config.TutorialDone)
+ end
+ floatText("+" .. fmt(a) .. " ⚪", C.gold)
+ notify(("⚪ +%s"):format(fmt(a)), Color3.fromRGB(120, 255, 140))
+=======
if tutorialStep() == 3 then
advanceTutorial(Config.TutorialDone)
end
floatText("+" .. fmt(a) .. " 💰", C.gold)
notify(("💰 +%s"):format(fmt(a)), Color3.fromRGB(120, 255, 140))
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
-- монеты приходят атрибутом чуть позже события, поэтому предложение — с задержкой
local wasFull = offerState.bagWasFull
offerState.bagWasFull = false
@@ -2590,17 +2903,30 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
refreshDots()
refreshTracker()
elseif action == "QuestDone" then
+<<<<<<< HEAD
+ notify(("✅ %s +%s ⚪ +%s XP"):format(questText(a, b), fmt(c), fmt(d or 0)), Color3.fromRGB(120, 255, 140))
+ Audio.play("quest")
+ elseif action == "ChainDone" then
+ floatText("🏆 Цепочка пройдена!", C.gold)
+ notify(("🎁 %s: +%s ⚪ +%s XP%s"):format(a, fmt(b), fmt(c), d and (" + " .. d) or ""), C.gold)
+ Audio.play("fanfare")
+=======
notify(("✅ %s +%s 💰 +%s XP"):format(questText(a, b), fmt(c), fmt(d or 0)), Color3.fromRGB(120, 255, 140))
playUiSound(DING, 0.6)
elseif action == "ChainDone" then
floatText("🏆 Цепочка пройдена!", C.gold)
notify(("🎁 %s: +%s 💰 +%s XP%s"):format(a, fmt(b), fmt(c), d and (" + " .. d) or ""), C.gold)
playUiSound(DING, 0.8)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
elseif action == "ComboLost" then
notify(("💔 Серия из %d прервана"):format(a), Color3.fromRGB(255, 130, 110))
elseif action == "BossStart" then
notify(("👑 %s в мире «%s»! Ловите всем сервером"):format(a, b), C.gold)
+<<<<<<< HEAD
+ Audio.play("quest")
+=======
playUiSound(DING, 0.8)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
elseif action == "BossHit" then
floatText(("⚔ -%d боссу"):format(a), Color3.fromRGB(255, 130, 100))
elseif action == "BossDone" then
@@ -2610,7 +2936,11 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
notify(("🌊 %s ушёл на глубину…"):format(b), C.muted)
end
elseif action == "BossReward" then
+<<<<<<< HEAD
+ notify(("🎁 За босса: +%s ⚪ +%s XP%s"):format(fmt(a), fmt(b), c and (" + " .. c) or ""), Color3.fromRGB(120, 255, 140))
+=======
notify(("🎁 За босса: +%s 💰 +%s XP%s"):format(fmt(a), fmt(b), c and (" + " .. c) or ""), Color3.fromRGB(120, 255, 140))
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
elseif action == "OpenShop" then
shopWin.open("rods")
elseif action == "OpenQuests" then
diff --git a/install/7_WorldBuilder_ServerScriptService.rbxmx b/install/7_WorldBuilder_ServerScriptService.rbxmx
index e519f67..9d020dc 100644
--- a/install/7_WorldBuilder_ServerScriptService.rbxmx
+++ b/install/7_WorldBuilder_ServerScriptService.rbxmx
@@ -1828,9 +1828,29 @@ local function spawnNpc(spot, parent)
w.C0 = head.CFrame:Inverse() * p.CFrame
w.Parent = p
p.Parent = rig
+<<<<<<< HEAD
+ return p
+ end
+ if spot:GetAttribute("Look") == "Elder" then
+ -- Старейшина Ворон: седые волосы и борода (цвет HatColor), чёрная повязка на глазу
+ local function elderPart(size, offset, color, shape)
+ local p = hatPart(size, offset, shape or Enum.PartType.Block)
+ p.Color = color
+ p.Material = Enum.Material.SmoothPlastic
+ end
+ elderPart(V(1.25, 0.35, 1.25), CFrame.new(0, 0.55, 0.05), colors.hat)
+ elderPart(V(1.0, 0.75, 0.35), CFrame.new(0, -0.55, -0.5), colors.hat)
+ elderPart(V(0.32, 0.3, 0.08), CFrame.new(0.22, 0.12, -0.6), Color3.fromRGB(20, 20, 22))
+ elderPart(V(1.24, 0.08, 1.24), CFrame.new(0, 0.18, 0) * CFrame.Angles(0, 0, math.rad(-12)), Color3.fromRGB(20, 20, 22))
+ else
+ hatPart(V(0.15, 2.0, 2.0), CFrame.new(0, 0.55, 0) * CFrame.Angles(0, 0, math.rad(90)), Enum.PartType.Cylinder)
+ hatPart(V(0.6, 1.35, 1.35), CFrame.new(0, 0.85, 0) * CFrame.Angles(0, 0, math.rad(90)), Enum.PartType.Cylinder)
+ end
+=======
end
hatPart(V(0.15, 2.0, 2.0), CFrame.new(0, 0.55, 0) * CFrame.Angles(0, 0, math.rad(90)), Enum.PartType.Cylinder)
hatPart(V(0.6, 1.35, 1.35), CFrame.new(0, 0.85, 0) * CFrame.Angles(0, 0, math.rad(90)), Enum.PartType.Cylinder)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
local action = spot:GetAttribute("NpcAction")
if action then
diff --git a/install/8_Loading_ReplicatedFirst.rbxmx b/install/8_Loading_ReplicatedFirst.rbxmx
index ad71606..3504392 100644
--- a/install/8_Loading_ReplicatedFirst.rbxmx
+++ b/install/8_Loading_ReplicatedFirst.rbxmx
@@ -43,13 +43,16 @@ local gui = new("ScreenGui", {
Name = "LoadingScreen", ResetOnSpawn = false, IgnoreGuiInset = true, DisplayOrder = 200,
ZIndexBehavior = Enum.ZIndexBehavior.Sibling, Parent = player:WaitForChild("PlayerGui"),
})
--- фон: арт лобби (временная заглушка); пока картинка грузится, виден тёплый закатный градиент
-local BG_IMAGE = "rbxassetid://118616665961176"
-local root = new("CanvasGroup", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = Color3.fromRGB(255, 190, 120), BorderSizePixel = 0, Parent = gui })
+-- фон: заставка «Рыболовная лихорадка»; пока картинка грузится, виден голубой градиент.
+-- Градиент — на отдельной подложке: UIGradient на самой CanvasGroup тонирует всё содержимое и затемнял картинку.
+-- Свет и цветокоррекция сцены на экранный интерфейс не действуют, их не трогаем.
+local BG_IMAGE = "rbxassetid://82266337853896" -- осветлённая и более насыщенная версия заставки
+local root = new("CanvasGroup", { Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, BorderSizePixel = 0, Parent = gui })
+local backdrop = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = Color3.new(1, 1, 1), BorderSizePixel = 0, Parent = root })
new("UIGradient", {
Rotation = 90,
- Color = ColorSequence.new(Color3.fromRGB(120, 200, 255), Color3.fromRGB(255, 170, 110)),
- Parent = root,
+ Color = ColorSequence.new(Color3.fromRGB(70, 140, 230), Color3.fromRGB(40, 70, 150)),
+ Parent = backdrop,
})
local bg = new("ImageLabel", {
Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, Image = BG_IMAGE,
@@ -62,13 +65,14 @@ end)
-- плашка снизу: куда идём, полоска загрузки, совет
local panel = new("Frame", {
AnchorPoint = Vector2.new(0.5, 1), Position = UDim2.new(0.5, 0, 1, -28), Size = UDim2.fromOffset(560, 118),
- BackgroundColor3 = Color3.fromRGB(70, 40, 22), BackgroundTransparency = 0.18, BorderSizePixel = 0, Parent = root,
+ BackgroundColor3 = Color3.new(1, 1, 1), BackgroundTransparency = 0.12, BorderSizePixel = 0, Parent = root,
})
new("UICorner", { CornerRadius = UDim.new(0, 18), Parent = panel })
new("UIStroke", { Color = GOLD, Thickness = 3, Transparency = 0.1, Parent = panel })
+-- тёмно-синяя плашка под ночное небо заставки, золотая обводка — как у заголовка
new("UIGradient", {
Rotation = 90,
- Color = ColorSequence.new(Color3.fromRGB(150, 95, 50), Color3.fromRGB(95, 55, 28)),
+ Color = ColorSequence.new(Color3.fromRGB(40, 66, 140), Color3.fromRGB(20, 32, 78)),
Parent = panel,
})
local float = new("TextLabel", {
@@ -80,10 +84,10 @@ local title = new("TextLabel", {
Text = "", TextColor3 = Color3.fromRGB(255, 240, 200), TextScaled = true, TextXAlignment = Enum.TextXAlignment.Left,
Font = Enum.Font.FredokaOne, Parent = panel,
})
-new("UIStroke", { Color = Color3.fromRGB(60, 30, 10), Thickness = 2, Parent = title })
+new("UIStroke", { Color = Color3.fromRGB(15, 22, 55), Thickness = 2, Parent = title })
local barBack = new("Frame", {
AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 62), Size = UDim2.new(1, -36, 0, 16),
- BackgroundColor3 = Color3.fromRGB(40, 22, 10), BackgroundTransparency = 0.15, BorderSizePixel = 0, Parent = panel,
+ BackgroundColor3 = Color3.fromRGB(10, 16, 40), BackgroundTransparency = 0.15, BorderSizePixel = 0, Parent = panel,
})
new("UICorner", { CornerRadius = UDim.new(1, 0), Parent = barBack })
local bar = new("Frame", { Size = UDim2.fromScale(0, 1), BackgroundColor3 = GOLD, BorderSizePixel = 0, Parent = barBack })
@@ -91,7 +95,7 @@ new("UICorner", { CornerRadius = UDim.new(1, 0), Parent = bar })
new("UIGradient", { Color = ColorSequence.new(Color3.fromRGB(255, 230, 120), Color3.fromRGB(255, 160, 60)), Parent = bar })
local tip = new("TextLabel", {
Position = UDim2.fromOffset(18, 86), Size = UDim2.new(1, -36, 0, 22), BackgroundTransparency = 1,
- Text = "", TextColor3 = Color3.fromRGB(255, 228, 185), TextScaled = true,
+ Text = "", TextColor3 = Color3.fromRGB(205, 222, 255), TextScaled = true,
Font = Enum.Font.GothamMedium, Parent = panel,
})
@@ -122,7 +126,7 @@ end)
local hiding = false
gui:GetAttributeChangedSignal("Visible"):Connect(function()
-- новый телепорт мог прийти, пока экран ещё уходил: тогда возвращаем его
- if gui:GetAttribute("Visible") and (hiding or not gui.Enabled) then
+ if gui:GetAttribute("Visible") then
hiding = false
showTip()
gui.Enabled = true
diff --git a/install/INSTALL.lua b/install/INSTALL.lua
index 054f768..5ade575 100644
--- a/install/INSTALL.lua
+++ b/install/INSTALL.lua
@@ -374,6 +374,20 @@ Config.QuestKinds = {
perfectCast = { text = "Забрось в зелёную зону %d %s", forms = TIMES, coins = 8, xp = 6 },
combo = { text = "Набери серию из %d рыб", coins = 12, xp = 10, max = 15 },
sell = { text = "Продай %d %s", forms = FISH, coins = 3, xp = 3 },
+<<<<<<< HEAD
+ earn = { text = "Заработай %d ⚪ на продаже", coins = 0.25, xp = 0.2, byLevel = true },
+ buy = { text = "Купи что-нибудь в магазине", coins = 40, xp = 30, max = 1 },
+ boss = { text = "Нанеси боссу %d урона", coins = 15, xp = 12 },
+}
+Config.QuestChains = {
+ { name = "🎣 Утренний клёв", steps = { { "catch", 3 }, { "perfectCast", 2 }, { "sell", 3 }, { "catch", 5 }, { "uncommon", 1 } } },
+ { name = "🔥 Без промаха", steps = { { "perfect", 3 }, { "combo", 3 }, { "catch", 6 }, { "earn", 80 }, { "combo", 5 } } },
+ { name = "💎 Охота за редкостью", steps = { { "uncommon", 3 }, { "perfectCast", 3 }, { "rare", 1 }, { "sell", 8 }, { "buy", 1 } } },
+ { name = "🏆 Мастер озера", steps = { { "combo", 6 }, { "catch", 10 }, { "perfect", 6 }, { "rare", 2 }, { "earn", 300 } } },
+}
+Config.QuestTierGrowth = 0.5 -- каждый следующий круг цепочек: цели ×(1 + 0.5 · номер круга)
+Config.ChainBonus = { coins = 120, xp = 100, potion = "Luck1" } -- за всю цепочку (растёт с уровнем и кругом)
+=======
earn = { text = "Заработай %d 💰 на продаже", coins = 0.25, xp = 0.2, byLevel = true },
buy = { text = "Купи что-нибудь в магазине", coins = 40, xp = 30, max = 1 },
boss = { text = "Нанеси боссу %d урона", coins = 15, xp = 12 },
@@ -406,8 +420,29 @@ Config.Boss = {
World3 = { name = "Ледяной левиафан", fish = "Leviathan", mutation = "Rainbow", scale = 2.5 },
},
}
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
--- ежедневная награда (7 дней по кругу), монеты растут с уровнем
+---------------------------------------------------------------- серия улова
+-- каждая рыба подряд без срыва: +10% к цене и опыту следующей, до ×2;
+-- срыв, ушедшая рыба или timeout секунд без улова — серия сгорает
+Config.Combo = { step = 0.1, max = 2.0, timeout = 90 }
+
+---------------------------------------------------------------- босс озера
+-- раз в interval секунд в мир, где больше всего игроков, приплывает босс. Его ловят всем сервером:
+-- каждая пойманная там рыба наносит урон = ранг редкости (+1 за подсечку без промаха).
+-- Если за duration секунд урона хватило — награда всем, кто помог (× mult мира, минимум 40% за малый вклад)
+Config.Boss = {
+ firstDelay = 240, interval = 600, duration = 180,
+ hpPerPlayer = 12,
+ reward = { coins = 300, xp = 250, potion = "Luck1" },
+ worlds = {
+ World1 = { name = "Сом-великан", fish = "Som", mutation = "Golden", scale = 5 },
+ World2 = { name = "Королевская акула", fish = "Shark", mutation = "Golden", scale = 3 },
+ World3 = { name = "Ледяной левиафан", fish = "Leviathan", mutation = "Rainbow", scale = 2.5 },
+ },
+}
+
+-- ежедневная награда (7 дней по кругу), серебро растёт с уровнем
Config.DailyRewards = {
{ coins = 100 },
{ coins = 200 },
@@ -423,25 +458,124 @@ Config.Events = {
{ id = "Bite", name = "⚡ Клёвый час", desc = "Рыба клюёт в 2 раза быстрее", duration = 180, speed = 0.5 },
{ id = "Luck", name = "🍀 Удачный ветер", desc = "Удача +50% для всех", duration = 180, luck = 0.5 },
{ id = "Stars", name = "🌟 Звездопад", desc = "Мутации в 3 раза чаще", duration = 180, mutation = 3 },
- { id = "Fair", name = "💰 Рыбная ярмарка", desc = "Рыба продаётся на 50% дороже", duration = 180, sell = 1.5 },
+ { id = "Fair", name = "🐟 Рыбная ярмарка", desc = "Рыба продаётся на 50% дороже", duration = 180, sell = 1.5 },
}
Config.EventFirstDelay = 120
Config.EventGapMin = 420
Config.EventGapMax = 720
+---------------------------------------------------------------- время суток
+-- одни сутки длятся length секунд реального времени; время общее для всего сервера
+Config.DayNight = {
+ enabled = true,
+ length = 1200, -- 20 минут на сутки
+ startClock = 9, -- во сколько начинается день при запуске сервера
+ nightLuck = 0.10, -- ночью удача +10%
+}
+
+-- время на часах в момент serverTime (workspace:GetServerTimeNow()), dayStart — атрибут workspace "DayStart"
+function Config.ClockAt(serverTime, dayStart)
+ local d = Config.DayNight
+ return (d.startClock + (serverTime - (dayStart or serverTime)) / d.length * 24) % 24
+end
+
+-- 0 днём, 1 глубокой ночью, плавно на рассвете и закате
+function Config.Nightness(clock)
+ if clock >= 7 and clock <= 17.5 then
+ return 0
+ elseif clock > 17.5 and clock < 20 then
+ return (clock - 17.5) / 2.5
+ elseif clock >= 5 and clock < 7 then
+ return 1 - (clock - 5) / 2
+ end
+ return 1
+end
+
+function Config.IsNight(clock)
+ return Config.Nightness(clock) >= 0.5
+end
+
+---------------------------------------------------------------- погода
+-- меняется на всём сервере; weight — как часто выпадает, duration — сколько длится (секунды)
+-- luck / speed / mutation — бонусы к рыбалке, пока погода держится
+-- names — как погода называется в отдельных мирах (во фьорде вместо дождя снег)
+Config.Weathers = {
+ { id = "Clear", name = "Ясно", icon = "☀", weight = 40, duration = { 240, 420 } },
+ { id = "Cloudy", name = "Пасмурно", icon = "☁", weight = 25, duration = { 180, 360 }, luck = 0.05, desc = "Удача +5%" },
+ { id = "Rain", name = "Дождь", icon = "🌧", weight = 20, duration = { 150, 300 }, speed = 0.85, desc = "Клюёт на 15% быстрее",
+ names = { World3 = "Снегопад" } },
+ { id = "Storm", name = "Гроза", icon = "⛈", weight = 8, duration = { 120, 240 }, luck = 0.25, speed = 0.9, desc = "Удача +25%",
+ names = { World3 = "Метель" } },
+ { id = "Fog", name = "Туман", icon = "🌫", weight = 7, duration = { 150, 300 }, mutation = 1.5, desc = "Мутации ×1.5" },
+}
+
+function Config.WeatherById(id)
+ for _, w in ipairs(Config.Weathers) do
+ if w.id == id then
+ return w
+ end
+ end
+ return Config.Weathers[1]
+end
+
+---------------------------------------------------------------- звуки
+-- ID из Creator Store: эффекты — Pro Sound Effects (официальная библиотека Roblox),
+-- музыка — APM и DistroKid (лицензированы для Roblox). volume — громкость, pitch — разброс высоты
+local function S(id, volume, extra)
+ local t = extra or {}
+ t.id = "rbxassetid://" .. id
+ t.volume = volume
+ return t
+end
+Config.Sounds = {
+ -- музыка
+ musicLobby = S(137023744071437, 0.35), -- The Ancient Lutes | Medieval Tavern Music
+ musicLobby2 = S(116079409060113, 0.35), -- The Lute Lament | Medieval Tavern Music
+ musicLake = S(1838853377, 0.3), -- Harp Fantasy
+ musicLake2 = S(86472274853159, 0.3), -- Calm Fantasy Atmosphere
+ musicNight = S(140195397978848, 0.3), -- Moonlit Meadow Whisper
+ -- окружение (петли)
+ birdsLake = S(9112877174, 0.35), -- Squam Lake 1
+ birdsPark = S(9113444360, 0.25), -- Birds Park 2
+ birdsJungle = S(9114892930, 0.3), -- Jungle Birds Ambience 3
+ crickets = S(9112764573, 0.3), -- Crickets Night 3
+ lakeWater = S(9116203162, 0.25), -- Lake Lap Water Movement 2
+ wind = S(9113286782, 0.18), -- Barstow Wind Light Blustery Low Howl 1
+ rainLight = S(9112852668, 0.45), -- Rain Continuous Drizzle 1
+ rainHeavy = S(9112853287, 0.55), -- Rain Heavy 1
+ fire = S(9112780193, 0.6, { roll = 30 }), -- Fireplace Constant Burning Flame 1 (слышно у костра)
+ thunder = { "rbxassetid://9116282875", "rbxassetid://9116282646", "rbxassetid://9116282791", "rbxassetid://9116282544" },
+ -- рыбалка
+ cast = S(9120718279, 0.5, { pitch = { 0.9, 1.1 } }), -- Whoosh Fast Swish By 1
+ bite = S(9112751536, 0.7, { pitch = { 0.9, 1.15 } }), -- Bubble Bloop High Pitched Cute 1
+ reel = S(9114454019, 0.4), -- Fishing Reel 4 (петля, пока тянешь)
+ catchSplash = S(9119293555, 0.6), -- Small Splash Shallow Water
+ catch = S(9126073001, 0.5), -- Bell Tone Ding
+ fanfare = S(1836473422, 0.45), -- Victory Fanfare Sting (редкая рыба)
+ sparkle = S(9114369623, 0.5), -- Fairy Dust 1 (мутация)
+ escape = S(9117944976, 0.5), -- Puddle Splash 2 (сорвалась)
+ -- интерфейс
+ click = S(15675032796, 0.5), -- Roblox_UI_Small_Click
+ open = S(9117231552, 0.45), -- Paper Scroll Unroll Handle 4
+ coins = S(9113849306, 0.6), -- Coins Or Keys Jingle 1
+ levelUp = S(1840525342, 0.5), -- Harp Glissando (A)
+ quest = S(9126073318, 0.5), -- Bell Tone Ding 2
+}
+Config.DefaultVolume = { music = 0.6, sfx = 0.8 }
+
---------------------------------------------------------------- донат (Robux)
-- ВАЖНО: впиши сюда ID своих пропусков и товаров с create.roblox.com.
-- Пока id = 0, кнопка покупки покажет подсказку, что товар не настроен.
Config.GamePasses = {
- { key = "VIP", id = 0, robux = 199, icon = "👑", name = "VIP", desc = "+25% удачи и монет, корона над головой" },
- { key = "DoubleCoins", id = 0, robux = 299, icon = "💰", name = "x2 Монеты", desc = "Вся рыба продаётся в 2 раза дороже" },
+ { key = "VIP", id = 0, robux = 199, icon = "👑", name = "VIP", desc = "+25% удачи и серебра, корона над головой" },
+ { key = "DoubleCoins", id = 0, robux = 299, icon = "⚪", name = "x2 Серебро", desc = "Вся рыба продаётся в 2 раза дороже" },
{ key = "LuckyCharm", id = 0, robux = 349, icon = "🍀", name = "Талисман удачи", desc = "+50% удачи навсегда" },
{ key = "BigBag", id = 0, robux = 149, icon = "🎒", name = "Бездонная сумка", desc = "+100 мест в любой сумке" },
}
Config.Products = {
- { key = "Coins1", id = 0, robux = 49, icon = "🪙", name = "Мешок монет", desc = "+1 000 монет (больше с уровнем)", coins = 1000 },
- { key = "Coins2", id = 0, robux = 199, icon = "💰", name = "Сундук монет", desc = "+5 000 монет (больше с уровнем)", coins = 5000 },
- { key = "Coins3", id = 0, robux = 599, icon = "🏆", name = "Гора золота", desc = "+20 000 монет (больше с уровнем)", coins = 20000 },
+ { key = "Coins1", id = 0, robux = 49, icon = "👝", name = "Кошель серебра", desc = "+1 000 серебра (больше с уровнем)", coins = 1000 },
+ { key = "Coins2", id = 0, robux = 199, icon = "⚪", name = "Сундук серебра", desc = "+5 000 серебра (больше с уровнем)", coins = 5000 },
+ { key = "Coins3", id = 0, robux = 599, icon = "🏆", name = "Гора золота", desc = "+20 000 серебра (больше с уровнем)", coins = 20000 },
{ key = "Luck", id = 0, robux = 99, icon = "🧪", name = "Супер-зелье удачи", desc = "+200% удачи на 15 минут", boost = 2.0, duration = 900 },
}
@@ -463,8 +597,105 @@ Config.TutorialDone = 4
function Config.HitsNeeded(rank)
return math.ceil(rank / 2)
end
+-- опыт до следующего уровня: до 8-го ≈ 3 600 (1,5–2 часа вместе с заказами гильдии);
+-- у старых сохранений уровень не понижается — копится только опыт внутри уровня
function Config.XPForLevel(level)
- return 60 + level * 60
+ return math.floor(50 * level ^ 1.6)
+end
+
+---------------------------------------------------------------- гильдия рыбаков
+-- три валюты: серебро (coins в данных), жемчуг (pearls), печати гильдии (seals — копятся для ранга)
+Config.Pearls = {
+ mutation = { Shiny = 1, Golden = 3, Rainbow = 10 }, -- за пойманную рыбу с мутацией
+ boss = 5, -- за победу над боссом
+ daily7 = 5, -- 7-й день ежедневной награды
+ rankUp = 10, -- за новый ранг
+}
+
+-- ранги: seals — сколько печатей нужно накопить, trial — испытание у Старейшины,
+-- orders — заказов на доске, traps — ловушек, discount — скидка у торговцев
+-- trial.kind: deliver (сдать рыбу из сумки), catch (поймать с условием), bossWin (участие в победе над боссом),
+-- dex (собрать коллекцию мира)
+Config.Guild = {
+ elder = "Старейшина Ворон",
+ ranks = {
+ { id = "F", name = "Ученик", seals = 0, orders = 3, color = Color3.fromRGB(150, 150, 150),
+ unlocks = "Мир 1, доска заказов" },
+ { id = "E", name = "Подмастерье", seals = 30, orders = 4, color = Color3.fromRGB(90, 190, 90), auto = true,
+ trial = { kind = "deliver", fish = "Okun", count = 5, text = "Сдать 5 окуней" },
+ unlocks = "🎣 Автоловля, 4-й заказ на доске" },
+ { id = "D", name = "Рыбак", seals = 120, orders = 4, color = Color3.fromRGB(70, 130, 230), auto = true, traps = 1,
+ trial = { kind = "catch", minRank = 3, weathers = { Rain = true, Storm = true }, count = 1, text = "Поймать «Редкую» рыбу в дождь или грозу" },
+ unlocks = "🏝 Мир 2 (и ур. 8), 🧺 ловушка" },
+ { id = "C", name = "Опытный рыбак", seals = 350, orders = 4, color = Color3.fromRGB(150, 80, 200), auto = true, traps = 2, discount = 0.05,
+ trial = { kind = "bossWin", count = 1, text = "Помочь одолеть босса озера" },
+ unlocks = "🧺 2 ловушки, скидка у торговцев 5%" },
+ { id = "B", name = "Мастер", seals = 900, orders = 4, color = Color3.fromRGB(200, 50, 45), auto = true, traps = 3, discount = 0.05,
+ trial = { kind = "dex", world = "World1", text = "Собрать всю коллекцию «Тихого озера»" },
+ unlocks = "❄ Мир 3 (и ур. 18), 🧺 3 ловушки" },
+ { id = "A", name = "Магистр", seals = 2000, orders = 4, color = Color3.fromRGB(230, 180, 60), auto = true, traps = 3, discount = 0.10,
+ trial = { kind = "catch", minRank = 4, night = true, count = 1, text = "Поймать «Эпическую» рыбу ночью" },
+ unlocks = "Титул «Магистр», скидка 10%" },
+ { id = "S", name = "Легенда", seals = 4500, orders = 4, color = Color3.fromRGB(255, 120, 200), auto = true, traps = 3, discount = 0.10, autoNoCap = true,
+ trial = { kind = "catch", minRank = 6, count = 1, text = "Поймать «Мифическую» рыбу" },
+ unlocks = "Золотой жетон, автоловля без ограничения редкости" },
+ },
+ -- миры требуют и уровень, и ранг (номер в списке ranks)
+ worldRank = { World2 = 3, World3 = 5 },
+ elderDistance = 22, -- взять испытание / сдать рыбу — рядом со Старейшиной или доской
+}
+
+-- заказы гильдии: личные, обновляются каждые period секунд (окно floor(os.time()/period)),
+-- один заказ можно перебросить за rerollPearls жемчуга. Награда растёт с рангом
+Config.Orders = {
+ period = 10800,
+ rerollPearls = 2,
+ pearlChance = 0.2, pearlsMin = 1, pearlsMax = 3,
+ coinsPerSeal = 12, -- серебро за заказ = печати × это × (1 + 0.5 · (ранг − 1))
+ -- weight — как часто выпадает; seals — печати {мин, макс}
+ kinds = {
+ deliver = { weight = 3, seals = { 5, 12 } },
+ heavy = { weight = 2, seals = { 8, 16 } },
+ weather = { weight = 1, seals = { 10, 20 } },
+ night = { weight = 1, seals = { 10, 22 } },
+ combo = { weight = 2, seals = { 8, 18 } },
+ perfect = { weight = 2, seals = { 6, 14 } },
+ },
+}
+
+-- наживка: 1 слот, 1 штука тратится на заброс. price — за пачку из pack штук; currency = "pearls" — за жемчуг
+Config.Baits = {
+ { id = "Worm", name = "Червь", icon = "🐛", price = 40, pack = 10, speed = 0.9, desc = "Клюёт на 10% быстрее" },
+ { id = "Larva", name = "Мотыль", icon = "🦐", price = 90, pack = 10, luck = 0.15, desc = "Удача +15%" },
+ { id = "Firefly", name = "Светлячок", icon = "✨", price = 120, pack = 10, nightLuck = 0.30, desc = "Ночью удача +30% (вместо +10%)" },
+ { id = "Blood", name = "Кровавая приманка", icon = "🩸", price = 400, pack = 10, rareWeight = 1.5, rank = 3, desc = "Редкие и выше попадаются в 1,5 раза чаще" },
+ { id = "Pearl", name = "Жемчужная блесна", icon = "🦪", price = 5, pack = 5, mutation = 2, currency = "pearls", desc = "Шанс мутаций ×2" },
+}
+
+-- автоловля (с ранга E): сервер сам забрасывает и вытаскивает, но со штрафами
+Config.AutoFish = {
+ luck = 0.6, -- удача ×0.6
+ maxRarity = 3, -- не выше «Редкой» (ранг S снимает)
+ slower = 1.5, -- каждая поимка на 50% дольше
+ reel = 2.5, -- секунд «вываживания» вместо мини-игры
+}
+
+-- ловушки-вентери (с ранга D): 1 рыба Мира 1 каждые every секунд, не больше max, копятся и офлайн
+Config.Traps = {
+ every = 900, max = 16,
+ world = "World1", rarities = { Common = 3, Uncommon = 1 }, -- вес редкостей
+}
+
+-- отдых: пока игрока нет, копится двойной опыт — 1 минута за каждые perOffline минут офлайн, не больше max
+Config.Rest = { perOffline = 4, max = 3600, mult = 2 }
+
+function Config.RankById(id)
+ for i, r in ipairs(Config.Guild.ranks) do
+ if r.id == id then
+ return r, i
+ end
+ end
+ return nil
end
---------------------------------------------------------------- помощники
@@ -1111,6 +1342,7 @@ local Debris = game:GetService("Debris")
local Config = require(ReplicatedStorage:WaitForChild("FishConfig"))
local Models = require(ReplicatedStorage:WaitForChild("GameModels"))
+local Guild = require(script.Parent:WaitForChild("Guild"))
local remote = ReplicatedStorage:FindFirstChild("GameEvent") or Instance.new("RemoteEvent")
remote.Name = "GameEvent"
@@ -1142,6 +1374,9 @@ local function defaultData()
chain = { index = 1, step = 1, progress = 0, tier = 0 }, daily = { last = 0, streak = 0 },
boostUntil = 0, boostBonus = 0,
totalCaught = 0, nextUid = 1, receipts = {},
+ settings = { music = Config.DefaultVolume.music, sfx = Config.DefaultVolume.sfx },
+ -- гильдия: жемчуг, печати, отдых (ранг, заказы, наживку, ловушки дополняет Guild.defaults)
+ pearls = 0, seals = 0, rest = 0,
}
end
@@ -1203,6 +1438,17 @@ local function ev(field, default)
return (currentEvent and currentEvent[field]) or default
end
+-- погода и время суток (их ведёт WeatherServer через атрибуты workspace)
+local function weather()
+ return Config.WeatherById(workspace:GetAttribute("Weather"))
+end
+local function isNight()
+ if not Config.DayNight.enabled then
+ return false
+ end
+ return Config.IsNight(Config.ClockAt(workspace:GetServerTimeNow(), workspace:GetAttribute("DayStart")))
+end
+
---------------------------------------------------------------- расчёты
local function rodLevel(data, rodId)
@@ -1232,7 +1478,7 @@ local function totalLuck(player, data)
if hasPass(player, "LuckyCharm") then
l += 0.5
end
- return l + ev("luck", 0)
+ return l + ev("luck", 0) + (weather().luck or 0) + (isNight() and Config.DayNight.nightLuck or 0)
end
local function bagCapacity(player, data)
@@ -1366,10 +1612,11 @@ local function updateStats(player)
player:SetAttribute("Tutorial", data.tutorial or (data.totalCaught > 0 and Config.TutorialDone or 0))
player:SetAttribute("Mastery", masteryCount(data))
player:SetAttribute("Passes", table.concat(ps, ","))
+ Guild.attrs(player, data)
local ls = player:FindFirstChild("leaderstats")
if ls then
- ls["Монеты"].Value = data.coins
+ ls["Серебро"].Value = data.coins
ls["Уровень"].Value = data.level
ls["Улов"].Value = data.totalCaught
end
@@ -1393,6 +1640,11 @@ local function addXp(player, data, amount)
end
end
+Guild.init({
+ profiles = profiles, notify = notify, updateStats = updateStats, addXp = addXp, sendInventory = sendInventory,
+ bagCapacity = bagCapacity, isNight = isNight, weather = weather, remote = remote,
+})
+
local function applyPotion(data, bonus, duration)
data.boostBonus = math.max(boostActive(data), bonus)
data.boostUntil = math.max(os.time(), data.boostUntil) + duration
@@ -1471,9 +1723,13 @@ local function claimDaily(player)
end
end
data.daily = { last = t, streak = streak }
+ if streak == 7 then
+ data.pearls += Config.Pearls.daily7
+ extra ..= (" + %d 🦪"):format(Config.Pearls.daily7)
+ end
updateStats(player)
sendQuests(player)
- notify(player, ("🎁 День %d: +%d 💰%s"):format(streak, coins, extra), GOLD)
+ notify(player, ("🎁 День %d: +%d ⚪%s"):format(streak, coins, extra), GOLD)
end
---------------------------------------------------------------- коллекция
@@ -1499,7 +1755,11 @@ local function claimCollection(player, worldId, rarity)
if rarity == "Master" then
local coins = Config.MasteryCoins * world.mult
data.coins += coins
+<<<<<<< HEAD
+ notify(player, ("🏆 «%s» собран! +%d ⚪"):format(world.name, coins), GOLD)
+=======
notify(player, ("🏆 «%s» собран! +%d 💰"):format(world.name, coins), GOLD)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
else
local r = Config.CollectionRewards[rarity]
if not r then
@@ -1507,7 +1767,11 @@ local function claimCollection(player, worldId, rarity)
end
data.coins += r.coins * world.mult
addXp(player, data, r.xp * world.mult)
+<<<<<<< HEAD
+ notify(player, ("📖 +%d ⚪ +%d XP"):format(r.coins * world.mult, r.xp * world.mult), GREEN)
+=======
notify(player, ("📖 +%d 💰 +%d XP"):format(r.coins * world.mult, r.xp * world.mult), GREEN)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
updateStats(player)
sendInventory(player)
@@ -1831,12 +2095,27 @@ local function stopFishing(player, tellClient)
end
end
+<<<<<<< HEAD
+-- mods: { bait = наживка из Config.Baits, maxRank = потолок редкости (автоловля) }
+local function rollFish(player, data, worldId, luckMult, mods)
+=======
local function rollFish(player, data, worldId, luckMult)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local zone = Config.Zones[worldId]
if not zone then
return nil
end
+<<<<<<< HEAD
+ mods = mods or {}
+ local bait = mods.bait
+ local base = totalLuck(player, data) + (bait and bait.luck or 0)
+ if bait and bait.nightLuck and isNight() then
+ base += bait.nightLuck - Config.DayNight.nightLuck -- светлячок: ночью +30% вместо обычных +10%
+ end
+ local luck = base * (luckMult or 1)
+=======
local luck = totalLuck(player, data) * (luckMult or 1)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local bonus = luck - 1
local weights, total = {}, 0
for i, f in ipairs(zone.fish) do
@@ -1845,6 +2124,12 @@ local function rollFish(player, data, worldId, luckMult)
if r.rank == 1 then
w = r.weight / math.max(1, luck)
end
+ if bait and bait.rareWeight and r.rank >= 3 then
+ w *= bait.rareWeight
+ end
+ if mods.maxRank and r.rank > mods.maxRank then
+ w = 0
+ end
weights[i] = w
total += w
end
@@ -1859,7 +2144,7 @@ local function rollFish(player, data, worldId, luckMult)
end
local mutation = nil
for _, m in ipairs(Config.Mutations) do
- if rng:NextNumber() < m.chance * luck * ev("mutation", 1) then
+ if rng:NextNumber() < m.chance * luck * ev("mutation", 1) * (weather().mutation or 1) * (bait and bait.mutation or 1) then
mutation = m
break
end
@@ -1915,12 +2200,24 @@ local function flyBobber(s, tool, target, dur, arc)
end
end
+<<<<<<< HEAD
+local autoFishing = {} -- [player] = токен работающей автоловли
+local setAutoFish, grantFish -- объявлены ниже
+
+=======
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local function onCast(player, power)
power = math.clamp(tonumber(power) or 0.6, 0, 1)
local data = profiles[player]
if not data then
return
end
+ if autoFishing[player] then
+ -- клик удочкой во время автоловли — выключить её
+ setAutoFish(player, false)
+ remote:FireClient(player, "CastFail")
+ return
+ end
if fishing[player] then
stopFishing(player, true)
return
@@ -1953,7 +2250,12 @@ local function onCast(player, power)
local stats = Config.RodStats(data.rod, rodLevel(data))
local perfect = power >= Config.CastPerfect[1] and power <= Config.CastPerfect[2]
+<<<<<<< HEAD
+ local bait = Guild.useBait(player, data) -- 1 штука наживки на заброс
+ local fish = rollFish(player, data, world.id, perfect and Config.CastPerfectLuck or 1, { bait = bait })
+=======
local fish = rollFish(player, data, world.id, perfect and Config.CastPerfectLuck or 1)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
if not fish then
remote:FireClient(player, "CastFail")
return
@@ -1983,7 +2285,7 @@ local function onCast(player, power)
end
s.stage = "waiting"
- local waitTime = rng:NextNumber(Config.BiteTimeMin, Config.BiteTimeMax) * stats.speed * ev("speed", 1)
+ local waitTime = rng:NextNumber(Config.BiteTimeMin, Config.BiteTimeMax) * stats.speed * ev("speed", 1) * (weather().speed or 1) * (bait and bait.speed or 1)
task.wait(waitTime)
if fishing[player] ~= s then
return
@@ -2054,7 +2356,24 @@ local function onCatch(player, success, misses)
return
end
gripSequence(tool, { { 85, 0.15 }, { REST_ANGLE, 0.45 } })
+ grantFish(player, data, s.fish, { perfect = s.perfect, misses = misses, fromPos = fromPos })
+end
+<<<<<<< HEAD
+-- рыба поймана (руками или автоловлей): в сумку, опыт, коллекция, задания, гильдия, босс.
+-- ctx: { perfect, misses, fromPos, auto }; у автоловли нет серии и бонусов за точность
+grantFish = function(player, data, fish, ctx)
+ local streak = combo[player] or 0
+ local comboMult = 1
+ if not ctx.auto then
+ -- серия: каждая рыба подряд дороже и даёт больше опыта
+ comboMult = math.min(Config.Combo.max, 1 + Config.Combo.step * streak)
+ fish.value = math.floor(fish.value * comboMult + 0.5)
+ fish.xp = math.floor(fish.xp * comboMult + 0.5)
+ setCombo(player, streak + 1)
+ end
+ fish.xp = math.floor(fish.xp * Guild.xpMult(data)) -- бонус отдыха: двойной опыт
+=======
-- серия: каждая рыба подряд дороже и даёт больше опыта
local fish = s.fish
local streak = combo[player] or 0
@@ -2062,6 +2381,7 @@ local function onCatch(player, success, misses)
fish.value = math.floor(fish.value * comboMult + 0.5)
fish.xp = math.floor(fish.xp * comboMult + 0.5)
setCombo(player, streak + 1)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
table.insert(data.items, {
uid = data.nextUid, id = fish.id, name = fish.name, rarity = fish.rarity,
weight = fish.weight, value = fish.value, mutation = fish.mutation,
@@ -2084,10 +2404,14 @@ local function onCatch(player, success, misses)
addXp(player, data, fish.xp * (isNew and 2 or 1))
updateStats(player)
sendInventory(player)
- if fromPos then
- showFishFlight(player, fish, fromPos)
+ if ctx.fromPos then
+ showFishFlight(player, fish, ctx.fromPos)
end
+<<<<<<< HEAD
+ remote:FireClient(player, "Caught", fish, { new = isNew, record = isRecord, combo = comboMult, streak = ctx.auto and 0 or streak + 1, auto = ctx.auto })
+=======
remote:FireClient(player, "Caught", fish, { new = isNew, record = isRecord, combo = comboMult, streak = streak + 1 })
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local rank = Config.Rarities[fish.rarity].rank
questProgress(player, "catch", 1)
@@ -2097,8 +2421,164 @@ local function onCatch(player, success, misses)
if rank >= 3 then
questProgress(player, "rare", 1)
end
+<<<<<<< HEAD
+ if not ctx.auto then
+ if ctx.misses == 0 then
+ questProgress(player, "perfect", 1)
+ end
+ if ctx.perfect then
+ questProgress(player, "perfectCast", 1)
+ end
+ questProgress(player, "combo", streak + 1, true)
+ end
+ Guild.onCatch(player, data, fish, {
+ weather = workspace:GetAttribute("Weather"), night = isNight(),
+ perfect = ctx.perfect and not ctx.auto, streak = (not ctx.auto) and streak + 1 or 0,
+ })
+
+ local hrp = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
+ bossHit(player, hrp and Config.WorldAt(hrp.Position), rank + (ctx.misses == 0 and 1 or 0))
+end
+
+---------------------------------------------------------------- автоловля (с ранга E)
+-- сервер сам забрасывает и вытаскивает: удача ×0.6, не выше «Редкой», без серии и бонуса заброса,
+-- каждая поимка на 50% дольше. Стоп — полная сумка, отошёл от места, сменил мир, убрал удочку
+
+local function autoFishLoop(player, token)
+ local A = Config.AutoFish
+ local home = nil -- где включили: отошёл дальше 10 studs или сменил мир — стоп
+ local function stop(reason)
+ if autoFishing[player] == token then
+ setAutoFish(player, false, reason)
+ end
+ end
+ while autoFishing[player] == token do
+ local data = profiles[player]
+ local char = player.Character
+ local hrp = char and char:FindFirstChild("HumanoidRootPart")
+ local tool = char and char:FindFirstChildOfClass("Tool")
+ if not data or not hrp then
+ return stop(nil)
+ end
+ if not tool or not tool:GetAttribute("IsRod") then
+ return stop("🎣 Автоловля: возьми удочку в руки")
+ end
+ local world = Config.WorldAt(hrp.Position)
+ if not world or Config.CanCastFrom(world, hrp.Position) ~= true then
+ return stop("🌊 Автоловля: встань у воды")
+ end
+ home = home or { pos = hrp.Position, world = world.id }
+ if world.id ~= home.world or (hrp.Position - home.pos).Magnitude > 10 then
+ return stop("🎣 Автоловля остановлена: ты отошёл")
+ end
+ if #data.items >= bagCapacity(player, data) then
+ return stop("🎒 Сумка полна — автоловля остановлена")
+ end
+ local target, dist = findWater(hrp, world, 0.6)
+ if not target then
+ return stop("🌊 Автоловля: встань у воды")
+ end
+ if fishing[player] then
+ task.wait(0.5)
+ continue
+ end
+
+ local bait = Guild.useBait(player, data)
+ local fish = rollFish(player, data, world.id, A.luck, { bait = bait, maxRank = (not Guild.rank(data).autoNoCap) and A.maxRarity or nil })
+ local s = { stage = "casting", fish = fish, tool = tool, auto = true }
+ fishing[player] = s
+ local splashAt = target + Vector3.new(0, 0.15, 0)
+ local tw = tweenGrip(tool, 8, 0.15)
+ if tw then
+ tw.Completed:Wait()
+ end
+ if fishing[player] == s then
+ flyBobber(s, tool, splashAt, 0.35 + dist * 0.018, 2 + dist * 0.3)
+ tweenGrip(tool, REST_ANGLE - 5, 0.4)
+ end
+ if fishing[player] ~= s then
+ if s.bobber then
+ s.bobber:Destroy()
+ end
+ continue
+ end
+ s.stage = "waiting"
+ local stats = Config.RodStats(data.rod, rodLevel(data))
+ local waitTime = rng:NextNumber(Config.BiteTimeMin, Config.BiteTimeMax) * stats.speed * ev("speed", 1)
+ * (weather().speed or 1) * (bait and bait.speed or 1) * A.slower
+ local t0, bit = os.clock(), false
+ while fishing[player] == s and autoFishing[player] == token and os.clock() - t0 < waitTime + A.reel do
+ local h = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
+ if not h or (h.Position - home.pos).Magnitude > 10 then
+ break
+ end
+ if not bit and os.clock() - t0 >= waitTime then
+ -- клюёт: всплеск и удочка дёргается до конца «вываживания»
+ bit = true
+ if s.bobber and s.bobber.PrimaryPart then
+ splash(s.bobber.PrimaryPart, 25)
+ playSound(s.bobber.PrimaryPart, SPLASH_SOUND, 0.35)
+ end
+ end
+ if bit then
+ tweenGrip(tool, (math.floor(os.clock() * 8) % 2 == 0) and 38 or 18, 0.12)
+ end
+ task.wait(0.13)
+ end
+ if fishing[player] ~= s or autoFishing[player] ~= token or not bit or os.clock() - t0 < waitTime + A.reel - 0.05 then
+ if fishing[player] == s then
+ stopFishing(player, false)
+ end
+ continue -- наверху цикла проверим, почему прервались (отошёл, выключил)
+ end
+ fishing[player] = nil
+ local fromPos = s.bobber and s.bobber.PrimaryPart and s.bobber.PrimaryPart.Position
+ if s.bobber then
+ s.bobber:Destroy()
+ end
+ gripSequence(tool, { { 85, 0.15 }, { REST_ANGLE, 0.45 } })
+ grantFish(player, data, fish, { auto = true, fromPos = fromPos })
+ task.wait(1.2)
+ end
+end
+
+setAutoFish = function(player, on, reason)
+ local data = profiles[player]
+ if on then
+ if not data then
+ return
+ end
+ if not Guild.rank(data).auto then
+ notify(player, "🔒 Автоловля — с ранга гильдии E", RED)
+ player:SetAttribute("AutoFish", false)
+ return
+ end
+ if autoFishing[player] then
+ return
+ end
+ if fishing[player] then
+ stopFishing(player, true)
+ end
+ local token = {}
+ autoFishing[player] = token
+ player:SetAttribute("AutoFish", true)
+ notify(player, "🎣 Автоловля включена", GREEN)
+ task.spawn(autoFishLoop, player, token)
+ else
+ player:SetAttribute("AutoFish", false)
+ if not autoFishing[player] then
+ return
+ end
+ autoFishing[player] = nil
+ local s = fishing[player]
+ if s and s.auto then
+ stopFishing(player, false)
+ end
+ notify(player, reason or "🎣 Автоловля выключена", Color3.fromRGB(255, 200, 120))
+=======
if misses == 0 then
questProgress(player, "perfect", 1)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
if s.perfect then
questProgress(player, "perfectCast", 1)
@@ -2183,9 +2663,13 @@ local function buy(player, kind, id)
notify(player, "★★★★★ Максимум", GOLD)
return
end
- local cost = Config.UpgradeCost(rod, lvl)
+ local cost = Guild.price(data, Config.UpgradeCost(rod, lvl)) -- скидка ранга гильдии
if data.coins < cost then
+<<<<<<< HEAD
+ notify(player, "Нужно " .. cost .. " ⚪", RED)
+=======
notify(player, "Нужно " .. cost .. " 💰", RED)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
return
end
data.coins -= cost
@@ -2208,11 +2692,17 @@ local function buy(player, kind, id)
notify(player, "🔒 Нужен ур. " .. potion.level, RED)
return
end
+<<<<<<< HEAD
+ local price = Guild.price(data, potion.price)
+ if data.coins < price then
+ notify(player, "Нужно " .. price .. " ⚪", RED)
+=======
if data.coins < potion.price then
notify(player, "Нужно " .. potion.price .. " 💰", RED)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
return
end
- data.coins -= potion.price
+ data.coins -= price
applyPotion(data, potion.bonus, potion.duration)
updateStats(player)
notify(player, ("🍀 +%d%% удачи, %d мин"):format(potion.bonus * 100, potion.duration / 60), GREEN)
@@ -2237,11 +2727,17 @@ local function buy(player, kind, id)
notify(player, "🔒 Нужен ур. " .. item.level, RED)
return
end
+<<<<<<< HEAD
+ local price = Guild.price(data, item.price)
+ if data.coins < price then
+ notify(player, "Нужно " .. price .. " ⚪", RED)
+=======
if data.coins < item.price then
notify(player, "Нужно " .. item.price .. " 💰", RED)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
return
end
- data.coins -= item.price
+ data.coins -= price
owned[id] = true
bought = true
notify(player, "✅ " .. item.name, GREEN)
@@ -2288,6 +2784,14 @@ local function teleportTo(player, worldId)
end
if data.level < world.level then
notify(player, ("🔒 %s: ур. %d"):format(world.name, world.level), RED)
+<<<<<<< HEAD
+ return
+ end
+ local okRank, why = Guild.canEnter(data, world.id)
+ if not okRank then
+ notify(player, why, RED)
+=======
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
return
end
markerName = world.id .. "Spawn"
@@ -2353,6 +2857,10 @@ ProximityPromptService.PromptTriggered:Connect(function(prompt, player)
remote:FireClient(player, "OpenRobux", "passes")
elseif action == "RobuxProducts" then
remote:FireClient(player, "OpenRobux", "products")
+ elseif action == "Guild" or action == "Orders" or action == "Bait" or action == "Traps" then
+ -- Старейшина, доска заказов, лавка наживки: окно гильдии на нужной вкладке
+ Guild.sendState(player)
+ remote:FireClient(player, "OpenGuild", ({ Guild = "rank", Orders = "orders", Bait = "bait", Traps = "traps" })[action])
end
end)
@@ -2382,13 +2890,21 @@ remote.OnServerEvent:Connect(function(player, action, a, b)
if nearSeller(player) then
sellItems(player, a)
else
+<<<<<<< HEAD
+ notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
+=======
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
elseif action == "SellAll" then
if nearSeller(player) then
sellItems(player, nil)
else
+<<<<<<< HEAD
+ notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
+=======
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
elseif action == "Teleport" then
teleportTo(player, a)
@@ -2399,6 +2915,19 @@ remote.OnServerEvent:Connect(function(player, action, a, b)
elseif action == "RequestInventory" then
sendInventory(player)
sendQuests(player)
+ elseif action == "Settings" then
+ -- громкость музыки и эффектов (0..1), сохраняется вместе с прогрессом
+ local data = profiles[player]
+ local music, sfx = tonumber(a), tonumber(b)
+ if data and music and sfx then
+ data.settings = { music = math.clamp(music, 0, 1), sfx = math.clamp(sfx, 0, 1) }
+ player:SetAttribute("VolMusic", data.settings.music)
+ player:SetAttribute("VolSfx", data.settings.sfx)
+ end
+ elseif action == "AutoFish" then
+ setAutoFish(player, a == true)
+ else
+ Guild.onAction(player, action, a, b)
end
end)
@@ -2444,7 +2973,7 @@ MarketplaceService.ProcessReceipt = function(info)
if product.coins then
local coins = math.floor(product.coins * (1 + (data.level - 1) * 0.15))
data.coins += coins
- notify(player, ("Спасибо! +%d 💰"):format(coins), GOLD)
+ notify(player, ("Спасибо! +%d ⚪"):format(coins), GOLD)
end
if product.boost then
applyPotion(data, product.boost, product.duration)
@@ -2529,6 +3058,10 @@ local function finishBoss(won)
if potion then
applyPotion(data, potion.bonus, potion.duration)
end
+<<<<<<< HEAD
+ Guild.onBossWin(p, data)
+=======
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
updateStats(p)
remote:FireClient(p, "BossReward", coins, xp, potion and potion.name)
end
@@ -2586,7 +3119,7 @@ local function onPlayerAdded(player)
local ls = Instance.new("Folder")
ls.Name = "leaderstats"
ls.Parent = player
- for _, name in ipairs({ "Монеты", "Уровень", "Улов" }) do
+ for _, name in ipairs({ "Серебро", "Уровень", "Улов" }) do
local v = Instance.new("IntValue")
v.Name = name
v.Parent = ls
@@ -2598,11 +3131,20 @@ local function onPlayerAdded(player)
end
loadPasses(player)
ensureChain(data)
+<<<<<<< HEAD
+ Guild.defaults(data)
+ Guild.onJoin(player, data)
+=======
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
profiles[player] = data
loadedOk[player] = ok
+ local settings = type(data.settings) == "table" and data.settings or {}
+ player:SetAttribute("VolMusic", tonumber(settings.music) or Config.DefaultVolume.music)
+ player:SetAttribute("VolSfx", tonumber(settings.sfx) or Config.DefaultVolume.sfx)
updateStats(player)
sendInventory(player)
sendQuests(player)
+ Guild.sendState(player)
local function onCharacter()
stopFishing(player, false)
@@ -2610,6 +3152,7 @@ local function onPlayerAdded(player)
giveRodTool(player)
attachBag(player)
vipTag(player)
+ Guild.badge(player)
end
player.CharacterAdded:Connect(onCharacter)
if player.Character then
@@ -2625,6 +3168,13 @@ end
Players.PlayerRemoving:Connect(function(player)
stopFishing(player, false)
combo[player], comboUntil[player] = nil, nil
+<<<<<<< HEAD
+ autoFishing[player] = nil
+ if profiles[player] then
+ Guild.onLeave(profiles[player])
+ end
+=======
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
saveData(player)
profiles[player] = nil
loadedOk[player] = nil
@@ -2633,21 +3183,45 @@ end)
game:BindToClose(function()
for _, p in ipairs(Players:GetPlayers()) do
+ if profiles[p] then
+ Guild.onLeave(profiles[p])
+ end
saveData(p)
end
end)
+-- погода и ночь меняют удачу: пересчитываем её у всех, когда они меняются
+local function refreshAllStats()
+ for _, p in ipairs(Players:GetPlayers()) do
+ updateStats(p)
+ end
+end
+workspace:GetAttributeChangedSignal("Weather"):Connect(refreshAllStats)
+
-- таймер зелий + автосохранение
task.spawn(function()
local t = 0
+ local wasNight = isNight()
while true do
task.wait(1)
t += 1
+ local night = isNight()
+ if night ~= wasNight then
+ wasNight = night
+ refreshAllStats()
+ end
for _, p in ipairs(Players:GetPlayers()) do
local data = profiles[p]
if data and data.boostUntil > os.time() - 2 then
updateStats(p)
end
+<<<<<<< HEAD
+ -- бонус отдыха тратится, пока игрок рыбачит
+ if data and (fishing[p] or autoFishing[p]) then
+ Guild.spendRest(p, data, 1)
+ end
+=======
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
-- серия сгорает, если долго нет улова (пока рыба на крючке — ждём)
if comboUntil[p] and os.time() > comboUntil[p] and not fishing[p] then
breakCombo(p)
@@ -5500,9 +6074,29 @@ local function spawnNpc(spot, parent)
w.C0 = head.CFrame:Inverse() * p.CFrame
w.Parent = p
p.Parent = rig
+<<<<<<< HEAD
+ return p
+ end
+ if spot:GetAttribute("Look") == "Elder" then
+ -- Старейшина Ворон: седые волосы и борода (цвет HatColor), чёрная повязка на глазу
+ local function elderPart(size, offset, color, shape)
+ local p = hatPart(size, offset, shape or Enum.PartType.Block)
+ p.Color = color
+ p.Material = Enum.Material.SmoothPlastic
+ end
+ elderPart(V(1.25, 0.35, 1.25), CFrame.new(0, 0.55, 0.05), colors.hat)
+ elderPart(V(1.0, 0.75, 0.35), CFrame.new(0, -0.55, -0.5), colors.hat)
+ elderPart(V(0.32, 0.3, 0.08), CFrame.new(0.22, 0.12, -0.6), Color3.fromRGB(20, 20, 22))
+ elderPart(V(1.24, 0.08, 1.24), CFrame.new(0, 0.18, 0) * CFrame.Angles(0, 0, math.rad(-12)), Color3.fromRGB(20, 20, 22))
+ else
+ hatPart(V(0.15, 2.0, 2.0), CFrame.new(0, 0.55, 0) * CFrame.Angles(0, 0, math.rad(90)), Enum.PartType.Cylinder)
+ hatPart(V(0.6, 1.35, 1.35), CFrame.new(0, 0.85, 0) * CFrame.Angles(0, 0, math.rad(90)), Enum.PartType.Cylinder)
+ end
+=======
end
hatPart(V(0.15, 2.0, 2.0), CFrame.new(0, 0.55, 0) * CFrame.Angles(0, 0, math.rad(90)), Enum.PartType.Cylinder)
hatPart(V(0.6, 1.35, 1.35), CFrame.new(0, 0.85, 0) * CFrame.Angles(0, 0, math.rad(90)), Enum.PartType.Cylinder)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
local action = spot:GetAttribute("NpcAction")
if action then
@@ -5549,29 +6143,19 @@ local Lighting = game:GetService("Lighting")
local player = Players.LocalPlayer
local Config = require(ReplicatedStorage:WaitForChild("FishConfig"))
local Models = require(ReplicatedStorage:WaitForChild("GameModels"))
+local Audio = require(script.Parent:WaitForChild("Audio"))
local remote = ReplicatedStorage:WaitForChild("GameEvent")
+local reelSound = Audio.loop("reel", "sfx") -- трещотка катушки, пока идёт вываживание
---------------------------------------------------------------- стиль
-local C = {
- bg = Color3.fromRGB(18, 24, 40),
- panel = Color3.fromRGB(30, 38, 62),
- panel2 = Color3.fromRGB(44, 56, 90),
- gold = Color3.fromRGB(255, 200, 70),
- green = Color3.fromRGB(60, 190, 95),
- blue = Color3.fromRGB(60, 135, 230),
- red = Color3.fromRGB(215, 65, 65),
- purple = Color3.fromRGB(150, 90, 220),
- grey = Color3.fromRGB(75, 82, 102),
- text = Color3.new(1, 1, 1),
- muted = Color3.fromRGB(170, 180, 205),
- line = Color3.fromRGB(90, 110, 165),
-}
-local TITLE = Enum.Font.FredokaOne
+-- палитра, шрифты и украшения — в модуле UiTheme («средневековая гильдия»)
+local Theme = require(script.Parent:WaitForChild("UiTheme"))
+local C = Theme.C
+local TITLE = Enum.Font.FredokaOne -- в new() подменяется на шрифт с кириллицей (Theme.FACES)
local BODY = Enum.Font.GothamBold
local BODY2 = Enum.Font.GothamMedium
local WHITE, BLACK = Color3.new(1, 1, 1), Color3.new(0, 0, 0)
-local DING = "rbxasset://sounds/electronicpingshort.wav"
---------------------------------------------------------------- помощники UI
@@ -5581,6 +6165,8 @@ local function new(class, props, children)
for k, v in pairs(props or {}) do
if k == "Parent" then
parent = v
+ elseif k == "Font" and Theme.FACES[v] then
+ obj.FontFace = Theme.FACES[v]
else
obj[k] = v
end
@@ -5613,13 +6199,20 @@ local function text(props)
return new("TextLabel", d)
end
local function btn(props, onClick)
- local d = { AutoButtonColor = true, Font = TITLE, TextColor3 = C.text, TextSize = 18, BackgroundColor3 = C.blue, Text = "" }
+ -- дерево/сургуч с золотой окантовкой; цвет кнопки задаёт BackgroundColor3, градиент даёт объём
+ local d = { AutoButtonColor = true, Font = TITLE, TextColor3 = C.text, TextSize = 18, BackgroundColor3 = C.blue, Text = "", TextStrokeColor3 = C.ink, TextStrokeTransparency = 0.55 }
for k, v in pairs(props) do
d[k] = v
end
- local b = new("TextButton", d, { corner(10), new("UIGradient", { Color = ColorSequence.new(WHITE, Color3.fromRGB(195, 195, 195)), Rotation = 90 }) })
+ local b = new("TextButton", d, {
+ corner(8), new("UIGradient", { Color = ColorSequence.new(Color3.fromRGB(255, 240, 215), Color3.fromRGB(165, 150, 135)), Rotation = 90 }),
+ new("UIStroke", { Color = C.gold, Thickness = 1.5, Transparency = 0.15, ApplyStrokeMode = Enum.ApplyStrokeMode.Border }),
+ })
if onClick then
- b.MouseButton1Click:Connect(onClick)
+ b.MouseButton1Click:Connect(function(...)
+ Audio.play("click")
+ onClick(...)
+ end)
end
return b
end
@@ -5684,9 +6277,7 @@ local function viewport(parent, model, dir, zoom)
vf.CurrentCamera = cam
return vf
end
-local FISH_VIEW = Vector3.new(0.12, 0.15, 1)
-local ROD_VIEW = Vector3.new(1, 0.1, 0.05)
-local BAG_VIEW = Vector3.new(0.6, 0.25, 1)
+local VIEW = { fish = Vector3.new(0.12, 0.15, 1), rod = Vector3.new(1, 0.1, 0.05), bag = Vector3.new(0.6, 0.25, 1) }
local function silhouette(model)
for _, p in ipairs(model:GetDescendants()) do
@@ -5706,44 +6297,56 @@ local gui = new("ScreenGui", {
Name = "FishingUI", ResetOnSpawn = false, IgnoreGuiInset = false,
ZIndexBehavior = Enum.ZIndexBehavior.Sibling, Parent = player:WaitForChild("PlayerGui"),
})
+-- холст с масштабом под экран: всё ниже кладём в него, а не прямо в ScreenGui
+local screen = Theme.scaleRoot(gui)
---------------------------------------------------------------- HUD
+-- hud — содержимое; его родитель — деревянная панель с рамкой и заклёпками (её двигает раскладка)
local hud = new("Frame", {
- Size = UDim2.fromOffset(290, 172), Position = UDim2.fromOffset(12, 10), BackgroundColor3 = WHITE, Parent = gui,
-}, { corner(16), stroke(C.line, 2, 0.35), gradient(C.panel2, C.bg, 90),
- new("UIPadding", { PaddingLeft = UDim.new(0, 14), PaddingRight = UDim.new(0, 14), PaddingTop = UDim.new(0, 10) }) })
-local coinsText = text({ Size = UDim2.new(1, 0, 0, 32), Font = TITLE, TextSize = 30, TextColor3 = C.gold, Text = "💰 0", TextStrokeTransparency = 0.6, Parent = hud })
-local lvlBadge = new("Frame", { Size = UDim2.fromOffset(36, 36), Position = UDim2.fromOffset(0, 38), BackgroundColor3 = WHITE, Parent = hud },
- { corner(18), gradient(Color3.fromRGB(255, 225, 110), Color3.fromRGB(235, 145, 30), 90), stroke(Color3.fromRGB(120, 70, 10), 2, 0.2) })
-local lvlText = text({ Size = UDim2.fromScale(1, 1), Font = TITLE, TextSize = 19, TextXAlignment = Enum.TextXAlignment.Center, TextColor3 = Color3.fromRGB(70, 40, 0), Text = "1", Parent = lvlBadge })
-local xpBack = new("Frame", { Size = UDim2.new(1, -46, 0, 18), Position = UDim2.fromOffset(46, 47), BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = hud }, { corner(9) })
-local xpFill = new("Frame", { Size = UDim2.fromScale(0, 1), BackgroundColor3 = WHITE, Parent = xpBack }, { corner(9), gradient(Color3.fromRGB(110, 225, 255), Color3.fromRGB(60, 110, 255), 0) })
-local xpText = text({ Size = UDim2.fromScale(1, 1), TextSize = 12, TextXAlignment = Enum.TextXAlignment.Center, ZIndex = 2, Text = "", TextStrokeTransparency = 0.5, Parent = xpBack })
-local luckText = text({ Size = UDim2.new(1, 0, 0, 22), Position = UDim2.fromOffset(0, 82), TextSize = 16, RichText = true, TextColor3 = Color3.fromRGB(130, 255, 150), Text = "", Parent = hud })
-local bagText = text({ Size = UDim2.new(1, 0, 0, 20), Position = UDim2.fromOffset(0, 106), TextSize = 14, Font = BODY2, Text = "", Parent = hud })
-local rodText = text({ Size = UDim2.new(1, 0, 0, 20), Position = UDim2.fromOffset(0, 128), TextSize = 14, Font = BODY2, TextColor3 = C.muted, RichText = true, Text = "", Parent = hud })
+ Size = UDim2.new(1, -28, 1, -10), Position = UDim2.fromOffset(14, 10), BackgroundTransparency = 1,
+ Parent = new("Frame", {
+ Name = "Hud", Size = UDim2.fromOffset(290, 172), Position = UDim2.fromOffset(12, 10), BackgroundColor3 = WHITE, Parent = screen,
+ }, { corner(10), stroke(C.goldDark, 2.5, 0), Theme.woodGradient(C.wood, C.woodDark) }),
+})
+Theme.innerBorder(hud.Parent, 5, 7, C.gold, 0.5)
+Theme.rivets(hud.Parent, 8, 6)
+local H = {} -- элементы HUD (в таблице: у скрипта лимит 200 локальных переменных)
+H.coins = text({ Size = UDim2.new(1, 0, 0, 32), Font = TITLE, TextSize = 28, TextColor3 = C.silver, Text = "⚪ 0", TextStrokeColor3 = C.ink, TextStrokeTransparency = 0.3, Parent = hud })
+H.lvlBadge = new("Frame", { Size = UDim2.fromOffset(36, 36), Position = UDim2.fromOffset(0, 38), BackgroundColor3 = WHITE, Rotation = 45, Parent = hud },
+ { corner(6), gradient(C.goldBright, C.goldDark, 90), stroke(C.ink, 2, 0.1) })
+H.lvl = text({ Size = UDim2.fromScale(1, 1), Font = TITLE, TextSize = 17, Rotation = -45, TextXAlignment = Enum.TextXAlignment.Center, TextColor3 = C.ink, Text = "1", Parent = H.lvlBadge })
+H.xpBack = new("Frame", { Size = UDim2.new(1, -46, 0, 18), Position = UDim2.fromOffset(46, 47), BackgroundColor3 = C.dark, Parent = hud }, { corner(4), stroke(C.goldDark, 1.5, 0.2) })
+H.xpFill = new("Frame", { Size = UDim2.fromScale(0, 1), BackgroundColor3 = WHITE, Parent = H.xpBack }, { corner(4), gradient(C.goldBright, Color3.fromRGB(196, 128, 48), 0) })
+H.xpText = text({ Size = UDim2.fromScale(1, 1), TextSize = 12, TextXAlignment = Enum.TextXAlignment.Center, ZIndex = 2, Text = "", TextStrokeTransparency = 0.5, Parent = H.xpBack })
+H.luck = text({ Size = UDim2.new(1, 0, 0, 22), Position = UDim2.fromOffset(0, 82), TextSize = 16, RichText = true, TextColor3 = Color3.fromRGB(130, 255, 150), Text = "", Parent = hud })
+H.bag = text({ Size = UDim2.new(1, 0, 0, 20), Position = UDim2.fromOffset(0, 106), TextSize = 14, Font = BODY2, Text = "", Parent = hud })
+H.rod = text({ Size = UDim2.new(1, 0, 0, 20), Position = UDim2.fromOffset(0, 128), TextSize = 14, Font = BODY2, TextColor3 = C.muted, RichText = true, Text = "", Parent = hud })
-- баннер события (справа сверху)
local eventBanner = new("Frame", {
Size = UDim2.fromOffset(280, 58), AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -12, 0, 10),
- BackgroundColor3 = WHITE, Visible = false, Parent = gui,
+ BackgroundColor3 = WHITE, Visible = false, Parent = screen,
}, { corner(14), stroke(C.gold, 2, 0.1), gradient(Color3.fromRGB(90, 60, 20), C.bg, 90) })
local eventTitle = text({ Size = UDim2.new(1, -20, 0, 26), Position = UDim2.fromOffset(12, 4), Font = TITLE, TextSize = 19, TextColor3 = C.gold, Text = "", Parent = eventBanner })
local eventDesc = text({ Size = UDim2.new(1, -20, 0, 20), Position = UDim2.fromOffset(12, 30), Font = BODY2, TextSize = 13, TextColor3 = C.text, Text = "", Parent = eventBanner })
-- кнопки слева
+-- столбик на компьютере, сетка 2×N на телефоне (раскладка — в applyLayout ниже)
local side = new("Frame", {
Size = UDim2.fromOffset(70, 380), AnchorPoint = Vector2.new(0, 0.5), Position = UDim2.new(0, 12, 0.5, 60),
- BackgroundTransparency = 1, Parent = gui,
-}, { new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }) })
+ BackgroundTransparency = 1, Parent = screen,
+}, { new("UIGridLayout", { CellSize = UDim2.fromOffset(68, 68), CellPadding = UDim2.fromOffset(8, 8), FillDirectionMaxCells = 1, SortOrder = Enum.SortOrder.LayoutOrder }) })
local sideDots = {}
local function sideButton(order, icon, label, key, color, onClick)
- local b = btn({ Size = UDim2.fromOffset(68, 68), BackgroundColor3 = color, LayoutOrder = order, Parent = side }, onClick)
- stroke(color:Lerp(BLACK, 0.45), 3).Parent = b
- text({ Size = UDim2.new(1, 0, 0, 36), Position = UDim2.fromOffset(0, 3), TextSize = 28, TextXAlignment = Enum.TextXAlignment.Center, Text = icon, Parent = b })
- text({ Size = UDim2.new(1, 0, 0, 18), Position = UDim2.fromOffset(0, 44), Font = TITLE, TextSize = 13, TextXAlignment = Enum.TextXAlignment.Center, Text = label, TextStrokeTransparency = 0.5, Parent = b })
+ -- деревянная плитка; цвет раздела — полоска-лента снизу
+ local b = btn({ Size = UDim2.fromOffset(68, 68), BackgroundColor3 = C.woodLight, LayoutOrder = order, Parent = side }, onClick)
+ b:FindFirstChildOfClass("UIStroke").Color = C.goldDark
+ b:FindFirstChildOfClass("UIStroke").Thickness = 2.5
+ new("Frame", { Size = UDim2.new(1, -10, 0, 4), AnchorPoint = Vector2.new(0.5, 1), Position = UDim2.new(0.5, 0, 1, -4), BackgroundColor3 = color, BorderSizePixel = 0, Parent = b }, { corner(2) })
+ text({ Size = UDim2.fromScale(1, 0.5), Position = UDim2.fromScale(0, 0.06), TextScaled = true, TextXAlignment = Enum.TextXAlignment.Center, Text = icon, Parent = b })
+ text({ Size = UDim2.fromScale(1, 0.24), Position = UDim2.fromScale(0, 0.6), Font = TITLE, TextScaled = true, TextXAlignment = Enum.TextXAlignment.Center, Text = label, TextStrokeColor3 = C.ink, TextStrokeTransparency = 0.3, Parent = b })
if key and not UserInputService.TouchEnabled then
local tag = new("Frame", { Size = UDim2.fromOffset(20, 20), Position = UDim2.new(1, -14, 0, -6), BackgroundColor3 = C.bg, Parent = b }, { corner(6), stroke(C.gold, 1.5) })
text({ Size = UDim2.fromScale(1, 1), Font = TITLE, TextSize = 12, TextXAlignment = Enum.TextXAlignment.Center, TextColor3 = C.gold, Text = key, Parent = tag })
@@ -5762,11 +6365,20 @@ local SOFT_EDGES = NumberSequence.new({
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
})
-- жирный округлый шрифт с кириллицей (у FredokaOne кириллицы нет — Roblox подставляет тонкий шрифт)
+<<<<<<< HEAD
+local HINT_FONT = Theme.HINT_FACE
+-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует.
+-- Цвет — тёмное дерево
+local function softPlate(props, textProps)
+ local plate = new("Frame", props)
+ plate.BackgroundColor3 = C.woodDark
+=======
local HINT_FONT = Font.new("rbxasset://fonts/families/Nunito.json", Enum.FontWeight.Heavy)
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует
local function softPlate(props, textProps)
local plate = new("Frame", props)
plate.BackgroundColor3 = BLACK
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
plate.BackgroundTransparency = 0
corner(30).Parent = plate
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
@@ -5792,7 +6404,11 @@ end
-- уведомления — под подсказкой обучения, которая стоит в самом верху
local toasts = new("Frame", {
Size = UDim2.new(0, 900, 0, 200), AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 84),
+<<<<<<< HEAD
+ BackgroundTransparency = 1, ZIndex = 30, Parent = screen,
+=======
BackgroundTransparency = 1, Parent = gui,
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
}, { new("UIListLayout", { Padding = UDim.new(0, 6), HorizontalAlignment = Enum.HorizontalAlignment.Center, SortOrder = Enum.SortOrder.LayoutOrder }) })
local toastOrder = 0
local toastTimers = {}
@@ -5823,7 +6439,11 @@ local function notify(msg, color)
end
local t, l = softPlate(
{ Size = UDim2.new(0, 0, 0, 54), AutomaticSize = Enum.AutomaticSize.X, LayoutOrder = toastOrder, Parent = toasts },
+<<<<<<< HEAD
+ { TextSize = 30, TextColor3 = color or C.text, Text = msg }
+=======
{ TextSize = 30, TextColor3 = color or WHITE, Text = msg }
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
)
popIn(t)
t:SetAttribute("Msg", msg)
@@ -5841,8 +6461,10 @@ end
-- карточка пойманной рыбы
local catchCard = new("Frame", {
Size = UDim2.fromOffset(400, 128), AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, -220),
- BackgroundColor3 = WHITE, Visible = false, Parent = gui,
-}, { corner(18) })
+ BackgroundColor3 = WHITE, Visible = false, ZIndex = 25, Parent = screen,
+}, { corner(10) })
+Theme.innerBorder(catchCard, 6, 6, C.gold, 0.5)
+Theme.rivets(catchCard, 8, 6)
local catchStroke = stroke(WHITE, 3)
catchStroke.Parent = catchCard
local catchGrad = gradient(C.panel2, C.bg, 90)
@@ -5860,7 +6482,7 @@ local function showCatch(fish, extra)
local r = Config.Rarities[fish.rarity]
local mut = fish.mutation and Config.Find(Config.Mutations, fish.mutation)
clear(catchView)
- viewport(catchView, Models.buildFish(fish.id, fish.mutation, 1, true), FISH_VIEW, 0.75)
+ viewport(catchView, Models.buildFish(fish.id, fish.mutation, 1, true), VIEW.fish, 0.75)
catchStroke.Color = mut and mut.color or r.color
catchGrad.Color = ColorSequence.new(r.color:Lerp(C.bg, 0.55), C.bg)
catchHeader.Text = extra and extra.new and "🆕 НОВЫЙ ВИД! Опыт x2" or (extra and extra.record and "🏆 НОВЫЙ РЕКОРД!" or "ПОЙМАНА РЫБА")
@@ -5869,7 +6491,11 @@ local function showCatch(fish, extra)
catchName.TextColor3 = r.color
catchInfo.Text = ("%s%s · %.2f кг"):format(
hex(r.color), r.name, mut and (" · " .. mut.name .. " x" .. mut.mult .. "") or "", fish.weight)
+<<<<<<< HEAD
+ catchValue.Text = ("⚪ %s ⭐ +%d XP%s"):format(fmt(fish.value), fish.xp * ((extra and extra.new) and 2 or 1),
+=======
catchValue.Text = ("💰 %s ⭐ +%d XP%s"):format(fmt(fish.value), fish.xp * ((extra and extra.new) and 2 or 1),
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
(extra and extra.combo and extra.combo > 1.001) and (" 🔥 x%.1f"):format(extra.combo) or "")
catchCard.Visible = true
TweenService:Create(catchCard, TweenInfo.new(0.45, Enum.EasingStyle.Back, Enum.EasingDirection.Out), { Position = UDim2.new(0.5, 0, 0, 120) }):Play()
@@ -5889,7 +6515,7 @@ local function floatText(msg, color)
local l = text({
Size = UDim2.fromOffset(400, 60), AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromScale(0.5, 0.42),
Font = TITLE, TextSize = 46, TextXAlignment = Enum.TextXAlignment.Center, TextColor3 = color,
- TextStrokeTransparency = 0.2, Text = msg, Parent = gui,
+ TextStrokeTransparency = 0.2, Text = msg, Parent = screen,
})
TweenService:Create(l, TweenInfo.new(1.4, Enum.EasingStyle.Quad), { Position = UDim2.fromScale(0.5, 0.3), TextTransparency = 1, TextStrokeTransparency = 1 }):Play()
task.delay(1.5, function()
@@ -5901,22 +6527,28 @@ end
-- вверху, на месте подсказки обучения (она во время рыбалки скрыта)
local statusLabel = softPlate(
+<<<<<<< HEAD
+ { Size = UDim2.fromOffset(0, 64), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 12), Visible = false, Parent = screen },
+=======
{ Size = UDim2.fromOffset(0, 64), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 12), Visible = false, Parent = gui },
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
{ TextSize = 36, Text = "🎣 Ждём клёв…" }
)
wobble(statusLabel, 1.2, 1.4)
local mgFrame = new("Frame", {
Size = UDim2.fromOffset(480, 124), AnchorPoint = Vector2.new(0.5, 1), Position = UDim2.new(0.5, 0, 1, -100),
- BackgroundColor3 = WHITE, Visible = false, Parent = gui,
-}, { corner(16), stroke(C.gold, 2.5, 0.1), gradient(C.panel2, C.bg, 90) })
+ BackgroundColor3 = WHITE, Visible = false, Parent = screen,
+}, { corner(10), stroke(C.goldDark, 3, 0), Theme.woodGradient(C.wood, C.woodDark) })
+Theme.innerBorder(mgFrame, 5, 7, C.gold, 0.4)
+Theme.rivets(mgFrame, 9, 6)
text({
- Size = UDim2.new(1, 0, 0, 30), Position = UDim2.fromOffset(0, 6), Font = TITLE, TextSize = 24,
- TextXAlignment = Enum.TextXAlignment.Center, TextColor3 = C.gold, TextStrokeTransparency = 0.5,
- Text = "❗ КЛЮЁТ! Кликай, когда метка в зелёной зоне", Parent = mgFrame,
+ Size = UDim2.new(1, 0, 0, 30), Position = UDim2.fromOffset(0, 6), Font = TITLE, TextSize = 22,
+ TextXAlignment = Enum.TextXAlignment.Center, TextColor3 = C.goldBright, TextStrokeColor3 = C.ink, TextStrokeTransparency = 0.3,
+ Text = UserInputService.TouchEnabled and "❗ КЛЮЁТ! Жми, когда метка в зелёной зоне" or "❗ КЛЮЁТ! Кликай, когда метка в зелёной зоне", Parent = mgFrame,
})
-local bar = new("Frame", { Size = UDim2.new(1, -30, 0, 36), Position = UDim2.fromOffset(15, 42), BackgroundColor3 = Color3.fromRGB(22, 28, 46), ClipsDescendants = true, Parent = mgFrame }, { corner(9), stroke(BLACK, 1.5, 0.4) })
-local zoneF = new("Frame", { Size = UDim2.fromScale(0.25, 1), BackgroundColor3 = WHITE, BorderSizePixel = 0, Parent = bar }, { gradient(Color3.fromRGB(130, 245, 150), Color3.fromRGB(35, 165, 75), 90) })
-local markerF = new("Frame", { Size = UDim2.new(0, 8, 1, 4), AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromScale(0, 0.5), BackgroundColor3 = WHITE, ZIndex = 3, Parent = bar }, { corner(4), stroke(BLACK, 2) })
+local bar = new("Frame", { Size = UDim2.new(1, -30, 0, 36), Position = UDim2.fromOffset(15, 42), BackgroundColor3 = C.dark, ClipsDescendants = true, Parent = mgFrame }, { corner(5), stroke(C.goldDark, 2, 0) })
+local zoneF = new("Frame", { Size = UDim2.fromScale(0.25, 1), BackgroundColor3 = WHITE, BorderSizePixel = 0, Parent = bar }, { gradient(Color3.fromRGB(150, 220, 110), Color3.fromRGB(56, 116, 52), 90) })
+local markerF = new("Frame", { Size = UDim2.new(0, 8, 1, 4), AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromScale(0, 0.5), BackgroundColor3 = C.parchment, ZIndex = 3, Parent = bar }, { corner(3), stroke(C.ink, 2) })
local pipsText = text({ Size = UDim2.new(0.5, -15, 0, 24), Position = UDim2.fromOffset(15, 84), Font = TITLE, TextSize = 19, RichText = true, Text = "", Parent = mgFrame })
local missText = text({ Size = UDim2.new(0.5, -15, 0, 24), Position = UDim2.new(0.5, 0, 0, 84), Font = TITLE, TextSize = 19, TextXAlignment = Enum.TextXAlignment.Right, RichText = true, Text = "", Parent = mgFrame })
local timeBar = new("Frame", { Size = UDim2.new(1, -30, 0, 5), Position = UDim2.fromOffset(15, 112), BackgroundColor3 = C.gold, BorderSizePixel = 0, Parent = mgFrame }, { corner(3) })
@@ -5927,31 +6559,54 @@ local openWindow = nil
local function makeWindow(title, accent, tabs)
local w = { pages = {}, tabButtons = {}, current = nil }
+ -- деревянная панель, золотая рамка в 2 слоя, ромбики-заклёпки, заголовок на багровой ленте,
+ -- закрытие — круглая багровая печать. accent — цвет раздела: тонкая полоска под лентой
local frame = new("Frame", {
Size = UDim2.fromScale(0.92, 0.82), AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromScale(0.5, 0.53),
- BackgroundColor3 = WHITE, Visible = false, Parent = gui,
- }, { corner(20), stroke(accent, 3, 0.05), gradient(C.panel, C.bg, 90), new("UISizeConstraint", { MaxSize = Vector2.new(760, 540) }) })
+ BackgroundColor3 = WHITE, Visible = false, ZIndex = 20, Parent = screen, -- поверх HUD, целей и подсказок
+ }, { corner(12), stroke(C.goldDark, 4, 0), Theme.woodGradient(C.wood, C.woodDark), new("UISizeConstraint", { MaxSize = Vector2.new(760, 540) }) })
+ Theme.innerBorder(frame, 7, 8, C.gold, 0.2)
+ Theme.rivets(frame, 12, 8)
local scale = new("UIScale", { Parent = frame })
- local header = new("Frame", { Size = UDim2.new(1, 0, 0, 56), BackgroundColor3 = WHITE, Parent = frame }, { corner(20), gradient(accent, accent:Lerp(BLACK, 0.35), 90) })
- new("Frame", { Size = UDim2.new(1, 0, 0, 20), Position = UDim2.new(0, 0, 1, -20), BackgroundColor3 = accent:Lerp(BLACK, 0.3), BorderSizePixel = 0, Parent = header })
- text({ Size = UDim2.new(1, -80, 1, 0), Position = UDim2.fromOffset(20, 0), Font = TITLE, TextSize = 30, Text = title, TextStrokeTransparency = 0.5, ZIndex = 2, Parent = header })
- btn({ Size = UDim2.fromOffset(42, 42), Position = UDim2.new(1, -52, 0, 7), BackgroundColor3 = C.red, Text = "✕", TextSize = 22, ZIndex = 3, Parent = header }, function()
+ local header = new("Frame", { Size = UDim2.new(1, 0, 0, 56), BackgroundTransparency = 1, Parent = frame })
+ -- багровая лента по центру, ширина — по тексту
+ local ribbon = new("Frame", {
+ Size = UDim2.new(0, 0, 0, 44), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 8),
+ BackgroundColor3 = WHITE, ZIndex = 3, Parent = header,
+ }, { corner(4), gradient(Color3.fromRGB(184, 58, 48), Color3.fromRGB(118, 28, 26), 90), stroke(C.gold, 2, 0),
+ new("UIListLayout", { HorizontalAlignment = Enum.HorizontalAlignment.Center, VerticalAlignment = Enum.VerticalAlignment.Center }),
+ new("UIPadding", { PaddingLeft = UDim.new(0, 36), PaddingRight = UDim.new(0, 36) }) })
+ text({ Size = UDim2.fromScale(0, 1), AutomaticSize = Enum.AutomaticSize.X, Font = TITLE, TextSize = 24, TextXAlignment = Enum.TextXAlignment.Center,
+ TextColor3 = C.goldBright, TextStrokeColor3 = C.ink, TextStrokeTransparency = 0.2, Text = title, ZIndex = 4, Parent = ribbon })
+ new("Frame", { Size = UDim2.new(0, 120, 0, 3), AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 1, 2), BackgroundColor3 = accent, BorderSizePixel = 0, Parent = header }, { corner(2) })
+ local closeB = btn({ Size = UDim2.fromOffset(44, 44), AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.new(1, -24, 0, 22), BackgroundColor3 = C.crimson, Text = "×", TextSize = 30, TextColor3 = C.goldBright, ZIndex = 7, Parent = frame }, function()
w.close()
end)
+ closeB:FindFirstChildOfClass("UICorner").CornerRadius = UDim.new(1, 0)
+ closeB:FindFirstChildOfClass("UIStroke").Thickness = 2.5
local hasTabs = #tabs > 1
- local tabBar = new("Frame", { Size = UDim2.new(1, -28, 0, 42), Position = UDim2.fromOffset(14, 66), BackgroundTransparency = 1, Visible = hasTabs, Parent = frame },
+ local tabBar = new("Frame", { Size = UDim2.new(1, -36, 0, 40), Position = UDim2.fromOffset(18, 68), BackgroundTransparency = 1, Visible = hasTabs, Parent = frame },
{ new("UIListLayout", { FillDirection = Enum.FillDirection.Horizontal, Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }) })
- local top = hasTabs and 116 or 68
- local body = new("Frame", { Size = UDim2.new(1, -28, 1, -(top + 12)), Position = UDim2.fromOffset(14, top), BackgroundTransparency = 1, Parent = frame })
+ local top = hasTabs and 118 or 70
+ local body = new("Frame", { Size = UDim2.new(1, -36, 1, -(top + 16)), Position = UDim2.fromOffset(18, top), BackgroundTransparency = 1, Parent = frame })
w.frame = frame
+ -- на телефоне окно почти на весь экран
+ Theme.onLayout(function(compact)
+ frame.Size = compact and UDim2.new(1, -16, 1, -12) or UDim2.fromScale(0.92, 0.82)
+ frame.UISizeConstraint.MaxSize = compact and Vector2.new(1100, 640) or Vector2.new(760, 540)
+ frame.Position = compact and UDim2.fromScale(0.5, 0.5) or UDim2.fromScale(0.5, 0.53)
+ end)
function w.setTab(id)
w.current = id
for k, page in pairs(w.pages) do
page.Visible = (k == id)
end
+ -- выбранная вкладка — золотая с тёмными буквами, остальные — светлое дерево
for k, b in pairs(w.tabButtons) do
- b.BackgroundColor3 = (k == id) and accent or C.panel2
+ b.BackgroundColor3 = (k == id) and C.gold or C.woodLight
+ b.TextColor3 = (k == id) and C.ink or C.text
+ b.TextStrokeTransparency = (k == id) and 1 or 0.55
end
if w.render then
w.render(id)
@@ -5968,6 +6623,9 @@ local function makeWindow(title, accent, tabs)
openWindow.close()
end
openWindow = w
+ if not frame.Visible then
+ Audio.play("open")
+ end
frame.Visible = true
scale.Scale = 0.85
TweenService:Create(scale, TweenInfo.new(0.25, Enum.EasingStyle.Back, Enum.EasingDirection.Out), { Scale = 1 }):Play()
@@ -6033,11 +6691,19 @@ local function itemRow(parent, order, o)
end
local function progressBar(parent, pos, size, frac, color)
- local back = new("Frame", { Size = size, Position = pos, BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = parent }, { corner(7) })
+ local back = new("Frame", { Size = size, Position = pos, BackgroundColor3 = C.dark, Parent = parent }, { corner(7) })
new("Frame", { Size = UDim2.fromScale(math.clamp(frac, 0, 1), 1), BackgroundColor3 = color, Parent = back }, { corner(7) })
return back
end
+-- помощники интерфейса для других скриптов (GuildClient): тот же стиль окон, кнопок и уведомлений
+Theme.kit = {
+ new = new, text = text, btn = btn, corner = corner, stroke = stroke, gradient = gradient, clear = clear,
+ makeWindow = makeWindow, scrollArea = scrollArea, itemRow = itemRow, progressBar = progressBar,
+ sideButton = sideButton, notify = notify, popIn = popIn, fmt = fmt, timeStr = timeStr,
+ screen = screen, hud = hud, TITLE = TITLE, BODY = BODY, BODY2 = BODY2,
+}
+
---------------------------------------------------------------- данные с сервера
local inventory, discovered, claimed = {}, {}, {}
@@ -6065,7 +6731,7 @@ local function buyButton(price, level, myLevel, coins)
if myLevel < level then
return "🔒 Ур. " .. level, C.grey, false
end
- return "💰 " .. fmt(price), coins >= price and C.green or Color3.fromRGB(150, 95, 60), true
+ return "⚪ " .. fmt(price), coins >= price and C.green or Color3.fromRGB(150, 95, 60), true
end
shopWin.render = function(tab)
@@ -6092,7 +6758,7 @@ shopWin.render = function(tab)
bText, bColor, active = buyButton(rod.price, rod.level, myLevel, coins)
end
itemRow(list, i, {
- model = Models.buildRod(rod.id, lv, true), dir = ROD_VIEW, zoom = 0.6,
+ model = Models.buildRod(rod.id, lv, true), dir = VIEW.rod, zoom = 0.6,
title = rod.name .. (owned[rod.id] and (" " .. stars(lv) .. "") or ""),
lines = statLine(Config.RodStats(rod.id, lv)) .. "\n" .. (owned[rod.id] and "Куплена" or ("Нужен уровень " .. rod.level)),
strokeColor = equipped and C.gold or nil,
@@ -6127,7 +6793,7 @@ shopWin.render = function(tab)
end
local cost = Config.UpgradeCost(rod, lv)
itemRow(list, order, {
- model = Models.buildRod(rod.id, lv, true), dir = ROD_VIEW, zoom = 0.6,
+ model = Models.buildRod(rod.id, lv, true), dir = VIEW.rod, zoom = 0.6,
title = rod.name .. " " .. stars(lv) .. "",
lines = lines,
strokeColor = player:GetAttribute("Rod") == rod.id and C.gold or nil,
@@ -6154,7 +6820,7 @@ shopWin.render = function(tab)
bText, bColor, active = buyButton(bag.price, bag.level, myLevel, coins)
end
itemRow(list, i, {
- model = Models.buildBag(bag.id, true), dir = BAG_VIEW, zoom = 0.8,
+ model = Models.buildBag(bag.id, true), dir = VIEW.bag, zoom = 0.8,
title = bag.name,
lines = ("🎒 Вмещает %d рыб%s\n%s"):format(bag.capacity + bonus, bonus > 0 and " (с пропуском)" or "", owned[bag.id] and "Куплена" or ("Нужен уровень " .. bag.level)),
strokeColor = equipped and C.gold or nil,
@@ -6177,7 +6843,7 @@ shopWin.render = function(tab)
table.insert(mutLine, ("%s %.1f%%"):format(hex(m.color), m.name, math.min(100, m.chance * total / 100 * ((event and event.mutation) or 1) * 100)))
end
local lines = {
- ("🍀 Твоя удача: %d%%"):format(total),
+ ("🍀 Твоя удача: %d%%"):format(total),
("Базовая 100%% · 🎣 Удочка +%d%% · ✨ Улучшения +%d%%"):format(math.floor(rod.luck * 100 + 0.5), math.floor(lv * Config.RodUpgrade.luckPerLevel * 100 + 0.5)),
("⭐ Уровень +%d%% · 🏆 Мастерство миров +%d%%"):format(math.floor(((player:GetAttribute("Level") or 1) - 1) * Config.LuckPerPlayerLevel * 100 + 0.5), math.floor((player:GetAttribute("Mastery") or 0) * Config.MasteryLuck * 100 + 0.5)),
("🧪 Зелье +%d%%%s · 👑 Пропуска +%d%%%s"):format(math.floor(boost * 100 + 0.5), boost > 0 and (" (" .. timeStr(player:GetAttribute("BoostLeft") or 0) .. ")") or "",
@@ -6211,7 +6877,7 @@ local bagWin = makeWindow("🎒 Сумка", Color3.fromRGB(60, 140, 220), {
local fishHeader = new("Frame", { Size = UDim2.new(1, 0, 0, 50), BackgroundColor3 = WHITE, Parent = bagWin.pages.fish }, { corner(12), gradient(C.panel2, C.panel, 90) })
local fishSummary = text({ Size = UDim2.new(1, -200, 1, 0), Position = UDim2.fromOffset(14, 0), Font = TITLE, TextSize = 19, RichText = true, Text = "", Parent = fishHeader })
-btn({ Size = UDim2.fromOffset(170, 38), AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -8, 0.5, 0), BackgroundColor3 = C.green, Text = "💰 Продать всё", TextSize = 18, Parent = fishHeader }, function()
+btn({ Size = UDim2.fromOffset(170, 38), AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -8, 0.5, 0), BackgroundColor3 = C.green, Text = "⚪ Продать всё", TextSize = 18, Parent = fishHeader }, function()
remote:FireServer("SellAll")
end)
local fishGrid = scrollArea(bagWin.pages.fish, UDim2.fromOffset(132, 176), 60)
@@ -6223,8 +6889,13 @@ local dexList = scrollArea(bagWin.pages.dex, nil, 46)
local dexTabButtons = {}
local function fishCard(parent, order, rarityColor, strokeColor)
- return new("Frame", { BackgroundColor3 = WHITE, LayoutOrder = order, Parent = parent },
- { corner(14), stroke(strokeColor or rarityColor, 2.5, 0.05), gradient(rarityColor:Lerp(C.bg, 0.55), C.panel, 90) })
+ -- тёмное дерево; редкость — цветная полоса сверху и камень в углу, мутация — цвет рамки
+ local card = new("Frame", { BackgroundColor3 = WHITE, LayoutOrder = order, Parent = parent },
+ { corner(8), stroke(strokeColor or C.goldDark, strokeColor and 2.5 or 2, 0), gradient(rarityColor:Lerp(C.woodDark, 0.78), C.woodDark, 90) })
+ new("Frame", { Size = UDim2.new(1, -16, 0, 4), AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 3), BackgroundColor3 = rarityColor, BorderSizePixel = 0, Parent = card }, { corner(2) })
+ new("Frame", { Size = UDim2.fromOffset(12, 12), AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.new(1, -11, 0, 13), Rotation = 45, BackgroundColor3 = rarityColor, ZIndex = 5, Parent = card },
+ { stroke(C.ink, 1.5), gradient(WHITE, Color3.fromRGB(150, 150, 150), 90) })
+ return card
end
local function rewardButton(parent, state, label, onClick)
@@ -6254,7 +6925,7 @@ local function renderDex()
{ corner(12), stroke(C.gold, 2, 0.3), gradient(Color3.fromRGB(70, 55, 20), C.panel, 90) })
text({
Size = UDim2.new(1, -180, 1, 0), Position = UDim2.fromOffset(14, 0), Font = TITLE, TextSize = 17, RichText = true, TextWrapped = true,
- Text = ("%s %s — %d / %d\nСобери всех: +%s 💰 и +%d%% удачи навсегда"):format(
+ Text = ("%s %s — %d / %d\nСобери всех: +%s ⚪ и +%d%% удачи навсегда"):format(
world.icon, world.name, found, #all, fmt(Config.MasteryCoins * world.mult), math.floor(Config.MasteryLuck * 100 + 0.5)),
Parent = head,
})
@@ -6286,7 +6957,7 @@ local function renderDex()
local reward = Config.CollectionRewards[rarity]
text({
Size = UDim2.new(1, -180, 1, 0), Position = UDim2.fromOffset(12, 0), Font = TITLE, TextSize = 17, RichText = true,
- Text = ("%s %d/%d +%s 💰 +%s XP"):format(
+ Text = ("%s %d/%d +%s ⚪ +%s XP"):format(
hex(r.color), r.name, have, #group, fmt(reward.coins * world.mult), fmt(reward.xp * world.mult)),
Parent = hdr,
})
@@ -6302,7 +6973,7 @@ local function renderDex()
local card = fishCard(grid, i, rec and r.color or C.grey)
local view = new("Frame", { Size = UDim2.new(1, -12, 0, 76), Position = UDim2.fromOffset(6, 6), BackgroundTransparency = 1, Parent = card })
local model = Models.buildFish(f.id, nil, 1, true)
- viewport(view, rec and model or silhouette(model), FISH_VIEW, 0.72)
+ viewport(view, rec and model or silhouette(model), VIEW.fish, 0.72)
text({ Size = UDim2.new(1, -10, 0, 20), Position = UDim2.fromOffset(6, 84), Font = TITLE, TextSize = 15, TextColor3 = rec and r.color or C.muted, Text = rec and f.name or "???", TextTruncate = Enum.TextTruncate.AtEnd, Parent = card })
text({
Size = UDim2.new(1, -10, 0, 40), Position = UDim2.fromOffset(6, 104), Font = BODY2, TextSize = 12, TextColor3 = C.muted, TextWrapped = true,
@@ -6330,7 +7001,7 @@ bagWin.render = function(tab)
for _, it in ipairs(inventory) do
total += it.value
end
- fishSummary.Text = ("🐟 %d / %d · 💰 ≈%s"):format(#inventory, player:GetAttribute("BagCap") or 0, fmt(player:GetAttribute("BagValue") or total))
+ fishSummary.Text = ("🐟 %d / %d · ⚪ ≈%s"):format(#inventory, player:GetAttribute("BagCap") or 0, fmt(player:GetAttribute("BagValue") or total))
if #inventory == 0 then
text({ Size = UDim2.fromOffset(400, 60), Font = TITLE, TextSize = 20, TextColor3 = C.muted, TextWrapped = true, Text = "Сумка пуста. Иди к воде и поймай рыбу! 🎣", Parent = fishGrid })
return
@@ -6344,7 +7015,7 @@ bagWin.render = function(tab)
local mut = it.mutation and Config.Find(Config.Mutations, it.mutation)
local card = fishCard(fishGrid, i, r.color, mut and mut.color)
local view = new("Frame", { Size = UDim2.new(1, -12, 0, 84), Position = UDim2.fromOffset(6, 6), BackgroundTransparency = 1, Parent = card })
- viewport(view, Models.buildFish(it.id, it.mutation, 1, true), FISH_VIEW, 0.72)
+ viewport(view, Models.buildFish(it.id, it.mutation, 1, true), VIEW.fish, 0.72)
if mut then
local tag = new("Frame", { Size = UDim2.fromOffset(0, 20), AutomaticSize = Enum.AutomaticSize.X, Position = UDim2.fromOffset(6, 6), BackgroundColor3 = mut.color, ZIndex = 3, Parent = card },
{ corner(6), new("UIPadding", { PaddingLeft = UDim.new(0, 6), PaddingRight = UDim.new(0, 6) }) })
@@ -6352,7 +7023,7 @@ bagWin.render = function(tab)
end
text({ Size = UDim2.new(1, -10, 0, 20), Position = UDim2.fromOffset(6, 92), Font = TITLE, TextSize = 16, TextColor3 = r.color, Text = it.name, TextTruncate = Enum.TextTruncate.AtEnd, Parent = card })
text({ Size = UDim2.new(1, -10, 0, 16), Position = UDim2.fromOffset(6, 112), Font = BODY2, TextSize = 13, TextColor3 = C.muted, Text = ("%.2f кг · %s"):format(it.weight, r.name), Parent = card })
- btn({ Size = UDim2.new(1, -12, 0, 32), Position = UDim2.fromOffset(6, 136), BackgroundColor3 = C.green, Text = "💰 " .. fmt(it.value), TextSize = 17, Parent = card }, function()
+ btn({ Size = UDim2.new(1, -12, 0, 32), Position = UDim2.fromOffset(6, 136), BackgroundColor3 = C.green, Text = "⚪ " .. fmt(it.value), TextSize = 17, Parent = card }, function()
remote:FireServer("SellOne", it.uid)
end)
end
@@ -6401,6 +7072,8 @@ worldsWin.render = function()
bText, bColor, active = "Скоро…", C.grey, false
elseif myLevel < w.level then
bText, bColor, active = "🔒 Ур. " .. w.level, C.grey, false
+ elseif (Config.Guild.worldRank[w.id] or 1) > (player:GetAttribute("RankIdx") or 1) then
+ bText, bColor, active = "🔒 Ранг " .. Config.Guild.ranks[Config.Guild.worldRank[w.id]].id, C.grey, false
elseif here and here.id == w.id then
bText, bColor, active = "Вы здесь", C.grey, false
else
@@ -6409,7 +7082,8 @@ worldsWin.render = function()
itemRow(worldsList, i, {
icon = w.icon, iconBg = w.color:Lerp(C.bg, 0.6),
title = w.name, titleColor = w.color,
- lines = w.desc .. "\n" .. (w.soon and "В разработке" or ("Уровень: %d · Рыб поймано: %d / %d · Награды x%d"):format(w.level, found, total, w.mult)),
+ lines = w.desc .. "\n" .. (w.soon and "В разработке" or ("Уровень: %d%s · Рыб поймано: %d / %d · Награды x%d"):format(w.level,
+ Config.Guild.worldRank[w.id] and (", ранг " .. Config.Guild.ranks[Config.Guild.worldRank[w.id]].id) or "", found, total, w.mult)),
strokeColor = (here and here.id == w.id) and C.gold or nil,
buttonText = bText, buttonColor = bColor, active = active,
onClick = function()
@@ -6450,7 +7124,11 @@ questWin.render = function(tab)
end
text({
Size = UDim2.new(1, -4, 0, 30), LayoutOrder = 0, Font = TITLE, TextSize = 22, RichText = true,
+<<<<<<< HEAD
+ Text = ("%s круг %d · награда сразу, следующее задание — тоже"):format(chain.name, chain.round), Parent = questList,
+=======
Text = ("%s круг %d · награда сразу, следующее задание — тоже"):format(chain.name, chain.round), Parent = questList,
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
})
for i, st in ipairs(chain.steps) do
local done, cur = i < chain.step, i == chain.step
@@ -6463,7 +7141,11 @@ questWin.render = function(tab)
})
text({
Size = UDim2.fromOffset(180, 28), AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -14, 0, cur and 8 or 14), Font = TITLE, TextSize = 17,
+<<<<<<< HEAD
+ TextXAlignment = Enum.TextXAlignment.Right, TextColor3 = done and C.muted or C.gold, Text = ("+%s ⚪ +%s XP"):format(fmt(st.coins), fmt(st.xp)), Parent = row,
+=======
TextXAlignment = Enum.TextXAlignment.Right, TextColor3 = done and C.muted or C.gold, Text = ("+%s 💰 +%s XP"):format(fmt(st.coins), fmt(st.xp)), Parent = row,
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
})
if cur then
progressBar(row, UDim2.fromOffset(16, 44), UDim2.new(1, -110, 0, 16), chain.progress / st.goal, C.gold)
@@ -6476,7 +7158,11 @@ questWin.render = function(tab)
{ corner(14), stroke(C.purple, 2, 0.2), gradient(Color3.fromRGB(70, 40, 100), C.panel, 90) })
text({
Size = UDim2.new(1, -32, 1, 0), Position = UDim2.fromOffset(16, 0), Font = TITLE, TextSize = 18, RichText = true,
+<<<<<<< HEAD
+ Text = ("🎁 За всю цепочку: +%s ⚪ +%s XP%s"):format(fmt(b.coins), fmt(b.xp), b.potion and (" + " .. b.potion) or ""), Parent = row,
+=======
Text = ("🎁 За всю цепочку: +%s 💰 +%s XP%s"):format(fmt(b.coins), fmt(b.xp), b.potion and (" + " .. b.potion) or ""), Parent = row,
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
})
elseif tab == "daily" then
clear(dailyPage)
@@ -6493,10 +7179,10 @@ questWin.render = function(tab)
local cell = new("Frame", { BackgroundColor3 = WHITE, Parent = row },
{ corner(12), stroke(isNext and C.gold or C.line, isNext and 3 or 2, isNext and 0 or 0.4), gradient(isNext and Color3.fromRGB(90, 70, 20) or C.panel2, C.panel, 90) })
text({ Size = UDim2.new(1, 0, 0, 24), Position = UDim2.fromOffset(0, 6), Font = TITLE, TextSize = 15, TextXAlignment = Enum.TextXAlignment.Center, Text = "День " .. d, Parent = cell })
- text({ Size = UDim2.new(1, 0, 0, 44), Position = UDim2.fromOffset(0, 32), TextSize = 32, TextXAlignment = Enum.TextXAlignment.Center, Text = passed and "✅" or (r.potion and "🧪" or "💰"), Parent = cell })
+ text({ Size = UDim2.new(1, 0, 0, 44), Position = UDim2.fromOffset(0, 32), TextSize = 32, TextXAlignment = Enum.TextXAlignment.Center, Text = passed and "✅" or (r.potion and "🧪" or "⚪"), Parent = cell })
text({
Size = UDim2.new(1, -6, 0, 50), Position = UDim2.fromOffset(3, 80), Font = BODY2, TextSize = 12, TextXAlignment = Enum.TextXAlignment.Center, TextWrapped = true, TextColor3 = C.gold,
- Text = fmt(r.coins * (1 + (myLevel - 1) * 0.2)) .. " 💰" .. (r.potion and "\n+ зелье" or ""), Parent = cell,
+ Text = fmt(r.coins * (1 + (myLevel - 1) * 0.2)) .. " ⚪" .. (r.potion and "\n+ зелье" or ""), Parent = cell,
})
end
btn({
@@ -6513,7 +7199,7 @@ end
local robuxWin = makeWindow("💎 Премиум", Color3.fromRGB(150, 80, 210), {
{ id = "passes", label = "👑 Пропуска" },
- { id = "products", label = "🪙 Наборы" },
+ { id = "products", label = "⚪ Наборы" },
})
local robuxLists = { passes = scrollArea(robuxWin.pages.passes), products = scrollArea(robuxWin.pages.products) }
@@ -6545,6 +7231,50 @@ robuxWin.render = function(tab)
end
end
+---------------------------------------------------------------- настройки звука
+
+local settingsWin = makeWindow("⚙ Настройки", Color3.fromRGB(150, 120, 80), { { id = "sound", label = "Звук" } })
+local settingsPage = settingsWin.pages.sound
+local volumes = {
+ music = player:GetAttribute("VolMusic") or Config.DefaultVolume.music,
+ sfx = player:GetAttribute("VolSfx") or Config.DefaultVolume.sfx,
+}
+
+local function setVolume(key, value)
+ volumes[key] = math.clamp(math.floor(value * 10 + 0.5) / 10, 0, 1)
+ -- сразу у себя (слышно без задержки), сервер сохранит и подтвердит
+ player:SetAttribute(key == "music" and "VolMusic" or "VolSfx", volumes[key])
+ remote:FireServer("Settings", volumes.music, volumes.sfx)
+ settingsWin.refresh()
+end
+
+settingsWin.render = function()
+ clear(settingsPage)
+ for i, row in ipairs({ { "music", "🎵 Музыка" }, { "sfx", "🔊 Звуки и окружение" } }) do
+ local key, label = row[1], row[2]
+ local f = new("Frame", { Size = UDim2.new(1, -4, 0, 70), Position = UDim2.fromOffset(0, (i - 1) * 82), BackgroundColor3 = WHITE, Parent = settingsPage },
+ { corner(14), stroke(C.line, 2, 0.45), gradient(C.panel2, C.panel, 90) })
+ text({ Size = UDim2.new(1, -260, 1, 0), Position = UDim2.fromOffset(18, 0), Font = TITLE, TextSize = 21, Text = label, Parent = f })
+ btn({ Size = UDim2.fromOffset(52, 46), AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -170, 0.5, 0), BackgroundColor3 = C.grey, Text = "−", TextSize = 26, Parent = f }, function()
+ setVolume(key, volumes[key] - 0.1)
+ end)
+ text({ Size = UDim2.fromOffset(90, 46), AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -74, 0.5, 0), Font = TITLE, TextSize = 22,
+ TextXAlignment = Enum.TextXAlignment.Center, TextColor3 = C.gold, Text = math.floor(volumes[key] * 100 + 0.5) .. "%", Parent = f })
+ btn({ Size = UDim2.fromOffset(52, 46), AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -14, 0.5, 0), BackgroundColor3 = C.green, Text = "+", TextSize = 26, Parent = f }, function()
+ setVolume(key, volumes[key] + 0.1)
+ end)
+ end
+end
+-- сервер прислал сохранённую громкость
+player:GetAttributeChangedSignal("VolMusic"):Connect(function()
+ volumes.music = player:GetAttribute("VolMusic") or volumes.music
+ settingsWin.refresh()
+end)
+player:GetAttributeChangedSignal("VolSfx"):Connect(function()
+ volumes.sfx = player:GetAttribute("VolSfx") or volumes.sfx
+ settingsWin.refresh()
+end)
+
---------------------------------------------------------------- боковые кнопки
sideButton(1, "🎒", "Сумка", "B", Color3.fromRGB(60, 140, 220), function()
@@ -6562,6 +7292,38 @@ end)
sideButton(5, "💎", "Донат", nil, Color3.fromRGB(150, 80, 210), function()
robuxWin.toggle()
end)
+sideButton(6, "⚙", "Звук", nil, Color3.fromRGB(150, 120, 80), function()
+ settingsWin.toggle()
+end)
+
+-- раскладка: компьютер — как раньше; телефон — HUD и кнопки компактнее, кнопки сеткой 3×N под HUD
+-- (левый низ свободен под джойстик, правый низ — под кнопку прыжка)
+do
+ local function scaleOf(obj)
+ local sc = obj:FindFirstChild("LayoutScale") or new("UIScale", { Name = "LayoutScale", Parent = obj })
+ return sc
+ end
+ local grid = side:FindFirstChildOfClass("UIGridLayout")
+ Theme.onLayout(function(compact)
+ scaleOf(hud.Parent).Scale = compact and 0.82 or 1
+ hud.Parent.Position = compact and UDim2.fromOffset(8, 6) or UDim2.fromOffset(12, 10)
+ grid.CellSize = compact and UDim2.fromOffset(52, 52) or UDim2.fromOffset(62, 62)
+ grid.CellPadding = compact and UDim2.fromOffset(6, 6) or UDim2.fromOffset(6, 6)
+ grid.FillDirectionMaxCells = compact and 3 or 1
+ side.AnchorPoint = Vector2.zero
+ -- под HUD (он выше на строку гильдии — её добавляет GuildClient)
+ side.Position = compact and UDim2.fromOffset(8, 172) or UDim2.fromOffset(12, 216)
+ side.Size = compact and UDim2.fromOffset(170, 240) or UDim2.fromOffset(70, 480)
+ toasts.Size = compact and UDim2.fromOffset(640, 200) or UDim2.fromOffset(900, 200)
+ toasts.Position = compact and UDim2.new(0.5, 0, 0, 66) or UDim2.new(0.5, 0, 0, 84)
+ scaleOf(toasts).Scale = compact and 0.75 or 1
+ scaleOf(catchCard).Scale = compact and 0.8 or 1
+ scaleOf(mgFrame).Scale = compact and 0.85 or 1
+ mgFrame.Position = compact and UDim2.new(0.5, 0, 1, -60) or UDim2.new(0.5, 0, 1, -100)
+ scaleOf(eventBanner).Scale = compact and 0.8 or 1
+ statusLabel:FindFirstChildOfClass("TextLabel").TextSize = compact and 28 or 36
+ end)
+end
local function refreshDots()
-- задания цепочки награждаются сами, точка — только для ежедневной награды
@@ -6594,18 +7356,18 @@ end
local function refreshHud()
local xp = player:GetAttribute("XP") or 0
local need = player:GetAttribute("XPNeed") or 100
- coinsText.Text = "💰 " .. fmt(player:GetAttribute("Coins") or 0)
- lvlText.Text = tostring(player:GetAttribute("Level") or 1)
- xpText.Text = ("%d / %d XP"):format(xp, need)
- TweenService:Create(xpFill, TweenInfo.new(0.3), { Size = UDim2.fromScale(math.clamp(xp / need, 0, 1), 1) }):Play()
+ H.coins.Text = "⚪ " .. fmt(player:GetAttribute("Coins") or 0)
+ H.lvl.Text = tostring(player:GetAttribute("Level") or 1)
+ H.xpText.Text = ("%d / %d XP"):format(xp, need)
+ TweenService:Create(H.xpFill, TweenInfo.new(0.3), { Size = UDim2.fromScale(math.clamp(xp / need, 0, 1), 1) }):Play()
local boost = player:GetAttribute("BoostBonus") or 0
- luckText.Text = ("🍀 Удача %d%%%s"):format(player:GetAttribute("Luck") or 100,
+ H.luck.Text = ("🍀 Удача %d%%%s"):format(player:GetAttribute("Luck") or 100,
boost > 0 and (" 🧪 +%d%% %s"):format(boost * 100, timeStr(player:GetAttribute("BoostLeft") or 0)) or "")
local count, cap = player:GetAttribute("BagCount") or 0, player:GetAttribute("BagCap") or 10
- bagText.Text = ("🎒 %d / %d · ≈ %s 💰"):format(count, cap, fmt(player:GetAttribute("BagValue") or 0))
- bagText.TextColor3 = count >= cap and Color3.fromRGB(255, 120, 120) or C.text
+ H.bag.Text = ("🎒 %d / %d · ≈ %s ⚪"):format(count, cap, fmt(player:GetAttribute("BagValue") or 0))
+ H.bag.TextColor3 = count >= cap and Color3.fromRGB(255, 120, 120) or C.text
local rod = Config.Find(Config.Rods, player:GetAttribute("Rod") or "Basic")
- rodText.Text = ("🎣 %s %s"):format(rod and rod.name or "", stars(player:GetAttribute("RodLevel") or 0))
+ H.rod.Text = ("🎣 %s %s"):format(rod and rod.name or "", stars(player:GetAttribute("RodLevel") or 0))
end
local pending = false
@@ -6708,7 +7470,11 @@ end
local GAUGE_R, GAUGE_DEG, GAUGE_N = 190, 110, 32
local gauge = new("Frame", {
Size = UDim2.fromOffset(150, 280), AnchorPoint = Vector2.new(0, 0.5), Position = UDim2.new(0.57, 0, 0.48, 0),
+<<<<<<< HEAD
+ BackgroundTransparency = 1, Visible = false, Parent = screen,
+=======
BackgroundTransparency = 1, Visible = false, Parent = gui,
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
})
local GAUGE_C = Vector2.new(110 - GAUGE_R, 140) -- центр окружности левее рамки: дуга выгнута вправо
local function arcPoint(v, r)
@@ -6893,6 +7659,7 @@ local function setState(s)
charge = nil
end
state = s
+ Audio.fade(reelSound, s == "bite" and 1 or 0, s == "bite" and 0.2 or 0.4)
statusLabel.Visible = (s == "waiting")
mgFrame.Visible = (s == "bite")
gauge.Visible = (s == "charging")
@@ -6911,12 +7678,12 @@ local function setState(s)
end
end
local function updatePips()
- pipsText.Text = "🎯 " .. string.rep("●", mg.hits) .. string.rep("●", mg.need - mg.hits)
- missText.Text = string.rep("✖", mg.misses) .. string.rep("❤️", mg.maxMisses - mg.misses)
+ pipsText.Text = "🎯 " .. string.rep("●", mg.hits) .. string.rep("●", mg.need - mg.hits)
+ missText.Text = string.rep("✖", mg.misses) .. string.rep("❤️", mg.maxMisses - mg.misses)
end
local function flash(color)
bar.BackgroundColor3 = color
- TweenService:Create(bar, TweenInfo.new(0.35), { BackgroundColor3 = Color3.fromRGB(22, 28, 46) }):Play()
+ TweenService:Create(bar, TweenInfo.new(0.35), { BackgroundColor3 = C.dark }):Play()
end
local function placeZone()
mg.zoneStart = math.random() * (1 - mg.zoneWidth)
@@ -7125,6 +7892,20 @@ local function setLook(obj, goal, instant)
end
end
+<<<<<<< HEAD
+-- погода сгущает дымку поверх настроек локации (туман — сильно, дождь и гроза — слегка)
+local WEATHER_ATMO = {
+ Fog = { Density = 0.22, Haze = 1.5 },
+ Rain = { Density = 0.06, Haze = 0.4 },
+ Storm = { Density = 0.12, Haze = 0.8 },
+}
+local function weatherAtmo(prop)
+ local add = WEATHER_ATMO[workspace:GetAttribute("Weather") or ""]
+ return (add and add[prop]) or 0
+end
+
+=======
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local function applyLook(world, instant)
-- исходные значения запоминаем до первой правки; эффект мог ещё не прийти с сервера, тогда в следующий раз
for _, w in ipairs(lookSources) do
@@ -7148,6 +7929,12 @@ local function applyLook(world, instant)
for prop, def in pairs(defaults) do
local v = look[section] and look[section][prop]
if v == nil then v = def end
+<<<<<<< HEAD
+ if section == "atmosphere" and typeof(v) == "number" then
+ v += weatherAtmo(prop)
+ end
+=======
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
-- плавно меняются только числа и цвета; флаги и режимы (EnumItem) ставим сразу
local kind = typeof(v)
if kind == "number" or kind == "Color3" then goal[prop] = v else obj[prop] = v end
@@ -7164,8 +7951,15 @@ local function applyAmbience(world, instant)
end
table.clear(lookTweens)
world = world or Config.Lobby
+<<<<<<< HEAD
+ -- при смене суток часы двигает Ambience; иначе у каждой локации своё время
+ if not Config.DayNight.enabled then
+ setLook(Lighting, { ClockTime = (world and world.clock) or 14.5 }, instant)
+ end
+=======
local clock = (world and world.clock) or 14.5
setLook(Lighting, { ClockTime = clock }, instant)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local cc = Lighting:FindFirstChildOfClass("ColorCorrectionEffect")
if cc then
setLook(cc, { TintColor = (world and world.tint) or DEFAULT_LOOK.tint }, instant)
@@ -7269,6 +8063,28 @@ local function enterWorld(w, instant)
end
end
+<<<<<<< HEAD
+-- погода сменилась: плавно пересчитываем дымку текущей локации
+workspace:GetAttributeChangedSignal("Weather"):Connect(function()
+ if lastWorldId ~= "none" and not loadingVisible() then
+ applyAmbience(currentWorld(), false)
+ end
+end)
+
+-- новый уровень — арфа
+do
+ local lastLevel = player:GetAttribute("Level")
+ player:GetAttributeChangedSignal("Level"):Connect(function()
+ local lv = player:GetAttribute("Level")
+ if lastLevel and lv and lv > lastLevel then
+ Audio.play("levelUp")
+ end
+ lastLevel = lv
+ end)
+end
+
+=======
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
-- первое появление: ждём персонажа, ставим свет его локации сразу и отпускаем экран загрузки
task.spawn(function()
local char = player.Character or player.CharacterAdded:Wait()
@@ -7346,10 +8162,20 @@ local guideStep = 0 -- шаг, отправленный на сервер (ат
-- крупная мультяшная подсказка под уведомлениями: покачивается, при смене шага «выпрыгивает»
local guideHint, guideHintText = softPlate(
+<<<<<<< HEAD
+ { Size = UDim2.fromOffset(0, 70), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 10), Visible = false, Parent = screen },
+ { TextSize = 42, Text = "" }
+)
+wobble(guideHint, 1.2, 1.6)
+Theme.onLayout(function(compact)
+ guideHintText.TextSize = compact and 30 or 42
+end)
+=======
{ Size = UDim2.fromOffset(0, 70), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 10), Visible = false, Parent = gui },
{ TextSize = 42, Text = "" }
)
wobble(guideHint, 1.2, 1.6)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local lastHint = nil
local guideFolder = new("Folder", { Name = "TutorialGuide", Parent = workspace })
@@ -7550,7 +8376,11 @@ local function guideRoute(step, pos, world)
elseif step == 2 and inW1 then
return { guideMarker("GuideFishSpot") }, "🎣 Зажми ЛКМ у воды", "Pier"
elseif step == 3 and inW1 then
+<<<<<<< HEAD
+ return { sellTargetW1() }, "⚪ Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
+=======
return { sellTargetW1() }, "💰 Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
return nil
end
@@ -7715,11 +8545,19 @@ local FIRE = Color3.fromRGB(255, 150, 60)
-- серия улова — справа от HUD; полоска показывает, сколько осталось до того, как серия сгорит
local comboBox = new("Frame", {
+<<<<<<< HEAD
+ Size = UDim2.fromOffset(140, 66), Position = UDim2.fromOffset(310, 10), BackgroundColor3 = WHITE, Visible = false, Parent = screen,
+}, { corner(14), stroke(FIRE, 2, 0.1), gradient(Color3.fromRGB(110, 50, 20), C.bg, 90) })
+local comboMultText = text({ Size = UDim2.new(1, 0, 0, 34), Position = UDim2.fromOffset(0, 3), Font = TITLE, TextSize = 28, TextXAlignment = CENTER, TextColor3 = Color3.fromRGB(255, 195, 95), TextStrokeTransparency = 0.5, Text = "", Parent = comboBox })
+local comboSub = text({ Size = UDim2.new(1, 0, 0, 16), Position = UDim2.fromOffset(0, 36), Font = BODY2, TextSize = 12, TextXAlignment = CENTER, TextColor3 = C.muted, Text = "", Parent = comboBox })
+local comboBack = new("Frame", { Size = UDim2.new(1, -20, 0, 5), Position = UDim2.new(0, 10, 1, -10), BackgroundColor3 = C.dark, Parent = comboBox }, { corner(3) })
+=======
Size = UDim2.fromOffset(140, 66), Position = UDim2.fromOffset(310, 10), BackgroundColor3 = WHITE, Visible = false, Parent = gui,
}, { corner(14), stroke(FIRE, 2, 0.1), gradient(Color3.fromRGB(110, 50, 20), C.bg, 90) })
local comboMultText = text({ Size = UDim2.new(1, 0, 0, 34), Position = UDim2.fromOffset(0, 3), Font = TITLE, TextSize = 28, TextXAlignment = CENTER, TextColor3 = Color3.fromRGB(255, 195, 95), TextStrokeTransparency = 0.5, Text = "", Parent = comboBox })
local comboSub = text({ Size = UDim2.new(1, 0, 0, 16), Position = UDim2.fromOffset(0, 36), Font = BODY2, TextSize = 12, TextXAlignment = CENTER, TextColor3 = C.muted, Text = "", Parent = comboBox })
local comboBack = new("Frame", { Size = UDim2.new(1, -20, 0, 5), Position = UDim2.new(0, 10, 1, -10), BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = comboBox }, { corner(3) })
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local comboFill = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = FIRE, BorderSizePixel = 0, Parent = comboBack }, { corner(3) })
local function refreshCombo(pop)
@@ -7742,14 +8580,33 @@ refreshCombo(false)
-- правая колонка: босс и цели
local rightCol = new("Frame", {
Size = UDim2.fromOffset(300, 0), AutomaticSize = Enum.AutomaticSize.Y, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -12, 0.5, 10),
+<<<<<<< HEAD
+ BackgroundTransparency = 1, Parent = screen,
+}, { new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }) })
+
+-- на телефоне колонка выше и мельче, чтобы не заходить на кнопку прыжка; серия — правее компактного HUD
+local rightScale = new("UIScale", { Parent = rightCol })
+Theme.onLayout(function(compact)
+ rightScale.Scale = compact and 0.8 or 1
+ rightCol.AnchorPoint = compact and Vector2.new(1, 0) or Vector2.new(1, 0.5)
+ rightCol.Position = compact and UDim2.new(1, -8, 0, 128) or UDim2.new(1, -12, 0.5, 10)
+ comboBox.Position = compact and UDim2.fromOffset(254, 6) or UDim2.fromOffset(310, 10)
+end)
+
+=======
BackgroundTransparency = 1, Parent = gui,
}, { new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }) })
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local bossBox = new("Frame", { Size = UDim2.fromOffset(300, 78), BackgroundColor3 = WHITE, Visible = false, LayoutOrder = 1, Parent = rightCol },
{ corner(14), stroke(C.red, 2.5, 0.05), gradient(Color3.fromRGB(110, 30, 40), C.bg, 90) })
local bossTitle = text({ Size = UDim2.new(1, -80, 0, 24), Position = UDim2.fromOffset(12, 5), Font = TITLE, TextSize = 18, TextColor3 = Color3.fromRGB(255, 205, 120), TextTruncate = Enum.TextTruncate.AtEnd, Text = "", Parent = bossBox })
local bossTime = text({ Size = UDim2.fromOffset(60, 24), AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -12, 0, 5), Font = TITLE, TextSize = 17, TextXAlignment = RIGHT, Text = "", Parent = bossBox })
+<<<<<<< HEAD
+local bossBack = new("Frame", { Size = UDim2.new(1, -24, 0, 18), Position = UDim2.fromOffset(12, 32), BackgroundColor3 = C.dark, Parent = bossBox }, { corner(9) })
+=======
local bossBack = new("Frame", { Size = UDim2.new(1, -24, 0, 18), Position = UDim2.fromOffset(12, 32), BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = bossBox }, { corner(9) })
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local bossFill = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = WHITE, Parent = bossBack }, { corner(9), gradient(Color3.fromRGB(255, 120, 90), Color3.fromRGB(190, 30, 50), 0) })
local bossHpText = text({ Size = UDim2.fromScale(1, 1), TextSize = 12, TextXAlignment = CENTER, ZIndex = 2, TextStrokeTransparency = 0.5, Text = "", Parent = bossBack })
local bossHint = text({ Size = UDim2.new(1, -24, 0, 18), Position = UDim2.fromOffset(12, 54), Font = BODY2, TextSize = 12, TextColor3 = C.muted, Text = "", Parent = bossBox })
@@ -7764,7 +8621,11 @@ text({ Size = UDim2.new(1, 0, 0, 20), LayoutOrder = 0, Font = TITLE, TextSize =
local function trackerLine(order, onClick)
local root = new("TextButton", { Size = UDim2.new(1, 0, 0, 38), BackgroundTransparency = 1, AutoButtonColor = false, Text = "", LayoutOrder = order, Parent = tracker })
local label = text({ Size = UDim2.new(1, 0, 0, 22), Font = BODY, TextSize = 14, RichText = true, TextTruncate = Enum.TextTruncate.AtEnd, Text = "", Parent = root })
+<<<<<<< HEAD
+ local back = new("Frame", { Size = UDim2.new(1, 0, 0, 8), Position = UDim2.fromOffset(0, 26), BackgroundColor3 = C.dark, Parent = root }, { corner(4) })
+=======
local back = new("Frame", { Size = UDim2.new(1, 0, 0, 8), Position = UDim2.fromOffset(0, 26), BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = root }, { corner(4) })
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local fill = new("Frame", { Size = UDim2.fromScale(0, 1), BackgroundColor3 = C.gold, BorderSizePixel = 0, Parent = back }, { corner(4) })
if onClick then
root.MouseButton1Click:Connect(onClick)
@@ -7819,7 +8680,11 @@ local function buyGoal()
elseif coins >= r.price then
return ("🎣 %s — можно купить!"):format(r.name), 1, C.green
end
+<<<<<<< HEAD
+ return ("🎣 До «%s»: ещё %s ⚪"):format(r.name, fmt(r.price - coins)), coins / r.price, C.gold
+=======
return ("🎣 До «%s»: ещё %s 💰"):format(r.name, fmt(r.price - coins)), coins / r.price, C.gold
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
end
local rod = Config.Find(Config.Rods, player:GetAttribute("Rod") or "Basic")
@@ -7829,7 +8694,11 @@ local function buyGoal()
if coins >= cost then
return ("✨ Улучшение до +%d — можно купить!"):format(rl + 1), 1, C.green
end
+<<<<<<< HEAD
+ return ("✨ До улучшения +%d: ещё %s ⚪"):format(rl + 1, fmt(cost - coins)), coins / cost, C.gold
+=======
return ("✨ До улучшения +%d: ещё %s 💰"):format(rl + 1, fmt(cost - coins)), coins / cost, C.gold
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
return nil
end
@@ -7973,7 +8842,11 @@ end)
-- у скупщика после продажи: предложение купить то, на что уже хватает
local offerCard = new("Frame", {
Size = UDim2.fromOffset(440, 96), AnchorPoint = Vector2.new(0.5, 1), Position = UDim2.new(0.5, 0, 1, -110),
+<<<<<<< HEAD
+ BackgroundColor3 = WHITE, Visible = false, Parent = screen,
+=======
BackgroundColor3 = WHITE, Visible = false, Parent = gui,
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
}, { corner(16), stroke(C.green, 2.5, 0.05), gradient(Color3.fromRGB(30, 85, 55), C.bg, 90) })
local offerIcon = text({ Size = UDim2.fromOffset(70, 70), Position = UDim2.fromOffset(12, 13), TextSize = 46, TextXAlignment = CENTER, Text = "", Parent = offerCard })
local offerTitle = text({ Size = UDim2.new(1, -250, 0, 26), Position = UDim2.fromOffset(90, 12), Font = TITLE, TextSize = 19, TextTruncate = Enum.TextTruncate.AtEnd, Text = "", Parent = offerCard })
@@ -7986,11 +8859,19 @@ end
local offerBuy = btn({ Size = UDim2.fromOffset(146, 52), AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -14, 0.5, 0), BackgroundColor3 = C.green, TextSize = 18, Text = "", Parent = offerCard }, function()
if offerItem then
remote:FireServer("Buy", offerItem.kind, offerItem.id)
+<<<<<<< HEAD
+ Audio.play("coins")
+ end
+ hideOffer()
+end)
+btn({ Size = UDim2.fromOffset(26, 26), Position = UDim2.new(1, -18, 0, -8), BackgroundColor3 = C.red, Text = "×", TextSize = 22, Parent = offerCard }, hideOffer)
+=======
playUiSound(DING, 0.5)
end
hideOffer()
end)
btn({ Size = UDim2.fromOffset(26, 26), Position = UDim2.new(1, -18, 0, -8), BackgroundColor3 = C.red, Text = "✕", TextSize = 14, Parent = offerCard }, hideOffer)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
bestOffer = function(bagWasFull)
local coins, lvl = player:GetAttribute("Coins") or 0, player:GetAttribute("Level") or 1
@@ -8042,7 +8923,11 @@ showOffer = function(o)
offerIcon.Text = o.icon
offerTitle.Text = o.title
offerDesc.Text = o.desc
+<<<<<<< HEAD
+ offerBuy.Text = ("Купить · %s ⚪"):format(fmt(o.price))
+=======
offerBuy.Text = ("Купить · %s 💰"):format(fmt(o.price))
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
offerCard.Visible = true
popIn(offerCard, 0.6)
task.delay(9, function()
@@ -8067,9 +8952,16 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
elseif action == "TeleportFade" then
teleportLoading(a, b)
elseif action == "Cast" then
+ Audio.play("cast")
setState("waiting")
startCastCam(a, b)
elseif action == "CastFail" or action == "Cancel" or action == "Escaped" then
+<<<<<<< HEAD
+ if action == "Escaped" then
+ Audio.play("escape")
+ end
+=======
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
if action == "CastFail" and castTool and castTool.Parent then
castTool.Grip = gripCF(REST_ANGLE) -- сервер удочку не трогал, а у нас она в замахе
end
@@ -8086,17 +8978,32 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
mg.pos, mg.dir = 0, 1
placeZone()
updatePips()
+ Audio.play("bite")
setState("bite")
elseif action == "Caught" then
setState("idle")
showCatch(a, b)
- playUiSound(DING, 0.5)
+ Audio.play("catchSplash")
+ local r = Config.Rarities[a.rarity]
+ Audio.play((r and r.rank >= 4) and "fanfare" or "catch")
+ if a.mutation then
+ Audio.play("sparkle")
+ end
elseif action == "Sold" then
+<<<<<<< HEAD
+ Audio.play("coins")
+ if tutorialStep() == 3 then
+ advanceTutorial(Config.TutorialDone)
+ end
+ floatText("+" .. fmt(a) .. " ⚪", C.gold)
+ notify(("⚪ +%s"):format(fmt(a)), Color3.fromRGB(120, 255, 140))
+=======
if tutorialStep() == 3 then
advanceTutorial(Config.TutorialDone)
end
floatText("+" .. fmt(a) .. " 💰", C.gold)
notify(("💰 +%s"):format(fmt(a)), Color3.fromRGB(120, 255, 140))
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
-- монеты приходят атрибутом чуть позже события, поэтому предложение — с задержкой
local wasFull = offerState.bagWasFull
offerState.bagWasFull = false
@@ -8125,17 +9032,30 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
refreshDots()
refreshTracker()
elseif action == "QuestDone" then
+<<<<<<< HEAD
+ notify(("✅ %s +%s ⚪ +%s XP"):format(questText(a, b), fmt(c), fmt(d or 0)), Color3.fromRGB(120, 255, 140))
+ Audio.play("quest")
+ elseif action == "ChainDone" then
+ floatText("🏆 Цепочка пройдена!", C.gold)
+ notify(("🎁 %s: +%s ⚪ +%s XP%s"):format(a, fmt(b), fmt(c), d and (" + " .. d) or ""), C.gold)
+ Audio.play("fanfare")
+=======
notify(("✅ %s +%s 💰 +%s XP"):format(questText(a, b), fmt(c), fmt(d or 0)), Color3.fromRGB(120, 255, 140))
playUiSound(DING, 0.6)
elseif action == "ChainDone" then
floatText("🏆 Цепочка пройдена!", C.gold)
notify(("🎁 %s: +%s 💰 +%s XP%s"):format(a, fmt(b), fmt(c), d and (" + " .. d) or ""), C.gold)
playUiSound(DING, 0.8)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
elseif action == "ComboLost" then
notify(("💔 Серия из %d прервана"):format(a), Color3.fromRGB(255, 130, 110))
elseif action == "BossStart" then
notify(("👑 %s в мире «%s»! Ловите всем сервером"):format(a, b), C.gold)
+<<<<<<< HEAD
+ Audio.play("quest")
+=======
playUiSound(DING, 0.8)
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
elseif action == "BossHit" then
floatText(("⚔ -%d боссу"):format(a), Color3.fromRGB(255, 130, 100))
elseif action == "BossDone" then
@@ -8145,7 +9065,11 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
notify(("🌊 %s ушёл на глубину…"):format(b), C.muted)
end
elseif action == "BossReward" then
+<<<<<<< HEAD
+ notify(("🎁 За босса: +%s ⚪ +%s XP%s"):format(fmt(a), fmt(b), c and (" + " .. c) or ""), Color3.fromRGB(120, 255, 140))
+=======
notify(("🎁 За босса: +%s 💰 +%s XP%s"):format(fmt(a), fmt(b), c and (" + " .. c) or ""), Color3.fromRGB(120, 255, 140))
+>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
elseif action == "OpenShop" then
shopWin.open("rods")
elseif action == "OpenQuests" then
@@ -8201,13 +9125,16 @@ local gui = new("ScreenGui", {
Name = "LoadingScreen", ResetOnSpawn = false, IgnoreGuiInset = true, DisplayOrder = 200,
ZIndexBehavior = Enum.ZIndexBehavior.Sibling, Parent = player:WaitForChild("PlayerGui"),
})
--- фон: арт лобби (временная заглушка); пока картинка грузится, виден тёплый закатный градиент
-local BG_IMAGE = "rbxassetid://118616665961176"
-local root = new("CanvasGroup", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = Color3.fromRGB(255, 190, 120), BorderSizePixel = 0, Parent = gui })
+-- фон: заставка «Рыболовная лихорадка»; пока картинка грузится, виден голубой градиент.
+-- Градиент — на отдельной подложке: UIGradient на самой CanvasGroup тонирует всё содержимое и затемнял картинку.
+-- Свет и цветокоррекция сцены на экранный интерфейс не действуют, их не трогаем.
+local BG_IMAGE = "rbxassetid://82266337853896" -- осветлённая и более насыщенная версия заставки
+local root = new("CanvasGroup", { Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, BorderSizePixel = 0, Parent = gui })
+local backdrop = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = Color3.new(1, 1, 1), BorderSizePixel = 0, Parent = root })
new("UIGradient", {
Rotation = 90,
- Color = ColorSequence.new(Color3.fromRGB(120, 200, 255), Color3.fromRGB(255, 170, 110)),
- Parent = root,
+ Color = ColorSequence.new(Color3.fromRGB(70, 140, 230), Color3.fromRGB(40, 70, 150)),
+ Parent = backdrop,
})
local bg = new("ImageLabel", {
Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, Image = BG_IMAGE,
@@ -8220,13 +9147,14 @@ end)
-- плашка снизу: куда идём, полоска загрузки, совет
local panel = new("Frame", {
AnchorPoint = Vector2.new(0.5, 1), Position = UDim2.new(0.5, 0, 1, -28), Size = UDim2.fromOffset(560, 118),
- BackgroundColor3 = Color3.fromRGB(70, 40, 22), BackgroundTransparency = 0.18, BorderSizePixel = 0, Parent = root,
+ BackgroundColor3 = Color3.new(1, 1, 1), BackgroundTransparency = 0.12, BorderSizePixel = 0, Parent = root,
})
new("UICorner", { CornerRadius = UDim.new(0, 18), Parent = panel })
new("UIStroke", { Color = GOLD, Thickness = 3, Transparency = 0.1, Parent = panel })
+-- тёмно-синяя плашка под ночное небо заставки, золотая обводка — как у заголовка
new("UIGradient", {
Rotation = 90,
- Color = ColorSequence.new(Color3.fromRGB(150, 95, 50), Color3.fromRGB(95, 55, 28)),
+ Color = ColorSequence.new(Color3.fromRGB(40, 66, 140), Color3.fromRGB(20, 32, 78)),
Parent = panel,
})
local float = new("TextLabel", {
@@ -8238,10 +9166,10 @@ local title = new("TextLabel", {
Text = "", TextColor3 = Color3.fromRGB(255, 240, 200), TextScaled = true, TextXAlignment = Enum.TextXAlignment.Left,
Font = Enum.Font.FredokaOne, Parent = panel,
})
-new("UIStroke", { Color = Color3.fromRGB(60, 30, 10), Thickness = 2, Parent = title })
+new("UIStroke", { Color = Color3.fromRGB(15, 22, 55), Thickness = 2, Parent = title })
local barBack = new("Frame", {
AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 62), Size = UDim2.new(1, -36, 0, 16),
- BackgroundColor3 = Color3.fromRGB(40, 22, 10), BackgroundTransparency = 0.15, BorderSizePixel = 0, Parent = panel,
+ BackgroundColor3 = Color3.fromRGB(10, 16, 40), BackgroundTransparency = 0.15, BorderSizePixel = 0, Parent = panel,
})
new("UICorner", { CornerRadius = UDim.new(1, 0), Parent = barBack })
local bar = new("Frame", { Size = UDim2.fromScale(0, 1), BackgroundColor3 = GOLD, BorderSizePixel = 0, Parent = barBack })
@@ -8249,7 +9177,7 @@ new("UICorner", { CornerRadius = UDim.new(1, 0), Parent = bar })
new("UIGradient", { Color = ColorSequence.new(Color3.fromRGB(255, 230, 120), Color3.fromRGB(255, 160, 60)), Parent = bar })
local tip = new("TextLabel", {
Position = UDim2.fromOffset(18, 86), Size = UDim2.new(1, -36, 0, 22), BackgroundTransparency = 1,
- Text = "", TextColor3 = Color3.fromRGB(255, 228, 185), TextScaled = true,
+ Text = "", TextColor3 = Color3.fromRGB(205, 222, 255), TextScaled = true,
Font = Enum.Font.GothamMedium, Parent = panel,
})
@@ -8280,7 +9208,7 @@ end)
local hiding = false
gui:GetAttributeChangedSignal("Visible"):Connect(function()
-- новый телепорт мог прийти, пока экран ещё уходил: тогда возвращаем его
- if gui:GetAttribute("Visible") and (hiding or not gui.Enabled) then
+ if gui:GetAttribute("Visible") then
hiding = false
showTip()
gui.Enabled = true
diff --git a/install/UPDATE_SCRIPTS.lua b/install/UPDATE_SCRIPTS.lua
index ba54126..e344968 100644
--- a/install/UPDATE_SCRIPTS.lua
+++ b/install/UPDATE_SCRIPTS.lua
@@ -5784,10 +5784,39 @@ local LOOK = {
local camera = workspace.CurrentCamera
local weatherCC = new("ColorCorrectionEffect", { Name = "WeatherCC", Parent = camera })
local nightCC = new("ColorCorrectionEffect", { Name = "NightCC", Parent = camera })
+local playerGui = player:WaitForChild("PlayerGui")
+local loadingGui = nil
+local function updateLoadingColorEffects()
+ local loadingVisible = loadingGui ~= nil and loadingGui.Enabled and loadingGui:GetAttribute("Visible") ~= false
+ weatherCC.Enabled = not loadingVisible
+ nightCC.Enabled = not loadingVisible
+end
+local function bindLoadingGui(gui)
+ loadingGui = gui
+ gui:GetAttributeChangedSignal("Visible"):Connect(updateLoadingColorEffects)
+ gui:GetPropertyChangedSignal("Enabled"):Connect(updateLoadingColorEffects)
+ updateLoadingColorEffects()
+end
+local existingLoadingGui = playerGui:FindFirstChild("LoadingScreen")
+if existingLoadingGui then
+ bindLoadingGui(existingLoadingGui)
+end
+playerGui.ChildAdded:Connect(function(child)
+ if child.Name == "LoadingScreen" and child:IsA("ScreenGui") then
+ bindLoadingGui(child)
+ end
+end)
+playerGui.ChildRemoved:Connect(function(child)
+ if child == loadingGui then
+ loadingGui = nil
+ updateLoadingColorEffects()
+ end
+end)
workspace:GetPropertyChangedSignal("CurrentCamera"):Connect(function()
camera = workspace.CurrentCamera
weatherCC.Parent = camera
nightCC.Parent = camera
+ updateLoadingColorEffects()
end)
local clouds = terrain:FindFirstChildOfClass("Clouds") or new("Clouds", { Parent = terrain })
@@ -8959,7 +8988,7 @@ local gui = new("ScreenGui", {
ZIndexBehavior = Enum.ZIndexBehavior.Sibling, Parent = player:WaitForChild("PlayerGui"),
})
-- фон: арт лобби (временная заглушка); пока картинка грузится, виден тёплый закатный градиент
-local BG_IMAGE = "rbxassetid://118616665961176"
+local BG_IMAGE = "rbxassetid://113775888608724"
local root = new("CanvasGroup", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = Color3.fromRGB(255, 190, 120), BorderSizePixel = 0, Parent = gui })
new("UIGradient", {
Rotation = 90,
@@ -8974,6 +9003,40 @@ task.spawn(function()
pcall(function() game:GetService("ContentProvider"):PreloadAsync({ bg }) end)
end)
+-- Цветокоррекция локации/погоды затемняет и заставку. На время её показа отключаем только экранные цветовые эффекты.
+local disabledLoadingColorEffects = {}
+local function disableLoadingColorEffect(effect)
+ if effect:IsA("ColorCorrectionEffect") or effect:IsA("ColorGradingEffect") then
+ if disabledLoadingColorEffects[effect] == nil then
+ disabledLoadingColorEffects[effect] = effect.Enabled
+ end
+ effect.Enabled = false
+ end
+end
+local function syncLoadingColorEffects()
+ local active = gui.Enabled and gui:GetAttribute("Visible") ~= false
+ local camera = workspace.CurrentCamera
+ local containers = { Lighting, camera }
+ if active then
+ for _, container in ipairs(containers) do
+ if container then
+ for _, effect in ipairs(container:GetChildren()) do
+ disableLoadingColorEffect(effect)
+ end
+ end
+ end
+ else
+ for effect, wasEnabled in pairs(disabledLoadingColorEffects) do
+ if effect.Parent then effect.Enabled = wasEnabled end
+ disabledLoadingColorEffects[effect] = nil
+ end
+ end
+end
+Lighting.ChildAdded:Connect(function(effect)
+ if gui.Enabled and gui:GetAttribute("Visible") ~= false then disableLoadingColorEffect(effect) end
+end)
+workspace:GetPropertyChangedSignal("CurrentCamera"):Connect(syncLoadingColorEffects)
+
-- плашка снизу: куда идём, полоска загрузки, совет
local panel = new("Frame", {
AnchorPoint = Vector2.new(0.5, 1), Position = UDim2.new(0.5, 0, 1, -28), Size = UDim2.fromOffset(560, 118),
@@ -9035,9 +9098,12 @@ task.spawn(function()
end)
local hiding = false
+gui:GetAttributeChangedSignal("Visible"):Connect(syncLoadingColorEffects)
+gui:GetPropertyChangedSignal("Enabled"):Connect(syncLoadingColorEffects)
+syncLoadingColorEffects()
gui:GetAttributeChangedSignal("Visible"):Connect(function()
-- новый телепорт мог прийти, пока экран ещё уходил: тогда возвращаем его
- if gui:GetAttribute("Visible") and (hiding or not gui.Enabled) then
+ if gui:GetAttribute("Visible") then
hiding = false
showTip()
gui.Enabled = true
diff --git a/src/ReplicatedFirst/Loading.client.lua b/src/ReplicatedFirst/Loading.client.lua
index b7e62fb..a71030f 100644
--- a/src/ReplicatedFirst/Loading.client.lua
+++ b/src/ReplicatedFirst/Loading.client.lua
@@ -42,13 +42,16 @@ local gui = new("ScreenGui", {
Name = "LoadingScreen", ResetOnSpawn = false, IgnoreGuiInset = true, DisplayOrder = 200,
ZIndexBehavior = Enum.ZIndexBehavior.Sibling, Parent = player:WaitForChild("PlayerGui"),
})
--- фон: арт лобби (временная заглушка); пока картинка грузится, виден тёплый закатный градиент
-local BG_IMAGE = "rbxassetid://118616665961176"
-local root = new("CanvasGroup", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = Color3.fromRGB(255, 190, 120), BorderSizePixel = 0, Parent = gui })
+-- фон: заставка «Рыболовная лихорадка»; пока картинка грузится, виден голубой градиент.
+-- Градиент — на отдельной подложке: UIGradient на самой CanvasGroup тонирует всё содержимое и затемнял картинку.
+-- Свет и цветокоррекция сцены на экранный интерфейс не действуют, их не трогаем.
+local BG_IMAGE = "rbxassetid://82266337853896" -- осветлённая и более насыщенная версия заставки
+local root = new("CanvasGroup", { Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, BorderSizePixel = 0, Parent = gui })
+local backdrop = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = Color3.new(1, 1, 1), BorderSizePixel = 0, Parent = root })
new("UIGradient", {
Rotation = 90,
- Color = ColorSequence.new(Color3.fromRGB(120, 200, 255), Color3.fromRGB(255, 170, 110)),
- Parent = root,
+ Color = ColorSequence.new(Color3.fromRGB(70, 140, 230), Color3.fromRGB(40, 70, 150)),
+ Parent = backdrop,
})
local bg = new("ImageLabel", {
Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, Image = BG_IMAGE,
@@ -61,13 +64,14 @@ end)
-- плашка снизу: куда идём, полоска загрузки, совет
local panel = new("Frame", {
AnchorPoint = Vector2.new(0.5, 1), Position = UDim2.new(0.5, 0, 1, -28), Size = UDim2.fromOffset(560, 118),
- BackgroundColor3 = Color3.fromRGB(70, 40, 22), BackgroundTransparency = 0.18, BorderSizePixel = 0, Parent = root,
+ BackgroundColor3 = Color3.new(1, 1, 1), BackgroundTransparency = 0.12, BorderSizePixel = 0, Parent = root,
})
new("UICorner", { CornerRadius = UDim.new(0, 18), Parent = panel })
new("UIStroke", { Color = GOLD, Thickness = 3, Transparency = 0.1, Parent = panel })
+-- тёмно-синяя плашка под ночное небо заставки, золотая обводка — как у заголовка
new("UIGradient", {
Rotation = 90,
- Color = ColorSequence.new(Color3.fromRGB(150, 95, 50), Color3.fromRGB(95, 55, 28)),
+ Color = ColorSequence.new(Color3.fromRGB(40, 66, 140), Color3.fromRGB(20, 32, 78)),
Parent = panel,
})
local float = new("TextLabel", {
@@ -79,10 +83,10 @@ local title = new("TextLabel", {
Text = "", TextColor3 = Color3.fromRGB(255, 240, 200), TextScaled = true, TextXAlignment = Enum.TextXAlignment.Left,
Font = Enum.Font.FredokaOne, Parent = panel,
})
-new("UIStroke", { Color = Color3.fromRGB(60, 30, 10), Thickness = 2, Parent = title })
+new("UIStroke", { Color = Color3.fromRGB(15, 22, 55), Thickness = 2, Parent = title })
local barBack = new("Frame", {
AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 62), Size = UDim2.new(1, -36, 0, 16),
- BackgroundColor3 = Color3.fromRGB(40, 22, 10), BackgroundTransparency = 0.15, BorderSizePixel = 0, Parent = panel,
+ BackgroundColor3 = Color3.fromRGB(10, 16, 40), BackgroundTransparency = 0.15, BorderSizePixel = 0, Parent = panel,
})
new("UICorner", { CornerRadius = UDim.new(1, 0), Parent = barBack })
local bar = new("Frame", { Size = UDim2.fromScale(0, 1), BackgroundColor3 = GOLD, BorderSizePixel = 0, Parent = barBack })
@@ -90,7 +94,7 @@ new("UICorner", { CornerRadius = UDim.new(1, 0), Parent = bar })
new("UIGradient", { Color = ColorSequence.new(Color3.fromRGB(255, 230, 120), Color3.fromRGB(255, 160, 60)), Parent = bar })
local tip = new("TextLabel", {
Position = UDim2.fromOffset(18, 86), Size = UDim2.new(1, -36, 0, 22), BackgroundTransparency = 1,
- Text = "", TextColor3 = Color3.fromRGB(255, 228, 185), TextScaled = true,
+ Text = "", TextColor3 = Color3.fromRGB(205, 222, 255), TextScaled = true,
Font = Enum.Font.GothamMedium, Parent = panel,
})
@@ -121,7 +125,7 @@ end)
local hiding = false
gui:GetAttributeChangedSignal("Visible"):Connect(function()
-- новый телепорт мог прийти, пока экран ещё уходил: тогда возвращаем его
- if gui:GetAttribute("Visible") and (hiding or not gui.Enabled) then
+ if gui:GetAttribute("Visible") then
hiding = false
showTip()
gui.Enabled = true
diff --git a/src/StarterPlayer/StarterPlayerScripts/Ambience.client.lua b/src/StarterPlayer/StarterPlayerScripts/Ambience.client.lua
index 5373d20..89a5ad0 100644
--- a/src/StarterPlayer/StarterPlayerScripts/Ambience.client.lua
+++ b/src/StarterPlayer/StarterPlayerScripts/Ambience.client.lua
@@ -66,6 +66,7 @@ local LOOK = {
local camera = workspace.CurrentCamera
local weatherCC = new("ColorCorrectionEffect", { Name = "WeatherCC", Parent = camera })
local nightCC = new("ColorCorrectionEffect", { Name = "NightCC", Parent = camera })
+-- цветокоррекция действует только на 3D-сцену, экран загрузки она не затемняет — выключать её на время загрузки не нужно
workspace:GetPropertyChangedSignal("CurrentCamera"):Connect(function()
camera = workspace.CurrentCamera
weatherCC.Parent = camera