Whenever I run the game in studio, the RunService:IsRunning()
, or at least the conditional statement doesn’t seem to be running at all because the lines of code after it do not run, this code is at the end of a module script, what am I doing wrong?
function spawnStudioCollectables()
print("ok")
for i, posPart in pairs(testCollectableLocations:GetChildren()) do
dropBox:createCollectable(collectableList[math.random(1, #collectableList)], posPart.Position)
print("yo")
end
print("done")
end
print("hi")
if game:GetService("RunService"):IsRunning() then
print("yes")
spawnStudioCollectables()
print("done")
end