Hello, I am using DataStore2 and another set of values to unlock a door. The amount to unlock this door is 100, I have 150. I use Datastore2 for the amount, I tried using print first to confirm my understanding of the script but it won’t print nothing. Any help? There is no error being listed.
local WS = game:GetService('Workspace')
local doorsNeedtoUnlock = WS.doorsToUnlock
local V_ = require(script.Parent.priceToUnlock)
local DataStore2 = require(script.Parent.DS2)
local Player = game.Players.LocalPlayer
local unlockedStats = Player:WaitForChild("doorsUnlocked")
local Pops = DataStore2("Pops", Player)
local function portUnlocked()
if Pops:Get(100) >= V_["Port"] then
print("now unlockable")
else
print("no")
end
end
portUnlocked()