-- Essential Variables
local repStorage = game:GetService("ReplicatedStorage")
local swordName = "OverSeer"
-- 1. Unlock the sword (most important event found in your Dex)
local unlockEvent = repStorage:WaitForChild("Events"):WaitForChild("Swords"):WaitForChild("UnlockSword")
unlockEvent:FireServer(swordName)
-- 2. Sync data so the game registers the change
local syncEvent = repStorage:WaitForChild("Events"):WaitForChild("Swords"):WaitForChild("SyncSwordData")
if syncEvent then
syncEvent:FireServer()
end
-- 3. Refresh the inventory UI
local refreshEvent = repStorage:WaitForChild("Events"):WaitForChild("Swords"):WaitForChild("RefreshInventory")
refreshEvent:FireServer(swordName, true)
print("Attempted to unlock and sync: " .. swordName)
Comments
No comments yet
Be the first to share your thoughts!