Basically the character appears on screen. If you stop moving while it appeared then you're safe or else you die. You enable Виктория from the Shop that puts a BoolValue to true (The BoolValue is "ВикторияEnabled"). The problem is, yes, you can "BUY" it from the shop even tho it gives the player a reward for getting that lol and also, it doesn't appear. I waited 1 minute WATCHING the screen but still nothing.
local TweenService = game:GetService("TweenService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local PlayerGui = player:WaitForChild("PlayerGui")
-- Debug Print
print("Victoria Script Initialized")
local VictoriaGui = PlayerGui:WaitForChild("Виктория")
local EnemyAIFrame = VictoriaGui:WaitForChild("ВикторияAI")
local ImageLabel = EnemyAIFrame:WaitForChild("ImageLabel")
local IsShop = ReplicatedStorage:WaitForChild("IsShop")
local EnablerFolder = ReplicatedStorage:WaitForChild("EnemiesEnabler")
local VickEnabler = EnablerFolder:WaitForChild("ВикторияEnabled")
VictoriaGui.Enabled = true
VictoriaGui.DisplayOrder = 9999
EnemyAIFrame.Visible = false
local function startWobble()
local info = TweenInfo.new(0.1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1, true)
local wobble = TweenService:Create(ImageLabel, info, {Rotation = 8})
wobble:Play()
return wobble
end
local function performAttack()
print("Attempting Attack... Enabler is: " .. tostring(VickEnabler.Value))
if VickEnabler.Value == true and IsShop.Value == false then
print("Conditions met! Showing Victoria.")
EnemyAIFrame.Visible = true
local activeWobble = startWobble()
task.wait(0.6)
local duration = 1.5
local start = os.clock()
while os.clock() - start < duration do
local character = player.Character
local humanoid = character and character:FindFirstChild("Humanoid")
if IsShop.Value == true then break end
if humanoid and humanoid.Health > 0 then
if humanoid.MoveDirection.Magnitude > 0 then
humanoid.Health = 0
print("Player killed by Victoria!")
break
end
end
task.wait()
end
activeWobble:Cancel()
ImageLabel.Rotation = 0
EnemyAIFrame.Visible = false
print("Attack finished. Hiding Victoria.")
else
print("Attack skipped. Shop is open or Victoria not enabled.")
end
end
task.spawn(function()
while true do
if not VickEnabler.Value then
print("Victoria is NOT enabled. Waiting for purchase...")
VickEnabler:GetPropertyChangedSignal("Value"):Wait()
print("Victoria was just ENABLED!")
end
local waitTime = math.random(6, 15)
print("Waiting " .. waitTime .. " seconds for next attack...")
task.wait(waitTime)
performAttack()
end
end)
** You are now Level 4! **