local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local SoundService = game:GetService("SoundService") local CoreGui = game:GetService("CoreGui") local LocalPlayer = Players.LocalPlayer local parentGui = nil pcall(function() if gethui then parentGui = gethui() end end) if not parentGui then parentGui = CoreGui end if not parentGui and LocalPlayer then parentGui = LocalPlayer:FindFirstChildOfClass("PlayerGui") or LocalPlayer:WaitForChild("PlayerGui", 5) end if not parentGui then return end pcall(function() local oldGui = parentGui:FindFirstChild("NewYearCountdown_GUI") if oldGui then oldGui:Destroy() end for _, name in ipairs({"NewYear_SoftTick", "NewYear_FireworksSound", "NewYear_PartyHornSound", "NewYear_UltraLoudSiren"}) do local oldSnd = SoundService:FindFirstChild(name) if oldSnd then oldSnd:Destroy() end end local cam = workspace.CurrentCamera if cam then local oldDisco = cam:FindFirstChild("NewYear_DiscoColorCorrection") if oldDisco then oldDisco:Destroy() end local oldBloom = cam:FindFirstChild("NewYear_DiscoBloom") if oldBloom then oldBloom:Destroy() end end end) local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "NewYearCountdown_GUI" ScreenGui.ResetOnSpawn = false ScreenGui.IgnoreGuiInset = true ScreenGui.ClipToDeviceSafeArea = false ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling ScreenGui.Parent = parentGui local DripLayer = Instance.new("Frame") DripLayer.Name = "GoldDripLayer" DripLayer.Size = UDim2.fromScale(1, 1) DripLayer.BackgroundTransparency = 1 DripLayer.BorderSizePixel = 0 DripLayer.ZIndex = 1 DripLayer.Parent = ScreenGui local PartyLayer = Instance.new("Frame") PartyLayer.Name = "CelebrationFireworksLayer" PartyLayer.Size = UDim2.fromScale(1, 1) PartyLayer.BackgroundTransparency = 1 PartyLayer.BorderSizePixel = 0 PartyLayer.ZIndex = 5 PartyLayer.Parent = ScreenGui local BASE_WIDTH = 320 local BASE_HEIGHT = 130 local MIN_WIDTH = 190 local MIN_HEIGHT = 82 local MAX_WIDTH = 680 local MAX_HEIGHT = 290 local TIMER_FONT = Enum.Font.Oswald local CELEBRATION_DURATION_SECONDS = 22 local HIGH_SPEED_VALUE = 125 local SPACE_LAUNCH_UP_SPEED = 95 local SPACE_FLY_SPEED = 115 local ICE_FRICTION_DAMPING = 2.15 local ICE_THROW_BOOST = 1.65 local ICE_MAX_THROW_SPEED = 2400 local TICK_SOUND_IDS = { "rbxassetid://8966275754", "rbxassetid://4940109913", "rbxassetid://72673807427497" } local FIRE_SOUND_IDS = { "rbxassetid://138081500", "rbxassetid://9114221580", "rbxassetid://142070127" } local HORN_SOUND_IDS = { "rbxassetid://142070127", "rbxassetid://138081500" } local ULTRA_SIREN_SOUND_IDS = { "rbxassetid://9120296533", "rbxassetid://5766898159", "rbxassetid://138081500" } local TickSound = Instance.new("Sound") TickSound.Name = "NewYear_SoftTick" TickSound.SoundId = TICK_SOUND_IDS[1] TickSound.Volume = 0.16 TickSound.PlaybackSpeed = 1.0 TickSound.Looped = false TickSound.Parent = SoundService local FireSound = Instance.new("Sound") FireSound.Name = "NewYear_FireworksSound" FireSound.SoundId = FIRE_SOUND_IDS[1] FireSound.Volume = 1.5 FireSound.PlaybackSpeed = 1.0 FireSound.Looped = false FireSound.Parent = SoundService local HornSound = Instance.new("Sound") HornSound.Name = "NewYear_PartyHornSound" HornSound.SoundId = HORN_SOUND_IDS[1] HornSound.Volume = 1.2 HornSound.PlaybackSpeed = 1.05 HornSound.Looped = false HornSound.Parent = SoundService local UltraLoudSiren = Instance.new("Sound") UltraLoudSiren.Name = "NewYear_UltraLoudSiren" UltraLoudSiren.SoundId = ULTRA_SIREN_SOUND_IDS[1] UltraLoudSiren.Volume = 10 UltraLoudSiren.PlaybackSpeed = 1.15 UltraLoudSiren.Looped = false UltraLoudSiren.Parent = SoundService local function playUltraLoudSirenBurst(speedBoost) pcall(function() if UltraLoudSiren and UltraLoudSiren.Parent then UltraLoudSiren.Volume = 10 UltraLoudSiren.PlaybackSpeed = speedBoost or (1.08 + math.random() * 0.24) UltraLoudSiren:Play() end end) end local ShadowGroup = Instance.new("Frame") ShadowGroup.Name = "RealisticGoldShadowGroup" ShadowGroup.Size = UDim2.new(0, BASE_WIDTH, 0, BASE_HEIGHT) ShadowGroup.Position = UDim2.new(0.5, -BASE_WIDTH * 0.5, 0.15, 0) ShadowGroup.BackgroundTransparency = 1 ShadowGroup.BorderSizePixel = 0 ShadowGroup.ZIndex = 1 ShadowGroup.Parent = ScreenGui local ShadowScale = Instance.new("UIScale") ShadowScale.Scale = 1 ShadowScale.Parent = ShadowGroup local shadowLayers = {} local layerConfigs = { {14, 20, Color3.fromRGB(255, 224, 92), 0.78, 0.24, 0.12}, {28, 28, Color3.fromRGB(255, 204, 42), 0.86, 0.36, 0.14}, {46, 38, Color3.fromRGB(245, 182, 22), 0.92, 0.52, 0.16}, {68, 50, Color3.fromRGB(255, 238, 138), 0.96, 0.68, 0.15}, } for idx, cfg in ipairs(layerConfigs) do local layer = Instance.new("Frame") layer.Name = "ShadowLayer_" .. idx layer.AnchorPoint = Vector2.new(0.5, 0.5) layer.Position = UDim2.fromScale(0.5, 0.5) layer.Size = UDim2.new(1, cfg[1], 1, cfg[1]) layer.BackgroundColor3 = cfg[3] layer.BackgroundTransparency = cfg[4] layer.BorderSizePixel = 0 layer.ZIndex = 1 layer.Parent = ShadowGroup local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, cfg[2]) corner.Parent = layer local grad = Instance.new("UIGradient") grad.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0.0, Color3.fromRGB(212, 152, 16)), ColorSequenceKeypoint.new(0.3, Color3.fromRGB(255, 214, 56)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(255, 253, 220)), ColorSequenceKeypoint.new(0.7, Color3.fromRGB(255, 205, 38)), ColorSequenceKeypoint.new(1.0, Color3.fromRGB(212, 152, 16)) } grad.Transparency = NumberSequence.new{ NumberSequenceKeypoint.new(0.0, 0.65), NumberSequenceKeypoint.new(0.25, 0.25), NumberSequenceKeypoint.new(0.5, 0.05), NumberSequenceKeypoint.new(0.75, 0.25), NumberSequenceKeypoint.new(1.0, 0.65) } grad.Parent = layer table.insert(shadowLayers, { frame = layer, grad = grad, spread = cfg[1], idleTrans = cfg[4], activeTrans = cfg[5], pulseAmp = cfg[6], phase = idx * 0.85 }) end local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Size = UDim2.new(0, BASE_WIDTH, 0, BASE_HEIGHT) MainFrame.Position = UDim2.new(0.5, -BASE_WIDTH * 0.5, 0.15, 0) MainFrame.BackgroundColor3 = Color3.fromRGB(255, 212, 46) MainFrame.BackgroundTransparency = 0 MainFrame.BorderSizePixel = 0 MainFrame.Active = true MainFrame.ZIndex = 2 MainFrame.Parent = ScreenGui local FrameScale = Instance.new("UIScale") FrameScale.Scale = 1 FrameScale.Parent = MainFrame local UICorner = Instance.new("UICorner") UICorner.CornerRadius = UDim.new(0, 14) UICorner.Parent = MainFrame local TrueGoldGradient = Instance.new("UIGradient") TrueGoldGradient.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0.0, Color3.fromRGB(238, 186, 32)), ColorSequenceKeypoint.new(0.35, Color3.fromRGB(255, 218, 66)), ColorSequenceKeypoint.new(0.55, Color3.fromRGB(255, 238, 128)), ColorSequenceKeypoint.new(0.8, Color3.fromRGB(252, 206, 48)), ColorSequenceKeypoint.new(1.0, Color3.fromRGB(238, 186, 32)) } TrueGoldGradient.Rotation = 25 TrueGoldGradient.Parent = MainFrame local GoldGleamOverlay = Instance.new("Frame") GoldGleamOverlay.Name = "GoldGleamOverlay" GoldGleamOverlay.Size = UDim2.fromScale(1, 1) GoldGleamOverlay.BackgroundColor3 = Color3.fromRGB(255, 250, 205) GoldGleamOverlay.BackgroundTransparency = 0.78 GoldGleamOverlay.BorderSizePixel = 0 GoldGleamOverlay.ZIndex = 2 GoldGleamOverlay.Parent = MainFrame local GleamCorner = Instance.new("UICorner") GleamCorner.CornerRadius = UDim.new(0, 14) GleamCorner.Parent = GoldGleamOverlay local GleamGradient = Instance.new("UIGradient") GleamGradient.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0.0, Color3.fromRGB(255, 205, 35)), ColorSequenceKeypoint.new(0.45, Color3.fromRGB(255, 245, 160)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(255, 255, 245)), ColorSequenceKeypoint.new(0.55, Color3.fromRGB(255, 245, 160)), ColorSequenceKeypoint.new(1.0, Color3.fromRGB(255, 205, 35)) } GleamGradient.Transparency = NumberSequence.new{ NumberSequenceKeypoint.new(0.0, 0.85), NumberSequenceKeypoint.new(0.42, 0.55), NumberSequenceKeypoint.new(0.5, 0.05), NumberSequenceKeypoint.new(0.58, 0.55), NumberSequenceKeypoint.new(1.0, 0.85) } GleamGradient.Parent = GoldGleamOverlay local UIStroke = Instance.new("UIStroke") UIStroke.Thickness = 2.5 UIStroke.Color = Color3.fromRGB(255, 248, 190) UIStroke.Parent = MainFrame local UIGradient = Instance.new("UIGradient") UIGradient.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0.0, Color3.fromRGB(255, 210, 50)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(255, 252, 210)), ColorSequenceKeypoint.new(1.0, Color3.fromRGB(255, 210, 50)) } UIGradient.Parent = UIStroke local function applyGoldShimmerText(label, maxTextSize, minTextSize) label.TextColor3 = Color3.fromRGB(255, 246, 195) label.TextStrokeColor3 = Color3.fromRGB(168, 104, 8) label.TextStrokeTransparency = 0.05 local textGrad = Instance.new("UIGradient") textGrad.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0.0, Color3.fromRGB(184, 118, 10)), ColorSequenceKeypoint.new(0.3, Color3.fromRGB(224, 156, 22)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(255, 232, 110)), ColorSequenceKeypoint.new(0.7, Color3.fromRGB(224, 156, 22)), ColorSequenceKeypoint.new(1.0, Color3.fromRGB(184, 118, 10)) } textGrad.Offset = Vector2.new(-0.5, 0) textGrad.Parent = label local textStroke = Instance.new("UIStroke") textStroke.Thickness = 1.5 textStroke.Color = Color3.fromRGB(152, 92, 6) textStroke.Transparency = 0.15 textStroke.Parent = label local strokeGrad = Instance.new("UIGradient") strokeGrad.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0.0, Color3.fromRGB(145, 86, 4)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(235, 172, 32)), ColorSequenceKeypoint.new(1.0, Color3.fromRGB(145, 86, 4)) } strokeGrad.Parent = textStroke local constraint = Instance.new("UITextSizeConstraint") constraint.MaxTextSize = maxTextSize constraint.MinTextSize = minTextSize constraint.Parent = label return textGrad, textStroke, strokeGrad end local TitleLabel = Instance.new("TextLabel") TitleLabel.Name = "Title" TitleLabel.Size = UDim2.new(1, -54, 0, 35) TitleLabel.Position = UDim2.new(0, 14, 0, 8) TitleLabel.BackgroundTransparency = 1 TitleLabel.Text = "2027 Countdown" TitleLabel.TextSize = 18 TitleLabel.Font = Enum.Font.GothamBold TitleLabel.TextXAlignment = Enum.TextXAlignment.Left TitleLabel.TextScaled = true TitleLabel.ZIndex = 3 TitleLabel.Parent = MainFrame local titleGrad, titleStroke, titleStrokeGrad = applyGoldShimmerText(TitleLabel, 24, 11) local CloseBtn = Instance.new("TextButton") CloseBtn.Name = "CloseButton" CloseBtn.Size = UDim2.new(0, 26, 0, 26) CloseBtn.Position = UDim2.new(1, -34, 0, 10) CloseBtn.BackgroundColor3 = Color3.fromRGB(220, 50, 60) CloseBtn.Text = "X" CloseBtn.TextColor3 = Color3.fromRGB(255, 255, 255) CloseBtn.TextSize = 14 CloseBtn.Font = Enum.Font.GothamBold CloseBtn.TextScaled = true CloseBtn.ZIndex = 4 CloseBtn.Parent = MainFrame local BtnCorner = Instance.new("UICorner") BtnCorner.CornerRadius = UDim.new(0, 8) BtnCorner.Parent = CloseBtn local Divider = Instance.new("Frame") Divider.Size = UDim2.new(0.9, 0, 0, 1) Divider.Position = UDim2.new(0.05, 0, 0.35, 0) Divider.BackgroundColor3 = Color3.fromRGB(196, 132, 16) Divider.BackgroundTransparency = 0.25 Divider.BorderSizePixel = 0 Divider.ZIndex = 3 Divider.Parent = MainFrame local TimerLabel = Instance.new("TextLabel") TimerLabel.Name = "Timer" TimerLabel.Size = UDim2.new(1, -16, 0.56, 0) TimerLabel.Position = UDim2.new(0, 8, 0.39, 0) TimerLabel.BackgroundTransparency = 1 TimerLabel.Text = "Calculating..." TimerLabel.TextSize = 26 TimerLabel.Font = TIMER_FONT TimerLabel.TextScaled = true TimerLabel.ZIndex = 3 TimerLabel.Parent = MainFrame pcall(function() TimerLabel.TextSkewX = -0.2 end) local timerGrad, timerStroke, timerStrokeGrad = applyGoldShimmerText(TimerLabel, 34, 13) timerStroke.Thickness = 2.0 local originalWalkSpeed = nil local partyToolsGiven = {} local isSpaceFlightActive = false local flyBv = nil local flyBg = nil local lastDeviceVibrateClock = 0 local danceActive = false local disabledAnimateScript = nil local function getHumanoidAndRoot() if not LocalPlayer or not LocalPlayer.Character then return nil, nil end local char = LocalPlayer.Character return char:FindFirstChildOfClass("Humanoid"), char:FindFirstChild("HumanoidRootPart") end local function setDanceMode(enabled, hum) local char = LocalPlayer and LocalPlayer.Character if enabled then if not danceActive then danceActive = true if char then local animScript = char:FindFirstChild("Animate") if animScript and animScript:IsA("LocalScript") and animScript.Enabled then disabledAnimateScript = animScript animScript.Enabled = false end end if hum then pcall(function() local animator = hum:FindFirstChildOfClass("Animator") if animator then for _, track in ipairs(animator:GetPlayingAnimationTracks()) do track:Stop(0) end end end) end end else if danceActive then danceActive = false if disabledAnimateScript and disabledAnimateScript.Parent then pcall(function() disabledAnimateScript.Enabled = true end) end disabledAnimateScript = nil if char then for _, desc in ipairs(char:GetDescendants()) do if desc:IsA("Motor6D") then pcall(function() desc.Transform = CFrame.identity end) end end end end end end local function stepProceduralDance(clockNow, hum) local char = LocalPlayer and LocalPlayer.Character if not char or not hum then return end setDanceMode(true, hum) local beat = clockNow * 11 local bounceY = math.abs(math.sin(beat)) * 0.65 local swayX = math.sin(beat * 0.5) * 0.45 local twistY = math.sin(beat) * 0.55 local armWaveL = math.sin(beat) * 1.45 - 0.75 local armWaveR = math.cos(beat) * 1.45 - 0.75 local legKickL = math.sin(beat) * 0.75 local legKickR = -math.sin(beat) * 0.75 local function applyJoint(jointName, cf) local joint = char:FindFirstChild(jointName, true) if joint and joint:IsA("Motor6D") then joint.Transform = cf end end if hum.RigType == Enum.HumanoidRigType.R6 then applyJoint("RootJoint", CFrame.new(swayX, bounceY, 0) * CFrame.Angles(0, twistY, math.sin(beat * 0.5) * 0.18)) applyJoint("Left Shoulder", CFrame.new(0, 0.25, 0) * CFrame.Angles(armWaveL, 0, -0.45)) applyJoint("Right Shoulder", CFrame.new(0, 0.25, 0) * CFrame.Angles(armWaveR, 0, 0.45)) applyJoint("Left Hip", CFrame.new(0, 0, 0) * CFrame.Angles(legKickL, 0, -0.14)) applyJoint("Right Hip", CFrame.new(0, 0, 0) * CFrame.Angles(legKickR, 0, 0.14)) applyJoint("Neck", CFrame.new(0, 0, 0) * CFrame.Angles(math.sin(beat * 2) * 0.16, -twistY * 0.7, math.cos(beat) * 0.2)) else applyJoint("Root", CFrame.new(swayX, bounceY, 0) * CFrame.Angles(0, twistY, math.sin(beat * 0.5) * 0.16)) applyJoint("Waist", CFrame.new(0, 0, 0) * CFrame.Angles(math.sin(beat * 2) * 0.14, twistY * 0.65, math.cos(beat) * 0.16)) applyJoint("LeftShoulder", CFrame.new(0, 0, 0) * CFrame.Angles(armWaveL, 0, -0.4)) applyJoint("RightShoulder", CFrame.new(0, 0, 0) * CFrame.Angles(armWaveR, 0, 0.4)) applyJoint("LeftHip", CFrame.new(0, 0, 0) * CFrame.Angles(legKickL * 0.85, 0, 0)) applyJoint("RightHip", CFrame.new(0, 0, 0) * CFrame.Angles(legKickR * 0.85, 0, 0)) applyJoint("Neck", CFrame.new(0, 0, 0) * CFrame.Angles(math.sin(beat * 2) * 0.16, -twistY * 0.6, 0)) end end local discoColorEffect = nil local discoBloomEffect = nil local discoColors = { Color3.fromRGB(255, 70, 175), Color3.fromRGB(70, 235, 255), Color3.fromRGB(255, 220, 55), Color3.fromRGB(145, 90, 255), Color3.fromRGB(85, 255, 145), Color3.fromRGB(255, 110, 65), } local bounceOffset = Vector2.zero local bounceOffsetVel = Vector2.zero local bounceRot = 0 local bounceRotVel = 0 local bounceScale = 1 local bounceScaleVel = 0 local bounceStretchX = 0 local bounceStretchXVel = 0 local partySparks = {} local partyColors = { Color3.fromRGB(255, 215, 50), Color3.fromRGB(255, 95, 70), Color3.fromRGB(255, 248, 150), Color3.fromRGB(90, 230, 255), Color3.fromRGB(255, 115, 215), Color3.fromRGB(130, 255, 145), } local function ensureCameraDiscoEffects(enabled) local cam = workspace.CurrentCamera if not cam then return end if enabled then if not discoColorEffect then discoColorEffect = Instance.new("ColorCorrectionEffect") discoColorEffect.Name = "NewYear_DiscoColorCorrection" discoColorEffect.Saturation = 0.35 discoColorEffect.Contrast = 0.12 discoColorEffect.Parent = cam end if not discoBloomEffect then discoBloomEffect = Instance.new("BloomEffect") discoBloomEffect.Name = "NewYear_DiscoBloom" discoBloomEffect.Intensity = 0.65 discoBloomEffect.Size = 24 discoBloomEffect.Threshold = 0.85 discoBloomEffect.Parent = cam end else if discoColorEffect then discoColorEffect:Destroy(); discoColorEffect = nil end if discoBloomEffect then discoBloomEffect:Destroy(); discoBloomEffect = nil end end end local function updateCameraDisco(clockNow) ensureCameraDiscoEffects(true) local idx = (math.floor(clockNow * 7) % #discoColors) + 1 local nextIdx = (idx % #discoColors) + 1 local alpha = (clockNow * 7) % 1 local blended = discoColors[idx]:Lerp(discoColors[nextIdx], alpha) if discoColorEffect then discoColorEffect.TintColor = blended discoColorEffect.Saturation = 0.35 + math.sin(clockNow * 12) * 0.25 discoColorEffect.Contrast = 0.1 + math.abs(math.cos(clockNow * 10)) * 0.18 end if discoBloomEffect then discoBloomEffect.Intensity = 0.55 + math.abs(math.sin(clockNow * 9)) * 0.55 end end local function tryTriggerDeviceVibration() local now = os.clock() if now - lastDeviceVibrateClock < 0.3 then return end lastDeviceVibrateClock = now pcall(function() if typeof(vibrate) == "function" then vibrate(0.25) end end) end local function setSpaceFlight(enabled) local hum, root = getHumanoidAndRoot() isSpaceFlightActive = enabled and true or false if isSpaceFlightActive and hum and root then hum.PlatformStand = true if not flyBv then flyBv = Instance.new("BodyVelocity") flyBv.Name = "NewYear_SpaceFlyVel" flyBv.MaxForce = Vector3.new(1e6, 1e6, 1e6) flyBv.Velocity = Vector3.new(0, SPACE_LAUNCH_UP_SPEED, 0) flyBv.Parent = root end if not flyBg then flyBg = Instance.new("BodyGyro") flyBg.Name = "NewYear_SpaceFlyGyro" flyBg.MaxTorque = Vector3.new(1e6, 1e6, 1e6) flyBg.P = 2e4 flyBg.CFrame = root.CFrame flyBg.Parent = root end else if flyBv then flyBv:Destroy(); flyBv = nil end if flyBg then flyBg:Destroy(); flyBg = nil end if hum and hum.PlatformStand then hum.PlatformStand = false end end end local function createPartyTool(name, color3, burstSize) local tool = Instance.new("Tool") tool.Name = name tool.RequiresHandle = true local handle = Instance.new("Part") handle.Name = "Handle" handle.Size = Vector3.new(0.4, 1.6, 0.4) handle.Color = color3 handle.Material = Enum.Material.Neon handle.CanCollide = false handle.Parent = tool tool.Activated:Connect(function() playUltraLoudSirenBurst(1.25) pcall(function() HornSound.SoundId = HORN_SOUND_IDS[math.random(1, #HORN_SOUND_IDS)] HornSound.PlaybackSpeed = 0.95 + math.random() * 0.25 HornSound:Play() end) local _, root = getHumanoidAndRoot() if root then local burst = Instance.new("Part") burst.Shape = Enum.PartType.Ball burst.Material = Enum.Material.Neon burst.Color = color3 burst.Size = Vector3.new(1, 1, 1) burst.Anchored = true burst.CanCollide = false burst.CFrame = root.CFrame * CFrame.new(0, 2, -3) burst.Parent = workspace task.spawn(function() for i = 1, 8 do burst.Size = Vector3.new(1, 1, 1) * (1 + i * (burstSize * 0.45)) burst.Transparency = i / 8 task.wait(0.03) end burst:Destroy() end) end end) return tool end local function grantPartyTools() local backpack = LocalPlayer and LocalPlayer:FindFirstChildOfClass("Backpack") if backpack and #partyToolsGiven == 0 then local t1 = createPartyTool("Fireworks Wand", Color3.fromRGB(255, 210, 45), 2.5) local t2 = createPartyTool("Space Torch", Color3.fromRGB(115, 225, 255), 2.2) local t3 = createPartyTool("Disco Orb", Color3.fromRGB(255, 80, 190), 2.4) t1.Parent = backpack t2.Parent = backpack t3.Parent = backpack table.insert(partyToolsGiven, t1) table.insert(partyToolsGiven, t2) table.insert(partyToolsGiven, t3) end end local function spawnPartyFireworkBurst(multiplier) local mult = multiplier or 5 if #partySparks >= 240 then return end local absPos = MainFrame.AbsolutePosition local absSize = MainFrame.AbsoluteSize local burstClusters = math.clamp(mult, 1, 5) for _ = 1, burstClusters do if #partySparks >= 240 then break end local centerX = absPos.X + (math.random(-220, 220)) + absSize.X * 0.5 local centerY = absPos.Y + (math.random(-170, 170)) + absSize.Y * 0.5 local count = math.random(14, 22) for _ = 1, count do if #partySparks >= 240 then break end local angle = math.random() * math.pi * 2 local speed = math.random(120, 290) local sz = math.random(6, 14) local col = partyColors[math.random(1, #partyColors)] local spark = Instance.new("Frame") spark.AnchorPoint = Vector2.new(0.5, 0.5) spark.Position = UDim2.fromOffset(centerX, centerY) spark.Size = UDim2.fromOffset(sz, sz) spark.BackgroundColor3 = col spark.BackgroundTransparency = 0 spark.BorderSizePixel = 0 spark.ZIndex = 5 spark.Parent = PartyLayer local cr = Instance.new("UICorner") cr.CornerRadius = UDim.new(1, 0) cr.Parent = spark table.insert(partySparks, { frame = spark, x = centerX, y = centerY, vx = math.cos(angle) * speed, vy = math.sin(angle) * speed - 65, age = 0, maxAge = math.random(65, 120) / 100 }) end end end local function triggerExcitingFiveBursts() task.spawn(function() for burstIdx = 1, 5 do if not ScreenGui.Parent then break end local col = partyColors[((burstIdx - 1) % #partyColors) + 1] bounceScaleVel += (burstIdx == 5) and 8.5 or 5.5 bounceRotVel += (burstIdx % 2 == 0 and 1 or -1) * 18 tryTriggerDeviceVibration() spawnPartyFireworkBurst(5) playUltraLoudSirenBurst(1.1 + (burstIdx * 0.05)) pcall(function() if FireSound and FireSound.Parent then FireSound.SoundId = FIRE_SOUND_IDS[((burstIdx - 1) % #FIRE_SOUND_IDS) + 1] FireSound.PlaybackSpeed = 0.95 + (burstIdx * 0.06) FireSound:Play() end end) local _, root = getHumanoidAndRoot() if root then local ring = Instance.new("Part") ring.Name = "NewYear_ExcitingBurst_" .. burstIdx ring.Shape = Enum.PartType.Ball ring.Material = Enum.Material.Neon ring.Color = col ring.Size = Vector3.new(2, 2, 2) ring.Anchored = true ring.CanCollide = false ring.CFrame = root.CFrame ring.Parent = workspace local maxRadius = 11 + (burstIdx * 3.8) for step = 1, 10 do if not ring.Parent then break end local t = step / 10 ring.Size = Vector3.new(2, 2, 2) + Vector3.new(maxRadius * t, maxRadius * t, maxRadius * t) ring.Transparency = math.clamp(t ^ 1.1, 0, 1) task.wait(0.025) end pcall(function() ring:Destroy() end) end if burstIdx < 5 then task.wait(0.24) end end end) end local function clearPartyEffects(withFiveBursts) setSpaceFlight(false) ensureCameraDiscoEffects(false) local hum = getHumanoidAndRoot() setDanceMode(false, hum) if hum and originalWalkSpeed ~= nil then hum.WalkSpeed = originalWalkSpeed originalWalkSpeed = nil end for _, tool in ipairs(partyToolsGiven) do pcall(function() if tool and tool.Parent then tool:Destroy() end end) end partyToolsGiven = {} if withFiveBursts then triggerExcitingFiveBursts() end end CloseBtn.MouseButton1Click:Connect(function() clearPartyEffects(false) pcall(function() for _, snd in ipairs({TickSound, FireSound, HornSound, UltraLoudSiren}) do if snd then snd:Destroy() end end ScreenGui:Destroy() end) end) local CORNER_HIT_SIZE = 24 local dragging = false local resizing = false local activeCorner = nil local activeInput = nil local dragStartPos = Vector2.zero local lastDragClock = 0 local iceSlideVel = Vector2.zero local currentPosOffset = Vector2.new(MainFrame.Position.X.Offset, MainFrame.Position.Y.Offset) local currentPosScale = Vector2.new(MainFrame.Position.X.Scale, MainFrame.Position.Y.Scale) local targetPosOffset = currentPosOffset local currentWidth = BASE_WIDTH local currentHeight = BASE_HEIGHT local function detectCorner(screenPos) local absPos = MainFrame.AbsolutePosition local absSize = MainFrame.AbsoluteSize local left = absPos.X local right = absPos.X + absSize.X local top = absPos.Y local bottom = absPos.Y + absSize.Y local nearLeft = math.abs(screenPos.X - left) <= CORNER_HIT_SIZE local nearRight = math.abs(screenPos.X - right) <= CORNER_HIT_SIZE local nearTop = math.abs(screenPos.Y - top) <= CORNER_HIT_SIZE local nearBottom = math.abs(screenPos.Y - bottom) <= CORNER_HIT_SIZE if nearTop and nearLeft then return "TopLeft" end if nearTop and nearRight then return "TopRight" end if nearBottom and nearLeft then return "BottomLeft" end if nearBottom and nearRight then return "BottomRight" end return nil end local function applyDirectionalMoveImpulse(delta) if resizing then return end bounceOffsetVel += Vector2.new(delta.X * 18, delta.Y * 18) bounceRotVel += math.clamp(delta.X * 1.35, -36, 36) local dirRatioX = (math.abs(delta.X) - math.abs(delta.Y)) bounceStretchXVel += math.clamp(dirRatioX * 0.085, -2.4, 2.4) bounceScaleVel += math.clamp(delta.Magnitude * 0.04, -1.8, 2.4) end MainFrame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then local pos2 = Vector2.new(input.Position.X, input.Position.Y) local corner = detectCorner(pos2) activeInput = input dragStartPos = pos2 lastDragClock = os.clock() iceSlideVel = Vector2.zero if corner then resizing = true dragging = false activeCorner = corner else dragging = true resizing = false activeCorner = nil bounceScaleVel += 2.2 end input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End and input == activeInput then if dragging then bounceOffsetVel += bounceOffset * 3.5 + (iceSlideVel * 0.04) end dragging = false resizing = false activeCorner = nil activeInput = nil end end) end end) UserInputService.InputChanged:Connect(function(input) if not activeInput or input ~= activeInput then return end if input.UserInputType ~= Enum.UserInputType.MouseMovement and input.UserInputType ~= Enum.UserInputType.Touch then return end local now = os.clock() local dtDrag = math.max(now - lastDragClock, 1 / 240) lastDragClock = now local pos2 = Vector2.new(input.Position.X, input.Position.Y) local delta = pos2 - dragStartPos dragStartPos = pos2 if resizing and activeCorner then local dx = delta.X local dy = delta.Y local newW = currentWidth local newH = currentHeight local posShiftX = 0 local posShiftY = 0 if activeCorner == "BottomRight" then newW = math.clamp(currentWidth + dx, MIN_WIDTH, MAX_WIDTH) newH = math.clamp(currentHeight + dy, MIN_HEIGHT, MAX_HEIGHT) elseif activeCorner == "BottomLeft" then newW = math.clamp(currentWidth - dx, MIN_WIDTH, MAX_WIDTH) newH = math.clamp(currentHeight + dy, MIN_HEIGHT, MAX_HEIGHT) posShiftX = currentWidth - newW elseif activeCorner == "TopRight" then newW = math.clamp(currentWidth + dx, MIN_WIDTH, MAX_WIDTH) newH = math.clamp(currentHeight - dy, MIN_HEIGHT, MAX_HEIGHT) posShiftY = currentHeight - newH elseif activeCorner == "TopLeft" then newW = math.clamp(currentWidth - dx, MIN_WIDTH, MAX_WIDTH) newH = math.clamp(currentHeight - dy, MIN_HEIGHT, MAX_HEIGHT) posShiftX = currentWidth - newW posShiftY = currentHeight - newH end currentWidth = newW currentHeight = newH targetPosOffset += Vector2.new(posShiftX, posShiftY) currentPosOffset = targetPosOffset MainFrame.Size = UDim2.new(0, currentWidth, 0, currentHeight) MainFrame.Position = UDim2.new(currentPosScale.X, currentPosOffset.X, currentPosScale.Y, currentPosOffset.Y) elseif dragging then targetPosOffset += delta currentPosOffset = targetPosOffset local instVel = (delta / dtDrag) * ICE_THROW_BOOST if instVel.Magnitude > ICE_MAX_THROW_SPEED then instVel = instVel.Unit * ICE_MAX_THROW_SPEED end iceSlideVel = iceSlideVel:Lerp(instVel, 0.55) applyDirectionalMoveImpulse(delta) end end) local activeDrips = {} local dripSpawnTimer = 0 local function spawnSlowGoldDrip() if #activeDrips >= 8 then return end local absPos = MainFrame.AbsolutePosition local absSize = MainFrame.AbsoluteSize local margin = math.min(20, absSize.X * 0.15) local startX = absPos.X + margin + (math.random() * math.max(10, absSize.X - margin * 2)) local startY = absPos.Y + absSize.Y - 3 local dripWidth = math.random(5, 9) local drip = Instance.new("Frame") drip.Name = "GoldMeltDrip" drip.AnchorPoint = Vector2.new(0.5, 0) drip.Position = UDim2.fromOffset(startX, startY) drip.Size = UDim2.fromOffset(dripWidth, dripWidth) drip.BackgroundColor3 = Color3.fromRGB(255, 214, 52) drip.BackgroundTransparency = 0.08 drip.BorderSizePixel = 0 drip.ZIndex = 1 drip.Parent = DripLayer local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(1, 0) corner.Parent = drip local grad = Instance.new("UIGradient") grad.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0.0, Color3.fromRGB(255, 236, 125)), ColorSequenceKeypoint.new(1.0, Color3.fromRGB(224, 162, 20)) } grad.Rotation = 90 grad.Parent = drip table.insert(activeDrips, { frame = drip, x = startX, y = startY, baseWidth = dripWidth, vy = math.random(14, 24), length = dripWidth, maxLength = math.random(18, 32), age = 0, maxAge = math.random(14, 22) / 10 }) end local partySparkTimer = 0 local UTC_OFFSET_SECONDS = 0 local YEAR_THEMES = { { base = Color3.fromRGB(255, 212, 46), c0 = Color3.fromRGB(238, 186, 32), c1 = Color3.fromRGB(255, 218, 66), c2 = Color3.fromRGB(255, 238, 128), c3 = Color3.fromRGB(252, 206, 48), }, { base = Color3.fromRGB(255, 198, 36), c0 = Color3.fromRGB(232, 165, 20), c1 = Color3.fromRGB(255, 208, 52), c2 = Color3.fromRGB(255, 234, 112), c3 = Color3.fromRGB(246, 185, 30), }, { base = Color3.fromRGB(255, 220, 64), c0 = Color3.fromRGB(242, 195, 42), c1 = Color3.fromRGB(255, 226, 84), c2 = Color3.fromRGB(255, 244, 152), c3 = Color3.fromRGB(250, 212, 58), }, } local function applyYearTheme(targetYear) local theme = YEAR_THEMES[((targetYear - 2027) % #YEAR_THEMES) + 1] MainFrame.BackgroundColor3 = theme.base TrueGoldGradient.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0.0, theme.c0), ColorSequenceKeypoint.new(0.35, theme.c1), ColorSequenceKeypoint.new(0.55, theme.c2), ColorSequenceKeypoint.new(0.8, theme.c3), ColorSequenceKeypoint.new(1.0, theme.c0) } TitleLabel.Text = string.format("%d Countdown", targetYear) bounceScaleVel += 3.5 end local function getCurrentUtcTableAndTimestamp() local utcTable = os.date("!*t") return utcTable, os.time(utcTable) end local function getNextNewYearTarget(utcTable) local currentYear = utcTable.year or 2026 local nextYear = (currentYear < 2027) and 2027 or (currentYear + 1) local targetTs = os.time({ year = nextYear, month = 1, day = 1, hour = 0, min = 0, sec = 0 }) - UTC_OFFSET_SECONDS return nextYear, targetTs end local initialUtcTable, _ = getCurrentUtcTableAndTimestamp() local activeTargetYear, targetUtcTimestamp = getNextNewYearTarget(initialUtcTable) applyYearTheme(activeTargetYear) local rotation = 0 local gleamRotation = -35 local textSweepPhase = 0 local lastPos = MainFrame.AbsolutePosition local shakeIntensity = 0 local lastTickSecond = nil local celebrationStartClock = 0 local celebrationUntil = 0 local wasCelebrating = false local fireSoundTimer = 0 local hornSoundTimer = 0 local sirenSoundTimer = 0 local fireSoundIndex = 1 local hornSoundIndex = 1 local sirenSoundIndex = 1 local function triggerCelebrationNow() local nowClock = os.clock() celebrationStartClock = nowClock celebrationUntil = nowClock + CELEBRATION_DURATION_SECONDS fireSoundTimer = 0 hornSoundTimer = 0 sirenSoundTimer = 0 partySparkTimer = 0 bounceScaleVel += 5.5 spawnPartyFireworkBurst(5) grantPartyTools() ensureCameraDiscoEffects(true) local hum = getHumanoidAndRoot() setDanceMode(true, hum) playUltraLoudSirenBurst(1.22) if hum and originalWalkSpeed == nil then originalWalkSpeed = hum.WalkSpeed end pcall(function() if HornSound and HornSound.Parent then HornSound.SoundId = HORN_SOUND_IDS[hornSoundIndex] hornSoundIndex = (hornSoundIndex % #HORN_SOUND_IDS) + 1 HornSound:Play() end end) end RunService.Stepped:Connect(function() if not ScreenGui.Parent then return end if danceActive then local hum = getHumanoidAndRoot() if hum then stepProceduralDance(os.clock(), hum) end end end) RunService.RenderStepped:Connect(function(dt) if not ScreenGui.Parent then return end local clampedDt = math.min(dt, 0.05) local clockNow = os.clock() local utcTable, nowUtc = getCurrentUtcTableAndTimestamp() local diff = targetUtcTimestamp - nowUtc if not dragging and not resizing and iceSlideVel.Magnitude > 0.2 then targetPosOffset += iceSlideVel * clampedDt currentPosOffset = targetPosOffset iceSlideVel = iceSlideVel * math.exp(-ICE_FRICTION_DAMPING * clampedDt) local viewSize = ScreenGui.AbsoluteSize if viewSize.X > 0 and viewSize.Y > 0 then local baseX = viewSize.X * currentPosScale.X local baseY = viewSize.Y * currentPosScale.Y local minX = -baseX + 20 local maxX = viewSize.X - baseX - currentWidth - 20 local minY = -baseY + 20 local maxY = viewSize.Y - baseY - currentHeight - 20 if currentPosOffset.X < minX then currentPosOffset = Vector2.new(minX, currentPosOffset.Y) targetPosOffset = currentPosOffset iceSlideVel = Vector2.new(-iceSlideVel.X * 0.45, iceSlideVel.Y) bounceRotVel += 12 elseif currentPosOffset.X > maxX then currentPosOffset = Vector2.new(maxX, currentPosOffset.Y) targetPosOffset = currentPosOffset iceSlideVel = Vector2.new(-iceSlideVel.X * 0.45, iceSlideVel.Y) bounceRotVel -= 12 end if currentPosOffset.Y < minY then currentPosOffset = Vector2.new(currentPosOffset.X, minY) targetPosOffset = currentPosOffset iceSlideVel = Vector2.new(iceSlideVel.X, -iceSlideVel.Y * 0.45) bounceScaleVel += 2.5 elseif currentPosOffset.Y > maxY then currentPosOffset = Vector2.new(currentPosOffset.X, maxY) targetPosOffset = currentPosOffset iceSlideVel = Vector2.new(iceSlideVel.X, -iceSlideVel.Y * 0.45) bounceScaleVel += 2.5 end end end local isCelebrating = false if diff <= 0 then if celebrationUntil == 0 then triggerCelebrationNow() end if clockNow < celebrationUntil then isCelebrating = true else celebrationUntil = 0 activeTargetYear, targetUtcTimestamp = getNextNewYearTarget(utcTable) applyYearTheme(activeTargetYear) diff = math.max(0, targetUtcTimestamp - nowUtc) end elseif celebrationUntil > 0 then if clockNow < celebrationUntil then isCelebrating = true else celebrationUntil = 0 end end if wasCelebrating and not isCelebrating then clearPartyEffects(true) end wasCelebrating = isCelebrating local elapsedParty = isCelebrating and (clockNow - celebrationStartClock) or 0 local partyShakeVec = Vector2.zero local partyRot = 0 local statusText = nil if isCelebrating then local hum, root = getHumanoidAndRoot() local cam = workspace.CurrentCamera if hum then stepProceduralDance(clockNow, hum) end if cam then if elapsedParty < 3.0 then tryTriggerDeviceVibration() cam.CFrame = cam.CFrame * CFrame.new( (math.random() - 0.5) * 1.4, (math.random() - 0.5) * 1.4, (math.random() - 0.5) * 0.7 ) * CFrame.Angles( math.sin(clockNow * 70) * 0.045, math.cos(clockNow * 65) * 0.045, math.sin(clockNow * 80) * 0.05 ) statusText = "VIOLENT CAMERA SHAKE!" else updateCameraDisco(clockNow) end end if root then local spinSpeed = (elapsedParty < 3) and 10 or 18 root.CFrame = root.CFrame * CFrame.Angles(0, spinSpeed * clampedDt, 0) end if hum then if elapsedParty >= 3 then hum.WalkSpeed = HIGH_SPEED_VALUE elseif originalWalkSpeed then hum.WalkSpeed = math.max(originalWalkSpeed, 40) end end if elapsedParty >= 6.5 then if not isSpaceFlightActive then setSpaceFlight(true) end if hum and root and cam and flyBv and flyBg then local moveDir = Vector3.new(0, SPACE_LAUNCH_UP_SPEED, 0) local userInputDir = Vector3.zero if UserInputService:IsKeyDown(Enum.KeyCode.W) then userInputDir += cam.CFrame.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.S) then userInputDir -= cam.CFrame.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.A) then userInputDir -= cam.CFrame.RightVector end if UserInputService:IsKeyDown(Enum.KeyCode.D) then userInputDir += cam.CFrame.RightVector end if UserInputService:IsKeyDown(Enum.KeyCode.Space) then userInputDir += Vector3.new(0, 1, 0) end if UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then userInputDir -= Vector3.new(0, 1, 0) end if userInputDir.Magnitude > 0 then moveDir = userInputDir.Unit * SPACE_FLY_SPEED end flyBv.Velocity = moveDir flyBg.CFrame = root.CFrame * CFrame.Angles(0, 15 * clampedDt, 0) end end if not statusText then if elapsedParty < 3 then statusText = "DANCING + LOUD SIREN!" elseif elapsedParty < 6.5 then statusText = string.format("SPEED %d+ | DANCE", HIGH_SPEED_VALUE) elseif elapsedParty < 9 then statusText = "SPACE DANCE PARTY!" else statusText = "5X DISCO DANCE PARTY!" end end if elapsedParty >= 9 then tryTriggerDeviceVibration() partyShakeVec = Vector2.new( math.sin(clockNow * 58) * 11, math.cos(clockNow * 64) * 9.5 ) partyRot = math.sin(clockNow * 48) * 6.5 else partyShakeVec = Vector2.new( math.sin(clockNow * 24) * 3.5, math.cos(clockNow * 22) * 3 ) partyRot = math.sin(clockNow * 18) * 2.2 end partySparkTimer += clampedDt * 5 if partySparkTimer >= 0.16 then partySparkTimer = 0 spawnPartyFireworkBurst(5) end sirenSoundTimer += clampedDt if sirenSoundTimer >= 0.85 then sirenSoundTimer = 0 pcall(function() if UltraLoudSiren and UltraLoudSiren.Parent then UltraLoudSiren.SoundId = ULTRA_SIREN_SOUND_IDS[sirenSoundIndex] sirenSoundIndex = (sirenSoundIndex % #ULTRA_SIREN_SOUND_IDS) + 1 UltraLoudSiren.Volume = 10 UltraLoudSiren.PlaybackSpeed = 1.05 + (math.random() * 0.25) UltraLoudSiren:Play() end end) end fireSoundTimer += clampedDt if fireSoundTimer >= 0.75 then fireSoundTimer = 0 pcall(function() if FireSound and FireSound.Parent then FireSound.SoundId = FIRE_SOUND_IDS[fireSoundIndex] fireSoundIndex = (fireSoundIndex % #FIRE_SOUND_IDS) + 1 FireSound.PlaybackSpeed = 0.95 + (math.random() * 0.25) FireSound:Play() end end) end hornSoundTimer += clampedDt if hornSoundTimer >= 2.6 then hornSoundTimer = 0 pcall(function() if HornSound and HornSound.Parent then HornSound.SoundId = HORN_SOUND_IDS[hornSoundIndex] hornSoundIndex = (hornSoundIndex % #HORN_SOUND_IDS) + 1 HornSound:Play() end end) end end local closeSize = math.clamp(math.min(currentWidth, currentHeight) * 0.2, 20, 44) CloseBtn.Size = UDim2.fromOffset(closeSize, closeSize) CloseBtn.Position = UDim2.new(1, -(closeSize + 8), 0, 8) TitleLabel.Size = UDim2.new(1, -(closeSize + 20), 0, 35) local stiffness = 115 local damping = 9.5 local offsetForce = (-bounceOffset * stiffness) - (bounceOffsetVel * damping) bounceOffsetVel += offsetForce * clampedDt bounceOffset = Vector2.new( math.clamp(bounceOffset.X + bounceOffsetVel.X * clampedDt, -26, 26), math.clamp(bounceOffset.Y + bounceOffsetVel.Y * clampedDt, -26, 26) ) local rotForce = (-bounceRot * stiffness) - (bounceRotVel * damping) bounceRotVel += rotForce * clampedDt bounceRot = math.clamp(bounceRot + bounceRotVel * clampedDt, -13, 13) local scaleForce = ((1 - bounceScale) * (stiffness * 1.05)) - (bounceScaleVel * damping) bounceScaleVel += scaleForce * clampedDt bounceScale = math.clamp(bounceScale + bounceScaleVel * clampedDt, 0.88, 1.15) local stretchForce = (-bounceStretchX * (stiffness * 1.1)) - (bounceStretchXVel * damping) bounceStretchXVel += stretchForce * clampedDt bounceStretchX = math.clamp(bounceStretchX + bounceStretchXVel * clampedDt, -0.1, 0.1) local activeW = currentWidth local activeH = currentHeight if resizing then bounceOffset = Vector2.zero bounceOffsetVel = Vector2.zero bounceRot = 0 bounceRotVel = 0 bounceScale = 1 bounceScaleVel = 0 bounceStretchX = 0 bounceStretchXVel = 0 MainFrame.Rotation = 0 FrameScale.Scale = 1 MainFrame.Size = UDim2.new(0, activeW, 0, activeH) MainFrame.Position = UDim2.new(currentPosScale.X, currentPosOffset.X, currentPosScale.Y, currentPosOffset.Y) else activeW = currentWidth * (1 + bounceStretchX) activeH = currentHeight * (1 - bounceStretchX * 0.65) MainFrame.Position = UDim2.new( currentPosScale.X, currentPosOffset.X + bounceOffset.X + partyShakeVec.X, currentPosScale.Y, currentPosOffset.Y + bounceOffset.Y + partyShakeVec.Y ) MainFrame.Rotation = bounceRot + partyRot FrameScale.Scale = bounceScale MainFrame.Size = UDim2.new(0, activeW, 0, activeH) end local currentPos = MainFrame.AbsolutePosition local delta = currentPos - lastPos local dist = delta.Magnitude local speed = dist / math.max(clampedDt, 1 / 240) local rawShake = math.clamp(speed / 1350, 0, 1) if isCelebrating then rawShake = math.max(rawShake, (elapsedParty >= 9) and 1.0 or 0.75) end shakeIntensity += (rawShake - shakeIntensity) * math.min(1, clampedDt * 14) local rotSpeed = 75 + (shakeIntensity * 280) rotation = (rotation + rotSpeed * clampedDt) % 360 UIGradient.Rotation = rotation TrueGoldGradient.Rotation = 25 + math.sin(clockNow * 1.8) * 16 textSweepPhase = (textSweepPhase + (1.6 + shakeIntensity * 6.5) * clampedDt) % (math.pi * 2) local sweepX = math.sin(textSweepPhase) * 0.65 local shimmerPulse = (math.sin(clockNow * 10) * 0.5 + 0.5) * (0.3 + shakeIntensity * 0.7) titleGrad.Offset = Vector2.new(sweepX, 0) timerGrad.Offset = Vector2.new(-sweepX, 0) titleGrad.Rotation = -16 + math.sin(clockNow * 4) * 12 timerGrad.Rotation = 16 + math.cos(clockNow * 4) * 12 titleStroke.Thickness = 1.5 + (shakeIntensity * 1.0) + (shimmerPulse * 0.4) timerStroke.Thickness = 2.0 + (shakeIntensity * 1.1) + (shimmerPulse * 0.4) titleStroke.Transparency = math.clamp(0.18 - (shakeIntensity * 0.12), 0.05, 0.4) timerStroke.Transparency = math.clamp(0.16 - (shakeIntensity * 0.12), 0.05, 0.4) titleStrokeGrad.Rotation = (clockNow * (140 + shakeIntensity * 420)) % 360 timerStrokeGrad.Rotation = -(clockNow * (140 + shakeIntensity * 420)) % 360 gleamRotation = -35 + math.sin(clockNow * 2.4) * 28 + (shakeIntensity * 45) GleamGradient.Rotation = gleamRotation GoldGleamOverlay.BackgroundTransparency = math.clamp(0.84 - (shakeIntensity * 0.56), 0.25, 0.9) local shadowShiftX = 8 - (bounceOffset.X * 0.65) + (shakeIntensity * 5) local shadowShiftY = 12 - (bounceOffset.Y * 0.65) + (shakeIntensity * 7) local expandScale = 1 + (shakeIntensity * 0.14) ShadowGroup.Size = UDim2.new(0, activeW, 0, activeH) ShadowGroup.Position = UDim2.new( currentPosScale.X, (currentPosOffset.X + bounceOffset.X + partyShakeVec.X) + shadowShiftX, currentPosScale.Y, (currentPosOffset.Y + bounceOffset.Y + partyShakeVec.Y) + shadowShiftY ) ShadowGroup.Rotation = MainFrame.Rotation ShadowScale.Scale = FrameScale.Scale * expandScale for _, entry in ipairs(shadowLayers) do local shimmer = (math.sin(clockNow * 8.0 + entry.phase) * 0.5 + 0.5) * shakeIntensity local currentTrans = entry.idleTrans + ((entry.activeTrans - entry.idleTrans) * shakeIntensity) - (shimmer * entry.pulseAmp) entry.frame.BackgroundTransparency = math.clamp(currentTrans, 0.05, 0.99) entry.grad.Rotation = (clockNow * (85 + shakeIntensity * 320) + entry.phase * 45) % 360 end dripSpawnTimer += clampedDt * (1 + shakeIntensity * 1.4) if dripSpawnTimer >= 0.42 then dripSpawnTimer = 0 spawnSlowGoldDrip() end for i = #activeDrips, 1, -1 do local d = activeDrips[i] d.age += clampedDt local progress = math.clamp(d.age / d.maxAge, 0, 1) d.y += d.vy * clampedDt d.vy += 12 * clampedDt d.length = math.min(d.maxLength, d.baseWidth + progress * (d.maxLength - d.baseWidth)) local currentW = math.max(2, d.baseWidth * (1 - progress * 0.55)) d.frame.Position = UDim2.fromOffset(d.x, d.y) d.frame.Size = UDim2.fromOffset(currentW, d.length) d.frame.BackgroundTransparency = math.clamp(0.08 + (progress ^ 1.3) * 0.92, 0, 1) if d.age >= d.maxAge then if d.frame then d.frame:Destroy() end table.remove(activeDrips, i) end end for i = #partySparks, 1, -1 do local sp = partySparks[i] sp.age += clampedDt local p = math.clamp(sp.age / sp.maxAge, 0, 1) sp.x += sp.vx * clampedDt sp.y += sp.vy * clampedDt sp.vy += 220 * clampedDt sp.frame.Position = UDim2.fromOffset(sp.x, sp.y) sp.frame.BackgroundTransparency = math.clamp(p ^ 1.2, 0, 1) if sp.age >= sp.maxAge then if sp.frame then sp.frame:Destroy() end table.remove(partySparks, i) end end UIStroke.Thickness = 2.6 + (shakeIntensity * 1.9) lastPos = currentPos if isCelebrating then TitleLabel.Text = string.format("%d DANCE PARTY!", activeTargetYear) TimerLabel.Text = statusText or string.format("%d DANCE!", activeTargetYear) elseif diff > 0 then TitleLabel.Text = string.format("%d Countdown", activeTargetYear) if lastTickSecond ~= nowUtc then lastTickSecond = nowUtc pcall(function() if TickSound and TickSound.Parent then TickSound.PlaybackSpeed = (diff % 2 == 0) and 1.04 or 0.98 TickSound:Play() end end) end local days = math.floor(diff / 86400) local hours = math.floor((diff % 86400) / 3600) local minutes = math.floor((diff % 3600) / 60) local seconds = diff % 60 TimerLabel.Text = string.format("%02dD : %02dH : %02dM : %02dS", days, hours, minutes, seconds) end end)